JP2017149095A - Printing device and printing method - Google Patents

Printing device and printing method Download PDF

Info

Publication number
JP2017149095A
JP2017149095A JP2016035336A JP2016035336A JP2017149095A JP 2017149095 A JP2017149095 A JP 2017149095A JP 2016035336 A JP2016035336 A JP 2016035336A JP 2016035336 A JP2016035336 A JP 2016035336A JP 2017149095 A JP2017149095 A JP 2017149095A
Authority
JP
Japan
Prior art keywords
paper
printing
hole
sheet
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016035336A
Other languages
Japanese (ja)
Inventor
釘町 久崇
Hisataka Kugimachi
久崇 釘町
賢一 村橋
Kenichi Murahashi
賢一 村橋
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2016035336A priority Critical patent/JP2017149095A/en
Publication of JP2017149095A publication Critical patent/JP2017149095A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the convenience of printing when using a perforated sheet.SOLUTION: A printing device can detect the presence/absence of a sheet in a sheet width direction by a sheet presence/absence detection unit (11), feed and back-feed the sheet by a sheet feeding mechanism (23, 24, 25, 26). A printing region setting unit (S100-S196) feeds the sheet by the sheet feeding mechanism (S112), the sheet presence/absence detection unit detects the position where there is no sheet within a range of the sheet width (S132), and detects the position where there are no sheets (S160) to determine the diameter of the hole (S168, S176). When a printing region is set by avoiding the hole (S404-S420), a printing unit performs printing within the set printing region (S196).SELECTED DRAWING: Figure 2

Description

本発明は、印刷装置、印刷方法に関し、特に、穴あき用紙に印刷可能な印刷装置、印刷方法に関する。   The present invention relates to a printing apparatus and a printing method, and more particularly to a printing apparatus and a printing method capable of printing on perforated paper.

穴あき用紙として、ルーズリーフ用紙が知られている。ルーズリーフ用紙には、一方の長辺に沿って用紙に一列に多数の穴が形成されている。コピー機などにこのような穴あき用紙をセットすると、用紙を正確に検知できないことがあった。用紙の端を検知するセンサーが穴の部分を用紙の端と検知してしまうからである。
用紙の穴を用紙の端と検知しないようにする技術として、従来、特許文献1に開示するものが知られている。
Loose leaf paper is known as perforated paper. Loose leaf paper has a large number of holes in a row along one long side. When such perforated paper is set in a copier or the like, the paper may not be detected accurately. This is because the sensor that detects the edge of the paper detects the hole as the edge of the paper.
Conventionally, a technique disclosed in Patent Document 1 is known as a technique for preventing a paper hole from being detected as an edge of the paper.

特許文献1は、原稿搬送速度に応じた応答遅延時間を設定し、応答遅延時間に対応した大きさ以上の開口だけを検出するようにしている。このため、ルーズリーフに形成された穴はこの条件を満たさず、用紙の端とは検知されなくなる。   In Patent Document 1, a response delay time is set in accordance with the document conveying speed, and only openings having a size corresponding to the response delay time or more are detected. For this reason, the hole formed in the loose leaf does not satisfy this condition and is not detected as the edge of the paper.

特開2011−066666号公報JP 2011-066666 A

特許文献1に開示された技術は、正確に用紙の端を検知することはできるが、正確に用紙の端を検知することができたとしても、穴の空いている領域に印刷をしてしまうことを避けられない。
本発明は、穴あき用紙を使用する際の印刷の利便性を向上させる。
Although the technique disclosed in Patent Document 1 can accurately detect the edge of the paper, even if the edge of the paper can be accurately detected, printing is performed in an area having a hole. Inevitable.
The present invention improves the convenience of printing when using perforated paper.

本発明は、用紙幅方向において用紙の有無を検出する用紙有無検出部と、用紙をフィードおよびバックフィードさせる用紙送り機構と、前記用紙送り機構にて用紙をフィードさせ、前記用紙有無検出部にて用紙幅の範囲で用紙が無い位置を検出し、複数の用紙が無い位置を検出して穴の径を判定し、穴を避けて印刷領域を設定する印刷領域設定部と、設定された前記印刷領域内で印刷する印刷部とを具備する構成としてある。   The present invention includes a sheet presence / absence detecting unit that detects the presence / absence of a sheet in the sheet width direction, a sheet feeding mechanism that feeds and back feeds the sheet, a sheet that is fed by the sheet feeding mechanism, and a sheet width A print area setting unit that detects a position where there is no paper in the range, detects a position where there is no plurality of sheets, determines the diameter of the hole, and sets a print area while avoiding the hole, and within the set print area And a printing unit for printing with the printer.

前記構成において、本印刷装置は、用紙有無検出部により用紙幅方向において用紙の有無を検出することができ、用紙送り機構により用紙をフィードおよびバックフィードさせることができる。そして、印刷領域設定部は、前記用紙送り機構にて用紙をフィードさせ、前記用紙有無検出部にて用紙幅の範囲で用紙が無い位置を検出し、複数の用紙が無い位置を検出して穴の径を判定し、穴を避けて印刷領域を設定すると、印刷部は、設定された前記印刷領域内で印刷する。   In this configuration, the printing apparatus can detect the presence / absence of paper in the paper width direction by the paper presence / absence detection unit, and can feed and back feed the paper by the paper feeding mechanism. The print area setting unit feeds the paper with the paper feed mechanism, the paper presence / absence detection unit detects the position where there is no paper within the paper width range, detects the position where there are no plural papers, and detects the hole When the diameter is determined and the print area is set avoiding the hole, the printing unit prints within the set print area.

このように、穴を検出して径を判定し、その結果を用いて穴を避けるように印刷領域を設定するので、穴あき用紙であることを特に意識しないで印刷を行うことが可能となる。   As described above, since the hole is detected and the diameter is determined, and the print area is set so as to avoid the hole using the result, it is possible to perform printing without being particularly aware of the perforated paper. .

本発明が適用される印刷装置であるインクジェットプリンターの概略ブロック図である。1 is a schematic block diagram of an ink jet printer which is a printing apparatus to which the present invention is applied. 穴あき用紙検出と印刷処理を示すフローチャートである。5 is a flowchart illustrating perforated paper detection and printing processing. 穴の空いていない用紙の場合の用紙有無信号の変化を示す図である。It is a figure which shows the change of the paper presence / absence signal in the case of the paper without a hole. 穴あき用紙の場合の用紙有無信号の変化を示す図である。It is a figure which shows the change of the paper presence / absence signal in the case of perforated paper. 穴あき用紙の場合の用紙有無信号の変化と穴の中心位置特定を示す図である。It is a figure which shows the change of the paper presence / absence signal in the case of a perforated paper, and pinhole center position specification. 穴あき用紙の穴の中心位置で用紙送りを開始させたときの用紙有無信号の変化を示す図である。FIG. 9 is a diagram illustrating a change in a paper presence / absence signal when paper feeding is started at the center position of a hole in a perforated paper. スキュー確認処理を示すフローチャートである。It is a flowchart which shows a skew confirmation process. スキューが生じている用紙を示す図である。It is a figure which shows the paper in which the skew has arisen. スキューが有るときの大径穴判定処理を示すフローチャートである。It is a flowchart which shows a large diameter hole determination process when there exists skew. 反時計回り方向に用紙が傾いている場合の用紙有無信号の変化を示す図である。It is a figure which shows the change of the paper presence / absence signal when the paper is tilted counterclockwise. 時計回り方向に用紙が傾いている場合の用紙有無信号の変化を示す図である。It is a figure which shows the change of the paper presence / absence signal when the paper is inclined in the clockwise direction. 印刷領域の設定処理を示すフローチャートである。6 is a flowchart illustrating print area setting processing. 縁なし印刷の印刷領域を示す図である。It is a figure which shows the printing area | region of borderless printing. 縁有り印刷の印刷領域を示す図である。It is a figure which shows the printing area | region of bordered printing. スキューが生じている場合の縁有り印刷の印刷領域を示す図である。It is a figure which shows the printing area | region of bordered printing in case the skew has arisen. レイアウト調整処理を示すフローチャートである。It is a flowchart which shows a layout adjustment process. 両面印刷処理を示すフローチャートである。It is a flowchart which shows a double-sided printing process. 両面印刷の場合の印刷領域の設定を示す図である。It is a figure which shows the setting of the printing area | region in the case of duplex printing. 印刷処理を示すフローチャートである。It is a flowchart which shows a printing process. バックフィードしない印刷を実施できる場合を示す図である。It is a figure which shows the case where the printing which does not back-feed can be implemented.

