JP2565527B2 - Printing control method for printer device - Google Patents

Printing control method for printer device

Info

Publication number
JP2565527B2
JP2565527B2 JP63009730A JP973088A JP2565527B2 JP 2565527 B2 JP2565527 B2 JP 2565527B2 JP 63009730 A JP63009730 A JP 63009730A JP 973088 A JP973088 A JP 973088A JP 2565527 B2 JP2565527 B2 JP 2565527B2
Authority
JP
Japan
Prior art keywords
paper
print
printing
instruction
print 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.)
Expired - Fee Related
Application number
JP63009730A
Other languages
Japanese (ja)
Other versions
JPH01186355A (en
Inventor
克泰 藤井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63009730A priority Critical patent/JP2565527B2/en
Publication of JPH01186355A publication Critical patent/JPH01186355A/en
Application granted granted Critical
Publication of JP2565527B2 publication Critical patent/JP2565527B2/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)

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 (第7図) 発明が解決しようとする問題点 (第6図) 問題点を解決するための手段 (第1図,第2図) 作用 (第1図,第2図) 実施例 (第3図,第4図,第5図,第6図) 発明の効果 〔概要〕 本発明は単票状の印刷用紙への印刷を上位装置が認識
している用紙長毎に行うに際し、用紙の装着の指示を受
信する過程と、上位装置等からの印字命令を受信する過
程と、所定の行または列分の印字データを印字バッファ
に書き込む過程と、前記行または列毎に用紙の有無を判
断する過程と、印字バッファに格納された印字データを
前記行または列毎に印字する過程と紙送りを行う過程と
を有するプリンタ装置の印字制御方法に関し、 ずれの蓄積を防止するとともにプリンタ装置を傷める
ことがないプリンタ装置の印字制御方法を提供すること
を目的とし、 印字バッファへの書込み後に用紙有無を判断し、用紙
有りの場合には前記行または列分の印字を行う、用紙無
しの場合には印字バッファに格納された印字データを消
去し、用紙長分の処理がまだ終了していない場合には再
び印字命令を受信し、用紙長分の処理が終了した場合に
は紙送り後用紙装着の指示を与える構成である。
DETAILED DESCRIPTION OF THE INVENTION [Table of Contents] Outline Industrial field of use Conventional technology (Fig. 7) Problems to be solved by the invention (Fig. 6) Means for solving the problems (Fig. 1, Fig. 1) Fig. 2) Operation (Figs. 1 and 2) Example (Figs. 3, 4, 5, and 6) Effect of the invention [Outline] The present invention is applied to printing paper in a single-cut form. When printing is performed for each paper length recognized by the host device, the process of receiving a paper loading instruction, the process of receiving a print command from the host device, and the print data for a predetermined row or column. A printer having a step of writing in a print buffer, a step of determining the presence or absence of paper for each row or column, a step of printing the print data stored in the print buffer for each row or column, and a step of feeding paper Regarding the printing control method of the device, prevent the accumulation of misalignment and The purpose of the present invention is to provide a printing control method for a printer device that does not damage the device. After writing to the print buffer, the presence or absence of paper is determined. In the case of, the print data stored in the print buffer is erased, the print command is received again when the processing for the paper length is not completed yet, and the paper feed is performed when the processing for the paper length is completed. The configuration is such that an instruction for mounting the rear sheet is given.

〔産業上の利用分野〕 本発明は単票状の印刷用紙への印字データの印刷を上
位装置が認識している用紙長毎に行うに際し、前記印刷
用紙の装着の指示を受信する過程と、上位装置等からの
印字命令を受信する過程と、1または2以上の所定の行
または列分の印字データを印字バッファに書き込む過程
と、当該行または列毎に前記印刷用紙の有無を判断する
過程と、前記印字バッファに格納された印字データを前
記行または列毎に前記印刷用紙に印字する過程と前記行
または列分の距離の紙送りを行う過程とを有するプリン
タ装置の印字制御方法に関する。
[Field of Industrial Application] The present invention, when performing printing of print data on a single-cut printing paper for each paper length recognized by a host device, a process of receiving an instruction for mounting the printing paper, A process of receiving a print command from a host device, a process of writing print data for one or more predetermined rows or columns in a print buffer, and a process of determining the presence or absence of the printing paper for each row or column. And a step of printing the print data stored in the print buffer on the printing paper for each row or column and a step of feeding the paper by a distance corresponding to the row or column.

〔従来の技術〕[Conventional technology]

