JPH02190372A - Data prefetching control system for printer - Google Patents

Data prefetching control system for printer

Info

Publication number
JPH02190372A
JPH02190372A JP1110889A JP1110889A JPH02190372A JP H02190372 A JPH02190372 A JP H02190372A JP 1110889 A JP1110889 A JP 1110889A JP 1110889 A JP1110889 A JP 1110889A JP H02190372 A JPH02190372 A JP H02190372A
Authority
JP
Japan
Prior art keywords
paper
line
sheet
length
data
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.)
Granted
Application number
JP1110889A
Other languages
Japanese (ja)
Other versions
JPH0755574B2 (en
Inventor
Kazuhiro Tanaka
和宏 田中
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.)
PFU Ltd
Original Assignee
PFU Ltd
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 PFU Ltd filed Critical PFU Ltd
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

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

Abstract

PURPOSE:To improve processing efficiency by limiting data prefetching when a designated line feeding amount is larger than a difference between the length of a sheet and a sheet feeding length at the time of execution of a line feed command in a printing process of second or following sheet. CONSTITUTION:A main controller 20 sorts the content of data prefetching control of first and second and following sheets to be continuously printed. It counts the whole line feeds by a sheet length counter 18 in the sheet printing, measures a sheet length l by the number of lines, and uses it for the data prefetching control in the second or following sheet printing. In the second or following sheet printing, the line feeding amount (t) is counted by a sheet feeding length counter 19 for each line feed command, accumulated, and the sheet feeding length (m) from the head of the sheet to the present printing line is measured by the number of lines. Then, a difference (l-m) is calculated to obtain the effective number of remaining printable lines, which is compared with the line feeding amount (t) of a line feed command to be executed next. Only in case of (l-m)>=t, data prefetching is executed. That is, the line feed is executed, but data prefetching is not conducted, and subsequent data is printed on next sheet.

Description

【発明の詳細な説明】 〔概 要〕 プリンタにおけるスループット向上のための印字データ
の先取り制御方式に関し。
[Detailed Description of the Invention] [Summary] This invention relates to a print data prefetch control method for improving throughput in a printer.

データ先取りの制限をより限定的なものにして処理効率
を改善することを目的とし。
The purpose is to improve processing efficiency by making the restrictions on data preemption more limited.

本体装置から行単位にデータを受け取り印字を行うとと
もに改行動作中に次のデータを本体装置から先取りする
ことができるプリンタにおいて。
In a printer that can receive and print data line by line from a main unit and can also pre-fetch the next data from the main unit during a feed feed operation.

用紙長カリンクと用紙送り長カウンタとを設け。A paper length link and paper feed length counter are provided.

1枚目の用紙の印刷処理の際、上記用紙長カウンタによ
り総改行量をカウントして用紙長を求め。
When printing the first sheet of paper, the paper length is determined by counting the total line feed amount using the paper length counter.

2枚目以降の用紙の印刷処理では上記用紙送り長カウン
タにより各改行コマンドが指定する改行量を逐次カウン
トして現位置までの用紙送り長を求め、改行コマンドの
実行時にその指定する改行量が上記用紙長と用紙送り長
の差よりも大きいときデータ先取りを制限するように構
成した。
In the printing process for the second and subsequent sheets of paper, the paper feed length counter sequentially counts the line feed amount specified by each line feed command to determine the paper feed length to the current position, and when the line feed command is executed, the line feed length specified by the line feed length is The configuration is configured to restrict data prefetching when the difference is greater than the length and paper feed length.

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

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

本体装置から印字データを1行単位で貰い、印字処理を
行うプリンタでは、印字処理が終了する前に次の行の印
字データを本体装置に要求し2次行の印字データの転送
を現行の印字処理と並列実行して、プリンタの処理速度
を高めている。
A printer that receives print data line by line from the main unit and performs print processing requests the print data of the next line from the main unit before the printing process is completed, and transfers the print data of the second line to the current print. The printer's processing speed is increased by executing it in parallel with the processing.

しかし次行が紙切れにかかり、印刷不可能であるときは
先取りしたデータが失われるため1紙切れを検出した場
合にはデータの先取りを禁止している0本発明は、この
データ先取り禁止の制御を効率化するものである。
However, if the next line runs out of paper and cannot be printed, the prefetched data will be lost, so when one paper out is detected, data prefetching is prohibited.The present invention prevents this data prefetching prohibition control. It increases efficiency.