(第1実施形態)
以下、図面にもとづいて本発明の実施形態を説明する。
図1は、本発明が適用される印刷装置であるインクジェットプリンターの概略ブロック図である。
同図において、印刷ヘッド10はインクタンクから供給される4色あるいは6色の色インクをノズルから吐出する。印刷ヘッド10には、光学素子を用いた用紙有無検出センサー11が備えられている。印刷ヘッド10は、キャリッジモーター21にて駆動されるベルト22によって所定の範囲を往復駆動される。印刷ヘッド10と共に用紙有無検出センサー11も所定の範囲を往復駆動され、このとき印刷ヘッド10が対面する位置に用紙があるか否かを検出する。印刷ヘッド10の駆動位置は別途判断可能であるため、それぞれの位置での用紙の有無が判定可能となっている。
このように、用紙有無検出部は、用紙幅方向において用紙の有無を検出するものであり、用紙の幅方向に往復動するキャリッジに配設された用紙有無検出素子(用紙有無検出センサー11)を備え、キャリッジの前記幅方向への移動時に、移動位置と用紙の有無の検出結果とを出力するようにしている。
(First embodiment)
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic block diagram of an ink jet printer which is a printing apparatus to which the present invention is applied.
In the figure, a print head 10 ejects four or six color inks supplied from an ink tank from a nozzle. The print head 10 is provided with a paper presence / absence detection sensor 11 using an optical element. The print head 10 is reciprocated within a predetermined range by a belt 22 driven by a carriage motor 21. The paper presence / absence detection sensor 11 is driven to reciprocate within a predetermined range together with the print head 10, and at this time, it is detected whether or not there is a paper at the position where the print head 10 faces. Since the drive position of the print head 10 can be determined separately, it is possible to determine the presence or absence of paper at each position.
As described above, the sheet presence / absence detection unit detects the presence / absence of the sheet in the sheet width direction, and includes the sheet presence / absence detection element (sheet presence / absence detection sensor 11) disposed in the carriage that reciprocates in the sheet width direction. In addition, when the carriage moves in the width direction, the movement position and the detection result of the presence or absence of paper are output.

プラテン23はプラテンモーター24にて駆動され、印刷ヘッド10の往復動に対応して用紙を搬送する。フィードモーター25は所定の用紙スタッカに収容されている用紙を供給する給紙ローラー26を駆動する。これらによって用紙をフィードおよびバックフィードさせることができ、用紙送り機構を構成している。
制御回路30は、専用のICを組み合わせて構成され、機能的にはCPU、ROM、RAMを備えている。制御回路30は、印刷ヘッド10、キャリッジモーター21、プラテンモーター24、フィードモーター25の駆動を制御する。制御回路30には、操作パネル41と表示パネル42が装着されており、操作パネル41にてユーザーによる所定の操作を受け付け、また、表示パネル42にて所定の表示を行わせる。
The platen 23 is driven by a platen motor 24 and conveys paper in response to the reciprocation of the print head 10. The feed motor 25 drives a paper feed roller 26 that supplies paper stored in a predetermined paper stacker. By these, the paper can be fed and back-fed to constitute a paper feed mechanism.
The control circuit 30 is configured by combining dedicated ICs and functionally includes a CPU, a ROM, and a RAM. The control circuit 30 controls driving of the print head 10, the carriage motor 21, the platen motor 24, and the feed motor 25. An operation panel 41 and a display panel 42 are mounted on the control circuit 30. A predetermined operation by a user is received on the operation panel 41 and a predetermined display is performed on the display panel 42.

制御回路30には、カードリーダー50が接続され、着脱可能なメモリーカードを装着することで、同メモリーカードのデータを読み込んだり、所定のデータを記録することができる。また、制御回路30には、I/O回路60が接続され、有線あるいは無線を介して他の外部機器と通信により接続可能となっている。制御回路30は、外部機器やメモリーカードから画像のデータファイルを取得し、同データファイルに基づいて前記機器を制御して印刷を実行する。   A card reader 50 is connected to the control circuit 30, and by loading a detachable memory card, data of the memory card can be read or predetermined data can be recorded. Further, an I / O circuit 60 is connected to the control circuit 30 so that it can be connected to other external devices by wire or wirelessly. The control circuit 30 acquires an image data file from an external device or a memory card, and executes printing by controlling the device based on the data file.

図2は、本発明で実施する穴あき用紙検出と印刷処理のフローチャートである。本フローチャートに対応するプログラムを制御回路30内のCPUが実行する。以下、同フローチャートに沿って印刷処理について説明する。
CPUは、S100にて、キャリッジを中心位置に移動させる。これにより印刷ヘッド10は用紙幅のほぼ中央位置に移動する。なお、本実施例においては、用紙は用紙スタッカの中央にセットされ、給紙ローラー26が給紙すると、キャリッジの左右の往復動の範囲内の中心にほぼ一致する位置に用紙が供給されることになる。キャリッジを移動させたら、CPUは、S104にて、給紙を開始させる。これによりフィードモーター25が回転し、給紙ローラー26を回転させるので、用紙スタッカに収容されている用紙を給紙し始める。
FIG. 2 is a flowchart of perforated paper detection and printing processing performed in the present invention. The CPU in the control circuit 30 executes a program corresponding to this flowchart. Hereinafter, the printing process will be described along the flowchart.
In S100, the CPU moves the carriage to the center position. As a result, the print head 10 moves to approximately the center position of the paper width. In this embodiment, the sheet is set at the center of the sheet stacker, and when the sheet feeding roller 26 feeds the sheet, the sheet is supplied to a position that substantially coincides with the center of the carriage within the range of the left and right reciprocation. become. When the carriage is moved, the CPU starts feeding in S104. As a result, the feed motor 25 rotates and the paper feed roller 26 rotates, so that the paper stored in the paper stacker starts to be fed.

CPUは、給紙を開始させた後、印刷ヘッド10に搭載されている用紙有無検出センサー11の出力を監視し始める。用紙有無検出センサー11は印刷ヘッド10の側から検出光を発光させており、反射光の光の強度に応じて用紙の有無を検出する。用紙が無い間は出力信号がハイレベルとなっており、用紙がある間は出力信号がローレベルとなる。
用紙が用紙有無検出センサー11の位置にフィードされてくるまで、用紙有無検出センサー11の出力信号はハイレベルとなっている。しかし、用紙が用紙有無検出センサー11の位置にフィードされてくると、用紙有無検出センサー11の出力信号はローレベルに変化するので、この変化によって用紙端を検出することができる。
After starting the paper feeding, the CPU starts monitoring the output of the paper presence / absence detection sensor 11 mounted on the print head 10. The paper presence / absence detection sensor 11 emits detection light from the print head 10 side, and detects the presence / absence of paper according to the intensity of reflected light. The output signal is at a high level while there is no paper, and the output signal is at a low level while there is paper.
Until the sheet is fed to the position of the sheet presence / absence detection sensor 11, the output signal of the sheet presence / absence detection sensor 11 remains at a high level. However, when the sheet is fed to the position of the sheet presence / absence detection sensor 11, the output signal of the sheet presence / absence detection sensor 11 changes to a low level, and the edge of the sheet can be detected by this change.