従来、複数の単票(シート)状の印刷用紙への印字デ
ータの印刷を上位装置が認識している用紙長毎に行うに
際し、前記印刷用紙の装着の指示を受信する過程(S1)
と、上位装置からの印字命令を受信する過程(S2)と、
上位装置から送信された1または2以上の所定の行また
は列分の印字データを印字バッファに書き込む過程(S
3)と、当該行または列毎に前記印刷用紙の有無を判断
する過程(S4)と、前記印字バッファに格納された印字
データを前記行または列毎に前記印刷用紙に印字する過
程(S5)と前記行または列分の紙送りを行う過程(S6)
とを有するプリンタ装置の印字制御方法として第7図に
示すものがあった。
Conventionally, when printing the print data on a plurality of cut sheets (sheets) of printing paper for each paper length recognized by the host device, a process of receiving an instruction to load the printing paper (S1)
And a process of receiving a print command from the host device (S2),
The process of writing the print data for one or more predetermined rows or columns sent from the host device into the print buffer (S
3), the step of determining the presence or absence of the printing paper for each row or column (S4), and the step of printing the print data stored in the print buffer on the printing paper for each row or column (S5) And the process of feeding the paper by the line or column (S6)
There is a method shown in FIG. 7 as a print control method for a printer device having a.

前記所定行または列分の印字データを前記印字バッフ
ァに書き込んだ後(S3)、ステップS4で当該列または行
毎に印刷用紙の有無を判断し、印刷用紙がない場合には
ステップS1に戻り再び印刷用紙の装着の指示を受信し、
印刷用紙がある場合にはステップS5に進み印字を行い前
記所定行または列分の紙送りを行うようにしていた。こ
れは印刷用紙がない場合に印字を行うとプリンタ装置の
印字部である印字ヘッドがプラテン上で打ち出し等を行
うことになり、印字ヘッドを傷めるおそれがあるからで
ある。
After writing the print data for the predetermined row or column into the print buffer (S3), the presence or absence of print paper is determined for each column or row in step S4, and if there is no print paper, the process returns to step S1 again. Receives instructions for loading printing paper,
When there is a print sheet, the process proceeds to step S5, printing is performed, and the paper is fed by the predetermined row or column. This is because, if printing is performed when there is no printing paper, the printing head, which is the printing unit of the printing apparatus, may perform ejection on the platen, which may damage the printing head.

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

ところで、単票状の印刷用紙を使用する場合に、前記
上位装置が認識している用紙長と当該プリンタ装置に装
着された実際の単票状の印刷用紙の用紙長が異なる場合
には、第6図(a)に示すように当該相違が小さい場合
であっても、ある単票(シート)の印刷用紙に印字すべ
きだと上位装置が認識している印字データが実際には次
の単票の印刷用紙に印字されることになり、当該印字デ
ータのずれ量は印刷用紙の枚数が増えるとともに順次累
積されていくという不都合が生じることになる。
By the way, when using a single-cut printing paper, if the paper length recognized by the higher-level device and the actual single-cut printing paper attached to the printer device are different, Even if the difference is small as shown in FIG. 6 (a), the print data recognized by the host device to be printed on the print paper of a single cut sheet is actually the next print data. Since the slips are printed on the printing paper, the deviation amount of the printing data is sequentially accumulated as the number of printing papers increases.

そこで、本発明は以上の問題点を解決するためになさ
れたものであり、前記ずれの蓄積を防止するとともに前
記印字部を傷めることがないプリンタ装置の印字制御方
法を提供することを目的としてなされたものである。
Therefore, the present invention has been made to solve the above problems, and an object of the present invention is to provide a print control method for a printer device that prevents the accumulation of the deviation and does not damage the print unit. It is a thing.

〔問題点を解決するための手段〕[Means for solving problems]

以上の問題点を解決するため第1の発明は第1図に示
すように単票状の印刷用紙への印字データの印刷を上位
装置が認識している当該用紙の用紙長毎に行うに際し、
上位装置からの指示等により前記印刷用紙の装着の指示
を受信する過程(S1)と、上位装置等からの印字命令を
受信する過程(S2)と、1または2以上の所定の行また
は列分の印字データを印字バッファに書き込む過程(S
3)と、当該行または列毎に前記印刷用紙の有無を判断
する過程(S4)と、前記印字バッファに格納された印字
データを前記行または列毎に前記印刷用紙に印字する過
程(S5)と前記行または列分の紙送りを行う過程(S6)
とを有するプリンタ装置の印字制御方法において、前記
印字バッファに印字データが書き込まれた後に印刷用紙
の有無を判断し(S4)、印刷用紙有りと判断された場合
には前記印刷用紙に前記行または列分の印字を行い(S
5)、印刷用紙無しと判断された場合には前記印字バッ
ファに格納された印字データを消去し(S41)、印字ま
たは消去を行った後、上位装置からの用紙長分の処理終
了を示す用紙長指示の有無を確認し(S51)、前記用紙
長指示がない場合には前記用紙長分の処理がまだ終了し
ていないと判断し、紙送り(S6)をした後に再び印字命
令を受信し(S2)、前記用紙長指示があった場合には前
記用紙長分の処理が終了したと判断し、印刷用紙の装着
の指示を受信する(S1)ものである。
In order to solve the above problems, the first invention is to print the print data on a single-cut printing paper for each paper length of the paper recognized by the host device as shown in FIG.
A step of receiving an instruction for mounting the printing paper by an instruction from a host device (S1), a step of receiving a print command from the host device (S2), and one or more predetermined rows or columns. Process of writing the print data of
3), the step of determining the presence or absence of the printing paper for each row or column (S4), and the step of printing the print data stored in the print buffer on the printing paper for each row or column (S5) And the process of feeding the paper by the line or column (S6)
In the print control method of the printer device having the above, the presence or absence of print paper is judged after the print data is written in the print buffer (S4), and if it is judged that there is print paper, the line or Prints a line (S
5) If it is determined that there is no printing paper, the print data stored in the print buffer is erased (S41), and after printing or erasing, a paper indicating the end of processing for the paper length from the host device. The presence / absence of a length instruction is checked (S51). If there is no paper length instruction, it is determined that the processing for the paper length has not been completed yet, the paper feed (S6) is performed, and then the print command is received again. (S2), if there is the paper length instruction, it is determined that the processing for the paper length has been completed, and the instruction for mounting the printing paper is received (S1).