〔従来の技術〕[Conventional technology]

第4図は、従来のシリアル方式のプリンタの概要図であ
る。図において1は用紙のスタッカ、2は印字ヘッド、
3はプラテン、4は用紙切れセンサ、5は用紙を示して
いる。
FIG. 4 is a schematic diagram of a conventional serial type 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により印字される。
The sheets 5 are fed one by one from the stacker 1 in accordance with a sheet feed command from the main unit, and printed on the platen 3 by the printing pad 2.

用紙切れセンサ4は、用紙5の存在/不存在を検出し、
−用紙の不存在を検出したとき用紙切れ信号を出力する
Paper out sensor 4 detects the presence/absence of paper 5,
- Outputs a paper out signal when detecting the absence of paper.

プリンタが本体装置に対して次行データの先取りを要求
できる条件は、先取りした次行データが確実に印字され
ることが保証できることである。
The condition under which the printer can request the main unit to prefetch the next line data is that it can be guaranteed that the prefetched next line data will be reliably printed.

このためには、現行の印字データ中の改行コマンドが指
定する改行量にしたがって改行を実行した結果、なおか
つ印字可能な領域が用紙上に残っていることが必要であ
る。
For this purpose, it is necessary that a printable area remains on the paper as a result of executing the 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 conventional printers, the paper out sensor 4 is provided at a position quite far from the printing position of the print head 2, and the paper out sensor 4 detects the state before the paper actually runs out at the printing position. When detecting the middle of paper 5, the length of the printable area after the line position currently being printed is unknown, so strict detection of the data prefetching conditions as described above is not possible, and a simpler method is used. A standardized method was adopted.

従来のプリンタにおけるデータ先取り制御方式を、第5
図により説明する。
The data prefetch control method in conventional printers is
This will be explained using figures.

第5図のTalは、用紙5の印字可能な最終行位置。Tal in FIG. 5 is the last printable line position of the paper 5.

すなわち実際に用紙切れとなる直前の位置に印字を行っ
ている動作状態であり、用紙切れセンサ4は用紙5を検
出していない、そしてこのときの用紙5の終端(用紙切
れ位置という)と用紙切れセンサ4との間の距離をnと
する。
In other words, it is an operating state in which printing is performed at the position immediately before the paper runs out, the paper out sensor 4 does not detect the paper 5, and the end of the paper 5 at this time (referred to as the paper out position) and the paper out position are in the operating state. Let the distance between the cut sensor 4 be n.

第5図のfblは、(a)の状態よりも遡って、用紙切
れセンサ4が用紙5を検出しているときの印字動作状態
を示している。この状態のとき改行コマンドが距Mn以
上の改行量(tとする)を指示している場合には、なお
長さkだけの印字可能な領域が残されていたにしても用
紙切れの場合と同様に扱い、データ先取りを行わず、現
行の印字処理を終了してから次行データを本体装置に要
求する。
fbl in FIG. 5 shows the printing operation state when the paper out sensor 4 is detecting the paper 5, going back from the state in (a). In this state, if the line feed command indicates a line feed amount (referred to as t) that is greater than or equal to the distance Mn, even if there is still a printable area of length k remaining, it is assumed that the paper is out of paper. It is handled in the same way, without prefetching data, and requests the next line data from the main device after completing the current printing process.

このように、従来のプリンタのデータ先取り制御方式で
は、用紙切れセンサ4が用紙5を検出していて9次に改
行コマンドが指定する改行11tが固定値nに満たない
場合に限りデータ先取りを行うようにしている。
In this way, in the conventional printer data prefetch control method, data is prefetched only when the paper out sensor 4 detects the paper 5 and the line feed 11t specified by the 9th line feed command is less than the fixed value n. That's what I do.

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

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

■、■、■ではコマンドの識別を行い、■では印字コマ
ンド、■では改行コマンド、■では排出コマンドを識別
する。
■, ■, ■ identify commands; ■ identifies a print command, ■ identifies a line feed command, and ■ identifies a discharge command.