CPUは、S108にて、用紙端を検出するまで待機しており、用紙端を検出した後、CPUは、S112にて、所定距離だけ用紙送りを開始する。この距離は、想定される穴あき用紙で穴が形成されているであろう位置に至るのに充分な距離である。例えば、ルーズリーフであれば、用紙端から10mm以内の範囲から形成され、同様に三穴や二穴の場合も一定位置に形成されている。従って、この形成位置をカバーするに足る距離だけ、CPUはフィードモーター25に対して用紙フィードを実行させる。用紙フィードの速度は、充分に遅くし、用紙フィードを実行させながら、CPUは、S116にて、キャリッジの往復を開始させる。   The CPU waits until a paper edge is detected in S108, and after detecting the paper edge, the CPU starts paper feeding by a predetermined distance in S112. This distance is a sufficient distance to reach a position where a hole will be formed in the assumed perforated paper. For example, in the case of a loose leaf, it is formed from a range within 10 mm from the end of the paper. Similarly, in the case of three holes or two holes, it is formed at a fixed position. Accordingly, the CPU causes the feed motor 25 to perform paper feeding by a distance sufficient to cover the formation position. The sheet feed speed is sufficiently slow, and the CPU starts reciprocation of the carriage in S116 while executing the sheet feed.

用紙フィードをさせながら、キャリッジが往復動する間、CPUは、S120にて、用紙有無検出センサー11が出力する用紙有無信号を解析する。
図3は、穴の空いていない用紙の場合の用紙有無信号の変化を示す図である。
用紙端を検出した後は、キャリッジが往復動すると、中央の用紙のある位置では用紙有無信号がローレベルとなっているが、左右の用紙のない位置では用紙有無信号がハイレベルとなる。従って、ハイレベルからローレベルへ変化し、あるいは、ローレベルからハイレベルへと変化する位置が通常の用紙OPでの用紙端OPE1,OPE2となる。
While the sheet is fed, the CPU analyzes the sheet presence / absence signal output from the sheet presence / absence detection sensor 11 in S120 while the carriage reciprocates.
FIG. 3 is a diagram illustrating a change in the sheet presence / absence signal in the case of a sheet having no holes.
After the end of the sheet is detected, when the carriage reciprocates, the sheet presence / absence signal is at a low level at a position where the central sheet is present, but the sheet presence / absence signal is at a high level at positions where there are no left and right sheets. Accordingly, the positions where the high level changes to the low level or the low level changes to the high level are the sheet edges OPE1 and OPE2 of the normal sheet OP.

CPUは、S124にて、用紙端OPE1,OPE2から紙幅を検出する。
紙幅=|OPE1−OPE2|
となる。これは、左右の領域で用紙無しであり、中央の領域で用紙ありと検出した場合である。次に、CPUは、S128にて、セットされた用紙情報を確認する。用紙は所定の規格に基づいており、各規格のサイズと、検出された紙幅とが一致するかを確認している。例えば、A4であれば幅は210mmであり、検出された紙幅が概ね210mmであれば、A4用紙が供給されているものと判断できる。むろん、所定の誤差は許容される。
In S124, the CPU detects the paper width from the paper edges OPE1 and OPE2.
Paper width = | OPE1-OPE2 |
It becomes. This is a case where it is detected that there is no paper in the left and right areas and that there is paper in the center area. Next, in S128, the CPU confirms the set paper information. The paper is based on a predetermined standard, and it is confirmed whether the size of each standard matches the detected paper width. For example, if it is A4, the width is 210 mm, and if the detected paper width is approximately 210 mm, it can be determined that A4 paper is supplied. Of course, a predetermined error is allowed.

図4は、穴あき用紙の場合の用紙有無信号の変化を示す図である。
一方、穴あき用紙HPの場合、用紙有無信号は、左右の領域で用紙無しと判定されるハイレベルとなると共に、用紙の紙幅の範囲内でも穴Hの形成されている位置では用紙有無信号はハイレベルとなる。
キャリッジが紙面上で左から右へと移動する場合、用紙有無信号は、最初はハイレベルであり、左の用紙端OPE1でローレベルとなり、穴Hの左端OPE3でハイレベルとなり、穴Hの右端OPE4でローレベルとなり、右の用紙端OPE2でハイレベルとなる。
FIG. 4 is a diagram showing a change in the paper presence / absence signal in the case of perforated paper.
On the other hand, in the case of perforated paper HP, the paper presence / absence signal is at a high level where it is determined that there is no paper in the left and right areas, and the paper presence / absence signal is not present at the position where the hole H is formed within the paper width of the paper. Become high level.
When the carriage moves from left to right on the paper surface, the paper presence / absence signal is initially at a high level, goes low at the left paper edge OPE1, goes high at the left edge OPE3 of hole H, and goes to the right edge of hole H. It goes low at OPE4 and goes high at the right paper edge OPE2.

CPUは、S132にて、用紙有無信号の変化の回数に基づいて、紙幅内で用紙無しを検出したか否かを判断する。用紙有無信号の解析においては、左右の端から最も近い位置であるOPE1,OPE2を用紙端と判断する。これは、CPUが、S136にて、最大幅位置を紙幅として検出することで実現できる。この結果、その間の変化は用紙端以外のものと判断することにする。   In S132, the CPU determines whether the absence of paper is detected within the paper width based on the number of changes in the paper presence / absence signal. In the analysis of the paper presence / absence signal, OPE1 and OPE2, which are the closest positions from the left and right edges, are determined as the paper edges. This can be realized by the CPU detecting the maximum width position as the paper width in S136. As a result, the change during that time is determined to be other than the end of the sheet.

用紙端以外の用紙有無信号の変化を検出した場合、CPUは、S140にて、穴の中心位置を特定する。なお、用紙端以外の用紙有無信号の変化を検出しない場合は通常の印刷処理をすればよいので、S188にて、印刷領域を設定する処理へと進む。
図5は、穴あき用紙の場合の用紙有無信号の変化と穴の中心位置特定を示す図である。
穴Hの左の端OPE3と、右の端OPE4との中間位置が穴Hの中心位置OPE5であるから、
OPE5=|OPE3−OPE4|/2
と特定できる。従って、CPUは、S144にて、穴Hの中心位置OPE5にキャリッジ移動させる。キャリッジを穴Hの中心位置OPE5に移動させたら、CPUは、S148にて、フィードモーター25に対して所定距離だけ用紙送りを開始させ、S152にて、用紙有無信号の解析を行なう。ルーズリーフの場合、一種類の大きさの穴だけが形成されている場合と、二穴の規格の位置に大きめの穴が形成されることで合計二種類の大きさの穴が形成されている場合とがある。
If a change in the paper presence / absence signal other than the paper edge is detected, the CPU identifies the center position of the hole in S140. If no change in the paper presence / absence signal other than the paper edge is detected, normal printing processing may be performed, and the process proceeds to processing for setting a printing area in S188.
FIG. 5 is a diagram showing a change in the presence / absence signal of the sheet and the specification of the center position of the hole in the case of the perforated sheet.
Since the intermediate position between the left end OPE3 of the hole H and the right end OPE4 is the center position OPE5 of the hole H,
OPE5 = | OPE3-OPE4 | / 2
Can be specified. Accordingly, the CPU moves the carriage to the center position OPE5 of the hole H in S144. When the carriage is moved to the center position OPE5 of the hole H, the CPU starts feeding the paper by a predetermined distance to the feed motor 25 in S148, and analyzes the paper presence / absence signal in S152. In the case of loose leaf, when only one type of hole is formed, and when two holes of a total size are formed by forming a large hole at the standard position of two holes There is.