さらに、第2の発明は第2図に示すように単票状の印
刷用紙への印字データの印刷を上位装置が認識している
当該用紙の用紙長毎に行うに際し、当該印刷用紙の装着
の指示を受信する過程(S1)と、上位装置等からの印字
命令を受信する過程(S2)と、1または2以上の所定の
行または列分の印字データを印字バッファに書き込む過
程(S3)と、当該行または列毎に前記印刷用紙の有無を
判断する過程(S4)と、印字バッファに格納された印字
データを前記行または列毎に前記印刷用紙に印字する過
程(S5)と、前記行または列分の紙送りを行う過程(S
6)とを有するプリンタ装置の印字制御方法において、
上位装置からの印字命令を受信した後(S2)に印刷用紙
の有無を判断し(S4)、印刷用紙有りと判断された場合
には前記印字データを印字バッファに書き込んだ後印字
を行い(S5)、印刷用紙無しと判断した場合には前記印
字命令を消去し(S42)、印字または消去を行った後、
上位装置からの用紙長分の処理終了を示す用紙長指示の
有無を確認し(S51)、前記用紙長指示がない場合には
前記用紙長分の処理がまだ終了していないと判断し、紙
送り(S6)をした後に再び印字命令を受信し(S2)、前
記用紙長指示があった場合には前記用紙長分の処理が終
了したと判断し、印刷用紙の装着の指示を受信する(S
1)ものである。
Further, according to the second invention, as shown in FIG. 2, when printing the print data on the single-cut printing paper for each paper length of the paper recognized by the host device, A step of receiving an instruction (S1), a step of receiving a print command from a host device (S2), and a step of writing print data for one or more predetermined rows or columns in a print buffer (S3) , A step of determining the presence or absence of the printing paper for each row or column (S4), a step of printing the print data stored in a print buffer on the printing paper for each row or column (S5), and the row Or the process of feeding paper by a line (S
6) In the print control method of the printer device having and,
After receiving the print command from the host device (S2), the presence / absence of print paper is determined (S4). If it is determined that print paper is present, the print data is written in the print buffer and then printing is performed (S5). ), If it is determined that there is no printing paper, the print command is erased (S42), and after printing or erasing,
The presence or absence of a paper length instruction indicating the end of processing for the paper length from the host device is checked (S51). If there is no paper length instruction, it is determined that the processing for the paper length has not been completed, After the feeding (S6), the print command is received again (S2), and if there is the paper length instruction, it is determined that the processing for the paper length has been completed, and the instruction for mounting the print paper is received ( S
1) It is something.

〔作用〕[Action]

本発明により印字制御を行うには、第1図に示すよう
にステップS1で上位装置等からの装着の指示の受信に応
じて印刷用紙がプリンタ装置に装着された後、上位装置
から印字命令を持つ。
In order to perform print control according to the present invention, as shown in FIG. 1, after the printing paper is loaded in the printer device in response to receiving the loading instruction from the host device in step S1, a print command is issued from the host device. To have.

ステップS2で印字命令を受信した場合には、ステップ
S3でプリンタ装置に設けられた印字バッファに印刷用紙
に印刷しようとする印字データのうち、所定の行または
列分、例えば1行の印字データを印字バッファに書き込
む。
If a print command is received in step S2,
In S3, of the print data to be printed on the printing paper, the print data of a predetermined line or column, for example, one line of print data is written in the print buffer provided in the printer.

その際、ステップS4でプリンタ装置に備えられた用紙
の有無を検出する手段により前記行または列分の印字を
行う分の印刷用紙が存在するか否かが判断される。
At that time, in step S4, the presence / absence of the paper provided in the printer device determines whether or not there is the print paper for printing for the rows or columns.

