JP3244080B2 - Printer and printing method - Google Patents
Printer and printing methodInfo
- Publication number
- JP3244080B2 JP3244080B2 JP31293499A JP31293499A JP3244080B2 JP 3244080 B2 JP3244080 B2 JP 3244080B2 JP 31293499 A JP31293499 A JP 31293499A JP 31293499 A JP31293499 A JP 31293499A JP 3244080 B2 JP3244080 B2 JP 3244080B2
- Authority
- JP
- Japan
- Prior art keywords
- paper
- counter
- sheet
- printing
- amount
- 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 - Lifetime
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Description
【0001】[0001]
【発明の属する技術分野】用紙送りのための用紙送りモ
ータ(以下P Fモータと記述する)手段と、用紙の有無
を検出する用紙検出手段(以下P Dと記述する)を有
し、該用紙検出手段が用紙無し状態(以下P E状態と記
述する)を検出後も所定量だけ印字を行うことが可能な
印刷装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention has a paper feed motor (hereinafter referred to as a PF motor) for feeding a paper, and a paper detection means (hereinafter referred to as a PD) for detecting the presence or absence of a paper, wherein the paper detection means The present invention relates to a printing apparatus capable of performing printing by a predetermined amount even after detecting an absent state (hereinafter referred to as a PE state).
【0002】[0002]
【従来の技術】従来の印刷装置には、例えば、特開昭6
3−270172号公報に記載されている如く、用紙の
終端の検出時の印字動作の停止/続行の指定および上記
終端検出時以降の印字量を指定する手段を講じ、印字動
作の続行が指定されている場合に、上記用紙の終端検出
後、指定された印字量分の印字動作を続行するといった
オーバライド機能を有するものがある。2. Description of the Related Art Conventional printing apparatuses include, for example, Japanese Unexamined Patent Publication No.
As described in Japanese Unexamined Patent Publication No. 3-270172, means for designating stop / continuation of the printing operation when the end of the sheet is detected and for specifying the amount of printing after the end of the paper is detected, and the continuation of the printing operation is designated. In some cases, after the end of the sheet is detected, the printer has an override function of continuing the printing operation for the designated printing amount.
【0003】[0003]
【発明が解決しようとする課題】しかし、前述の従来技
術では、用紙の終端検出後の印字量は手動で設定を行
い、用紙の終端検出後は、必ず設定された印字量分の印
字動作を続行するようになる。However, in the above-described prior art, the print amount after the end of the paper is detected is manually set, and after the end of the paper is detected, the print operation for the set print amount is always performed. Will continue.
【0004】例えば、印字可能領域全部に印字しないよ
うな印字領域が少ない場合においても、用紙の終端検出
後に設定された印字量分まで無駄に印字動作を行ってし
まうという問題があった。[0004] For example, even when there is a small number of print areas that do not print over the entire printable area, there has been a problem that the printing operation is wastefully performed up to the set print amount after the end of the sheet is detected.
【0005】そこで本発明は、このような問題点を解決
するもので、その目的とするところは、モータに与える
駆動量は一つのカウンタで管理を行い、もう一方のカウ
ンタでは印字可能領域の管理のみを行い、さらには2つ
のカウンタを参照しながら印字動作、紙送り動作を行う
ことである。Accordingly, the present invention is to solve such a problem. It is an object of the present invention to manage the driving amount given to a motor by one counter and to manage the printable area by the other counter. Is performed, and the printing operation and the paper feeding operation are performed with reference to two counters.
【0006】[0006]
【課題を解決するための手段】用紙送りモータに与える
駆動量を複数回設定し、設定された用紙送り量を参照し
て用紙送りを行うことで印刷を実行する印刷装置におい
て、用紙送りモータに与える駆動量と残り用紙送り量の
情報に基づいて印字可能な残り印字領域がある場合、前
記残り印字領域まで、紙送り動作及び印字動作を行う印
刷装置であり、さらには、用紙送りモータに与える駆動
量を複数回設定し、設定された用紙送り量を参照して用
紙送りを行うことで印刷を実行する印刷方法において、
用紙送りモータに与える駆動量を1のカウンタに初期設
定する行程と、用紙送り単位毎にモータに与えた前記駆
動量に応じて、前記1のカウンタを残駆動量に更新、設
定する行程と、前記用紙検出手段による用紙無し検出後
に、残り用紙送り量を2のカウンタに記憶させる行程
と、前記用紙検出手段による用紙無し検出後の用紙送り
量に応じて前記2のカウンタを残り用紙送り回数に更
新、設定する行程と、を有し、用紙検出結果、および前
記1のカウンタの値と前記2のカウンタの値を参照する
ことで、印字動作もしくは紙送り動作を決定することを
特徴とする。 The present invention is applied to a paper feed motor.
Set the drive amount multiple times and refer to the set paper feed amount.
Printer that performs printing by feeding paper
Of the drive amount given to the paper feed motor and the remaining paper feed amount
If there is a remaining print area that can be printed based on the information,
A mark for performing the paper feeding operation and the printing operation up to the remaining print area
Printing device, and further, a drive applied to a paper feed motor.
Set the amount multiple times, and refer to the set
In a printing method for performing printing by feeding paper,
Initially set the amount of drive to be given to the paper feed motor to a counter of 1.
And the drive given to the motor for each paper feed unit.
According to the moving amount, the above-mentioned 1 counter is updated and set to the remaining driving amount.
And after the paper detection means detects the absence of paper.
To store the remaining paper feed amount in the counter of 2.
And paper feed after the paper absence detection by the paper detection means
Update the counter of 2 above to the number of remaining paper feeds according to the amount.
New, set, and have the paper detection results, and
Reference is made to the value of the counter of 1 and the value of the counter of 2 above.
In this way, it is possible to determine the printing operation or paper feeding operation.
Features.
【0007】[0007]
【作用】本発明の上記構成によれば、無駄な印字動作も
しくは紙送り動作を行うことなく所定量だけ印字を行
う。According to the above configuration of the present invention, printing is performed by a predetermined amount without performing useless printing operation or paper feeding operation.
【0008】[0008]
【発明の実施の形態】図1は、本発明の構成を示す図で
ある。FIG. 1 is a diagram showing the configuration of the present invention.
【0009】プリンタは、I/F制御部11を介してホスト
コンピュータ12とのデータのやりとりを行う。ホストコ
ンピュータからは、印字制御及び改行制御のコマンド及
び印字データが送られてくる。それぞれのコマンドに応
じてCPUlは、ヘッド7を搭載し用紙に対し水平方向に
移動するキャリッジ(C R)モータ3の駆動をC Rモータ
制御部2を介して、ヘッド7の駆動をヘッド駆動制御部6
を介して、P Fモータ9の駆動をP Fモータ制御部8を介し
て行う。RAM5内には、カウンタA、カウンタLまたはカウ
ンタM、紙無しフラグを保持するための領域が確保され
る。用紙検出器10は、プリンタ本体の紙経路上に装着さ
れる。P Fモータの駆動による用紙送り単位毎にC P U1
は、用紙検出器10の検出結果にしたがい用紙の有無を判
断する。The printer exchanges data with a host computer 12 via an I / F control unit 11. From the host computer, commands for print control and line feed control and print data are sent. In response to each command, the CPU 1 drives the carriage (CR) motor 3, which carries the head 7 and moves in the horizontal direction with respect to the sheet, via the CR motor control unit 2 and drives the head 7 via the head drive control unit 6.
, The PF motor 9 is driven via the PF motor control unit 8. In the RAM 5, areas for holding the counter A, the counter L or the counter M, and the paper-out flag are secured. The paper detector 10 is mounted on a paper path of the printer body. CP U1 for each paper feed unit driven by the PF motor
Determines the presence or absence of a sheet according to the detection result of the sheet detector 10.
【0010】図2は、用紙検出回路の1実施例を示す図
である。SW20としては、マイクロスイッチまたは、フォ
トトランジスタ等が上げられる。用紙ありの場合はSW20
が用紙の重みあるいは、光を遮光することによりO Nと
なり、C P U lのポート21のレベルは、10Wとなる。用紙
無しの場合は、SW20がO F Fとなり、ポート21のレベル
は、highとなる。従ってC P U lは、ポート21のレベル
を検出することにより用紙の有無が判断できる。FIG. 2 is a diagram showing one embodiment of the paper detecting circuit. As the SW 20, a microswitch, a phototransistor, or the like is used. SW20 with paper
Is turned on by blocking the weight of the paper or light, and the level of the port 21 of the CPU 1 becomes 10 W. When there is no paper, SW20 is turned off, and the level of port 21 becomes high. Therefore, the CPU l can determine the presence or absence of a sheet by detecting the level of the port 21.
【0011】図3は、本発明の実施例を示すフローチャ
ートであり、この図にしたがって説明を行う。C P U l
からの制御にしたがいP Fモータを駆動する前に、駆動
量を(A)にセットし(301)駆動量のカウンタとし、前
回紙無しだったかどうかの判断を紙無しフラグをチェッ
クすることにより行う(302)。紙無しフラグは、P Dに
よりP E状態を検出されており且つ所定量内である時に
セットされ、紙あり状態や紙無し状態であっても所定量
外で印字不可能な場合は、リセットされる。FIG. 3 is a flow chart showing an embodiment of the present invention. CPU l
Before driving the PF motor in accordance with the control from (1), the drive amount is set to (A) (301), the drive amount is set as a counter, and the determination as to whether there was no paper last time is made by checking the paper out flag ( 302). The paper out flag is set when the PE state is detected by the PD and is within a predetermined amount, and is reset when printing is impossible outside the predetermined amount even in the paper presence state or the paper absence state.
【0012】紙無しフラグがリセットされている、つま
り前回紙有りで印字可能な場合、用紙送り単位毎にカウ
ンタAを減じ(303)かつ用紙有無検出を行う(304)。
紙有りの場合、A=0となるまでこのループに従う。紙無
しを検出すると印字可能な残りの用紙送り量を(L)に
セットする(305)。同時に、紙無しフラグをセットす
る(306)。この後あるいは、紙無しフラグがセットさ
れている、つまり前回P E状態の場合、用紙検出を行わ
ず用紙送り単位毎にカウンタA及びカウンタLの値を滅ず
る(307、308)。カウンタLの値が0となった時、印字不
可能な状態となり、紙無しフラグをリセットする(30
9、310)。If the paper absence flag is reset, that is, if printing is possible with paper last time, the counter A is decremented for each paper feed unit (303) and paper presence detection is performed (304).
If there is paper, follow this loop until A = 0. When the absence of paper is detected, the remaining printable paper feed amount is set to (L) (305). At the same time, a paper-out flag is set (306). After this or in the case where the paper absence flag is set, that is, in the case of the previous PE state, the values of the counters A and L are lost for each paper feed unit without performing paper detection (307, 308). When the value of the counter L becomes 0, printing is disabled and the paper out flag is reset (30
9, 310).
【0013】他の実施例として、一旦紙無しを検出した
後カウンタMを0にセットする。同時に、紙無しフラグを
セットする。この後は、用紙検出を行わず用紙送り単位
毎にカウンタAを減じ、かつカウンタMを加算していく。
そして、印字可能な残りの行数量とカウンタMとを比較
し、カウンタMの値の方が小さい場合はP Fモータの駆動
を継続し、等しい場合は印字不可能な状態であり、紙無
しフラグをリセットする。As another embodiment, the counter M is set to 0 after detecting the absence of paper once. At the same time, the paper-out flag is set. Thereafter, the counter A is decreased for each sheet feed unit without detecting the sheet, and the counter M is added.
Then, the remaining printable line quantity is compared with the counter M, and if the value of the counter M is smaller, the driving of the PF motor is continued. Reset.
【0014】[0014]
【発明の効果】以上述べたように本発明によれば、モー
タに与える駆動量は一つのカウンタで管理を行い、もう
一方のカウンタでは印字可能領域の管理のみを行い、さ
らには2つのカウンタを参照しながら印字動作、紙送り
動作を行うようになるので、無駄な印字動作もしくは紙
送り動作を行うことなく印字可能領域を印字するという
効果を有する。As described above, according to the present invention, the drive amount given to the motor is managed by one counter, the other counter only manages the printable area, and the two counters Since the printing operation and the paper feeding operation are performed while referring to the data, there is an effect that the printable area is printed without performing the useless printing operation or the paper feeding operation.
【図1】本発明の構成を示す図。FIG. 1 is a diagram showing a configuration of the present invention.
【図2】用紙検出回路の1実施例を示す図。FIG. 2 is a diagram showing one embodiment of a paper detection circuit.
【図3】本発明の実施例を示すフローチャートである。FIG. 3 is a flowchart showing an embodiment of the present invention.
1・・・C P U 5・・・R A M 9・・・P Fモータ 10・・・用紙検出器 1 ・ ・ ・ C P U 5 ・ ・ ・ R A M 9 ・ ・ ・ P F motor 10 ・ ・ ・ Paper detector
Claims (8)
定し、設定された用紙送り量を参照して用紙送りを行う
ことで印刷を実行する印刷装置において、 用紙送りモータに与える駆動量と残り用紙送り量の情報
に基づいて印字可能な残り印字領域がある場合、前記残
り印字領域まで、紙送り動作及び印字動作を行うことを
特徴とする印刷装置。 A drive amount to be given to a paper feed motor is provided a plurality of times.
Paper feed with reference to the set paper feed amount
Information about the amount of drive given to the paper feed motor and the remaining paper feed in a printing device that executes printing
If there is a remaining print area that can be printed based on
Paper feeding and printing operations up to the printing area.
Characteristic printing device.
定し、設定された用紙送り量を参照して用紙送りを行う
ことで印刷を実行する印刷装置において、 用紙送りモータに与える駆動量を1のカウンタに初期設
定する駆動量初期設定手段と、 用紙送り単位毎にモータに与えた前記駆動量に応じて、
前記1のカウンタを残駆動量に更新、設定する駆動量更
新手段と、 用紙の有無を検出する用紙検出手段と、 前記用紙検出手段による用紙無し検出後に、残り用紙送
り量を2のカウンタに記憶させる残り用紙送り量記憶手
段と、 前記用紙検出手段による用紙無し検出後の用紙送り量に
応じて前記2のカウンタを残り用紙送り回数に更新、設
定する残り用紙送り量更新手段と、 を有し、 前記用紙検出手段の検出結果、および前記1のカウンタ
の値と前記2のカウンタの値を参照することで、印字動
作もしくは紙送り動作を決定することを特徴とする印刷
装置。2. The apparatus according to claim 1 , wherein a plurality of driving amounts are provided to the paper feed motor.
Paper feed with reference to the set paper feed amount
In a printing apparatus that performs printing by the above, a drive amount initial setting unit that initializes a drive amount given to a paper feed motor to one counter, and a drive amount given to the motor for each sheet feed unit,
Driving amount updating means for updating and setting the first counter to the remaining driving amount; sheet detecting means for detecting the presence / absence of a sheet; and, after detecting the absence of the sheet by the sheet detecting means, the remaining sheet feeding amount is stored in the second counter. Remaining paper feed amount storage means; and a remaining paper feed amount updating means for updating and setting the counter of 2 to the number of remaining paper feeds in accordance with the paper feed amount after detecting the absence of paper by the paper detection means; A printing operation or a paper-feeding operation is determined by referring to a detection result of the first and second counters and a value of the first counter and a value of the second counter.
たかに係わらず、前記第1のカウンタが所定の値になっ
た時、用紙送りモータに与える駆動量を再度設定するこ
とを特徴とする請求項2に記載の印刷装置。3. A drive amount to be given to a paper feed motor is reset when the first counter reaches a predetermined value, regardless of whether paper absence is detected by the paper detection means .
The printing apparatus according to claim 2, wherein the door.
後、前記1のカウンタの値が所定の値となり、なおかつ
前記2のカウンタの値が所定の値である場合に印字動作
を終了することを特徴とする請求項2に記載の印刷装
置。4. When the value of the first counter becomes a predetermined value after detecting the absence of paper by the paper detecting means, and the value of the second counter is a predetermined value, the printing operation is terminated. The printing apparatus according to claim 2, wherein
後、前記1のカウンタの値が所定の値となり、なおかつ
前記2のカウンタの値が所定の値でない場合に印字動作
を続行することを特徴とする請求項2に記載の印刷装
置。5. The printing operation is continued when the value of the first counter becomes a predetermined value and the value of the second counter is not a predetermined value after detecting the absence of the paper by the paper detecting means. The printing apparatus according to claim 2, wherein
後、前記1のカウンタの値が所定の値でなく、なおかつ
前記2のカウンタの値が所定の値である場合に、前記1
のカウンタが所定の値になるまで紙送りを続行すること
を特徴とする請求項2に記載の印刷装置。6. When the value of the first counter is not a predetermined value and the value of the second counter is a predetermined value after detecting the absence of a sheet by the sheet detecting means,
3. The printing apparatus according to claim 2, wherein the paper feeding is continued until the counter of the printer reaches a predetermined value.
後、前記1のカウンタの値が所定の値でなく、なおかつ
前記2のカウンタの値が所定の値でない場合に、印字動
作を続行することを特徴とする請求項2に記載の印刷装
置。7. The printing operation is continued if the value of the first counter is not a predetermined value and the value of the second counter is not a predetermined value after detecting the absence of a sheet by the sheet detecting means. The printing device according to claim 2, wherein:
定し、設定された用紙送り量を参照して用紙送りを行う
ことで印刷を実行する印刷方法において、 用紙送りモータに与える駆動量を1のカウンタに初期設
定する行程と、 用紙送り単位毎にモータに与えた前記駆動量に応じて、
前記1のカウンタを残駆動量に更新、設定する行程と、 前記用紙検出手段による用紙無し検出後に、残り用紙送
り量を2のカウンタに記憶させる行程と、 前記用紙検出手段による用紙無し検出後の用紙送り量に
応じて前記2のカウンタを残り用紙送り回数に更新、設
定する行程と、 を有し、 用紙検出結果、および前記1のカウンタの値と前記2の
カウンタの値を参照することで、印字動作もしくは紙送
り動作を決定することを特徴とする印刷方法。8. A plurality of driving amounts to be given to a paper feed motor are provided.
Paper feed with reference to the set paper feed amount
In the printing method for executing printing, a step of initially setting a drive amount given to a paper feed motor to a counter of 1 and a drive amount given to the motor for each sheet feed unit are performed according to the following steps.
A step of updating and setting the first counter to the remaining drive amount, a step of storing the remaining sheet feed amount in the second counter after the sheet absence detection by the sheet detection means, and a sheet feed after the sheet absence detection by the sheet detection means And updating and setting the two counters to the number of remaining paper feeds according to the amount. The printing operation is performed by referring to the paper detection result, the value of the first counter, and the value of the second counter. Alternatively, a printing method characterized by determining a paper feeding operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31293499A JP3244080B2 (en) | 1999-01-01 | 1999-11-02 | Printer and printing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31293499A JP3244080B2 (en) | 1999-01-01 | 1999-11-02 | Printer and printing method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP12250689A Division JP3149168B2 (en) | 1989-05-16 | 1989-05-16 | Printing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000155665A JP2000155665A (en) | 2000-06-06 |
JP3244080B2 true JP3244080B2 (en) | 2002-01-07 |
Family
ID=18035242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP31293499A Expired - Lifetime JP3244080B2 (en) | 1999-01-01 | 1999-11-02 | Printer and printing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3244080B2 (en) |
-
1999
- 1999-11-02 JP JP31293499A patent/JP3244080B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2000155665A (en) | 2000-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3481139B2 (en) | Method and apparatus for identifying print media type | |
US8714541B2 (en) | Image recording apparatus and control method thereof | |
JPH09191731A (en) | Printing system by automatic detection of paper length and its control | |
JP2003192183A (en) | Image formation device having closed loop feedback system | |
JP3774274B2 (en) | Print media feeding method | |
JP3149168B2 (en) | Printing device | |
JP2006127500A (en) | Printer, printing system and driver program for printer | |
JP3244080B2 (en) | Printer and printing method | |
JP2003285935A (en) | Recording device | |
JP2731460B2 (en) | Left and right edge position detection method for printer paper | |
JP2001142670A5 (en) | ||
JP2007136950A (en) | Printer, its control method, and storage medium | |
JP4506069B2 (en) | Printer | |
JP2006236033A (en) | Printer, and print system | |
JP3395738B2 (en) | Printing equipment | |
JP3890221B2 (en) | Roll paper printer | |
US6490050B2 (en) | Printing apparatus and control method for same, and a data storage medium recording the control method | |
JPH08208110A (en) | Record preprocessing method for long sheet recording device | |
JPH04238080A (en) | Printing control of printer | |
JP3948445B2 (en) | Printing apparatus and paper supply / discharge method | |
JP3702459B2 (en) | Printer feed control device | |
JP2004268405A (en) | Printer, initial printing control method for printer, program therefor, and computer readable recording medium with the program recorded | |
JPH05131729A (en) | Serial printer | |
JP2974437B2 (en) | Recording device | |
US20050243332A1 (en) | Printing apparatus and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20010925 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081026 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091026 Year of fee payment: 8 |
|
EXPY | Cancellation because of completion of term | ||
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091026 Year of fee payment: 8 |