図6は、穴あき用紙の穴の中心位置で用紙送りを開始させたときの用紙有無信号の変化を示す図である。
キャリッジの位置を穴Hの中心位置OPE5として、フィードモーター25で紙送りを開始させた場合、用紙有無信号は穴Hの有無に応じて、ハイレベルとなったりローレベルとなる。図6に示すように、小径の穴HSの上の縁が印刷ヘッド10の用紙有無検出センサー11の位置に至ると、用紙有無信号はローレベルからハイレベルへと変化し、小径の穴HSの下の縁が印刷ヘッド10の用紙有無検出センサー11の位置に至ると、用紙有無信号はハイレベルからローレベルへと変化する。言い換えると、用紙有無信号がローレベルからハイレベルへと変化した位置が小径の穴HSの上の縁OPE6であり、ハイレベルからローレベルへと変化した位置が小径の穴HSの下の縁OPE7と判断することができる。小径の穴HSが並んでいる場合は、穴の径SDは、
SD=|OPE6−OPE7|
となる。
FIG. 6 is a diagram illustrating a change in the paper presence / absence signal when the paper feeding is started at the center position of the hole of the perforated paper.
When the position of the carriage is the center position OPE5 of the hole H and the paper feed is started by the feed motor 25, the paper presence / absence signal becomes high level or low level depending on the presence or absence of the hole H. As shown in FIG. 6, when the upper edge of the small diameter hole HS reaches the position of the paper presence / absence detection sensor 11 of the print head 10, the paper presence / absence signal changes from low level to high level. When the lower edge reaches the position of the paper presence / absence detection sensor 11 of the print head 10, the paper presence / absence signal changes from a high level to a low level. In other words, the position where the sheet presence / absence signal has changed from the low level to the high level is the edge OPE6 above the small-diameter hole HS, and the position where the sheet presence / absence signal has changed from the high level to the low level is the edge OPE7 below the small-diameter hole HS. It can be judged. When small holes HS are lined up, the hole diameter SD is
SD = | OPE6-OPE7 |
It becomes.

しかし、図6に示すように、大径の穴HLの場合の穴の径LDは、
LD=|OPE8−OPE9|
となり、SDよりも大きいものと判定される。
用紙有無信号の解析において、CPUは、S156にて、用紙有無信号に基づいて穴の径を検出しつつ、S160にて、複数の穴を検出したときには、S164にて、複数の穴径を記録しておく。
However, as shown in FIG. 6, in the case of the large-diameter hole HL, the hole diameter LD is
LD = | OPE8−OPE9 |
Therefore, it is determined that it is larger than SD.
In the analysis of the paper presence / absence signal, the CPU detects the diameter of the hole based on the paper presence / absence signal at S156, and when detecting a plurality of holes at S160, records the plurality of hole diameters at S164. Keep it.

複数の穴の径を記録した上で、異なる径を検出した場合、CPUは、S168にて、大小有りと判断する。大小有りと判断した場合は、さらに、CPUは、S172にて、大径穴LHの中心位置OPE10と径LDを特定する。すなわち、
OPE10=|OPE8−OPE9|/2
LD=|OPE8−OPE9|
として、特定できる。なお、複数の穴の径を検出しなかった場合は、S180に進む。
If different diameters are detected after recording the diameters of the plurality of holes, the CPU determines that there is a size in S168. If it is determined that the size is large, the CPU further specifies the center position OPE10 and the diameter LD of the large-diameter hole LH in S172. That is,
OPE10 = | OPE8−OPE9 | / 2
LD = | OPE8−OPE9 |
Can be specified. If the diameters of the plurality of holes are not detected, the process proceeds to S180.

この場合、さらに、中心位置OPE10に用紙フィードを行い、キャリッジを用紙幅方向に移動させて用紙有無信号に基づいて大径の穴LHの径を径LDを求めても良い。用紙幅方向での用紙無信号の変化位置OPE8’,OPE9’とすると、
OPE10’=|OPE8’−OPE9’|/2
LD’=|OPE8’−OPE9’|
一方、複数の穴の径を記録した上で、穴の径SDのままとなって変わらない場合、CPUは、S176にて、所定距離進んで穴径変わらない状態であると判断できる。この場合は、CPUは、S180にて、小径の穴の中心位置と径を特定し、S184にて、大径の穴を小径の穴と一致させる。
In this case, it is also possible to feed the sheet to the center position OPE10, move the carriage in the sheet width direction, and obtain the diameter LD of the large hole LH based on the sheet presence / absence signal. When the change positions OPE8 ′ and OPE9 ′ of the no-paper signal in the paper width direction are
OPE10 ′ = | OPE8′−OPE9 ′ | / 2
LD ′ = | OPE8′−OPE9 ′ |
On the other hand, if the diameter of the plurality of holes is recorded and the hole diameter SD remains unchanged, the CPU can determine in S176 that the hole diameter has not changed by advancement by a predetermined distance. In this case, the CPU specifies the center position and the diameter of the small-diameter hole in S180, and matches the large-diameter hole with the small-diameter hole in S184.

すなわち、
OPE10=|OPE6−OPE7|/2
LD=|OPE6−OPE7|
とする。小径の穴の中心位置を大径の穴の中心位置とするのは、印刷領域を指定する際に大径の穴の中心位置と径を使用するからであり、印刷領域を指定する処理に応じて適宜変更可能である。
このように、用紙幅方向で穴を検出したときに、用紙有無検出素子(用紙有無検出センサー11)を穴の中心位置に移動させ、用紙をフィードして用紙の有無の検出結果に基づいて穴の径を測定している(S144〜S184)。
That is,
OPE10 = | OPE6-OPE7 | / 2
LD = | OPE6-OPE7 |
And The reason why the center position of the small-diameter hole is used as the center position of the large-diameter hole is that the center position and diameter of the large-diameter hole are used when specifying the print area. Can be changed as appropriate.
Thus, when a hole is detected in the paper width direction, the paper presence / absence detection element (paper presence / absence detection sensor 11) is moved to the center position of the hole, the paper is fed, and the hole is detected based on the detection result of the presence / absence of the paper. Is measured (S144 to S184).

大径の穴の中心位置OPE10と径LDを特定した後、CPUは、S188にて、印刷領域を設定し、S192にて、用紙をバックフィードして、用紙の開始位置を印刷ヘッド10の手前位置までに移動させ、S196にて、印刷を開始する。
印刷領域等の説明の前に、斜行(スキュー)の場合について説明する。
図7は、スキュー確認処理を示すフローチャートであり、図8は、スキューが生じている用紙を示す図である。
用紙スタッカから用紙が給紙されるときに給紙ローラー26と用紙端とが平行に供給されれば斜行は生じないが、微妙なずれが生じることで、用紙の端部が給紙ローラー26に対して斜めに接したまま給紙されることがある。
斜行が生じていなければ、用紙端OPE1,OPE2として検出される位置は一定のままであるが、斜行が生じていれば、用紙をフィードするにつれて用紙端OPE1,OPE2の位置が変化する。通常、変化度合いは同じである。
After specifying the center position OPE10 and the diameter LD of the large-diameter hole, the CPU sets a print area in S188, back feeds the paper in S192, and sets the start position of the paper in front of the print head 10. In step S196, printing is started.
Prior to the description of the print area and the like, the case of skew (skew) will be described.
FIG. 7 is a flowchart showing the skew confirmation processing, and FIG. 8 is a diagram showing a sheet on which skew has occurred.
If the paper feed roller 26 and the paper edge are supplied in parallel when the paper is fed from the paper stacker, skew does not occur, but a slight shift occurs, so that the edge of the paper is fed to the paper feed roller 26. In some cases, the paper is fed while being in contact with each other at an angle.
If skew does not occur, the positions detected as the sheet edges OPE1 and OPE2 remain constant. If skew occurs, the positions of the sheet edges OPE1 and OPE2 change as the sheet is fed. Usually, the degree of change is the same.