もし、印刷用紙が前記行または列の印字の大きさ分存
在する場合にはステップS5で印字を行うが、印刷用紙が
前記行または列分存在しない場合にはステップS41で印
字バッファに格納されている当該行または列分の印字デ
ータの消去を行う。
If the printing paper exists in the print size of the row or column, printing is performed in step S5, but if the printing paper does not exist in the row or column, the printing paper is stored in the print buffer in step S41. Delete the print data for the relevant row or column.

一方、第2の発明の場合には第2図に示すようにステ
ップS2で印字命令を受信すると、前述した第1の発明と
異なり、前記行または列分の印字データを前記印字バッ
ファに書き込む前にステップS4で印刷用紙の有無を判断
する。
On the other hand, in the case of the second invention, when the print command is received in step S2 as shown in FIG. 2, unlike the above-described first invention, before the print data for the rows or columns is written in the print buffer. Then, in step S4, the presence or absence of printing paper is determined.

もし、印刷用紙が存在する場合にはステップS3に進
み、前記印字バッファに印字データの書き込みを行うこ
とになるが、用紙が存在しない場合はステップS42に進
み受信された前記印字命令の消去を行い前記印字バッフ
ァに印字データの書き込みを行わない。ここで、上位装
置が認識している用紙長のうち当該印刷用紙に印字する
ことができない印字データ分については、印字バッファ
に格納された当該印字データの消去または印字命令の消
去を行って印字を停止させるのは、印刷用紙以外の場
所、例えばプラテン等の場所への印字を阻止するととも
に、印字データを印字すべき印刷用紙以外の印刷用紙へ
の印字を阻止するためである。
If printing paper exists, the process proceeds to step S3 to write the print data to the print buffer, but if no paper exists, the process proceeds to step S42 to erase the received print command. No print data is written to the print buffer. Here, of the paper length recognized by the host device, for the print data that cannot be printed on the print paper, the print data stored in the print buffer is deleted or the print command is deleted to print. The reason for stopping is to prevent printing on a place other than the printing paper, for example, a place such as a platen, and also to prevent printing on the printing paper other than the printing paper on which the print data should be printed.

こうして、第1の発明において印字(S5)または消去
(S41)を行った後、または第2の発明で印字(S5)ま
たは印字命令の消去(S42)を行った後、ステップS51に
進み、前記上位装置からの用紙長指示の有無を確認し、
上位装置が認識していた用紙長分の処理が終了したか否
かを判断する。そして、もし上位装置から用紙長指示が
あった場合には、用紙長分の処理が終了したものである
からステップS1に戻り印刷用紙の装着の指示を受信し、
印字用紙をプリンタ装置に装着することになり、用紙長
指示がない場合には、未だ上位装置が認識している用紙
長分の処理が終了していないことであるからステップS6
に進み紙送りを行った後、ステップS2に進み再び印字命
令を受信することになる。
Thus, after printing (S5) or erasing (S41) in the first invention or after printing (S5) or erasing the print command (S42) in the second invention, the process proceeds to step S51, Check if there is a paper length instruction from the host device,
It is determined whether or not the processing for the paper length recognized by the host device has been completed. Then, if there is a paper length instruction from the host device, since the processing for the paper length has been completed, the process returns to step S1 to receive the instruction to attach the printing paper,
When the print paper is to be loaded in the printer device and there is no paper length instruction, it means that the processing for the paper length recognized by the host device has not been completed yet.
After the paper feed is performed in step S2, the print command is received again in step S2.

〔実施例〕〔Example〕

次に第1及び第2の発明に係る実施例について説明す
る。
Next, examples of the first and second inventions will be described.

第3図に本実施例に係るプリンタ装置の機器構成ブロ
ック図を示す。
FIG. 3 shows a block diagram of a device configuration of the printer device according to the present embodiment.

本プリンタ装置2は当該プリンタ装置に印字を要求す
る印字データ及び当該印字データの印字命令の送出を行
う上位装置としてのホスト・コンピュータ1と接続され
ている。
The printer device 2 is connected to a host computer 1 as a host device that sends print data for requesting printing to the printer device and a print command for the print data.