印字コマンドの場合は、■で改行実行中のときその終了
まで待ってから■で印字を実行する。
In the case of a print command, press ■ to wait until the line feed is finished, and then press ■ to print.

改行コマンドの場合は、その指定する改行量【がn(第
5図参照)よりも小さいとき■を実行し他の場合は■を
実行する。■では用紙切れセンサが用紙を検出している
かどうかを調べ、検出していれば■を実行し他の場合は
■を実行する。■はデータ先取り条件が満たされた場合
の動作であり。
In the case of a line feed command, if the specified line feed amount [is smaller than n (see FIG. 5), then ■ is executed, otherwise, ■ is executed. In step (2), check whether the paper out sensor is detecting paper or not. If it is detected, execute (2); otherwise, execute (2). ■ is the operation when the data prefetching condition is satisfied.

改行動作を起動し、その終了を待たずに(置いてけぼり
方式で実行)処理を終わり、@で本体装置に次行データ
を要求する。他方、■はデータ先取り条件が満たされな
い場合の動作であり、改行動作を起動してその終了を待
ってから、@の次行データ要求を行う。
Activate the change operation, finish the process without waiting for it to finish (execute in the leave-behind method), and request the next line data from the main device with @. On the other hand, {circle around (2)} is an operation when the data prefetching condition is not satisfied, in which a new line operation is started, and after waiting for its completion, a @ next line data request is made.

排出コマンドの場合は、■で用紙の排出を実行する。For the eject command, press ■ to eject the paper.

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

従来のプリンタのデータ先取り制御方式では。 In the conventional printer's data prefetch control method.

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

本発明は、データ先取りの制限をより限定的なものにし
て処理効率を改善することを目的とする。
The present invention aims to improve processing efficiency by making restrictions on data prefetching more limited.

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

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

そのため1枚目の用紙の印刷処理で用紙長lを測定し、
また2枚目以降の用紙の印刷では先頭から現行までの用
紙送り長mを測定して、それらの差(j!−m)から残
り印字可能行数を求め、これを改行コマンドの指定改行
量tが超えない限り。
Therefore, during the printing process of the first sheet, the paper length l is measured,
In addition, when printing the second and subsequent sheets of paper, measure the paper feed length m from the beginning to the current one, calculate the remaining printable number of lines from the difference (j! - m), and calculate this by the specified line feed amount t of the line feed command. as long as it does not exceed.

データ先取りを行うように制御する。Control to prefetch data.

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

第1図において。In FIG.

10は、CPUなとの本体装置である。10 is a main unit including a CPU.

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

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

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

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

15は、用紙である。15 is paper.

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

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

18は、用紙15の総改行送り量をカウントす。18 counts the total line feed feed amount of the paper 15.

る用紙長カウンタである。This is the paper length counter.

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

20は、主制御部であり1本体装置10との間のインタ
フェース制御を行い本体装W 10から受け取った印字
データを解析して印字コマンド、改行コマンド、給紙コ
マンド、排出コマンド等のコマンドに対応する制御を起
動し、またデータ先取り制御を実行する。
20 is a main control unit that controls the interface with the main unit 10, analyzes the print data received from the main unit W 10, and responds to commands such as print commands, line feed commands, paper feed commands, ejection commands, etc. control, and also executes data prefetch control.

21は、印字コマンドに対応する制御を行う印字コマン
ド制御部であり、印字へラド12・、キャリアモータ(
CRM)16を駆動して印字を実行する。
21 is a print command control unit that performs control corresponding to the print command, and includes a print head 12, a carrier motor (
CRM) 16 to execute printing.

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

23は、給紙コマンドに対応する制御を行う給紙コマン
ド制御部であり1図示されていないスタッカから用紙1
5を給送し、プラテン13上の印字動作開始位置にセッ
トする。
23 is a paper feed command control unit that performs control corresponding to the paper feed command;
5 is fed and set at the printing operation start position on the platen 13.

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

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

1枚目の用紙の印刷処理では従来方式と同様に。The printing process for the first sheet of paper is the same as the conventional method.

用紙切れセンサ14が用紙15を検出しているとき、用
紙切れ位置と用紙切れセンサ14の位置との間の固定距
tlAnと各改行コマンドの改行量tとを比較し、n>
tである場合に限りデータ先取りを実行する。
When the paper out sensor 14 is detecting the paper 15, the fixed distance tlAn between the paper out position and the paper out sensor 14 position is compared with the line feed amount t of each line feed command, and n>
Data prefetching is performed only if t.

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

2枚目以降の用紙の印刷処理では、各改行コマンドごと
にその改行量tを用紙送り長カウンタ19でカウントし
て累算し、用紙先頭から現在の印字行までの用紙送り長
mを行数で測定する0次に差(j!−m)を演算して印
字可能な残りの有効行数を求、め、これを次に実行する
改行コマンドの改行量tと比較し、(Il−m)≧tの
ときにだけデータ先取りを実行する。つまり(I!、−
m) <tであれば、改行量tの改行後その用紙には印
字可能な有効行が残らないことになるので、改行は行う
がデータ先取りは行わず、続くデータは1次の用紙に印
字されることになる。
In the printing process for the second and subsequent sheets of paper, the paper feed length counter 19 counts and accumulates the line feed amount t for each line feed command, and measures the paper feed length m from the top of the paper to the current print line in number of lines. Calculate the zero-order difference (j!-m) to find the remaining number of effective lines that can be printed, compare this with the line feed amount t of the line feed command to be executed next, and (Il-m)≧ Execute data prefetch only at time t. In other words, (I!, -
m) If <t, there will be no valid printable lines left on the paper after a line feed of t, so a line feed will be performed but data will not be read in advance, and the following data will be printed on the first sheet. will be done.

〔作 用〕[For production]

第1図に示されている本発明の構成によれば。 According to the configuration of the invention shown in FIG.

同一サイズの用紙を複数枚用いてデータを連続印刷する
場合、1枚目は用紙長lの測定に当てて。
When printing data continuously using multiple sheets of the same size paper, use the first sheet to measure the paper length l.

データ先取り制御は簡略的な従来方式で行い、2枚目以
降においては1枚目の処理で測定した用紙長lと現在の
行位置を示す用紙送り長mとからデータ先取りの制限の
可否を正確に判定し、データ先取りを可能な限界ぎりぎ
りまで行うように制御している。
Data prefetching control is performed using a simple conventional method, and for the second and subsequent sheets, it is possible to accurately determine whether data prefetching can be restricted based on the paper length l measured during processing of the first sheet and the paper feed length m indicating the current line position. It is controlled so that the data is pre-fetched to the very limit possible.

これにより、連続印刷する用紙枚数が多い場合。This allows you to print a large number of sheets of paper continuously.

データ先取りが行われる割合が増加し、処理効率が向上
する。
The rate at which data is prefetched increases, improving processing efficiency.

〔実施例〕〔Example〕

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

第2図は1枚目の用紙の印刷処理の制御フロー第3図は
2枚目以降の用紙の印刷処理の制御フローである。
FIG. 2 shows the control flow of the printing process for the first sheet of paper. FIG. 3 shows the control flow of the printing process of the second and subsequent sheets.

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

第2図の1枚目の処理において。In the process of the first picture in Fig. 2.

■では、給紙コマンドにより1枚目の用紙を給送する。In (2), the first sheet of paper is fed by a paper feed command.

また用紙長カウンタをクリアする。用紙送り長カウンタ
19は使用されない。
Also clears the paper length counter. Paper feed length counter 19 is not used.

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

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

改行コマンドの場合、■で用紙長カウンタ18にコマン
ド指定している改行量tを加算する0次に■でt<nを
満たすかどうかを調べ、満たす場合にはさらに■で用紙
切れ検出センサが用紙を検出しているかどうかを調べ、
用紙を検出していれば[株]で改行動作を起動し、その
動作終了を待たずに改行コマンド処理を終了し、@で次
のデータを要求8すなわちデータを先取りする。一方、
■でt≧nあるいは用紙切れセンサ14が用紙を検出し
ていないときは、0で改行動作を行い、その終了を待っ
てから◎で次のデータを要求する。すなわち先取りでな
い方法でデータを要求する。
In the case of a line feed command, use ■ to add the line feed amount t specified by the command to the paper length counter 18. Next, use ■ to check whether t<n is satisfied, and if so, press ■ to activate the paper out detection sensor. Check whether paper is detected,
If paper is detected, a line feed operation is activated with [stock], the line feed command processing is terminated without waiting for the end of the operation, and the next data is requested 8 with @, that is, the data is preempted. on the other hand,
If t≧n or the paper out sensor 14 does not detect paper in ①, a change operation is performed with 0, and after waiting for the end, the next data is requested with ◎. That is, requesting data in a non-preemptive manner.

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

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

次に[相]、@、@で印字コマンド、改行コマンド。Next, use [phase], @, @ to print commands and line feed commands.

排出コマンドを識別し、それぞれ対応する制御を行う、
印字コマンドについて行われる[相]、[相]のステッ
プおよび排出コマンドについて行われる0のステップは
、第2図における1枚目の処理のときと同様であるので
ここでは説明は省略する。
Identifies discharge commands and performs corresponding controls,
The [phase] and [phase] steps performed for the print command and the 0 step performed for the ejection command are the same as in the processing of the first sheet in FIG. 2, so a description thereof will be omitted here.

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

m=  Σ  む五 五寧1 次に@で改行量t(tr)が(j!−m)よりも小さい
かどうかを判定し、  j!−m≧tであれば◎で改行
動作を起動して直ぐに改行コマンド処理を終了し、@で
次のデータ要求を行う、他方。
m= Σ Mugogoning1 Next, use @ to determine whether the line feed amount t(tr) is smaller than (j!-m), and j! - If m≧t, press ◎ to start the line feed operation, immediately end the line feed command processing, and use @ to request the next data.

1−m<tであれば改行動作を起動してその動作が終了
するのを待ち、■へ戻る。後者の場合は次に[相]で排
出コマンドを処理することになる。
If 1-m<t, start the change action, wait for the end of the action, and return to (2). In the latter case, the ejection command will be processed next in [phase].

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

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

本発明では、2枚目以降の印刷において、改行後に印字
可能な有効行が残るかどうかを確実に知ることができる
ため、改行コマンドの実行の際データ先取りを過剰に制
限することがなく、プリンタの処理効率が向上し、スル
ーブツトが改善される。
In the present invention, it is possible to reliably know whether or not there are valid lines left to print after the line feed when printing the second and subsequent sheets, so data prefetching is not excessively restricted when executing the line feed command, and the printer processing efficiency and throughput are improved.

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

第1図は本発明の原理的構成図、第2図は本発明実施例
によるプリンタの1枚目の印刷処理の制御フロー図、第
3図は本発明実施例によるプリンタの2枚目以降の印刷
処理の制御フロー図、第4図は従来のプリンタの概要図
、第5図は従来のプリンタのデータ先取り制御方式の説
明図、第6図は従来のプリンタの印刷処理の制御フロー
図である。 第1図中。 lO:本体装置。 11:プリンタ。 12:印字ヘッド。 13ニブラテン。 14:用紙切れセンサ。 15:用紙。 18:用紙長カウンタ。 19:用紙送り長カウンタ。 20:主制御部。 21:印字コマンド制御部。 22:改行コマンド制御部。 23:給紙コマンド制御部。 24;排出コマンド制御部。 特許出願人 株式会社ピーエフニー 代 理 人  弁理士 長谷用 文廣(外2名)$イご
e月爽施イ刈1;よろ7°りンタっ 丁扶目9rルQ1
幼月L111余昨70−レi′$ 2 区 本φご明炙託43111sよろブ11ンタの2芋ズ目五
ノ隣り+9.G’!x^理っ今11糸叶フローレうj4
3 図 イL釆のブりンクリ社しギ」2 $4[21 (C1)           (b)り羨来り70り
ンタっテータ費j抹11制謄?才A、°の省1n図$5
12t
FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is a control flow diagram of the first page printing process of the printer according to the embodiment of the present invention, and FIG. FIG. 4 is a schematic diagram of a conventional printer. FIG. 5 is an explanatory diagram of a data prefetch control method of a conventional printer. FIG. 6 is a control flow diagram of a conventional printer's print processing. . In Figure 1. lO: Main unit. 11: Printer. 12: Print head. 13 Nibraten. 14: Out of paper sensor. 15: Paper. 18: Paper length counter. 19: Paper feed length counter. 20: Main control unit. 21: Print command control unit. 22: Line feed command control section. 23: Paper feed command control unit. 24; Ejection command control unit. Patent applicant: Pfn Co., Ltd. Attorney: Patent attorney: Fumihiro Hase (2 others)
Young moon L111 extra yesterday 70-ray i'$ 2 Kuhon φ Gomei 43111s Yorobu 11 G'! x^ Ri now 11 Itokana Flore uj4
3 Figure I L-button's Brinkley Co., Ltd. 2 $4 [21 (C1) (b) Is it 70 years old? Sai A, ° Ministry 1n Figure $5
12t

Claims (1)

【特許請求の範囲】 本体装置から行単位にデータを受け取り印字を行うとと
もに改行動作中に次のデータを本体装置から先取りする
ことができるプリンタにおいて、用紙長カウンタと用紙
送り長カウンタとを設け、1枚目の用紙の印刷処理の際
、上記用紙長カウンタにより総改行量をカウントして用
紙長を求め、2枚目以降の用紙の印刷処理では上記用紙
送り長カウンタにより各改行コマンドが指定する改行量
を逐次カウントして現位置までの用紙送り長を求め、 改行コマンドの実行時にその指定する改行量が上記用紙
長と用紙送り長の差よりも大きいときデータ先取りを制
限することを特徴とするプリンタにおけるデータ先取り
制御方式。
[Scope of Claims] A printer capable of receiving and printing data line by line from a main unit and also pre-fetching the next data from the main unit during a feed feed operation, which is provided with a paper length counter and a paper feed length counter, When printing the second sheet of paper, the paper length counter counts the total line feed amount to determine the paper length, and when printing the second and subsequent sheets, the paper feed length counter uses the paper feed length counter to determine the line feed length specified by each line feed command. Data in a printer characterized in that the paper feed length to the current position is determined by sequentially counting the paper feed length, and data prefetching is restricted when the line feed amount specified by the line feed command is larger than the difference between the paper length and the paper feed length when a line feed command is executed. Preemptive 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 true JPH02190372A (en) 1990-07-26
JPH0755574B2 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0581554A1 (en) * 1992-07-28 1994-02-02 Canon Kabushiki Kaisha Image recording apparatus
JP2013182488A (en) * 2012-03-02 2013-09-12 Toshiba Tec Corp Printer system and printer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0581554A1 (en) * 1992-07-28 1994-02-02 Canon Kabushiki Kaisha Image recording apparatus
US5488407A (en) * 1992-07-28 1996-01-30 Canon Kabushiki Kaisha Image recording apparatus
JP2013182488A (en) * 2012-03-02 2013-09-12 Toshiba Tec Corp Printer system and printer
US8988714B2 (en) 2012-03-02 2015-03-24 Toshiba Tec Kabushiki Kaisha Printer system and printer

Also Published As

Publication number Publication date
JPH0755574B2 (en) 1995-06-14

Similar Documents

Publication Publication Date Title
US6233057B1 (en) Information recording apparatus
JP5839845B2 (en) Printing apparatus, printing method, and program
JPH02190372A (en) Data prefetching control system for printer
JP4529324B2 (en) Continuous paper printer
JPS63249222A (en) Printer controller
JPH02209283A (en) Printer and printing method thereof
JPH05147322A (en) Control method of space of serial printer
JP3469388B2 (en) Image forming device
JP3174461B2 (en) Printer reception control method
JPS61116564A (en) Printing apparatus
JP3596974B2 (en) Image forming device
JPH0644222B2 (en) Bar code reading control method in serial printer
JP2020124818A (en) Printer control device, printer control program, and printer
JPS60208266A (en) Controlling system of printer
JP3048575B2 (en) Printer control device
JPH0225368A (en) Printer
JPH0313989B2 (en)
JP2008023961A (en) Printer, its control method, and network system
JPH0773921B2 (en) Printer controller
JP2007168289A (en) Printing device
JPH111048A (en) Printing control method and printing apparatus
JP2003251870A (en) Printing processor
JPH05104785A (en) Printer
JPS6314293A (en) Slip conveying system
JPH0574473B2 (en)

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