上述したとおり、CPUは、用紙端を検出した後、用紙フィードを開始し、所定距離だけ移動させた時点で大径の穴の中心位置を特定している。用紙フィードを開始する前の用紙端OPE1の位置を記憶しておき、所定距離を用紙送りの距離aとして、同距離aだけ用紙送りした時点での用紙端OPE1の位置を確認する。用紙端OPE1の位置が一定であれば斜行はなく、距離bだけずれていることが分かれば斜行があるものと判断できる。   As described above, the CPU starts paper feeding after detecting the paper edge, and specifies the center position of the large-diameter hole when it is moved by a predetermined distance. The position of the paper edge OPE1 before starting the paper feed is stored, and the position of the paper edge OPE1 at the time when the paper is fed by the same distance a with the predetermined distance as the paper feed distance a is confirmed. If the position of the sheet edge OPE1 is constant, there is no skew, and if it is known that there is a shift by the distance b, it can be determined that there is skew.

この状況は、CPUによる以下の判断で検出可能である。CPUは、S200にて、用紙端OPE1の位置に変化があるか判断する。CPUは、S204にて、用紙送り後に用紙端がずれた距離bを特定し、S208にて、用紙送りの距離aを特定し、S212にて、スキュー角度を算出する。この例の場合、スキュー角度θとすると、
tanθ=a/b
となる。
This situation can be detected by the following determination by the CPU. In S200, the CPU determines whether there is a change in the position of the sheet edge OPE1. In S204, the CPU specifies a distance b in which the sheet edge has shifted after feeding, specifies a sheet feeding distance a in S208, and calculates a skew angle in S212. In this example, if the skew angle θ is
tan θ = a / b
It becomes.

スキューが生じていると、用紙フィードの方向と穴の並ぶ方向とがずれているので、最初に検出した穴の中心位置OPE5にキャリッジを移動させて用紙フィードを行なったときに、徐々に穴がずれていく。このため、図2に示す処理のままでは、必ずしも大径の穴LDの中心位置を特定できなくなる。   If the skew occurs, the paper feed direction and the hole alignment direction are deviated from each other. Therefore, when the paper is fed by moving the carriage to the center position OPE5 of the first detected hole, the holes are gradually formed. It will shift. For this reason, the center position of the large-diameter hole LD cannot always be specified with the processing shown in FIG.

図9は、スキューが有るときの大径穴判定処理を示すフローチャートである。
また、図10は、反時計回り方向に用紙が傾いている場合の用紙有無信号の変化を示す図であり、図11は、時計回り方向に用紙が傾いている場合の用紙有無信号の変化を示す図である。
図10と図11に示すように、斜行が生じている場合、穴が左右にずれていく。従って、用紙有無信号に基づいて穴の径を判断すると、一般的には同穴の径は小さくなっていく。図10に示す例では、穴の径は、5mm、4.9mm、4.8mmと小さくなっていき、図11に示す例でも、穴の径は、5mm、4.9mm、4.8mmと小さくなっていく。しかし、大径の穴の位置では、穴の径が大きくなる。図10に示す例では、穴の径は、4.8mmとなった後で7mm、2mmと変化しており、図11に示す例でも、穴の径は、4.8mmとなった後で6.2mm、4mmと変化している。変化の傾向がやや異なるのは、大径の穴の中心位置と小径の穴の並び位置が左右に少しずれているためである。
FIG. 9 is a flowchart showing a large-diameter hole determination process when there is a skew.
FIG. 10 is a diagram showing a change in the paper presence / absence signal when the paper is tilted counterclockwise, and FIG. 11 shows a change in the paper presence / absence signal when the paper is tilted clockwise. FIG.
As shown in FIGS. 10 and 11, when skew is generated, the holes are shifted to the left and right. Accordingly, when the diameter of the hole is determined based on the paper presence / absence signal, the diameter of the hole generally decreases. In the example shown in FIG. 10, the diameter of the hole is reduced to 5 mm, 4.9 mm, and 4.8 mm. In the example shown in FIG. 11, the diameter of the hole is reduced to 5 mm, 4.9 mm, and 4.8 mm. It will become. However, the diameter of the hole increases at the position of the large-diameter hole. In the example shown in FIG. 10, the hole diameter changes to 7 mm and 2 mm after reaching 4.8 mm. In the example shown in FIG. 11, the hole diameter changes to 6 after the hole diameter reaches 4.8 mm. .2mm and 4mm. The tendency of the change is slightly different because the center position of the large-diameter hole and the arrangement position of the small-diameter hole are slightly shifted left and right.

CPUは、スキューが生じている場合の用紙有無信号の解析において、以下のようにする。
CPUは、S300にて、記録した複数の穴径に減少傾向があると認められる場合、S304にて、減少傾向に変化が有る部位を探す。すなわち、穴径が小から大へ逆行する部位である。この部位があれば、CPUは、S308にて、大径の穴と判定する。大径の穴の径をより正確に計測するため、CPUは、S312にて、大径の穴の用紙フィード方向の中心へ用紙フィードし、同位置にて、CPUは、S316にてキャリッジを左右に移動させて径を測定する。すなわち、用紙有無信号の変化を観測し、ローレベルからハイレベルへ、また、ハイレベルからローレベルへ変化する地点間を大径の穴LHの径LDとする。
The CPU performs the following in the analysis of the paper presence / absence signal when skew is generated.
When it is recognized in S300 that the plurality of recorded hole diameters have a decreasing tendency, the CPU searches for a site where the decreasing tendency has changed in S304. That is, the hole diameter reverses from small to large. If there is such a portion, the CPU determines that the hole has a large diameter in S308. In order to measure the diameter of the large-diameter hole more accurately, the CPU feeds the paper to the center of the large-diameter hole in the paper feed direction in S312, and at the same position, the CPU moves the carriage left and right in S316. Move to and measure the diameter. That is, the change in the sheet presence / absence signal is observed, and the point LD between the points changing from the low level to the high level and from the high level to the low level is set as the diameter LD of the large-diameter hole LH.

図2に示すフローチャートに戻ると、CPUは、S188にて、印刷領域を設定する。
図12は、印刷領域の設定処理を示すフローチャートである。
図13は、縁なし印刷の印刷領域を示す図であり、図14は、縁有り印刷の印刷領域を示す図である。
印刷領域の設定では、CPUは、S404にて、大径の穴を基準として利用する。大径の穴LHは、キャリッジをOPE5に移動させた位置を中心として径LDとして特定しても良いし、算出した位置OPE10’を中心として径LD’として特定しても良い。なお、先のS184の処理で、大径の穴を小径の穴と一致させているので、実際には、大径の穴と小径の穴とが一致しているでも可能である。
Returning to the flowchart shown in FIG. 2, the CPU sets a print area in S188.
FIG. 12 is a flowchart showing print area setting processing.
FIG. 13 is a diagram showing a print area for borderless printing, and FIG. 14 is a diagram showing a print area for bordered printing.
In setting the print area, the CPU uses the large-diameter hole as a reference in S404. The large-diameter hole LH may be specified as the diameter LD with the position where the carriage is moved to the OPE 5 as the center, or may be specified as the diameter LD ′ with the calculated position OPE10 ′ as the center. Since the large-diameter hole is matched with the small-diameter hole in the process of S184, actually, it is possible even if the large-diameter hole and the small-diameter hole are coincident.

印刷領域は、縁なし印刷の場合と縁有り印刷の場合とで異なる領域としている。
CPUは、S408にて、縁なし印刷と判断すると、S412にて、大径の穴LHの内側の縁までを印刷領域とする。図13に示すように、この場合は、用紙の左の端OPE1の位置から、大径の穴LHの左の端(OPE5−LD/2)あるいは(OPE10’−LD’/2)の位置が左右の境界である。上下の境界は用紙端の位置から、規格に基づく用紙の長さまでの位置の間である。
The print areas are different for the borderless printing and the bordered printing.
If the CPU determines in S408 that borderless printing is to be performed, in S412 the area up to the inner edge of the large-diameter hole LH is set as the printing area. As shown in FIG. 13, in this case, the position of the left end (OPE5-LD / 2) or (OPE10′-LD ′ / 2) of the large-diameter hole LH is changed from the position of the left end OPE1 of the sheet. Left and right border. The upper and lower boundaries are between the positions from the sheet edge position to the sheet length based on the standard.