当該プリンタ装置2は当該ホスト・コンピュータ1か
ら送出された印字データの受信を行う受信部4と、当該
ホスト・コンピュータ1から送出された印字データの格
納を行う受信バッファ5と、当該プリンタ装置2に装着
された単票状の印刷用紙が所定位置に存在するか否かの
検出を行う光センサ等を使用した用紙有無検出センサ6
と、前記印刷用紙に印字を行う印字ヘッド等の印字部7
と、前記受信バッファ5に格納された印字データのうち
一度に印字が行われる1行分の印字データを格納する印
字バッファ(ライン・バッファ)8と、当該印字バッフ
ァ8に格納されている印字データの消去を行うコンピュ
ータのソフトウェアにより構成される印字バッファ消去
部9と、印字が終了した場合に1行分の紙送りを行う改
行部10と、主走査方向、すなわち行に沿って印字部7の
印字ヘッドを移動させるためのスペース部11と、当該プ
リンタ装置2についての種々の制御を行うCPUから構成
される主制御部3とを有している。
The printer device 2 includes a receiving unit 4 for receiving print data sent from the host computer 1, a receiving buffer 5 for storing print data sent from the host computer 1, and a printer unit 2 for receiving the print data. Paper presence / absence detection sensor 6 using an optical sensor or the like for detecting whether the attached single-cut printing paper is present at a predetermined position
And a printing unit 7 such as a print head for printing on the printing paper.
A print buffer (line buffer) 8 for storing one line of print data to be printed at a time among the print data stored in the reception buffer 5, and the print data stored in the print buffer 8. Of the print buffer erasing unit 9 configured by computer software for erasing data, a line feed unit 10 for feeding one line of paper when printing is completed, and the printing unit 7 along the main scanning direction, that is, along the line. It has a space 11 for moving the print head, and a main controller 3 composed of a CPU for performing various controls on the printer device 2.

続いて第5図に基づいて本実施例(第1の発明に関す
る)の動作を説明する。
Next, the operation of this embodiment (related to the first invention) will be described with reference to FIG.

本実施例ではステップSA1でプリンタ装置2に単票状
の印刷用紙を装着せよという上位装置からのコマンドに
よる指示があると、ステップSA2で当該指示をプリンタ
装置2が受信し、ステップSA3で手動または自動的に印
刷用紙を当該プリンタ装置に装着する。
In this embodiment, when there is an instruction by a command from the higher-level device to load a single-cut printing paper in the printer device 2 in step SA1, the printer device 2 receives the instruction in step SA2, and manually or in step SA3. The printing paper is automatically attached to the printer device.

上位装置としてのホスト・コンピュータ1がステップ
SA4で印字を行おうとする印字データを所定量ずつ送信
する。プリンタ装置2の前記受信部4はステップSA5で
当該印字データを受信すると、ステップSA6で当該印字
データを受信バッファに一旦格納する。
The host computer 1 as a host device steps
The print data to be printed by SA4 is sent in specified amounts. Upon receiving the print data in step SA5, the receiver 4 of the printer device 2 temporarily stores the print data in the reception buffer in step SA6.

その後、ホスト・コンピュータはステップSA7で前記
1行分の印字命令を送信する。
Thereafter, the host computer transmits the print command for one line in step SA7.

当該印字命令はステップSA8で前記受信バッファ5に
一旦格納される。当該命令はプリンタ装置2の主制御部
3により読み出されて前記受信バッファに一旦格納され
た印字データのうち1行分が読み出されてステップSA9
で前記印字バッファ8に書き込まれることになる。
The print command is temporarily stored in the reception buffer 5 in step SA8. The instruction is read by the main control unit 3 of the printer device 2 and one line of the print data once stored in the reception buffer is read out, and the step SA9
Then, the data is written in the print buffer 8.

続いてステップSA10で前記用紙有無検出センサ6によ
り前記印刷用紙の有無が判断される。印刷用紙があると
判断された場合には従来と同様に前記印字バッファ8に
格納された前記印字データを印字し、印字用紙がないと
判断された場合にはステップSA12に進み前記印字バッフ
ァ8に格納された印字データの消去を行うことになる。
Then, in step SA10, the presence / absence of the printing paper is determined by the paper presence / absence detection sensor 6. If it is determined that there is print paper, the print data stored in the print buffer 8 is printed as in the conventional case, and if it is determined that there is no print paper, the process proceeds to step SA12 and the print buffer 8 is stored. The stored print data will be erased.

一方、上位装置であるホスト・コンピュータ1は予め
前記プリンタ装置に装着された印刷用紙の用紙長に基づ
いて1行毎の印字命令を何回発すべきかを確認してお
り、ステップSA13で予め定めた回数の印字命令を送信し
たか否かを各印字命令を送信する毎に判断し、当該回数
に達するまで印字命令を繰り返すことになる。予め定め
た回数に達した場合には用紙長分の処理が終了したこと
を示す用紙長信号をステップSA14で送信し、次の印刷用
紙の装着を考慮してステップSA15で所定時間印字命令の
送信を停止することになる。
On the other hand, the host computer 1, which is the host device, confirms in advance how many times the print command for each line should be issued based on the paper length of the printing paper loaded in the printer device, and is determined in advance in step SA13. Each time a print command is sent, it is determined whether or not the print command has been sent a certain number of times, and the print command is repeated until this number is reached. When the predetermined number of times is reached, a paper length signal indicating that the processing for the paper length has been completed is transmitted in step SA14, and a print command is transmitted for a predetermined time in step SA15 in consideration of mounting of the next printing paper. Will be stopped.