一方、CPUが、S416にて、縁有り印刷と判断した場合は、S420にて、大径の穴の端から縁の分だけ内側までを印刷領域とする。図14に示すように、この場合は、用紙の左の端OPE1から右側に3mmの位置から、大径の穴LHの左の端(OPE5−LD/2)あるいは(OPE10’−LD’/2)から左側に3mmの位置が左右の境界である。上下の境界は用紙端から3mm用紙フィードした位置から、規格に基づく用紙の長さから3mmだけ手前へ用紙フィードするまでの位置の間である。
このように、複数の穴の径に基づいて、大径の穴HLと小径の穴HSとを判別し、大径の穴HLよりも用紙の中心側の領域を印刷領域と設定している。
さらに、大径の穴HLを検出した場合、あるいは同視できるように処理した場合、縁有り印刷の設定では、大径の穴HLの縁部から用紙の中心側に向けて所定の余白を付けた印刷領域を設定(S420)し、縁無し印刷の設定では、大径の穴HLの縁部から用紙の中心側に向けた領域を印刷領域と設定(S412)している。
On the other hand, if the CPU determines in S416 that printing is to be performed with a border, in S420, the area from the end of the large-diameter hole to the inside of the border is set as the printing area. As shown in FIG. 14, in this case, the left end (OPE5-LD / 2) or (OPE10'-LD '/ 2) of the large-diameter hole LH from the position 3 mm to the right from the left end OPE1 of the sheet. The left and right positions are 3 mm from the left to the right. The upper and lower boundaries are between the position where the sheet is fed 3 mm from the edge of the sheet and the position where the sheet is fed forward 3 mm from the length of the sheet based on the standard.
As described above, the large-diameter hole HL and the small-diameter hole HS are discriminated based on the diameters of the plurality of holes, and the area closer to the center of the sheet than the large-diameter hole HL is set as the print area.
Furthermore, when a large-diameter hole HL is detected or processed so that it can be identified, a predetermined margin is added from the edge of the large-diameter hole HL toward the center of the sheet in the setting of printing with a border. A print area is set (S420), and in the borderless print setting, an area from the edge of the large-diameter hole HL toward the center of the sheet is set as the print area (S412).

上述したようにスキューが生じていると判断されている場合は、CPUは、S424にて、スキュー調整が必要と判断し、S428にて、スキュー情報に基づいて印刷領域を設定する。
図15は、スキューが生じている場合の縁有り印刷の印刷領域を示す図である。
この場合は一律には設定できず、CPUは、S432にて、ヘッド幅分だけ用紙フィードしたらスキュー方向に合わせて印刷開始位置をずらすという処理を実行する。スキューが生じているときは、用紙を距離aだけフィードするに従って、用紙端OPE1が距離bだけずれるので、印刷ヘッド10の用紙フィード方向のヘッド幅cにb/aを乗じた距離だけ用紙端OPE1をずらす。むろん、用紙フィードの距離は印刷手法によって異なるので、印刷手法に応じてずらすタイミングを変えればよい。
このように、用紙をフィードしたときに前記用紙有無検出部にて用紙の端部の位置が変化したら(S200〜S208)、斜行に対応した印刷領域を設定する(S424〜S432)。
上述したように、本実施形態では、用紙送り機構にて用紙をフィードさせ(S112)、前記用紙有無検出部にて用紙幅の範囲で用紙が無い位置を検出し(S132)、複数の用紙が無い位置を検出(S160)して穴の径を判定し(S168,S176)、穴を避けて印刷領域を設定する(S404〜S420)。そして、設定された前記印刷領域内で印刷する(S196)。これらの処理は、印刷領域設定部と、印刷部とに相当する。
If it is determined that skew has occurred as described above, the CPU determines that skew adjustment is necessary in S424, and sets a print area based on the skew information in S428.
FIG. 15 is a diagram illustrating a print area for bordered printing when skew is generated.
In this case, the setting cannot be made uniformly, and the CPU executes a process of shifting the print start position in accordance with the skew direction after feeding the paper by the head width in S432. When the skew is generated, the sheet end OPE1 is shifted by the distance b as the sheet is fed by the distance a. Therefore, the sheet end OPE1 is multiplied by a distance obtained by multiplying the head width c of the print head 10 in the sheet feeding direction by b / a. Move. Of course, since the paper feed distance varies depending on the printing method, the timing of shifting may be changed according to the printing method.
As described above, when the position of the edge of the sheet is changed by the sheet presence / absence detection unit when the sheet is fed (S200 to S208), a printing area corresponding to the skew is set (S424 to S432).
As described above, in the present embodiment, the paper is fed by the paper feed mechanism (S112), the paper presence / absence detecting unit detects the position where there is no paper within the paper width range (S132), and there is no plural paper. The position is detected (S160), the diameter of the hole is determined (S168, S176), and the printing area is set avoiding the hole (S404 to S420). Then, printing is performed within the set print area (S196). These processes correspond to a printing area setting unit and a printing unit.

(第2実施形態)
上述した実施形態では、穴を避けて印刷するために印刷領域を設定しているだけにとどめた。しかし、本実施形態では、印刷内容も調整する。この処理をレイアウト調整処理とする。
図16は、レイアウト調整処理を示すフローチャートである。
CPUは、S500にて、穴を発見したと判断すると、S504にて、印刷領域を設定し、この印刷領域に基づいて以下のレイアウト調整を行う。レイアウト調整は、両端をカットするものと、縮小するものとのいずれのオプションを選択可能としておく。また、文字については、さらに改行位置の調整も可能である。
(Second Embodiment)
In the above-described embodiment, only the print area is set in order to print while avoiding the holes. However, in this embodiment, the print content is also adjusted. This process is a layout adjustment process.
FIG. 16 is a flowchart showing the layout adjustment processing.
If the CPU determines that a hole has been found in S500, the CPU sets a print area in S504, and performs the following layout adjustment based on the print area. In the layout adjustment, either of the options of cutting both ends and the option of reducing can be selected. For characters, the line feed position can be adjusted further.

CPUは、S508にて、文字以外の画像と判断すると、先に選択されているオプションに基づいて、処理を選択する。S512では、両端カットを選択された場合であり、S516にて、印刷領域に合わせて両端をカットする。一方、S520では、縮小を選択された場合であり、S524にて、印刷領域に合わせて縦横方向に縮小する。このようにすることで、印刷領域が穴を避けるために縮小されている場合でも、穴を避けて印刷することが可能となり、利便性が向上する。
このように、穴を避ける印刷領域が設定される(S504)と、印刷画像の幅方向の両端をカット(S512)あるいは同印刷画像を縮小(S524)して印刷する。
If the CPU determines in S508 that the image is not a character, it selects a process based on the previously selected option. In S512, both-end cutting is selected, and in S516, both ends are cut in accordance with the print area. On the other hand, in S520, the reduction is selected, and in S524, the image is reduced in the vertical and horizontal directions according to the print area. By doing so, even when the print area is reduced to avoid holes, printing can be performed while avoiding holes, and convenience is improved.
As described above, when the print area that avoids the hole is set (S504), both ends in the width direction of the print image are cut (S512) or the print image is reduced (S524) and printed.