ステップSA16で前記プリンタ装置2の主制御部3は前
記用紙長信号を受信しないと判断した場合にはステップ
SA17で1行分の紙送りを行った後ステップSA8に戻り再
び印字命令を待ち、印字命令を受信した場合には前述し
た処理がなされることになる。
If it is determined in step SA16 that the main control unit 3 of the printer device 2 does not receive the paper length signal,
After feeding one line of paper at SA17, the process returns to step SA8 to wait for the print command again, and when the print command is received, the above-described processing is performed.

一方、ステップSA16で前記用紙長信号を受信したと判
断した場合であって、未だ印刷が全て終了していない場
合(SA18)には再びステップSA2に進み上位装置から印
刷用紙の装着の指示を受けることになる。
On the other hand, if it is determined in step SA16 that the paper length signal has been received, and if all printing has not been completed (SA18), the process proceeds to step SA2 again, and an instruction to mount the printing paper is received from the host device. It will be.

次に、第4図に示した他の実施例(第2の発明に関す
る)を説明する。
Next, another embodiment (related to the second invention) shown in FIG. 4 will be described.

本実施例は前述した実施例と異なり、印字バッファ8
に格納されている印字データの消去を行う印字バッファ
消去部9の代わりに受信バッファ5に格納された印字命
令の消去を行うコンピュータ・ソフトウェアにより構成
される印字命令消去部19を設けたものである。
This embodiment differs from the above-mentioned embodiments in that the print buffer 8
In place of the print buffer erasing unit 9 for erasing the print data stored in, the print command erasing unit 19 constituted by computer software for erasing the print command stored in the reception buffer 5 is provided. .

本実施例では第5図の流れ図においてステップSA8で
印字命令を受信した後にステップSA10の印刷用紙の有無
の判断を行い、印刷用紙が存在すると判断した場合には
前述した実施例と同様にステップSA9で印字バッファ5
に1行分の印字データを書き込み、ステップSA11で印字
を行うことになるが、印刷用紙が存在しないと判断され
た場合には前記受信バッファ5に格納された印字命令の
消去を行い、印字データを前記印字バッファ8に書き込
まないようにしている。こうして、ステップSA11での印
字または消去を行った後に、第5図に示したようにステ
ップSA16に進むことになる。
In this embodiment, after the print command is received in step SA8 in the flow chart of FIG. 5, it is judged in step SA10 whether or not the print paper is present. If it is judged that the print paper is present, the same as in the above-described embodiment, the step SA9 is executed. Print buffer 5
The print data for one line is written in and the print is performed in step SA11. However, if it is determined that there is no print paper, the print command stored in the reception buffer 5 is erased and the print data is printed. Is not written in the print buffer 8. Thus, after printing or erasing in step SA11, the process proceeds to step SA16 as shown in FIG.

こうして、第6図(b)に示すように、上位装置とし
てのホスト・コンピュータ1が認識する用紙長と実際に
プリンタ装置に装着された印刷用紙の用紙長にずれが存
在する場合であって、実際の印刷用紙の用紙長がホスト
・コンピュータ1の認識する用紙長よりも短い場合に
は、印字し残した分は印字されずに消去され、新たに装
着された印刷用紙については常に最初から印字が行われ
ることになる。
Thus, as shown in FIG. 6 (b), there is a difference between the paper length recognized by the host computer 1 as the host device and the paper length of the printing paper actually mounted in the printer device. When the actual paper length of the printing paper is shorter than the paper length recognized by the host computer 1, the unprinted portion is erased without being printed, and the newly mounted printing paper is always printed from the beginning. Will be done.

尚、通常ホスト・コンピュータの認識する用紙長と実
際にプリンタ装置に装着された印刷用紙の用紙長のずれ
は小さいものであり、消去された印字データは小さいの
が普通であり、しかも最終の行であるため、消去による
影響は小さいと考えられる。
Usually, the deviation between the paper length recognized by the host computer and the paper length of the printing paper actually mounted in the printer is small, and the erased print data is usually small, and the final line Therefore, it is considered that the influence of erasure is small.

また、前述した実施例では印刷用紙の装着の指示及び
印字命令は上位装置が行うように説明しているが、必ず
しも上位装置に限られることはなくプリンタ装置に設け
たスイッチ等により指示してもよい。
Further, in the above-described embodiment, the instruction for mounting the printing paper and the print command are described to be performed by the host device, but the host device is not necessarily limited to the host device and may be instructed by a switch or the like provided in the printer device. Good.

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

以上説明したように本発明は上位装置の認識する用紙
長と実際にプリンタ装置に装着された単票状の印刷用紙
にずれが生じる場合であって、上位装置の認識している
用紙長が実際に装着した印刷用紙よりも大きい場合には
前記印字バッファに格納された印字データの消去または
前記印字命令の消去を行うことにより、ずれの分の印字
を行わないようにしている。
As described above, according to the present invention, there is a difference between the paper length recognized by the host device and the printing paper that is actually attached to the printer device, and the paper length recognized by the host device is actually When the size is larger than the size of the printing paper attached to the printer, the print data stored in the print buffer or the print command is erased so that the misaligned printing is not performed.