また、文字の場合は改行位置の調整も可能である。CPUは、S528にて、印刷対象が文字であると判断すると、文字送りで調整するか、縮小で調整するかを判断する。これらについても先に選択されており、S532では、文字送りを選択された場合であり、S536にて、印刷領域に合わせて改行位置を調整する。また、S540では、縮小を選択された場合であり、S544にて、印刷領域に合わせて縦横方向に縮小する。このようにすることで、同様に、穴を避けて印刷することが可能となるし、文字については、文字送りも選択可能とすることで、縮小することなく印刷領域の縮小に対応できる。   In the case of characters, the line feed position can be adjusted. If the CPU determines in S528 that the object to be printed is a character, the CPU determines whether adjustment is to be performed by character advancement or adjustment by reduction. These are also selected first. In S532, the character feed is selected. In S536, the line feed position is adjusted in accordance with the print area. In S540, the reduction is selected. In S544, the image is reduced in the vertical and horizontal directions in accordance with the print area. In this way, similarly, it is possible to perform printing while avoiding holes, and it is possible to cope with the reduction of the print area without reducing the size of the character by making it possible to select the character feed.

(第3実施形態)
図17は、両面印刷処理を示すフローチャートであり、図18は、両面印刷の場合の印刷領域の設定を示す図である。
両面印刷の場合、CPUは、S600にて、表面印刷前に穴を発見したとすると、S604にて、表面印刷時の穴位置を記憶しておく。そして、裏面印刷を開始するときには、CPUは、S608にて、裏面印刷であると判断すると、印刷開始前に、S612にて、穴位置を用紙の幅方向で反転させて印刷領域を設定する。
(Third embodiment)
FIG. 17 is a flowchart showing the double-sided printing process, and FIG. 18 is a diagram showing the setting of the printing area in the case of double-sided printing.
In the case of duplex printing, if the CPU finds a hole before surface printing in S600, it stores the hole position at the time of surface printing in S604. When starting the back side printing, if the CPU determines in S608 that the back side printing is to be performed, before starting the printing, in S612, the CPU reverses the hole position in the width direction of the paper and sets the print area.

図18に示すように、表面印刷の際に、右端の領域に穴を発見していた場合、裏面印刷をするときには、左端の領域を避けるようにして印刷領域を設定すればよい。表面印刷の時に、左端から右寄りに距離dだけずれた位置から印刷領域が開始し、右端から左寄りに距離eだけずれた位置までで印刷領域が終了しているとする。裏面印刷の時には、左端から右寄りに距離eだけずれた位置から印刷領域が開始し、右端から左寄りに距離dだけずれた位置までで印刷領域が終了するように設定する。
このように、両面印刷の場合、表面印刷の際に判定した穴の情報を記憶し(S604)、裏面印刷の際に同記憶されている穴の情報を幅方向で反転させて印刷領域を設定する(S612)。
As shown in FIG. 18, if a hole is found in the rightmost area during front surface printing, the printing area may be set so as to avoid the leftmost area when performing backside printing. Assume that at the time of front side printing, the printing area starts from a position shifted from the left end to the right by a distance d and ends at a position shifted from the right end by a distance e to the left. At the time of back side printing, the print area is set to start from a position shifted from the left end to the right by the distance e and to end at a position shifted from the right end to the left by the distance d.
As described above, in the case of double-sided printing, the information on the holes determined at the time of front side printing is stored (S604), and the information on the holes stored at the time of back side printing is reversed in the width direction to set the printing area. (S612).

(第4実施形態)
図2に示すS192では、用紙の開始端まで用紙をバックフィードしている。しかし、例外的に、バックフィードしない印刷を実施できる場合もある。
図19は、印刷処理を示すフローチャートである。
まず、CPUは、S700にて、印刷開始位置を特定し、S704にて、現在の用紙フィード位置を特定する。次に、S708にて、印刷開始位置>現在の用紙フィード位置となっているかを判断する。すなわち、印刷開始位置の方が、現在の用紙フィード位置よりも先であるかを判断している。
(Fourth embodiment)
In S192 shown in FIG. 2, the paper is fed back to the start end of the paper. However, there are exceptional cases where printing without backfeeding can be performed.
FIG. 19 is a flowchart showing the printing process.
First, the CPU specifies a print start position in S700, and specifies the current paper feed position in S704. Next, in S708, it is determined whether the print start position> the current paper feed position. That is, it is determined whether the print start position is ahead of the current paper feed position.

印刷開始位置の方が、現在の用紙フィード位置よりも先である場合は、CPUは、S712にて、バックフィードせず、印刷開始位置へ用紙フィードする。一方、逆に、現在の用紙フィード位置の方が、印刷開始位置よりも先に送られてしまっている場合は、CPUは、S716にて、印刷開始位置までバックフィードする。
その後、CPUは、S720にて、印刷を開始する。
If the print start position is ahead of the current paper feed position, the CPU feeds the paper to the print start position without back-feeding in S712. On the other hand, if the current paper feed position has been sent before the print start position, the CPU back-feeds to the print start position in S716.
Thereafter, the CPU starts printing in S720.

図20は、バックフィードしない印刷を実施できる場合を示す図である。
同図に示すように、印刷開始位置fは、現在の用紙フィード位置gよりも先である場合は、さらに(g−f)だけ用紙フィードして印刷を開始する。逆転しているとすれば、(f−g)だけ用紙をバックフィードして印刷を開始すればよい。
このように、印刷開始位置が現在の用紙のフィード位置よりも用紙のフィード側に位置するとき(S704))に用紙をバックフィードさせずに印刷を開始する(S712,S720)。
FIG. 20 is a diagram illustrating a case where printing without backfeeding can be performed.
As shown in the figure, if the print start position f is ahead of the current paper feed position g, the paper is further fed by (g−f) and printing is started. If it is reversed, printing should be started by backfeeding the paper by (f−g).
As described above, when the print start position is located on the paper feed side with respect to the current paper feed position (S704), printing is started without back feeding the paper (S712, S720).

なお、本発明は前記実施例に限られるものでないことは言うまでもない。当業者であれば言うまでもないことであるが、
・前記実施例の中で開示した相互に置換可能な部材および構成等を適宜その組み合わせを変更して適用すること
・前記実施例の中で開示されていないが、公知技術であって前記実施例の中で開示した部材および構成等と相互に置換可能な部材および構成等を適宜置換し、またその組み合わせを変更して適用すること
・前記実施例の中で開示されていないが、公知技術等に基づいて当業者が前記実施例の中で開示した部材および構成等の代用として想定し得る部材および構成等と適宜置換し、またその組み合わせを変更して適用すること
は本発明の一実施例として開示されるものである。
Needless to say, the present invention is not limited to the above embodiments. It goes without saying for those skilled in the art,
-Applying the combination of the mutually replaceable members and configurations disclosed in the above-described embodiments as appropriate-The above-described embodiments are not disclosed in the above-described embodiments, but are publicly known techniques. The members and structures that can be mutually replaced with the members and structures disclosed in the above are appropriately replaced, and the combination is changed and applied. It is an embodiment of the present invention that a person skilled in the art appropriately replaces the members and configurations that can be assumed as substitutes for the members and configurations disclosed in the above-described embodiments, and changes the combination to apply. It is disclosed as.

10…印刷ヘッド、11…用紙有無検出センサー(用紙有無検出素子)、21…キャリッジモーター、22…ベルト、23…プラテン、24…プラテンモーター、25…フィードモーター、26…給紙ローラー、30…制御回路、41…操作パネル、42…表示パネル、50…カードリーダー、60…I/O回路。 DESCRIPTION OF SYMBOLS 10 ... Print head, 11 ... Paper presence detection sensor (paper presence detection element), 21 ... Carriage motor, 22 ... Belt, 23 ... Platen, 24 ... Platen motor, 25 ... Feed motor, 26 ... Feed roller, 30 ... Control Circuit 41... Operation panel 42. Display panel 50. Card reader 60. I / O circuit.

Claims (10)