したがって、印刷用紙がないにも拘らず印字が行われ
て印字部に故障を招く事態を防止するとともに、ずれの
分が以降の印刷用紙に累積されるような不都合を防止す
ることができるので、寿命の高い、かつ信頼性のあるプ
リンタ装置を提供することができることになる。
Therefore, it is possible to prevent a situation in which printing is performed despite the absence of printing paper and cause a failure in the printing unit, and it is possible to prevent inconvenience in which the misalignment is accumulated on subsequent printing paper. It is possible to provide a reliable printer device having a long life.

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

第1図は第一の発明の原理流れ図、第2図は第二の発明
の原理流れ図、第3図は実施例に係る機器構成ブロック
図、第4図は他の実施例に係る機器構成ブロック図、第
5図は実施例に係る流れ図、第6図は従来例(a)及び
実施例(b)に係る説明図、第7図は従来例に係る流れ
図である。 1……ホスト・コンピュータ(上位装置) 2……プリンタ装置 3……主制御部 5……受信バッファ 6……用紙有無検出センサ 8……印字バッファ 9……印字バッファ消去部 19……印字命令消去部
FIG. 1 is a flow chart of the principle of the first invention, FIG. 2 is a flow chart of the principle of the second invention, FIG. 3 is a block diagram of a device configuration according to an embodiment, and FIG. 4 is a block diagram of a device configuration according to another embodiment. FIG. 5 is a flow chart according to the embodiment, FIG. 6 is an explanatory view according to the conventional example (a) and the embodiment (b), and FIG. 7 is a flow chart according to the conventional example. 1 ... Host computer (upper device) 2 ... Printer device 3 ... Main control unit 5 ... Reception buffer 6 ... Paper presence / absence detection sensor 8 ... Print buffer 9 ... Print buffer erase unit 19 ... Print command Erase section

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】単票状の印刷用紙への印字データの印刷を
上位装置が認識している当該用紙の用紙長毎に行うに際
し、上位装置からの指示等により前記印刷用紙の装着の
指示を受信する過程(S1)と、上位装置等からの印字命
令を受信する過程(S2)と、1または2以上の所定の行
または列分の印字データを印字バッファに書き込む過程
(S3)と、当該行または列毎に前記印刷用紙の有無を判
断する過程(S4)と、前記印字バッファに格納された印
字データを前記行または列毎に前記印刷用紙に印字する
過程(S5)と前記行または列分の紙送りを行う過程(S
6)とを有するプリンタ装置の印字制御方法において、 前記印字バッファに印字データが書き込まれた後に印刷
用紙の有無を判断し(S4)、 印刷用紙有りと判断された場合には前記印刷用紙に前記
行または列分の印字を行い(S5)、印刷用紙無しと判断
された場合には前記印字バッファに格納された印字デー
タを消去し(S41)、 印字または消去を行った後、上位装置からの用紙長分の
処理終了を示す用紙長指示の有無を確認し(S51)、 前記用紙長指示がない場合には前記用紙長分の処理がま
だ終了していないと判断し、紙送り(S6)をした後に再
び印字命令を受信し(S2)、 前記用紙長指示があった場合には前記用紙長分の処理が
終了したと判断し、印刷用紙の装着の指示を受信する
(S1)ことを特徴とするプリンタ装置の印字制御方法。
1. When printing print data on a single-cut printing paper for each paper length of the paper recognized by a higher-level device, an instruction from the higher-level device to attach the printing paper is given. The step of receiving (S1), the step of receiving a print command from a host device (S2), the step of writing print data for one or more predetermined rows or columns in a print buffer (S3), The step of determining the presence or absence of the printing paper for each row or column (S4), the step of printing the print data stored in the print buffer on the printing paper for each row or column (S5), and the row or column Minute paper feed process (S
In the print control method of the printer device having 6), the presence or absence of print paper is judged after the print data is written in the print buffer (S4), and if it is judged that there is print paper, After printing for rows or columns (S5), if it is determined that there is no printing paper, the print data stored in the print buffer is erased (S41). It is checked whether or not there is a paper length instruction indicating the end of processing for the paper length (S51). If there is no paper length instruction, it is determined that the processing for the paper length has not been completed yet, and paper feeding (S6) After receiving the print instruction, the print command is received again (S2). When the paper length instruction is received, it is determined that the processing for the paper length has been completed, and the print paper loading instruction is received (S1). A printing control method for a characteristic printer device.
【請求項2】単票状の印刷用紙への印字データの印刷を
上位装置が認識している当該用紙の用紙長毎に行うに際
し、当該印刷用紙の装着の指示を受信する過程(S1)
と、上位装置等からの印字命令を受信する過程(S2)
と、1または2以上の所定の行または列分の印字データ
を印字バッファに書き込む過程(S3)と、当該行または
列毎に前記印刷用紙の有無を判断する過程(S4)と、印
字バッファに格納された印字データを前記行または列毎
に前記印刷用紙に印字する過程(S5)と、前記行または
列分の紙送りを行う過程(S6)とを有するプリンタ装置
の印字制御方法において、 上位装置からの印字命令を受信した後(S2)に印刷用紙
の有無を判断し(S4)、 印刷用紙有りと判断された場合には前記印字データを印
字バッファに書き込んだ後印字を行い(S5)、 印刷用紙無しと判断した場合には前記印字命令を消去し
(S42)、 印字または消去を行った後、上位装置からの用紙長分の
処理終了を示す用紙長指示の有無を確認し(S51)、 前記用紙長指示がない場合には前記用紙長分の処理がま
だ終了していないと判断し、紙送り(S6)をした後に再
び印字命令を受信し(S2)、 前記用紙長指示があった場合には前記用紙長分の処理が
終了したと判断し、印刷用紙の装着の指示を受信する
(S1)ことを特徴とするプリンタ装置の印字制御方法。
2. A step of receiving a mounting instruction of the printing paper when printing the printing data on the single-cut printing paper for each paper length of the paper recognized by the host device (S1).
And the process of receiving the print command from the host device (S2)
And a step of writing the print data for one or more predetermined rows or columns into the print buffer (S3), a step of determining the presence or absence of the printing paper for each row or column (S4), and a print buffer. A printing control method for a printer, comprising: a step (S5) of printing the stored print data on the printing paper for each row or column; and a step (S6) of feeding the paper for the rows or columns. After receiving the print command from the device (S2), the presence / absence of printing paper is determined (S4), and if it is determined that printing paper is present, the print data is written in the print buffer and printing is performed (S5). When it is determined that there is no printing paper, the print command is erased (S42), and after printing or erasing, the presence or absence of a paper length instruction indicating the end of processing for the paper length from the host device is checked (S51). ), If there is no paper length instruction Determines that the processing for the paper length has not been completed yet, the paper feed (S6) is performed, and then the print command is received again (S2). A print control method for a printer, characterized by determining that the processing has been completed and receiving an instruction to load a print sheet (S1).
JP63009730A 1988-01-21 1988-01-21 Printing control method for printer device Expired - Fee Related JP2565527B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63009730A JP2565527B2 (en) 1988-01-21 1988-01-21 Printing control method for printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63009730A JP2565527B2 (en) 1988-01-21 1988-01-21 Printing control method for printer device