用紙幅方向において用紙の有無を検出する用紙有無検出部と、
用紙をフィードおよびバックフィードさせる用紙送り機構と、
前記用紙送り機構にて用紙をフィードさせ、前記用紙有無検出部にて用紙幅の範囲で用紙が無い位置を検出し、複数の用紙が無い位置を検出して穴の径を判定し、穴を避けて印刷領域を設定する印刷領域設定部と、
設定された前記印刷領域内で印刷する印刷部とを具備することを特徴とする印刷装置。
A paper presence / absence detecting unit for detecting the presence / absence of paper in the paper width direction;
A paper feed mechanism for feeding and backfeeding paper,
The paper feed mechanism feeds the paper, the paper presence / absence detection unit detects the position where there is no paper within the range of the paper width, detects the position where there is no plural paper, determines the diameter of the hole, and avoids the hole. A print area setting section for setting a print area,
And a printing unit that prints within the set printing area.
前記印刷領域設定部は、複数の穴の径に基づいて、大径の穴と小径の穴とを判別し、大径の穴よりも用紙の中心側の領域を印刷領域と設定することを特徴とする請求項1に記載の印刷装置。   The printing area setting unit discriminates a large-diameter hole and a small-diameter hole based on the diameters of a plurality of holes, and sets an area closer to the center of the paper than the large-diameter hole as a printing area. The printing apparatus according to claim 1. 前記大径の穴を検出した場合、縁有り印刷の設定では、大径の穴の縁部から用紙の中心側に向けて所定の余白を付けた印刷領域を設定し、縁無し印刷の設定では、大径の穴の縁部から用紙の中心側に向けた領域を印刷領域と設定することを特徴とする請求項2に記載の印刷装置。   When the large-diameter hole is detected, in the setting for printing with a border, a printing area with a predetermined margin is set from the edge of the large-diameter hole toward the center of the paper, and in the setting for borderless printing. The printing apparatus according to claim 2, wherein an area from the edge of the large-diameter hole toward the center side of the sheet is set as a printing area. 前記用紙有無検出部は、用紙の幅方向に往復動するキャリッジに配設された用紙有無検出素子を備え、前記キャリッジの前記幅方向への移動時に、移動位置と用紙の有無の検出結果とを出力することを特徴とする請求項1〜請求項3のいずれかに記載の印刷装置。   The sheet presence / absence detection unit includes a sheet presence / absence detection element disposed in a carriage that reciprocates in the width direction of the sheet, and displays a movement position and a detection result of the presence / absence of the sheet when the carriage moves in the width direction. The printing apparatus according to claim 1, wherein the printing apparatus performs output. 前記印刷領域設定部は、穴を検出したときに、前記用紙有無検出素子を穴の中心位置に移動させ、用紙をフィードして用紙の有無の検出結果に基づいて穴の径を測定することを特徴とする請求項4に記載の印刷装置。   The print area setting unit, when detecting the hole, moves the paper presence / absence detection element to the center position of the hole, feeds the paper, and measures the diameter of the hole based on the detection result of the presence / absence of the paper. The printing apparatus according to claim 4, wherein: 前記印刷領域設定部は、用紙をフィードしたときに前記用紙有無検出部にて用紙の端部の位置が変化したら斜行に対応した印刷領域を設定することを特徴とする請求項1〜請求項5のいずれかに記載の印刷装置。   The print area setting unit sets a print area corresponding to skew when the position of the end of the sheet changes in the sheet presence / absence detection unit when the sheet is fed. The printing apparatus according to any one of 5. 前記印刷領域設定部は、両面印刷の場合、表面印刷の際に判定した穴の情報を記憶し、裏面印刷の際に同記憶されている穴の情報を幅方向で反転させて印刷領域を設定することを特徴とする請求項1〜請求項6のいずれかに記載の印刷装置。   In the case of double-sided printing, the print area setting unit stores hole information determined at the time of front side printing, and sets the print area by inverting the stored hole information in the width direction at the time of back side printing. The printing apparatus according to claim 1, wherein the printing apparatus is a printing apparatus. 前記印刷部は、穴を避ける印刷領域が設定されると印刷画像の幅方向の両端をカットあるいは同印刷画像を縮小して印刷することを特徴とする請求項1〜請求項7のいずれかに記載の印刷装置。   8. The print unit according to claim 1, wherein, when a print area that avoids a hole is set, the print unit cuts both ends in the width direction of the print image or reduces the print image to print. The printing apparatus as described. 前記印刷部は、印刷開始位置が現在の用紙のフィード位置よりも用紙のフィード側に位置するときに用紙をバックフィードさせずに印刷を開始することを特徴とする請求項1〜請求項8のいずれかに記載の印刷装置。   9. The printing unit according to claim 1, wherein the printing unit starts printing without back feeding the paper when the print start position is located on the paper feed side from the current paper feed position. The printing apparatus in any one. 用紙幅方向において用紙の有無を検出することが可能であるとともに、用紙をフィードおよびバックフィードさせることが可能な印刷装置の印刷方法であって、
用紙をフィードさせて用紙幅の範囲で用紙が無い位置を検出し、
複数の用紙が無い位置を検出して穴の径を判定し、
穴を避けて印刷領域を設定し、
設定された印刷領域内で印刷することを特徴とする印刷方法。
A printing method of a printing apparatus capable of detecting the presence or absence of paper in the paper width direction and feeding and backfeeding paper,
Feed the paper, detect the position where there is no paper within the paper width range,
Detects the hole diameter by detecting the position where there are not multiple sheets,
Set the print area avoiding the holes,
A printing method, wherein printing is performed within a set printing area.
JP2016035336A 2016-02-26 2016-02-26 Printing device and printing method Pending JP2017149095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016035336A JP2017149095A (en) 2016-02-26 2016-02-26 Printing device and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016035336A JP2017149095A (en) 2016-02-26 2016-02-26 Printing device and printing method

Publications (1)

Publication Number Publication Date
JP2017149095A true JP2017149095A (en) 2017-08-31

Family

ID=59739508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016035336A Pending JP2017149095A (en) 2016-02-26 2016-02-26 Printing device and printing method

Country Status (1)

Country Link
JP (1) JP2017149095A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019130734A (en) * 2018-01-30 2019-08-08 カシオ計算機株式会社 Printing system, terminal device, printer, printing method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019130734A (en) * 2018-01-30 2019-08-08 カシオ計算機株式会社 Printing system, terminal device, printer, printing method and program

Similar Documents

Publication Publication Date Title
US9162496B2 (en) Printing method and printing apparatus
JP2008238700A (en) Image forming device
US11020990B2 (en) Image printing apparatus and control method therefor
EP3753740B1 (en) Image forming apparatus and method for controlling image forming apparatus
US7227164B2 (en) Media width detecting apparatus
JP2017149095A (en) Printing device and printing method
JP7415598B2 (en) Printing devices and methods of controlling them
JP2007283593A (en) Printing medium processing device, and its carrying control method
JP2007160629A (en) Recording apparatus
JP2002160410A (en) Ink-jet printer
US20140354721A1 (en) Printing apparatus, printing medium, and printing method
JP2016024006A (en) Colorimetric chart, colorimetric method, colorimetric device and recording device
JP6350125B2 (en) Inkjet recording apparatus, program, and image recording method
JP5664095B2 (en) Skew detection method, skew detection apparatus, and printing apparatus including the same
JP6291964B2 (en) Electronics
JP6989110B2 (en) Print control device, alignment control device, alignment control method and alignment control program
JP2017024257A (en) Sheet processing method
JP6278357B2 (en) Printer
JP5982849B2 (en) Image recording device
JP2006181977A (en) Printer and checking information printing method
CN113199876A (en) Printing apparatus and control method
JP2022181879A (en) Printing device and method for producing printed matter
JP2005305820A (en) Inkjet recording device
JP5095789B2 (en) Printing apparatus and conveying method of printing apparatus
JP2014019093A (en) Recording device

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20180906

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181119