Publications (2)

Publication Number Publication Date
JPH01186355A JPH01186355A (en) 1989-07-25
JP2565527B2 true JP2565527B2 (en) 1996-12-18

Family

ID=11728428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63009730A Expired - Fee Related JP2565527B2 (en) 1988-01-21 1988-01-21 Printing control method for printer device

Country Status (1)

Country Link
JP (1) JP2565527B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5640578A (en) * 1979-09-11 1981-04-16 Nec Corp Printer
JPS6054881A (en) * 1983-09-07 1985-03-29 Canon Inc Printer
JPS61239970A (en) * 1985-04-11 1986-10-25 Fujitsu Ltd Additional printing system of printer
JPS61251929A (en) * 1985-04-30 1986-11-08 Usac Electronics Ind Co Ltd Printing data management system
JPS62227271A (en) * 1986-03-28 1987-10-06 Matsushita Graphic Commun Syst Inc Facsimile equipment

Also Published As

Publication number Publication date
JPH01186355A (en) 1989-07-25

Similar Documents

Publication Publication Date Title
US6622180B2 (en) Information processing apparatus and output apparatus
US5758041A (en) Output control method and apparatus
CN100586734C (en) Printer and control method thereof
JP2565527B2 (en) Printing control method for printer device
JP3149174B2 (en) Printer
US4956717A (en) Method of and apparatus for controller duplex page printer
JPS6159920B2 (en)
JPH0422668A (en) Printer fitted with paper width detector
JP2006051610A (en) Recording apparatus and recording method
JPH07309039A (en) Printer
JPH0359835B2 (en)
JP2000006483A (en) Printer, print command generation apparatus and printing system
JP3040420B2 (en) Recording device
JP2704264B2 (en) Recording device
JP2690759B2 (en) Recording device
JPH0262267A (en) Printer
JP2005306043A (en) Printer, print command generation device, and print system
JP4591646B2 (en) Printer control device
JP3483046B2 (en) Image forming device
JP3301338B2 (en) Inkjet printer
JPH06312546A (en) Paper-feeding controlling mechanism for printer
JP2022107433A (en) Image forming device and control method thereof
JPH041702B2 (en)
JP2005170058A (en) Method for controlling printing paper supply and discharge and printing system
JPH07114438B2 (en) Image recorder

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees