JP2018052099A - Printer user moves manually in main scanning direction, control method for the printer, and program for the printer - Google Patents
Printer user moves manually in main scanning direction, control method for the printer, and program for the printer Download PDFInfo
- Publication number
- JP2018052099A JP2018052099A JP2017048823A JP2017048823A JP2018052099A JP 2018052099 A JP2018052099 A JP 2018052099A JP 2017048823 A JP2017048823 A JP 2017048823A JP 2017048823 A JP2017048823 A JP 2017048823A JP 2018052099 A JP2018052099 A JP 2018052099A
- Authority
- JP
- Japan
- Prior art keywords
- printing
- width
- line
- recording medium
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
- Printers Characterized By Their Purpose (AREA)
- Ink Jet (AREA)
Abstract
Description
本発明は、ユーザが手動で主走査方向に移動させる印刷装置、その印刷装置の制御方法及びその印刷装置用のプログラムに関するものである。 The present invention relates to a printing apparatus that a user manually moves in a main scanning direction, a control method for the printing apparatus, and a program for the printing apparatus.
特許文献1には、印刷部を手に持って紙にあて移動させることにより印刷を行う印刷装置で、一枚の原稿データをn回に分割して印刷出力する時に、分割されたデータと一緒に、補助ラインを印刷出力することを特徴とする印刷装置が開示されている。
In
一方、印刷が行われる記録媒体によっては、例えば、氏名を記入するための枠線があらかじめ設けられている場合がある。
このような場合、この枠線からはみ出さないように印刷できることが重要となる。
しかしながら、特許文献1に記載の印刷装置は、複数行に分けて印刷を行うときに各行の間隔をほぼ等しくできるだけであり、枠線内に印刷できるようにするものではない。
また、上下の枠線で規定される領域のほぼ中央(あるいはやや下寄り)に位置するように印刷できることが見栄えの観点から好ましいといえる。
On the other hand, depending on the recording medium on which printing is performed, for example, a frame for entering a name may be provided in advance.
In such a case, it is important that printing can be performed so as not to protrude from the frame line.
However, the printing apparatus described in Japanese Patent Laid-Open No. 2004-228561 can only make the intervals between lines almost equal when printing is performed in a plurality of lines, and does not allow printing within a frame line.
Further, it can be said that it is preferable from the viewpoint of appearance that printing can be performed so as to be positioned substantially at the center (or slightly lower) of the region defined by the upper and lower frame lines.
したがって、ユーザが手動で主走査方向に移動させる印刷装置には依然として改善の余地がある。 Therefore, there is still room for improvement in the printing apparatus that the user manually moves in the main scanning direction.
本発明は、このような事情に鑑みなされたものであり、ユーザが手動で主走査方向に移動させる印刷装置であって、記録媒体の指定される範囲に適切に印刷を行うことができる印刷装置を提供することを第1の目的とする。 The present invention has been made in view of such circumstances, and is a printing apparatus that is manually moved in a main scanning direction by a user, and that can appropriately perform printing in a specified range of a recording medium. It is a first object to provide
上記目的を達成するために、本発明は、以下の構成により把握される。
本発明の印刷装置は、移動させながら記録媒体に印刷を行なう印刷装置であって、制御部と、入力された印刷データに基づいて印刷を行うヘッド部と、前記記録媒体の画像を取得する画像取得部と、を備え、前記制御部は、前記印刷装置が、前記画像取得部が前方側になる移動方向に移動しているときに前記画像取得部が取得した前記画像に基づいて、前記記録媒体に示されている少なくとも一つの、第1方向に延在する線を検出し、前記記録媒体の前記線に重ならない領域に前記第1方向に沿って印刷領域を設定する。
In order to achieve the above object, the present invention is grasped by the following configuration.
The printing apparatus of the present invention is a printing apparatus that performs printing on a recording medium while moving, and includes a control unit, a head unit that performs printing based on input print data, and an image that acquires an image of the recording medium. An acquisition unit, and the control unit performs recording based on the image acquired by the image acquisition unit when the printing apparatus is moving in a moving direction in which the image acquisition unit is on the front side. At least one line extending in the first direction indicated on the medium is detected, and a print area is set along the first direction in an area that does not overlap the line of the recording medium.
本発明によれば、ユーザが手動で主走査方向に移動させる印刷装置であって、記録媒体の指定される範囲に適切に印刷を行うことができる印刷装置を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, it is a printing apparatus which a user moves to a main scanning direction manually, Comprising: The printing apparatus which can print appropriately in the range designated on a recording medium can be provided.
以下、本発明を実施するための形態(以下、「実施形態」という)を、添付図面に基づいて詳細に説明する。なお、実施形態の説明の全体を通して同じ要素には同じ番号を付している。 DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention (hereinafter referred to as “embodiments”) will be described in detail with reference to the accompanying drawings. Note that the same number is assigned to the same element throughout the description of the embodiment.
(第1実施形態)
[印刷装置の構成]
図1は本発明の第1実施形態に係る印刷装置1の構成を示す図であり、図1(a)は印刷装置1の断面図であり、図1(b)は印刷装置1の底面図である。
また、図2は本発明の第1実施形態に係る印刷装置1の機能構成を示すブロック図である。
さらに、図3は本発明の第1実施形態における寸法及び座標を説明する図であり、図3(a)は印刷装置1の底面側を見た図であり、図3(b)は記録媒体に設けられている枠Frを示す図であり、図3(c)は印刷データを示す図である。
(First embodiment)
[Configuration of printing device]
FIG. 1 is a diagram illustrating a configuration of a
FIG. 2 is a block diagram showing a functional configuration of the
Further, FIG. 3 is a view for explaining dimensions and coordinates in the first embodiment of the present invention, FIG. 3 (a) is a view of the bottom side of the
印刷装置1は、ユーザが手動で主走査方向(移動方向、又は、第1方向とも記される)に移動させることで、例えば、紙等の記録媒体に印刷を行う装置(ハンディプリンタ)である。
印刷装置1は、図1に示すように、ケース11、基板12、ヘッド部14を備えるインクカートリッジ13、光学式センサ15、ラインスキャナ16、印刷開始位置マーカ17、ユーザインターフェイス18、印刷指示ボタン19、電源ボタン20及び内蔵電源21を含んで構成される。
The
As shown in FIG. 1, the
ケース11は、基板12、インクカートリッジ13、光学式センサ15、ラインスキャナ16及び内蔵電源21等を収納するための筐体である。
The
基板12には、例えばCPU31、RAM42及びROM41等が取り付けられている。
なお、CPU31、RAM42及びROM41の各機能については、追って述べる。
For example, a
The functions of the
インクカートリッジ13は、インクを内蔵するとともに、印刷を行うために記録媒体にインクを吐出するヘッド部14が一体に設けられたものになっており、インクカートリッジ13は、ヘッド部14が記録媒体に対向する面(ここでは底面)に位置するように、印刷装置1に設けられている。
そして、図3(a)に示すように、ヘッド部14は、ユーザによって走査される主走査方向に直交する副走査方向(第2方向)に一定の第1幅Phを有している。
したがって、ヘッド部14は、入力された印刷データに基づいて、印刷を副走査方向に第1幅Phで行うことができる。
The
As shown in FIG. 3A, the
Therefore, the
なお、印刷装置1は、ヘッド部14に付着したインクの乾燥を防止するための着脱式のキャップを有していてもよい。
また、印刷装置1は、印刷装置1に付属するものとして、ヘッド部14に付着したインクの乾燥を防止するために、不使用時に印刷装置1を載置するクレードル等を、更に備えるものとしてもよい。
Note that the
Further, the
光学式センサ15は、印刷装置1の主走査方向への移動量を検出する移動量検出部44(図2参照)であり、レーザやLEDを備えた一般的にPC用のマウス等に用いられているような移動量を検出できる光学式のセンサでよい。
本実施形態では、光学式センサ15は、移動量を検出するための計測部を印刷装置1の底面側に位置させるように設けられている。
なお、移動量検出部44は、光学式のセンサに限定される必要はなく、ロータリエンコーダ式のものであってもよい。
The
In the present embodiment, the
The movement
ラインスキャナ16は、記録媒体上の画像を取得する画像取得部45(図2参照)であり、画像を取得する領域が印刷装置1の底面側に向くように印刷装置1に設けられている。
そして、図1に示すように、ラインスキャナ16は、主走査方向(移動想定方向)においてヘッド部14よりも前方側に設けられている。
したがって、印刷装置1は、主走査方向に移動するときに、ヘッド部14よりも主走査方向前方の状態を画像として取得できるようになっている。
The
As shown in FIG. 1, the
Therefore, when the
また、図3(a)に示すように、ラインスキャナ16は、画像を取得できる副走査方向の幅Shがヘッド部14の副走査方向の第1幅Phよりも広くなっている。
このため、ヘッド部14によって印刷ができる副走査方向の幅よりも幅広い領域の画像を取得することが可能であり、ヘッド部14に対して副走査方向におけるどのような位置関係に記録媒体上に設けられた枠Frが存在するかを的確に把握するための画像を取得することができる。
Further, as shown in FIG. 3A, the
For this reason, it is possible to acquire an image of an area wider than the width in the sub-scanning direction that can be printed by the
印刷開始位置マーカ17は、図1に示すように、ヘッド部14よりも主走査方向前方側のケース11の下端の外側に設けられており、印刷を行うにあたって、ユーザが印刷装置1を記録媒体上に配置するときの目印となる。
As shown in FIG. 1, the print
具体的には、ユーザが記録媒体の印刷を開始したい位置に印刷開始位置マーカ17を合わせるようにして印刷装置1を記録媒体上に配置し、印刷装置1を主走査方向に走査すると、はじめに印刷開始位置マーカ17を合わせた位置にヘッド部14が到達したところで印刷が開始される。
また、印刷開始位置マーカ17はLEDのような光源を備えており、ユーザに走査すべき方向を光で示すようになっており、ユーザによる主走査方向への印刷装置1の走査を誘導するガイドとしての機能も合わせ持っている。
Specifically, when the
Further, the print
なお、印刷開始位置マーカ17の副走査方向の幅は、ユーザが図形文字(文字、記号、マーク等)を印刷できる副走査方向の幅を的確に把握しやすいように、ヘッド部14の副走査方向の第1幅Phに等しいことが好ましい。
Note that the width of the print
ユーザインターフェイス18は、ユーザとの間のインターフェイスであり、操作部としての機能を合わせ持つタッチパネル機能を有する液晶画面を含む。
なお、液晶画面は、後述するエラーが生じた際にエラーメッセージを表示するエラー出力部としても機能する。
したがって、ユーザインターフェイス18は、エラー出力部に相当する機能を含む。
なお、ユーザインターフェイス18は、図示しないスピーカを含んでいてもよく、スピーカをエラー出力部として音や音声でエラーメッセージを出力するようにしてもよい。
The
The liquid crystal screen also functions as an error output unit that displays an error message when an error described later occurs.
Therefore, the
Note that the
また、ユーザインターフェイス18は、例えばWi−Fiのように、外部端末(例えば携帯電話機、スマートフォン、タブレット端末、パーソナルコンピュータ)と通信可能な無線ユニットや、例えばUSBメモリやSDカードのような着脱式記憶媒体を装着することのできる外部接続ポートを含む。
したがって、印刷装置1で印刷するための印刷データ(テンプレート)を印刷装置1で作成するのではなく、作成環境のよい外部端末で作成しておいて、その外部端末で作成した印刷データを印刷装置1に読み込ませるようにすることが可能である。
The
Therefore, print data (template) for printing by the
印刷指示ボタン19は、ユーザが印刷装置1に対して印刷を指示するための操作ボタンである。
電源ボタン20は、ユーザが印刷装置1の電源を投入及び切断するための操作ボタンである。
内蔵電源21は、印刷装置1の電源となる、例えば、乾電池又は二次電池等である。
なお、印刷装置1は、その他の構成を備えていてもよく、例えば、印刷装置1を主走査方向に走査しやすいようにするためのローラ等を、ケース11の下端又はケース11の底面に設けるようにしてもよい。
The
The
The built-in
Note that the
[印刷装置の機能構成]
図2を参照しながら印刷装置1の機能構成等について説明する。
印刷装置1は、図2に示すように、制御部30、メモリ40、印刷部43、移動量検出部44、画像取得部45、印刷指示部46及び通信インターフェイス47等の機能部を有している。
移動量検出部44及び画像取得部45は、先に説明した光学式センサ15及びラインスキャナ16によって構成されている。
[Functional configuration of printing device]
A functional configuration and the like of the
As shown in FIG. 2, the
The movement
制御部30は、印刷装置1の全体的な動作を制御する機能部であり、CPU31、印刷サイズ演算部32及び印刷制御部33等を含む。
The
CPU31は、例えば、印刷指示ボタン19で構成される印刷指示部46からの印刷指示を受けて、ROM41及びRAM42に格納されている各種データ、印刷サイズ演算部32の演算結果、画像取得部45の取得した画像及び移動量検出部44の検出結果に基づいて、印刷内容を決定して印刷制御部33に指示する等の処理を行う。
For example, the
印刷サイズ演算部32は、ヘッド部14の位置(座標)と画像取得部45によって取得された記録媒体の印刷領域A(図3(b)参照)の大きさ及び位置に応じて、記録媒体に印刷する図形文字(文字、記号、マーク等)の寸法(印刷サイズ)と、当該図形文字を印刷する位置と、を決定する。
The print
印刷制御部33は、RAM42に格納されている印刷データ(印刷バッファ)の内容を、移動量検出部44によって検出された印刷装置1の移動量に応じて、後述する印刷部43へ転送して印刷部43に印刷を実行させる。
このような制御部30の詳細な動作については、追って述べる。
The
The detailed operation of the
メモリ40は、RAM42及びROM41を含む。
RAM42は、CPU31における演算のために使用されるデータや、印刷部43に出力する印刷データを、一時的に格納する。
The
The
ROM41は、印刷装置1の各機能を実現するための、図形文字(文字、記号、絵文字を含む)等のデータ、その図形文字のサイズ情報、印刷データのテーブルや各種プログラム等を格納している。
The
印刷部43は記録媒体へ印刷するための機能部であり、本実施形態ではヘッド部14を備えるインクカートリッジ13によって構成されている。
The
印刷指示部46は印刷指示ボタン19であり、ユーザが印刷指示ボタン19を操作することで制御部30は印刷に伴う制御を開始する。
The
通信インターフェイス47は、ユーザインターフェイス18の一部であり、例えばパソコン又はスマートフォンのような端末装置から各種データ(例えば、印刷データ(テンプレート)等)及び各種プログラムを受信するためのインターフェイスである。
具体的には、上述したように、Wi−Fiの無線ユニットやUSBメモリ等が装着される外部接続ポート等である。
The
Specifically, as described above, it is an external connection port to which a Wi-Fi wireless unit, a USB memory, or the like is attached.
[制御部の実行する処理]
次に、図3を主に参照しながら、印刷装置1、記録媒体上に設けられた枠Fr及び印刷データの寸法及び位置関係に応じて、制御部30が実行する処理について説明する。
なお、制御部30の実行する処理について、具体的に説明するのに先立って、まず、印刷装置1、記録媒体上に設けられた枠Fr及び印刷データの寸法及び位置関係(座標)に関する説明を行い、その後、制御部30が実行する各種処理について詳細に説明する。
[Processes executed by the control unit]
Next, processing executed by the
Prior to specific description of the processing executed by the
また、プリンタ等の印刷装置で一般に使用される方向を示す用語に従って、以下の説明においても、図3(a)に示すように、主走査方向及び副走査方向を定めるものとする。
ただし、副走査方向の座標は、主走査方向を示す軸線から離れるほど大きいものとし、副走査方向の座標が大きい側を「上」と表現し、座標が小さい側を「下」と表現する場合がある。
Further, in the following description, as shown in FIG. 3A, the main scanning direction and the sub-scanning direction are determined in accordance with the term indicating the direction generally used in a printing apparatus such as a printer.
However, when the coordinate in the sub-scanning direction is larger as it is farther from the axis indicating the main scanning direction, the side with the larger coordinate in the sub-scanning direction is expressed as “up” and the side with the lower coordinate is expressed as “down”. There is.
さらに、図3(b)及び図3(c)は、印刷装置1が走査されるときに、図3(a)で示す主走査方向及び副走査方向の座標軸に合うように図示しており、以下、図3(b)及び図3(c)を参照した説明における主走査方向及び副走査方向は印刷装置1の主走査方向及び副走査方向を基準とするものである点に留意されたい。
Further, FIGS. 3B and 3C are illustrated so as to match the coordinate axes in the main scanning direction and the sub-scanning direction shown in FIG. 3A when the
図3(a)では、印刷装置1のヘッド部14及びラインスキャナ16の寸法及び座標を示している。
ヘッド部14の副走査方向の第1幅Phは、ヘッド部14の上端の副走査方向の座標P1及び下端の副走査方向の座標P2を用いて、Ph=P1−P2で示される。
また、ラインスキャナ16の副走査方向の幅Shは、ラインスキャナ16の上端の副走査方向の座標S1及び下端の副走査方向の座標S2を用いて、Sh=S1−S2で示される。
FIG. 3A shows the dimensions and coordinates of the
The first width Ph of the
The width Sh of the
図3(b)では、記録媒体上に設けられている枠Frの寸法及び座標を示している。
例えば、枠Frは、用紙等の記録媒体に設けられている氏名や住所等を記入するための欄である。
FIG. 3B shows the dimensions and coordinates of the frame Fr provided on the recording medium.
For example, the frame Fr is a column for entering a name, an address, and the like provided on a recording medium such as paper.
このような枠Fr(記録媒体の欄を示す線)のうち、主走査方向に沿う線に着目し、副走査方向における座標が大きいほう(つまり上側)の線を境界線B1、座標が小さいほう(つまり下側)の線を境界線B2とする。
また、境界線B1の副走査方向の座標をW1とし、境界線B2の副走査方向の座標をW2とすると、境界線B1,B2の間の距離Whは、Wh=W1−W2で示される。
Of such a frame Fr (line indicating the column of the recording medium), paying attention to the line along the main scanning direction, the line with the larger coordinate in the sub-scanning direction (that is, the upper side) is the boundary line B1, and the coordinate is smaller. The line (that is, the lower side) is defined as a boundary line B2.
Further, assuming that the coordinate in the sub-scanning direction of the boundary line B1 is W1, and the coordinate in the sub-scanning direction of the boundary line B2 is W2, the distance Wh between the boundary lines B1 and B2 is expressed by Wh = W1-W2.
さらに、枠Fr内の領域の副走査方向の両側に余白(マージン)を設定するために、境界線B1,B2から所定の距離だけ内側に仮想的な印刷境界線M1,M2を設けている。
このとき、上側の印刷境界線M1の副走査方向の座標をI1とし、下側の印刷境界線M2の副走査方向の座標をI2とすると、印刷境界線M1,M2の間に形成される印刷領域Aの副走査方向の距離Ihは、Ih=I1−I2で示される。
なお、この距離Ihに対応する範囲を副走査方向の座標で見るときには、印刷可能高さIhと記載する場合がある。
Further, in order to set margins (margins) on both sides of the region in the frame Fr in the sub-scanning direction, virtual printing boundary lines M1 and M2 are provided on the inner side by a predetermined distance from the boundary lines B1 and B2.
At this time, if the upper printing boundary line M1 has the sub-scanning direction coordinate I1 and the lower printing boundary line M2 has the sub-scanning direction coordinate I2, the printing formed between the printing boundary lines M1 and M2. The distance Ih in the sub-scanning direction of the area A is represented by Ih = I1-I2.
Note that when the range corresponding to the distance Ih is viewed in coordinates in the sub-scanning direction, the printable height Ih may be described.
上側の余白の副走査方向の距離BL1はW1−I1であり、下側の余白の副走査方向の距離BL2はI2−W2である。
これらの余白の副走査方向の距離BL1、BL2はデフォルトで設定されてもよいし、枠Frの副走査方向の距離Whに応じて比率等を基準に設定されるものとしてもよい。
また、余白は、印刷に先立って、ユーザの入力によって設定されるものとしてもよい。
さらに、余白はゼロに設定されてもよく、この場合、印刷領域Aは境界線B1,B2の間の領域そのものとなる。
The distance BL1 of the upper margin in the sub-scanning direction is W1-I1, and the distance BL2 of the lower margin in the sub-scanning direction is I2-W2.
These margins BL1 and BL2 in the sub-scanning direction may be set by default, or may be set based on a ratio or the like according to the distance Wh of the frame Fr in the sub-scanning direction.
Further, the margin may be set by user input prior to printing.
Further, the margin may be set to zero. In this case, the print area A is the area between the boundary lines B1 and B2.
図3(c)は、印刷データの寸法及び座標を示している。
なお、図3(c)で示す「ABC」の文字列(印字データ)は、印刷装置1によって印刷される図形文字(文字、記号、マーク等)の印刷データの一例である。
印刷データにより設定されている、印刷する文字や画像の副走査方向の幅、すなわち印刷幅Chは、印刷データの上端の副走査方向の座標C1と下端の副走査方向の座標C2とを用いて、Ch=C1−C2で示される。
FIG. 3C shows the dimensions and coordinates of the print data.
The character string (print data) of “ABC” shown in FIG. 3C is an example of print data of graphic characters (characters, symbols, marks, etc.) printed by the
The width in the sub-scanning direction of the character or image to be printed, which is set by the print data, that is, the print width Ch is obtained by using the coordinate C1 in the sub-scanning direction at the upper end and the coordinate C2 in the sub-scanning direction at the lower end of the print data. , Ch = C1-C2.
次いで、制御部30が実行する各種処理を説明する。
なお、以下の処理は、印刷装置1が記録媒体上に配置されて、印刷装置1が記録媒体上を主走査方向に走査されているときの処理となり、そのときに印刷装置1が認識する副走査方向の最も下側はラインスキャナ16(画像取得部45)の下端の位置となる。
このため、以降の説明では、ラインスキャナ16の下端の副走査方向の座標S2が副走査方向の座標原点として取り扱われている点に留意されたい。
Next, various processes executed by the
The following processing is processing when the
For this reason, it should be noted that in the following description, the coordinate S2 in the sub-scanning direction at the lower end of the
制御部30は、ラインスキャナ16によって取得された画像に基づいて、印刷データの印刷幅Chが記録媒体の印刷領域A(図3(b)参照)内に収まっているかを判定する第1判定処理を行う。
Based on the image acquired by the
具体的には、ユーザによって印刷開始が指示され、印刷装置1の主走査方向への走査が開始されると、まず、制御部30は、ラインスキャナ16によって取得された画像に基づいて、記録媒体に予め設けられている主走査方向に沿った境界線B1,B2を検出する検出処理を行う。
Specifically, when printing is instructed by the user and scanning in the main scanning direction of the
続いて、境界線B1,B2を検出すると、制御部30は、上述した境界線B1,B2に対して余白を設けるように枠Fr内の領域の上側の印刷境界線M1と下側の印刷境界線M2を設定する領域設定処理を行い、印刷領域Aを定める。
Subsequently, when the boundary lines B1 and B2 are detected, the
そして、制御部30は、印刷幅Chが印刷境界線M1,M2間に収まっているかに基づいて、印刷データの印刷幅Chが記録媒体の印刷領域A内に収まっているかを判定する第1判定処理を行っている。
Then, the
ここで、上述した第1判定処理において、印刷幅Chが記録媒体の印刷領域A内に収まっていると判定される場合とは、印刷される文字列「ABC」が、図5(a)や図6(a)に示すように、図3を参照して説明した印刷領域A(座標I1と座標I2の間の領域)の副走査方向の中央に位置しない可能性があるものの、印刷領域Aからはみ出さないで印刷可能な状態にある。 Here, in the first determination process described above, when it is determined that the print width Ch is within the print area A of the recording medium, the character string “ABC” to be printed is shown in FIG. As shown in FIG. 6A, the print area A (the area between the coordinates I1 and I2) described with reference to FIG. The printer is ready to print without sticking out.
そこで、第1判定処理において、印刷幅Chが記録媒体の印刷領域A内に収まっていると判定された場合、制御部30は、印刷される文字列「ABC」が印刷領域Aの副走査方向の中央に位置するように印刷を行うための処理を行う。
Therefore, in the first determination process, when it is determined that the print width Ch is within the print area A of the recording medium, the
具体的には、制御部30は、印刷幅Chが記録媒体の印刷領域A内に収まっていると判定した場合、まず、印刷幅Chの上端(座標C1)と上側の印刷境界線M1(座標I1)の間の第1距離IC1と、印刷幅Chの下端(座標C2)と下側の印刷境界線M2(座標I2)の間の第2距離IC2と、を比較する第1比較処理を行う。
Specifically, when the
なお、第1比較処理において、第1距離IC1のほうが第2距離IC2より大きい場合、図5(a)に示すように、印刷される文字列「ABC」が印刷領域Aの副走査方向の下側に印刷される状態にあり、第2距離IC2のほうが第1距離IC1より大きい場合、図6(a)に示すように、印刷される文字列「ABC」が印刷領域Aの副走査方向の上側に印刷される状態にある。 In the first comparison process, when the first distance IC1 is larger than the second distance IC2, as shown in FIG. 5A, the character string “ABC” to be printed is below the sub-scanning direction of the print area A. When the second distance IC2 is larger than the first distance IC1, the printed character string “ABC” is printed in the sub-scanning direction of the print area A as shown in FIG. It is in a state of being printed on the upper side.
そこで、次に、制御部30は、印刷される文字列「ABC」が印刷領域Aの副走査方向の中央に印刷されるように、印刷幅Chを調整する第1印刷幅調整処理を行う。
Therefore, next, the
具体的には、第1印刷幅調整処理において、制御部30は、図5(b)及び図6(b)に示すように、第1距離IC1と第2距離IC2のうち、第1比較処理において距離が小さいと判定されたほうの距離を、距離が大きいと判定された距離に合わせるように、印刷幅Chを小さくする処理を行う。
Specifically, in the first print width adjustment process, the
例えば、図5(b)では、図5(a)に示すように、第1距離IC1のほうが第2距離IC2より大きいので、第2距離IC2が第1距離IC1と同じ距離となるように印刷幅Chを小さくする第1印刷幅調整処理が行われている。 For example, in FIG. 5B, as shown in FIG. 5A, since the first distance IC1 is larger than the second distance IC2, printing is performed so that the second distance IC2 is the same distance as the first distance IC1. A first print width adjustment process for reducing the width Ch is performed.
逆に、図6(b)では、図6(a)に示すように、第2距離IC2のほうが第1距離IC1より大きいので、第1距離IC1が第2距離IC2と同じ距離となるように印刷幅Chを小さくする第1印刷幅調整処理が行われている。 Conversely, in FIG. 6B, as shown in FIG. 6A, the second distance IC2 is larger than the first distance IC1, so that the first distance IC1 is the same distance as the second distance IC2. A first print width adjustment process for reducing the print width Ch is performed.
他方、上述した第1判定処理において、印刷幅Chが記録媒体の印刷領域A内に収まっていないと判定される場合とは、印刷される文字列「ABC」が、図7(a)や図8(a)に示すように、図3を参照して説明した印刷領域A(座標I1と座標I2の間の領域)からはみ出して印刷される状態にある。 On the other hand, in the case where it is determined in the first determination process described above that the print width Ch does not fall within the print area A of the recording medium, the character string “ABC” to be printed is shown in FIG. As shown in FIG. 8A, the print area A is printed out of the print area A (area between the coordinates I1 and I2) described with reference to FIG.
そこで、第1判定処理において、印刷幅Chが記録媒体の印刷領域A内に収まっていないと判定された場合、制御部30は、印刷される文字列「ABC」が印刷領域A内に印刷できるように、図7(b)及び図8(b)に示すように、印刷幅Chの一方の端部である上端(座標C1)と他方の端部である下端(座標C2)のうち、印刷境界線M1(座標I1),M2(座標I2)の間に位置しないほうの端部が印刷境界線M1(座標I1),M2(座標I2)の間に位置するように、印刷幅Chを小さくする第2印刷幅調整処理を行う。
なお、この第2印刷幅調整処理では、併せて、印刷領域A(座標I1と座標I2の間の領域)の副走査方向の中央に位置するように、印刷される文字列「ABC」が印刷できるように行われる。
Therefore, in the first determination process, when it is determined that the print width Ch does not fit in the print area A of the recording medium, the
In the second print width adjustment process, the character string “ABC” to be printed is printed so as to be positioned at the center in the sub-scanning direction of the print area A (area between the coordinates I1 and I2). It is done as you can.
具体的には、第2印刷幅調整処理において、制御部30は、図8(a)に示すように、印刷幅Chの上端(座標C1)が印刷境界線M1(座標I1),M2(座標I2)の間に位置しない場合(つまりC1>I1の場合)、図8(b)に示すように、印刷幅Chの上端(座標C1)と上側の印刷境界線M1(座標I1)との間の第1距離IC1が、印刷幅Chの下端(座標C2)と下側の印刷境界線M2(座標I2)との間の第2距離IC2と同じ距離となるように印刷幅Chを小さくする。
Specifically, in the second print width adjustment process, as shown in FIG. 8A, the
なお、この処理は、印刷幅Chの上端(座標C1)を印刷境界線M1(座標I1),M2(座標I2)の間に位置させることを前提とする処理であるから、印刷境界線M1(座標I1)を基準として、第1距離IC1が第2距離IC2と同じ距離となる印刷境界線M1(座標I1)よりも下側の座標を印刷幅Chの上端(座標C1)として与える処理となる。 Since this process is based on the premise that the upper end (coordinate C1) of the print width Ch is positioned between the print boundary lines M1 (coordinates I1) and M2 (coordinates I2), the print boundary line M1 ( With the coordinate I1) as a reference, the first distance IC1 is the same as the second distance IC2, and the lower coordinate of the printing boundary line M1 (coordinate I1) is given as the upper end (coordinate C1) of the printing width Ch. .
逆に、制御部30は、図7(a)に示すように、印刷幅Chの下端(座標C2)が印刷境界線M1(座標I1),M2(座標I2)の間に位置しない場合(つまりC2<I2の場合)、図7(b)に示すように、第2距離IC2が第1距離IC1と同じ距離となるように印刷幅Chを小さくする。
Conversely, as shown in FIG. 7A, the
なお、この処理においても、印刷幅Chの下端(座標C2)を印刷境界線M1(座標I1),M2(座標I2)の間に位置させることを前提とする処理であるから、印刷境界線M2(座標I2)を基準として、第2距離IC2が第1距離IC1と同じ距離となる印刷境界線M2(座標I2)よりも上側の座標を印刷幅Chの下端(座標C2)に与える処理となる。 In this process, the printing boundary line M2 is a process based on the premise that the lower end (coordinate C2) of the printing width Ch is positioned between the printing boundary lines M1 (coordinates I1) and M2 (coordinates I2). Using (coordinate I2) as a reference, the second distance IC2 is the same distance as the first distance IC1, and the upper coordinate of the printing boundary line M2 (coordinate I2) is given to the lower end (coordinate C2) of the printing width Ch. .
以上のような第1印刷幅調整処理又は第2印刷幅調整処理の結果に基づいて、次に、制御部30(特に印刷サイズ演算部32)は、第1印刷幅調整処理又は第2印刷幅調整処理で小さくされた印刷幅Chから印刷データの印刷サイズ(フォント)を算出する。 Based on the result of the first print width adjustment process or the second print width adjustment process as described above, the control unit 30 (especially the print size calculation unit 32) then performs the first print width adjustment process or the second print width. The print size (font) of the print data is calculated from the print width Ch reduced by the adjustment process.
そして、印刷サイズ(フォント)が決まると、その印刷サイズ(フォント)で記録媒体に印刷する処理を行うことになるが、上述のように、印刷幅Chを小さくする処理によって、印刷される文字列「ABC」が図3を参照して説明した印刷領域A(座標I1と座標I2の間の領域)の副走査方向の中央に印刷されるようにすると、印刷サイズ(フォント)が小さくなりすぎる場合がある。 Then, when the print size (font) is determined, the print size (font) is printed on the recording medium. As described above, the character string to be printed by the process of reducing the print width Ch is performed. When “ABC” is printed at the center in the sub-scanning direction of the print area A (area between the coordinates I1 and I2) described with reference to FIG. 3, the print size (font) becomes too small. There is.
そこで、制御部30は、算出した印刷サイズ(フォント)があらかじめ設定されている最低値のサイズ以上の場合、主走査方向への走査が進み、移動量検出部44(光学式センサ15)による移動量の検出結果が予め設定されている移動量に到達(ヘッド部14が印刷を開始すべき位置に到達)すると、算出した印刷サイズで記録媒体への印刷を印刷部43に開始させる。
他方、算出した印刷サイズが設定されているサイズ未満の場合、制御部30は、記録媒体への印刷を行わず、ユーザインターフェイス18(エラー出力部)にエラーメッセージを出力する。
Therefore, when the calculated print size (font) is equal to or larger than the preset minimum value, the
On the other hand, if the calculated print size is less than the set size, the
ところで、印刷を行う記録媒体上に、必ず、枠Frが設けられているとは限らない。
そこで、制御部30は、主走査方向への走査が進み、移動量検出部44(光学式センサ15)による移動量の検出結果が予め設定されている移動量に到達(つまり、ヘッド部14が印刷を開始すべき位置に到達)しても、画像取得部45(ラインスキャナ16)が取得する画像から上側の境界線B1(図3(b)参照)及び下側の境界線B2(図3(b)参照)が検出できなかった場合、予め設定されている印刷データに従って記録媒体への印刷を印刷部43に開始させる。
Incidentally, the frame Fr is not always provided on the recording medium on which printing is performed.
Therefore, the
なお、枠Frが十分に大きい場合等でも、枠Frが検出できない場合があるが、この場合にも、制御部30は、予め設定されている印刷データに従って記録媒体への印刷を印刷部43に開始させることになる。
しかしながら、このように枠Frが十分に大きい場合、枠Frからはみ出すように印刷されるおそれは低く、かつ、枠Frに対して中寄するように印刷する需要も低いことから予め設定されている印刷データに従って記録媒体への印刷が行われても問題はない。
Even when the frame Fr is sufficiently large, the frame Fr may not be detected. In this case as well, the
However, when the frame Fr is sufficiently large as described above, there is a low possibility that printing is performed so as to protrude from the frame Fr, and the demand for printing so as to be centered on the frame Fr is low, so that the frame Fr is set in advance. There is no problem even if printing on the recording medium is performed according to the print data.
[印刷装置の動作]
既に、基本的な処理に関しては説明を行ったが、図4A及び図4Bの印刷装置1の動作を示すフローチャートを参照しながら、再度、印刷装置1の動作について詳細に説明する。
[Printer operation]
Although the basic processing has already been described, the operation of the
なお、図4Aのフローチャートに従った動作が開始される前に、通信インターフェイス47を通じて印刷データが印刷装置1に読み込まれており、RAM42内に印刷データが移動量に応じた印刷バッファとして記憶されているものとする。
このため、移動量に応じた印刷バッファの内容が光学式センサ15(移動量検出部44)で検出した移動量に応じて、順次、ヘッド部14に転送されることで記録媒体に対する印刷が実行できる状態にある。
Before the operation according to the flowchart of FIG. 4A is started, print data is read into the
For this reason, the contents of the print buffer corresponding to the movement amount are sequentially transferred to the
以下、印刷装置1の動作について具体的に説明する。
ユーザによって電源ボタン20が操作されると、印刷装置1が起動し、ステップ101において、制御部30は、印刷指示ボタン19が操作されるまで繰り返し、印刷指示ボタン19が操作されたか否かを判定し続けるループ処理を開始する。
Hereinafter, the operation of the
When the
そして、ユーザが、印刷装置1の印刷開始位置マーカ17を印刷開始位置にセットし、印刷指示ボタン19を操作すると、ステップ102以降の処理に進むことになる。
Then, when the user sets the print
ステップ102において、制御部30は、光学式センサ15(移動量検出部44)に印刷装置1の主走査方向の移動量の検出を開始させる。
In
次いで、制御部30は、移動量の検出によって移動が開始されたことを検知すると、ステップ103において、ラインスキャナ16(画像取得部45)の画像に基づく検出処理の結果に基づいて、枠Frを検出したか否かを判定する。
つまり、先に述べた境界線B1,B2を検出する検出処理で上述した境界線B1,B2に該当する平行な線を検出したか否かを判定する。
Next, when the
That is, it is determined whether or not a parallel line corresponding to the boundary lines B1 and B2 described above has been detected in the detection process for detecting the boundary lines B1 and B2.
なお、ユーザは、枠Frがある場合、その枠Frに合わせるように印刷装置1を配置するため、枠Frが存在する場合、印刷装置1の移動が始まるとすぐに枠Frが検出されることになるので、移動量の検出によって移動が開始されたことを検知すると、すぐにこの判定が行われる。
If the user has a frame Fr, the user places the
そして、ステップ103で枠Frを検出したと判定された場合、制御部30は、ステップ111以降の処理を行い、枠Frを検出できなかったと判定された場合、ステップ104以降の処理を行う。
If it is determined in
ここで、ステップ104に処理が進む場合、枠Frが検出されていないため、制御部30は、予め設定されている印刷データに従って記録媒体への印刷を印刷部43に開始させる処理を実行することになる。
Here, when the process proceeds to step 104, since the frame Fr is not detected, the
具体的には、ステップ104において、制御部30は、予め指定された任意の印刷サイズをセットする。
そして、制御部30は、ステップ105において、ヘッド部14と印刷開始位置マーカ17との間の距離の分だけ、ヘッド部14に印刷を行わせない空送りを実行し、その空送りが終了すると、ステップ106において、制御部30は、印刷部43であるヘッド部14に、ステップ104で設定された文字サイズで印刷を開始させ、ステップ107において、制御部30は、印刷が終了するのを確認(例えば、全ての印刷バッファがなくなったのを確認)すると、一連の印刷手順が終了する。
Specifically, in
Then, in
一方、ステップ103からステップ111に進む場合、ラインスキャナ16(画像取得部45)の画像に基づく検出処理で主走査方向に沿った平行な線(境界線B1及び境界線B2)が検出されているので、制御部30は、ステップ111において、検出された枠Frの副走査方向の距離Wh(高さWhと記載する場合がある)を算出する。
次いで、制御部30は、ステップ112において、枠Frの高さWhに対して余白(マージン)を考慮した印刷可能高さIhを算出、つまり、枠Frの高さWhに対して余白(マージン)を考慮した印刷境界線M1,M2を設定することで印刷領域Aを定める領域設定処理を行う。
なお、印刷境界線M1,M2を設定とは、副走査方向における印刷境界線M1の座標I1と印刷境界線M2の座標I2を設定することである。
On the other hand, when proceeding from
Next, in
Note that setting the printing boundary lines M1 and M2 means setting the coordinates I1 of the printing boundary line M1 and the coordinates I2 of the printing boundary line M2 in the sub-scanning direction.
次いで、ステップ113において、制御部30は、印刷境界線M1,M2と印刷幅Chの上端、下端との間の距離(第1距離IC1,第2距離IC2)を算出する。
つまり、印刷境界線M1(座標I1)と印刷幅Chの上端(座標C1)の間の第1距離IC1、及び、印刷境界線M2(座標I2)と印刷幅Chの下端(座標C2)の間の第2距離IC2を算出する。
Next, in
That is, the first distance IC1 between the printing boundary line M1 (coordinate I1) and the upper end (coordinate C1) of the printing width Ch, and between the printing boundary line M2 (coordinate I2) and the lower end (coordinate C2) of the printing width Ch. The second distance IC2 is calculated.
そして、ステップ114において、制御部30は、印刷データの印刷幅Chが印刷可能高さIh以下であるかどうかを判定する第1比較処理を行う。
In
具体的には、既に説明したように、上側の印刷境界線M1の座標I1と印刷幅Chの上端の座標C1、下側の印刷境界線M2の座標I2と印刷幅Chの下端の座標C2を、それぞれ比較し、I1≧C1かつC2≧I2である場合(図5(a)及び図6(a)参照)、印刷データの印刷幅Chは印刷可能高さIhに収まっていると判定され、処理はステップ115に進む。 Specifically, as described above, the coordinates I1 of the upper printing boundary M1 and the coordinates C1 of the upper end of the printing width Ch, the coordinates I2 of the lower printing boundary M2, and the coordinates C2 of the lower end of the printing width Ch are set as follows. When I1 ≧ C1 and C2 ≧ I2 (see FIGS. 5A and 6A), it is determined that the print width Ch of the print data is within the printable height Ih. The process proceeds to step 115.
逆に、I1≧C1かつC2≧I2でない場合(図7(a)及び図8(a)参照)には、印刷データの印刷幅Chは印刷可能高さIhに収まっていないと判定され、処理はステップ121(図4B参照)に進む。 Conversely, if I1 ≧ C1 and C2 ≧ I2 are not satisfied (see FIGS. 7A and 8A), it is determined that the print width Ch of the print data does not fall within the printable height Ih, and the process Advances to step 121 (see FIG. 4B).
図4Aに示すステップ114の判定の結果、ステップ115に進むと、制御部30は、ステップ115の処理として、上側の印刷境界線M1と印刷幅Chの上端との間の第1距離IC1と、下側の印刷境界線M2と印刷幅Chの下端との間の第2距離IC2とを、比較する。
As a result of the determination in
比較の結果、図5(a)のように、第1距離IC1が第2距離IC2以上である場合には、制御部30は、ステップ116において、印刷幅Chの下端の座標C2を、下側の印刷境界線M2の座標I2に第1距離IC1だけ加算した値とし、第2距離IC2が第1距離IC1と等しくなる図5(b)に示した状態となるように、印刷幅Chを小さくする第1印刷幅調整処理を行う。
そして、このように印刷幅Chを小さくすると、印刷幅Chは印刷領域Aの副走査方向の中央(印刷境界線M1,M2の間の副走査方向の中央)に位置し、印刷データが印刷領域Aの副走査方向の中央に印刷できる状態になる。
If the first distance IC1 is equal to or greater than the second distance IC2 as shown in FIG. 5A as a result of the comparison, the
When the print width Ch is thus reduced, the print width Ch is positioned at the center in the sub-scanning direction of the print area A (the center in the sub-scanning direction between the print boundary lines M1 and M2), and the print data is printed in the print area. A can be printed at the center in the sub-scanning direction of A.
他方、ステップ115における比較の結果、図6(a)のように、第1距離IC1が第2距離IC2未満である場合には、制御部30は、ステップ117において、印刷幅Chの上端の座標C1を、上側の印刷境界線M1の座標I1から第2距離IC2だけ減算した値とし、第1距離IC1が第2距離IC2と等しくなる図6(b)に示した状態となるように、印刷幅Chを小さくする第1印刷幅調整処理を行う。
そして、このように印刷幅Chを小さくすると、印刷幅Chは印刷領域Aの副走査方向の中央(印刷境界線M1,M2の間の副走査方向の中央)に位置し、印刷データが印刷領域Aの副走査方向の中央に印刷できる状態になる。
On the other hand, as a result of the comparison in
When the print width Ch is thus reduced, the print width Ch is positioned at the center in the sub-scanning direction of the print area A (the center in the sub-scanning direction between the print boundary lines M1 and M2), and the print data is printed in the print area. A can be printed at the center in the sub-scanning direction of A.
上述したステップ116又はステップ117を経て、手順はステップ118に進む。
このステップ118では、制御部30は、ステップ116又はステップ117で修正された印刷幅Chの座標(上端の座標C1及び下端の座標C2)に基づく印刷幅Chが設定値以上か否かを判定する。
つまり、修正された印刷幅Chの座標(上端の座標C1及び下端の座標C2)から、具体的に、印刷幅Chを求めて、その印刷幅Chに印刷できる印刷データの印刷サイズ(印刷する図形文字のフォント)を算出して、その印刷サイズ(フォント)が最低値としてあらかじめ設定されているサイズ(フォント)以上か否かを判定する。
The procedure proceeds to step 118 through
In
That is, the print width Ch is specifically obtained from the corrected coordinates of the print width Ch (the upper end coordinates C1 and the lower end coordinates C2), and the print size of the print data (printed figure to be printed) can be printed on the print width Ch. Character font) is calculated, and it is determined whether the print size (font) is equal to or larger than the size (font) set in advance as the minimum value.
そして、印刷サイズ(フォント)が最低値としてあらかじめ設定されているサイズ(フォント)以上の場合には、ステップ119に進み、制御部30は、ステップ119において、算出した印刷サイズ(フォント)の印刷データを印刷するためのヘッド部14に対する座標を設定する文字情報変更処理を行う。
その後、制御部30は、ステップ105において、先に説明したのと同様に、所定の距離だけ空送りを実行した後、ステップ106及びステップ107において印刷開始及び印刷終了を実行する。
If the print size (font) is equal to or larger than the size (font) set in advance as the minimum value, the process proceeds to step 119, and the
After that, the
この結果、何もしなければ、図5(a)及び図6(a)に例示するように、印刷結果が印刷領域Aの上下方向のいずれかに偏ることになる場合でも、図5(b)及び図6(b)に例示するように、印刷領域Aの副走査方向の中央に位置するきれいな印刷を実現することができる。 As a result, if nothing is done, even if the printing result is biased in one of the vertical directions of the printing area A as illustrated in FIGS. 5A and 6A, FIG. As illustrated in FIG. 6B and FIG. 6B, it is possible to realize clean printing located in the center of the printing area A in the sub-scanning direction.
他方、ステップ116又はステップ117で修正された印刷幅Chの座標(上端の座標C1及び下端の座標C2)に基づく印刷幅Chが設定されたサイズ未満である場合、つまり、算出した印刷サイズ(フォント)が最低値としてあらかじめ設定されているサイズ(フォント)未満である場合、制御部30は、ステップ120において、エラー出力部にエラーメッセージを出力するエラー警告の動作を行ったうえで、印刷を行わず終了する。
On the other hand, if the print width Ch based on the coordinates of the print width Ch corrected in
次に、ステップ114の判定が印刷データの印刷幅Chが印刷可能高さIhに収まっていない判定となり、処理がステップ121に進む場合について図4Bを参照しながら説明する。
Next, the determination in
ステップ121では、制御部30は、下側の印刷境界線M2の座標I2が印刷幅Chの下端の座標C2よりも上側に位置するか否かを判定する。
つまり、印刷データが印刷領域Aの下方にはみ出る状態であるか否かを判定する。
In
That is, it is determined whether or not the print data is in a state of protruding below the print area A.
比較の結果、図7(a)のように、座標I2が座標C2以上である場合には、制御部30は、ステップ122において、印刷幅Chの下端の座標C2を、下側の印刷境界線M2の座標I2から第1距離IC1だけ加算した値とし、印刷幅Chの下端の座標C2が印刷境界線M1(座標I1)と印刷境界線M2(座標I2)の間に位置するとともに、第2距離IC2が第1距離IC1と等しくなる図7(b)に示した状態となるように、印刷幅Chを小さくする第2印刷幅調整処理を行う。
そして、このように印刷幅Chを小さくすると、印刷幅Chは印刷領域Aの副走査方向の中央(印刷境界線M1,M2の間の副走査方向の中央)に位置し、印刷データが印刷領域Aの副走査方向の中央に印刷できる状態になる。
As a result of the comparison, if the coordinate I2 is equal to or greater than the coordinate C2 as shown in FIG. 7A, the
When the print width Ch is thus reduced, the print width Ch is positioned at the center in the sub-scanning direction of the print area A (the center in the sub-scanning direction between the print boundary lines M1 and M2), and the print data is printed in the print area. A can be printed at the center in the sub-scanning direction of A.
他方、ステップ121に進む状態とは、印刷データが印刷領域Aからはみ出る状態にあるときであり、ステップ121の比較の結果、座標I2が座標C2未満である場合には、印刷データが先ほどとは逆方向にはみ出る状態、つまり、図8(a)のように、印刷データが印刷領域Aの上側にはみ出る状態になっている。
On the other hand, the state of proceeding to step 121 is when the print data is in a state of protruding from the print area A. If the result of comparison in
そこで、制御部30は、ステップ123において、印刷幅Chの上端の座標C1を、上側の印刷境界線M1の座標I1から第2距離IC2だけ減算した値とし、印刷幅Chの上端の座標C1が印刷境界線M1(座標I1)と印刷境界線M2(座標I2)の間に位置するとともに、第1距離IC1が第2距離IC2と等しくなる図8(b)に示した状態となるように、印刷幅Chを小さくする第2印刷幅調整処理を行う。
Therefore, in
そして、このように印刷幅Chを小さくすると、印刷幅Chは印刷領域Aの副走査方向の中央(印刷境界線M1,M2の間の副走査方向の中央)に位置し、印刷データが印刷領域Aの副走査方向の中央に印刷できる状態になる。 When the print width Ch is thus reduced, the print width Ch is positioned at the center in the sub-scanning direction of the print area A (the center in the sub-scanning direction between the print boundary lines M1 and M2), and the print data is printed in the print area. A can be printed at the center in the sub-scanning direction of A.
上述したステップ122又はステップ123を経て、手順はステップ124に進む。
ここで、ステップ124に進む状態のときには、先に説明したステップ118に進む状態と全く同じ状態になっている。
したがって、ステップ118と同様の判定をステップ124で行い、その結果、ステップ125に進む場合には、ステップ125でステップ119と同様の処理が実行され、続いて、ステップ105、106及び107が実行されて印刷が終了する。
The procedure proceeds to step 124 through
Here, when the state proceeds to step 124, the state is exactly the same as the state proceeds to step 118 described above.
Therefore, if the same determination as in
この結果、何もしなければ、図7(a)及び図8(a)に例示するように、印刷結果が印刷領域Aの上下方向のいずれかに偏ることになる場合でも、図7(b)及び図8(b)に例示するように、印刷領域Aの副走査方向の中央に位置するきれいな印刷を実現することができる。 As a result, if nothing is done, even if the printing result is biased in either the vertical direction of the printing area A as illustrated in FIGS. 7A and 8A, FIG. As illustrated in FIG. 8B, it is possible to realize clean printing located in the center of the printing area A in the sub-scanning direction.
また、ステップ126に進む場合には、ステップ120と同様のエラー処理が実行される。
When the process proceeds to step 126, error processing similar to that in
なお、ステップ103で枠Frを検出したと判定された場合で、例えば、図9(a)のように、主走査方向に沿った線が3本以上検出されているときには、ヘッド部14の副走査方向における中央の座標、つまり(P1+P2)/2で求まる座標に最も近い2本の線を主走査方向に沿った枠Frの線であるものとして、図4A及び図4Bで説明したのと、同様の処理を実行するようにすればよい。
If it is determined in
そうすれば、何もしなければ、図9(a)に示すような印刷になるところを、図9(b)に示すような印刷とすることができ、図9に示したような表形式の記入欄を有する記録媒体に対しても適切な位置に見映え良く印刷することができる。 Then, if nothing is done, the printing shown in FIG. 9A can be changed to the printing shown in FIG. 9B, and the table format shown in FIG. Even a recording medium having an entry field can be printed with a good appearance at an appropriate position.
以上、第1実施形態について説明してきたが、例えば、第1判定処理によって、印刷データの印刷幅Chが記録媒体の印刷領域A内に収まっていない場合にエラーメッセージを出力するようにして記録媒体上への印刷装置1のセットをユーザにやり直すように促すようにしてもよい。
The first embodiment has been described above. For example, when the print width Ch of the print data is not within the print area A of the recording medium by the first determination process, an error message is output so that the recording medium is output. The user may be prompted to set up the
また、上記第1実施形態では、記録媒体に設けられた枠Frを基準に余白をとるようにした領域、つまり上下の印刷境界線M1,M2の間の領域が、印刷領域Aとして設定されるものとして説明した。
しかしながら、先にも触れたとおり、記録媒体に設けられた枠Frの上下の位置を表す一方の境界線B1と他方の境界線B2の間の領域を印刷領域Aとして設定するようにしてもよい。
In the first embodiment, an area in which a margin is taken with reference to the frame Fr provided on the recording medium, that is, an area between the upper and lower printing boundary lines M1 and M2 is set as the printing area A. Explained as a thing.
However, as described above, an area between one boundary line B1 and the other boundary line B2 representing the upper and lower positions of the frame Fr provided on the recording medium may be set as the print area A. .
さらに、上記第1実施形態では、ヘッド部14を備えるインクカートリッジ13が印刷装置1に固定されているものとして説明した。
しかしながら、インクカートリッジ13が副走査方向に所定の幅だけスライドできるように構成されていてもよい。
例えば、LMガイドをスライド軸としてステッピングモータでスライド可能に制御されるインクカートリッジ13を装着する装着部を設けるようにしてもよい。
Further, in the first embodiment, the description has been given assuming that the
However, the
For example, a mounting portion for mounting the
このように、インクカートリッジ13が副走査方向にスライドできる場合、ユーザが印刷装置1を境界線B1,B2に対して斜めに移動させたとき、画像取得部45(ラインスキャナ16)で取得する画像から、印刷装置1の主走査方向が境界線B1,B2に沿っていないことを検出させ、そのズレを補正するようにインクカートリッジ13をスライドさせる制御を行えば、印刷データが枠Frに対して傾いて(つまり、右上がり又は右下がりに)印刷されることを防止することが可能となる。
As described above, when the
さらに、ユーザが印刷装置1を境界線B1,B2に対して斜めに移動させたときの補正を、上述のようにインクカートリッジ13をスライドさせることで行うのではなく、印刷データの枠Frに対する傾きを小さくするように、枠Frに対する印刷データの傾き度合に応じて、印刷データの座標を補正するようにしてもよい。
Further, the correction when the user moves the
加えて、上記第1実施形態では、境界線B1,B2に対して印刷結果が上下方向の中央に印刷される場合について示してきたが、必ずしも、境界線B1,B2に対して印刷結果が上下方向の中央になる必要はない。 In addition, in the first embodiment, the case where the printing result is printed at the center in the vertical direction with respect to the boundary lines B1 and B2 has been shown. However, the printing result is not necessarily up and down with respect to the boundary lines B1 and B2. There is no need to be in the middle of the direction.
例えば、ノートの罫線間に印刷を行う場合等では罫線間の真ん中に文字が印刷されるよりもやや下寄りに文字が印刷されるほうが読みやすいこともある。
したがって、印刷を行う位置は、必ずしも、境界線B1,B2に対して上下方向の中央でなくてもよい。
For example, when printing is performed between ruled lines of a notebook, it may be easier to read if characters are printed slightly below the middle than between the ruled lines.
Accordingly, the printing position is not necessarily the center in the vertical direction with respect to the boundary lines B1 and B2.
そのための具体的な方法は、いくつもあるが、例えば、一例としては、図3を参照して説明し、かつ、図4Aのステップ112で説明した境界線B1,B2に対して余白を設けるように枠Fr内の領域の上側の印刷境界線M1と下側の印刷境界線M2を設定する領域設定処理において、境界線B1に対して設ける余白よりも境界線B2に対して設ける余白を少なく設定、つまり、下側の印刷境界線M2を境界線B2寄りに設定するようにすれば、これまで説明した処理手順そのままであっても、境界線B1,B2に対して境界線B2寄りに印刷が行われることになるため、ノートの罫線の真ん中よりもやや下寄りに印刷を行うようにすることができる。
There are a number of specific methods for that purpose. For example, as an example, margins are provided for the boundary lines B1 and B2 described with reference to FIG. 3 and described in
(第2実施形態)
第1実施形態では具体的な事例として枠Frが用紙等の記録媒体に設けられている場合について詳細に説明したが、記録媒体によっては枠Frではなく、下線ULが設けられている場合もあり、以下では、記録媒体に下線ULが設けられている場合について説明する。
(Second Embodiment)
In the first embodiment, the case where the frame Fr is provided on a recording medium such as paper has been described in detail as a specific example. However, depending on the recording medium, an underline UL may be provided instead of the frame Fr. Hereinafter, a case where the recording medium is provided with an underline UL will be described.
なお、第2実施形態においても、印刷装置1の構成は、第1実施形態と同様であり、下線ULを対象とした処理が行われる点が異なるだけのため、印刷装置1の全体構成等の説明は省略する。
Also in the second embodiment, the configuration of the
[制御部の実行する処理]
第2実施形態に係る制御部30の実行する処理について、具体的に説明するのに先立って、まず、記録媒体上に設けられた下線UL等に関する説明を行い、その後、制御部30が実行する各種処理について詳細に説明する。
[Processes executed by the control unit]
Prior to specific description of processing executed by the
図10では、予め記録媒体上に設けられている下線UL及び文字列CSに基づいて決定される印刷領域Dの寸法及び座標を示している。
例えば、下線ULは、用紙等の記録媒体に設けられ、氏名や住所等を記入する記入領域の下側境界線を示す。
また、下線ULの上方に主走査方向に沿う文字列CSが存在する場合は、文字列CSと下線ULとの間が記入領域(下線領域ともいう)となる。
FIG. 10 shows the dimensions and coordinates of the print area D determined based on the underline UL and the character string CS provided in advance on the recording medium.
For example, the underline UL is provided on a recording medium such as paper, and indicates a lower boundary line of an entry area in which a name, an address, and the like are entered.
Further, when the character string CS along the main scanning direction exists above the underline UL, a space between the character string CS and the underline UL is an entry area (also referred to as an underline area).
このような下線UL及び文字列CSに基づいて印刷領域Dを決定する場合は、まず、文字列CSの下端に沿う仮想線を上側の境界線B1、下線ULの上端を下側の境界線B2とする。
また、境界線B1の副走査方向の座標をK1とし、境界線B2の副走査方向の座標をK2とすると、境界線B1,B2の間の距離Khは、Kh=K1−K2で示される。
When the print region D is determined based on the underline UL and the character string CS, first, an imaginary line along the lower end of the character string CS is set as the upper boundary line B1, and the upper end of the lower line UL is set as the lower boundary line B2. And
Further, assuming that the coordinate in the sub-scanning direction of the boundary line B1 is K1, and the coordinate in the sub-scanning direction of the boundary line B2 is K2, the distance Kh between the boundary lines B1 and B2 is represented by Kh = K1-K2.
さらに、文字列CSと下線ULとの間の領域の副走査方向の両側に余白(マージン)を設定するために、境界線B1,B2から所定の距離だけ内側に仮想的な印刷境界線M1,M2を設ける。
このとき、上側の印刷境界線M1の副走査方向の座標をI1とし、下側の印刷境界線M2の副走査方向の座標をI2とすると、印刷境界線M1,M2の間に形成される印刷領域Dの副走査方向の距離Ihは、Ih=I1−I2で示される。
なお、この距離Ihに対応する範囲を副走査方向の座標で見るときには、印刷可能高さIhと記載する場合がある。
Furthermore, in order to set margins (margins) on both sides in the sub-scanning direction of the region between the character string CS and the underline UL, virtual print boundary lines M1, M1 are set inward by a predetermined distance from the boundary lines B1, B2. M2 is provided.
At this time, if the upper printing boundary line M1 has the sub-scanning direction coordinate I1 and the lower printing boundary line M2 has the sub-scanning direction coordinate I2, the printing formed between the printing boundary lines M1 and M2. The distance Ih in the sub-scanning direction of the region D is represented by Ih = I1-I2.
Note that when the range corresponding to the distance Ih is viewed in coordinates in the sub-scanning direction, the printable height Ih may be described.
上側の余白の副走査方向の距離BL3はK1−I1であり、下側の余白の副走査方向の距離BL4はI2−K2である。
これらの余白の副走査方向の距離BL3、BL4は、デフォルトで設定されてもよいし、距離Khに応じて比率等を基準に設定されるものとしてもよい。
また、余白は、印刷に先立って、ユーザの入力によって設定されるものとしてもよい。
さらに、余白はゼロに設定されてもよく、この場合、印刷領域Dは境界線B1,B2の間の領域そのものとなる。
The distance BL3 in the sub-scanning direction of the upper margin is K1-I1, and the distance BL4 in the sub-scanning direction of the lower margin is I2-K2.
These margins BL3 and BL4 in the sub-scanning direction may be set by default, or may be set based on a ratio or the like according to the distance Kh.
Further, the margin may be set by user input prior to printing.
Further, the margin may be set to zero. In this case, the print area D is the area between the boundary lines B1 and B2.
次いで、第2実施形態の制御部30が実行する各種処理を説明する。
なお、以下の処理は、印刷装置1が記録媒体上に配置されて、印刷装置1が記録媒体上を主走査方向に走査されているときの処理となり、そのときに印刷装置1が認識する副走査方向の最も下側はラインスキャナ16(画像取得部45)の下端の位置となる。
このため、以降の説明では、ラインスキャナ16の下端の副走査方向の座標S2が副走査方向の座標原点として取り扱われている点に留意されたい。
Next, various processes executed by the
The following processing is processing when the
For this reason, it should be noted that in the following description, the coordinate S2 in the sub-scanning direction at the lower end of the
制御部30は、ラインスキャナ16によって取得された画像に基づいて、印刷データにより設定されている印刷する文字や画像の副走査方向の幅である印刷幅Chが記録媒体の印刷領域D(図10参照)内に収まっているかを判定する第1判定処理を行う。
Based on the image acquired by the
具体的には、ユーザによって印刷開始が指示され、印刷装置1の主走査方向への走査が開始されると、まず、制御部30は、ラインスキャナ16によって取得された画像に基づいて、記録媒体に予め設けられている主走査方向に沿った文字列CSの下端を上側の境界線B1(一方の境界線)として定める一方の境界線決定処置と、下線ULの上端を下側の境界線B2(他方の境界線)として検出する検出処理とを行う。
Specifically, when printing is instructed by the user and scanning in the main scanning direction of the
続いて、境界線B1,B2を検出すると、制御部30は、上述した境界線B1,B2に対して余白を設けるように上側の印刷境界線M1と下側の印刷境界線M2を設定する領域設定処理を行い、印刷領域Dを定める。
Subsequently, when the boundary lines B1 and B2 are detected, the
そして、制御部30は、印刷幅Chが印刷境界線M1,M2間に収まっているかに基づいて、印刷データの印刷幅Chが記録媒体の印刷領域D内に収まっているかを判定する第1判定処理を行っている。
Then, the
ここで、上述した第1判定処理において、印刷幅Chが記録媒体の印刷領域D内に収まっていると判定される場合とは、印刷される文字列「ABC」が、図12や図13(a)に示すように、図10を参照して説明した印刷領域D(座標I1と座標I2の間の領域)の副走査方向の中央に位置しない可能性があるものの、印刷領域Dからはみ出さないで印刷可能な状態にある。 Here, in the first determination process described above, when the print width Ch is determined to be within the print area D of the recording medium, the character string “ABC” to be printed is shown in FIG. As shown in a), the print area D described with reference to FIG. 10 (the area between the coordinates I1 and I2) may not be located in the center in the sub-scanning direction, but protrudes from the print area D. The printer is ready for printing.
そこで、第1判定処理において、印刷幅Chが記録媒体の印刷領域D内に収まっていると判定された場合、制御部30は、見栄えがよくなるように、印刷される文字列「ABC」が印刷領域Dの副走査方向の中央又は下寄りに位置するように印刷を行うための処理を行う。
Therefore, in the first determination process, when it is determined that the print width Ch is within the print area D of the recording medium, the
具体的には、制御部30は、印刷幅Chが記録媒体の印刷領域D内に収まっていると判定した場合、まず、印刷幅Chの上端(座標C1)と上側の印刷境界線M1(座標I1)の間の第1距離IC1と、印刷幅Chの下端(座標C2)と下側の印刷境界線M2(座標I2)の間の第2距離IC2と、を比較する第1比較処理を行う。
Specifically, when the
なお、第1比較処理において、第1距離IC1のほうが第2距離IC2より大きい場合、図12に示すように、印刷される文字列「ABC」が印刷領域Dの副走査方向の下側に印刷される状態にあり、第2距離IC2のほうが第1距離IC1より大きい場合、図13(a)に示すように、印刷される文字列「ABC」が印刷領域Dの副走査方向の上側に印刷される状態にある。 In the first comparison process, when the first distance IC1 is larger than the second distance IC2, the character string “ABC” to be printed is printed on the lower side of the print area D in the sub-scanning direction as shown in FIG. When the second distance IC2 is larger than the first distance IC1, the character string “ABC” to be printed is printed on the upper side of the print area D in the sub-scanning direction as shown in FIG. Is in a state of being
そこで、次に、制御部30は、図13(a)に示すように、第2距離IC2のほうが第1距離IC1より大きい場合、印刷される文字列「ABC」が印刷領域Dの副走査方向の中央に印刷されるように、印刷幅Chを調整する第1印刷幅調整処理を行う。
Therefore, next, as shown in FIG. 13A, the
具体的には、第1印刷幅調整処理において、制御部30は、図13(b)に示すように、第1比較処理で第1距離IC1が第2距離IC2より小さい場合、第1距離IC1を第2距離IC2に合わせるように、印刷幅Chを小さくする処理を行う。
Specifically, in the first print width adjustment process, as illustrated in FIG. 13B, the
このように、第1距離IC1が第2距離IC2と等しくなるように印刷幅Chを小さくすると、図13(a)のように、印刷される文字列「ABC」が印刷領域Dの上側寄りに印刷される状態から図13(b)に示すように、印刷される文字列「ABC」が印刷領域Dの中央に印刷される状態にすることができる。 Thus, when the print width Ch is reduced so that the first distance IC1 is equal to the second distance IC2, the printed character string “ABC” is closer to the upper side of the print area D as shown in FIG. From the printed state, as shown in FIG. 13B, the character string “ABC” to be printed can be printed at the center of the print area D.
一方、図12に示すように、印刷される文字列「ABC」が印刷領域Dの副走査方向の下側に印刷される場合、つまり、印刷される文字列「ABC」が下線ULに近接するように印刷される場合は、印刷結果に違和感が生じないため、本実施形態では印刷幅Chの調整は行わず、そのまま印刷を行う。 On the other hand, as shown in FIG. 12, when the character string “ABC” to be printed is printed below the print region D in the sub-scanning direction, that is, the character string “ABC” to be printed is close to the underline UL. When printing is performed in this manner, the print result does not feel uncomfortable, and in this embodiment, the print width Ch is not adjusted and printing is performed as it is.
他方、上述した第1判定処理において、印刷幅Chが記録媒体の印刷領域D内に収まっていないと判定される場合とは、印刷される文字列「ABC」が、図14(a)や図15(a)に示すように、図10を参照して説明した印刷領域D(座標I1と座標I2の間の領域)からはみ出して印刷される状態にある。 On the other hand, when it is determined in the first determination process described above that the print width Ch does not fall within the print area D of the recording medium, the character string “ABC” to be printed is shown in FIG. As shown in FIG. 15A, the print area D is printed out of the print area D (area between the coordinates I1 and I2) described with reference to FIG.
そこで、第1判定処理において、印刷幅Chが記録媒体の印刷領域D内に収まっていないと判定された場合、制御部30は、印刷される文字列「ABC」が印刷領域D内に印刷できるように、図14(b)及び図15(b)に示すように、印刷幅Chの一方の端部である上端(座標C1)と他方の端部である下端(座標C2)のうち、印刷境界線M1(座標I1),M2(座標I2)の間に位置しないほうの端部が印刷境界線M1(座標I1),M2(座標I2)の間に位置するように、印刷幅Chを小さくする第2印刷幅調整処理を行う。
なお、この第2印刷幅調整処理では、印刷される文字列「ABC」が見栄えよく印刷されるように、併せて、印刷領域D(座標I1と座標I2の間の領域)の副走査方向の中央又は下寄りに位置するように、印刷される文字列「ABC」が印刷できるように行われる。
Therefore, in the first determination process, when it is determined that the print width Ch does not fit in the print area D of the recording medium, the
In the second print width adjustment process, the printed character string “ABC” is printed with a good appearance, and the print region D (the region between the coordinates I1 and I2) in the sub-scanning direction is also displayed. The printing is performed so that the character string “ABC” to be printed can be printed so as to be located at the center or the lower side.
具体的には、第2印刷幅調整処理において、制御部30は、図15(a)に示すように、印刷幅Chの上端(座標C1)が印刷境界線M1(座標I1),M2(座標I2)の間に位置しない場合(つまりC1>I1の場合)、図15(b)に示すように、印刷幅Chの上端(座標C1)と上側の印刷境界線M1(座標I1)との間の第1距離IC1が、印刷幅Chの下端(座標C2)と下側の印刷境界線M2(座標I2)との間の第2距離IC2と同じ距離となるように印刷幅Chを小さくして、印刷される文字列「ABC」が印刷領域Dの中央に印刷されるようにする。
Specifically, in the second print width adjustment process, as shown in FIG. 15A, the
なお、この処理は、印刷幅Chの上端(座標C1)を印刷境界線M1(座標I1),M2(座標I2)の間に位置させることを前提とする処理であるから、印刷境界線M1(座標I1)を基準として、第1距離IC1が第2距離IC2と同じ距離となる印刷境界線M1(座標I1)よりも下側の座標を印刷幅Chの上端(座標C1)として与える処理となる。 Since this process is based on the premise that the upper end (coordinate C1) of the print width Ch is positioned between the print boundary lines M1 (coordinates I1) and M2 (coordinates I2), the print boundary line M1 ( With the coordinate I1) as a reference, the first distance IC1 is the same as the second distance IC2, and the lower coordinate of the printing boundary line M1 (coordinate I1) is given as the upper end (coordinate C1) of the printing width Ch. .
逆に、制御部30は、図14(a)に示すように、印刷幅Chの下端(座標C2)が印刷境界線M1(座標I1),M2(座標I2)の間に位置しない場合(つまりC2<I2の場合)、図14(b)に示すように、第2距離IC2が第1距離IC1と同じ距離となるように印刷幅Chを小さくして、印刷される文字列「ABC」が印刷領域Dの下寄りに印刷されるようにする。
On the other hand, as shown in FIG. 14A, the
なお、この処理では、印刷領域Dの下側にはみ出していた印刷幅Chの下端(座標C2)を印刷境界線M2(座標I2)に位置させることから、自然と印刷される文字列「ABC」は印刷領域D内に収まるとともに、印刷領域Dの下寄りに印刷される状態となる。 In this process, since the lower end (coordinate C2) of the print width Ch that protrudes below the print area D is positioned at the print boundary line M2 (coordinate I2), the character string “ABC” that is naturally printed is printed. Falls within the print area D and is printed below the print area D.
以上のような第1印刷幅調整処理又は第2印刷幅調整処理の結果に基づいて、次に、制御部30(特に印刷サイズ演算部32)は、第1印刷幅調整処理又は第2印刷幅調整処理で小さくされた印刷幅Chから印刷データを実際に印刷するときの印刷サイズ(フォント)を算出する。 Based on the result of the first print width adjustment process or the second print width adjustment process as described above, the control unit 30 (especially the print size calculation unit 32) then performs the first print width adjustment process or the second print width. A print size (font) when the print data is actually printed is calculated from the print width Ch reduced by the adjustment process.
そして、印刷サイズ(フォント)が決まると、その印刷サイズ(フォント)で記録媒体に印刷する処理を行うことになるが、上述のように、印刷幅Chを小さくする処理によって、印刷される文字列「ABC」が図10を参照して説明した印刷領域D(座標I1と座標I2の間の領域)の副走査方向の中央に印刷されるようにすると、印刷サイズ(フォント)が小さくなりすぎる場合がある。 Then, when the print size (font) is determined, the print size (font) is printed on the recording medium. As described above, the character string to be printed by the process of reducing the print width Ch is performed. When “ABC” is printed at the center in the sub-scanning direction of the print area D (area between the coordinates I1 and I2) described with reference to FIG. 10, the print size (font) becomes too small. There is.
そこで、制御部30は、算出した印刷サイズ(フォント)があらかじめ設定されている最低値のサイズ以上の場合、主走査方向への走査が進み、移動量検出部44(光学式センサ15)による移動量の検出結果が予め設定されている移動量に到達(ヘッド部14が印刷を開始すべき位置に到達)すると、算出した印刷サイズで記録媒体への印刷を印刷部43に開始させる。
他方、算出した印刷サイズが設定されているサイズ未満の場合、制御部30は、記録媒体への印刷を行わず、ユーザインターフェイス18(エラー出力部)にエラーメッセージを出力する。
Therefore, when the calculated print size (font) is equal to or larger than the preset minimum value, the
On the other hand, if the calculated print size is less than the set size, the
ところで、印刷を行う記録媒体上において、下線ULの上方に必ず文字列CSが設けられているとは限らない。
このような場合、制御部30は、ヘッド部14の上端の副走査方向の座標P1を上側の境界線B1(一方の境界線)と定める一方の境界線決定処理を行うとともに、印刷領域Dを設定する領域設定処理において、上側の境界線B1を印刷領域Dの上側の印刷境界線M1(座標I1)に設定する。
なお、下側の境界線B2の検出処理及び下側の印刷境界線M2(座標I2)の設定処理は、前述の場合と同様である。
By the way, the character string CS is not always provided above the underline UL on the recording medium to be printed.
In such a case, the
The lower boundary line B2 detection process and the lower print boundary line M2 (coordinate I2) setting process are the same as those described above.
そして、制御部30は、印刷幅Chが印刷境界線M1,M2間に収まっているかに基づいて、印刷データの印刷幅Chが記録媒体の印刷領域D内に収まっているかを判定する第1判定処理を行っている。
なお、この場合、印刷境界線M1は、ヘッド部14の上端の副走査方向の座標P1を基準としているため、印刷幅Chが印刷領域Dの上側にはみ出すことはなく、印刷幅Chが記録媒体の印刷領域D内に収まっているかを判定する第1判定処理は、印刷幅Chが印刷領域Dの下側にはみ出していないかを見ることになる。
Then, the
In this case, since the printing boundary line M1 is based on the coordinate P1 in the sub-scanning direction of the upper end of the
ここで、印刷幅Chが記録媒体の印刷領域D内に収まっていると判定される場合とは、印刷される文字列「ABC」が、図17に示すように、印刷領域Dからはみ出さないで印刷可能な状態であり、このような状態であると判定した場合は、印刷幅調整を行うことなく、そのまま印刷を実行する。 Here, when it is determined that the print width Ch is within the print area D of the recording medium, the character string “ABC” to be printed does not protrude from the print area D as shown in FIG. If it is determined that printing is possible, the printing is executed as it is without adjusting the printing width.
他方、印刷幅Chが記録媒体の印刷領域D内に収まっていないと判定される場合とは、印刷される文字列「ABC」が、図16(a)に示すように、印刷領域Dの下側の印刷境界線M2(座標I2)からはみ出して印刷される状態であり、このような状態であると判定した場合は、図16(b)に示すように、印刷幅Chの下端(座標C2)が印刷領域Dの下側の印刷境界線M2(座標I2)に位置するように、印刷幅Chを小さくする第2印刷幅調整処理を行う。 On the other hand, when it is determined that the print width Ch does not fall within the print area D of the recording medium, the character string “ABC” to be printed is below the print area D as shown in FIG. In this state, printing is performed by protruding from the printing boundary line M2 (coordinate I2) on the side. If it is determined that this is the case, the lower end (coordinate C2) of the printing width Ch is determined as shown in FIG. ) Is positioned at the lower printing boundary line M2 (coordinate I2) of the printing area D, the second printing width adjustment process is performed to reduce the printing width Ch.
また、印刷を行う記録媒体上に、必ず、下線ULが設けられているとは限らない。
そこで、制御部30は、主走査方向への走査が進み、移動量検出部44(光学式センサ15)による移動量の検出結果が予め設定されている移動量に到達(つまり、ヘッド部14が印刷を開始すべき位置に到達)しても、画像取得部45(ラインスキャナ16)が取得する画像から下側の境界線B2(図10参照)が検出できなかった場合、予め設定されている印刷データに従って記録媒体への印刷を印刷部43に開始させる。
Also, the underline UL is not always provided on the recording medium on which printing is performed.
Therefore, the
[印刷装置の動作]
既に、基本的な処理に関しては説明を行ったが、図11A、図11B及び図11Cに示すフローチャートを参照しながら、再度、第2実施形態に係る印刷装置1の動作について詳細に説明する。
[Printer operation]
Although basic processing has already been described, the operation of the
なお、図11Aのフローチャートに従った動作が開始される前に、通信インターフェイス47を通じて印刷データが印刷装置1に読み込まれており、RAM42内に印刷データが移動量に応じた印刷バッファとして記憶されているものとする。
このため、移動量に応じた印刷バッファの内容が光学式センサ15(移動量検出部44)で検出した移動量に応じて、順次、ヘッド部14に転送されることで記録媒体に対する印刷が実行できる状態にある。
Before the operation according to the flowchart of FIG. 11A is started, print data is read into the
For this reason, the contents of the print buffer corresponding to the movement amount are sequentially transferred to the
以下、印刷装置1の動作について具体的に説明する。
ユーザによって電源ボタン20が操作されると、印刷装置1が起動し、ステップ201において、制御部30は、印刷指示ボタン19が操作されるまで繰り返し、印刷指示ボタン19が操作されたか否かを判定し続けるループ処理を開始する。
Hereinafter, the operation of the
When the user operates the
そして、ユーザが、印刷装置1の印刷開始位置マーカ17を印刷開始位置にセットし、印刷指示ボタン19を操作すると、ステップ202以降の処理に進むことになる。
When the user sets the print
ステップ202において、制御部30は、光学式センサ15(移動量検出部44)に印刷装置1の主走査方向の移動量の検出を開始させる。
In
次いで、制御部30は、移動量の検出によって移動が開始されたことを検知すると、ステップ203において、ラインスキャナ16(画像取得部45)の画像に基づく検出処理の結果に基づいて、下線ULを検出したか否かを判定する。
つまり、先に述べた境界線B2を検出したか否かを判定する。
Next, when the
That is, it is determined whether the boundary line B2 described above has been detected.
なお、ユーザは、下線ULがある場合、その下線ULに合わせるように印刷装置1を配置するため、下線ULが存在する場合、印刷装置1の移動が始まるとすぐに下線ULが検出されることになるので、移動量の検出によって移動が開始されたことを検知すると、すぐにこの判定が行われる。
In addition, since the user arranges the
そして、ステップ203で下線ULを検出したと判定された場合、制御部30は、ステップ208以降の処理を行い、下線ULを検出できなかったと判定された場合、ステップ204以降の処理を行う。
If it is determined in
ここで、ステップ204に処理が進む場合、下線ULが検出されていないため、制御部30は、予め設定されている印刷データに従って記録媒体への印刷を印刷部43に開始させる処理を実行することになる。
Here, when the process proceeds to step 204, since the underline UL is not detected, the
具体的には、ステップ204において、制御部30は、予め指定された任意の印刷サイズをセットする。
そして、制御部30は、ステップ205において、ヘッド部14と印刷開始位置マーカ17との間の距離の分だけ、ヘッド部14に印刷を行わせない空送りを実行し、その空送りが終了すると、ステップ206において、制御部30は、印刷部43であるヘッド部14に、ステップ204で設定された文字サイズで印刷を開始させ、ステップ207において、制御部30は、印刷が終了するのを確認(例えば、全ての印刷バッファがなくなったのを確認)すると、一連の印刷手順が終了する。
Specifically, in
Then, in
一方、ステップ203からステップ208に進む場合、ステップ208において、制御部30は、ラインスキャナ16(画像取得部45)の画像に基づく検出処理の結果に基づいて、記録媒体に予め設けられた文字列CSを検出したか否かを判定する。
つまり、先に述べた境界線B1(文字列CSの下端に沿う仮想線)を検出したか否かを判定する。
On the other hand, in the case of proceeding from
That is, it is determined whether or not the above-described boundary line B1 (virtual line along the lower end of the character string CS) has been detected.
そして、ステップ208で文字列CSを検出したと判定された場合、制御部30は、ステップ209以降の処理を行い、文字列CSを検出できなかったと判定された場合、ステップ223(図11C参照)以降の処理を行う。
If it is determined in
ステップ208からステップ209に進む場合、ラインスキャナ16(画像取得部45)の画像に基づく検出処理で主走査方向に沿った下線ULと文字列CSが検出されているので、制御部30は、ステップ209において、検出された文字列CSの下端を上側の境界線B1(一方の境界線)とし、下線ULの上端を下側の境界線B2(他方の境界線)として、上側の境界線B1(一方の境界線)と下側の境界線B2(他方の境界線)との間の領域の副走査方向の距離Kh(高さKhと記載する場合がある)を算出する。
When the process proceeds from
次いで、制御部30は、ステップ210において、高さKhに対して余白(マージン)を考慮した印刷可能高さIhを算出、つまり、高さKhに対して余白(マージン)を考慮した印刷境界線M1,M2を設定することで印刷領域Dを定める領域設定処理を行う。
なお、印刷境界線M1,M2を設定とは、副走査方向における印刷境界線M1の座標I1と印刷境界線M2の座標I2を設定することである。
Next, in
Note that setting the printing boundary lines M1 and M2 means setting the coordinates I1 of the printing boundary line M1 and the coordinates I2 of the printing boundary line M2 in the sub-scanning direction.
そして、ステップ211において、制御部30は、印刷データの印刷幅Chが印刷可能高さIhに収まっているか否かを判定する第1比較処理を行う。
In
具体的には、既に説明したように、上側の印刷境界線M1の座標I1と印刷幅Chの上端の座標C1、下側の印刷境界線M2の座標I2と印刷幅Chの下端の座標C2を、それぞれ比較し、I1≧C1かつC2≧I2である場合(図12及び図13(a)参照)、印刷データの印刷幅Chは印刷可能高さIhに収まっていると判定され、処理はステップ212に進む。 Specifically, as described above, the coordinates I1 of the upper printing boundary M1 and the coordinates C1 of the upper end of the printing width Ch, the coordinates I2 of the lower printing boundary M2, and the coordinates C2 of the lower end of the printing width Ch are set as follows. When I1 ≧ C1 and C2 ≧ I2 (see FIGS. 12 and 13A), it is determined that the print width Ch of the print data is within the printable height Ih, and the process Proceed to 212.
逆に、I1≧C1かつC2≧I2でない場合(図14(a)及び図15(a)参照)には、印刷データの印刷幅Chは印刷可能高さIhに収まっていないと判定され、処理はステップ217(図11B参照)に進む。 Conversely, if I1 ≧ C1 and C2 ≧ I2 are not satisfied (see FIGS. 14A and 15A), it is determined that the print width Ch of the print data does not fall within the printable height Ih, and the process Advances to step 217 (see FIG. 11B).
図11Aに示すステップ211の判定の結果、ステップ212に進むと、制御部30は、ステップ212の処理として、上側の印刷境界線M1と印刷幅Chの上端との間の第1距離IC1と、下側の印刷境界線M2と印刷幅Chの下端との間の第2距離IC2とを、比較する。
As a result of the determination in
比較の結果、図12のように、第1距離IC1が第2距離IC2以上の場合には、印刷データが印刷領域Dの副走査方向の中央又は下線UL寄りに印刷できる状態なので、制御部30は、印刷幅Chの調整を行うことなく、そのままステップ205に進む。
そして、制御部30は、ステップ205において、先に説明したのと同様に、所定の距離だけ空送りを実行した後、ステップ206及びステップ207において印刷開始及び印刷終了を実行する。
As a result of the comparison, when the first distance IC1 is equal to or greater than the second distance IC2 as shown in FIG. 12, since the print data can be printed near the center in the sub-scanning direction of the print area D or the underline UL, the
In
他方、ステップ212における比較の結果、図13(a)のように、第1距離IC1が第2距離IC2より小さい場合には、制御部30は、ステップ213において、印刷幅Chの上端の座標C1を、上側の印刷境界線M1の座標I1から第2距離IC2だけ減算した値とし、第1距離IC1が第2距離IC2と等しくなる図13(b)に示した状態となるように、印刷幅Chを小さくする第1印刷幅調整処理を行う。
そして、このように印刷幅Chを小さくすると、印刷幅Chは印刷領域Dの副走査方向の中央(印刷境界線M1,M2の間の副走査方向の中央)に位置し、印刷データが印刷領域Dの副走査方向の中央に印刷できる状態になる。
On the other hand, when the first distance IC1 is smaller than the second distance IC2 as shown in FIG. 13A as a result of the comparison in
When the print width Ch is thus reduced, the print width Ch is positioned at the center in the sub-scanning direction of the print area D (the center in the sub-scanning direction between the print boundary lines M1 and M2), and the print data is printed in the print area. It becomes possible to print in the center of D in the sub-scanning direction.
上述したステップ213を経て、手順はステップ214に進む。
このステップ214において、制御部30は、ステップ213で修正された印刷幅Chの座標(上端の座標C1及び下端の座標C2)に基づく印刷幅Chが設定値以上か否かを判定する。
つまり、修正された印刷幅Chの座標(上端の座標C1及び下端の座標C2)から、具体的に、印刷幅Chを求めて、その印刷幅Chに印刷できる印刷データの印刷サイズ(印刷する図形文字のフォント)を算出して、その印刷サイズ(フォント)が最低値としてあらかじめ設定されているサイズ(フォント)以上か否かを判定する。
Through
In
That is, the print width Ch is specifically obtained from the corrected coordinates of the print width Ch (the upper end coordinates C1 and the lower end coordinates C2), and the print size of the print data (printed figure to be printed) can be printed on the print width Ch. Character font) is calculated, and it is determined whether the print size (font) is equal to or larger than the size (font) set in advance as the minimum value.
そして、印刷サイズ(フォント)が最低値としてあらかじめ設定されているサイズ(フォント)以上の場合には、ステップ215に進み、制御部30は、ステップ215において、算出した印刷サイズ(フォント)の印刷データを印刷するためのヘッド部14に対する座標を設定する文字情報変更処理を行う。
その後、制御部30は、ステップ205において、先に説明したのと同様に、所定の距離だけ空送りを実行した後、ステップ206及びステップ207において印刷開始及び印刷終了を実行する。
If the print size (font) is equal to or larger than the size (font) set in advance as the minimum value, the process proceeds to step 215, and the
After that, the
この結果、何もしなければ、図13(a)に例示するように、印刷結果が印刷領域Dの上方向に偏ることになる場合でも、図13(b)に例示するように、印刷領域Dの副走査方向の中央に位置するきれいな印刷を実現することができる。 As a result, if nothing is done, as illustrated in FIG. 13A, even if the print result is biased upward in the print area D, as illustrated in FIG. It is possible to realize clean printing located in the center in the sub-scanning direction.
他方、ステップ213で修正された印刷幅Chの座標(上端の座標C1及び下端の座標C2)に基づく印刷幅Chが設定されたサイズ未満である場合、つまり、算出した印刷サイズ(フォント)が最低値としてあらかじめ設定されているサイズ(フォント)未満である場合、制御部30は、ステップ216において、エラー出力部にエラーメッセージを出力するエラー警告の動作を行ったうえで、印刷を行わず終了する。
On the other hand, if the print width Ch based on the coordinates of the print width Ch corrected in step 213 (the upper end coordinates C1 and the lower end coordinates C2) is less than the set size, that is, the calculated print size (font) is the lowest. When the value is smaller than the size (font) set in advance, the
次に、ステップ211の判定が印刷データの印刷幅Chが印刷可能高さIhに収まっていない判定となり、処理がステップ217に進む場合について図11Bを参照しながら説明する。
Next, a case where the determination in
ステップ217において、制御部30は、下側の印刷境界線M2の座標I2が印刷幅Chの下端の座標C2よりも上側に位置するか否かを判定する。
つまり、印刷データが印刷領域Dの下方にはみ出る状態であるか否かを判定する。
In
That is, it is determined whether or not the print data is in a state of protruding below the print area D.
比較の結果、図14(a)のように、座標I2が座標C2よりも大きい場合には、制御部30は、ステップ218において、印刷幅Chの下端の座標C2を、下側の印刷境界線M2の座標I2の値とし、印刷幅Chが印刷領域Dに収まる図14(b)に示した状態となるように、印刷幅Chを小さくする第2印刷幅調整処理を行う。
As a result of the comparison, if the coordinate I2 is larger than the coordinate C2 as shown in FIG. 14A, the
他方、ステップ217の比較の結果、座標I2が座標C2以下である場合には、印刷データが先ほどとは逆方向にはみ出る状態、つまり、図15(a)のように、印刷データが印刷領域Dの上側にはみ出る状態になっている。
On the other hand, if the coordinate I2 is equal to or less than the coordinate C2 as a result of the comparison in
そこで、制御部30は、ステップ219において、印刷幅Chの上端の座標C1を、上側の印刷境界線M1の座標I1から第2距離IC2だけ減算した値とし、印刷幅Chの上端の座標C1が印刷境界線M1(座標I1)と印刷境界線M2(座標I2)の間に位置するとともに、第1距離IC1が第2距離IC2と等しくなる図15(b)に示した状態となるように、印刷幅Chを小さくする第2印刷幅調整処理を行う。
Therefore, in
そして、このように印刷幅Chを小さくすると、印刷幅Chは印刷領域Dの副走査方向の中央(印刷境界線M1,M2の間の副走査方向の中央)に位置し、印刷データが印刷領域Dの副走査方向の中央に印刷できる状態になる。 When the print width Ch is thus reduced, the print width Ch is positioned at the center in the sub-scanning direction of the print area D (the center in the sub-scanning direction between the print boundary lines M1 and M2), and the print data is printed in the print area. It becomes possible to print in the center of D in the sub-scanning direction.
上述したステップ218又はステップ219を経て、手順はステップ220に進む。
ここで、ステップ220に進む状態のときには、先に説明したステップ214に進む状態と全く同じ状態になっている。
したがって、ステップ214と同様の判定をステップ220で行い、その結果、ステップ221に進む場合には、ステップ221でステップ215と同様の処理が実行され、続いて、ステップ205、206及び207が実行されて印刷が終了する。
The procedure proceeds to step 220 through
Here, when the state proceeds to step 220, the state is exactly the same as the state proceeds to step 214 described above.
Therefore, if the same determination as in
この結果、何もしなければ、図14(a)及び図15(a)に例示するように、印刷結果が印刷領域Dの上下方向のいずれかにはみ出すことになる場合でも、図14(b)及び図15(b)に例示するように、印刷領域Dに収まるきれいな印刷を実現することができる。
また、ステップ222に進む場合には、ステップ216と同様のエラー処理が実行される。
As a result, if nothing is done, even if the printing result protrudes in either the vertical direction of the printing area D as illustrated in FIGS. 14A and 15A, FIG. As illustrated in FIG. 15B, it is possible to realize clean printing that fits in the printing area D.
Further, when proceeding to step 222, error processing similar to step 216 is executed.
次に、ステップ208の判定において、記録媒体に予め設けられた文字列CSが検出されない判定となり、処理がステップ223に進む場合について図11Cを参照しながら説明する。
Next, in the determination in
ステップ223において、制御部30は、ヘッド部14の上端の副走査方向の座標P1を上側の境界線B1(一方の境界線)とみなし、ラインスキャナ16(画像取得部45)の画像から検出された下線ULの上端を下側の境界線B2(他方の境界線)として、上側の境界線B1(一方の境界線)と下側の境界線B2(他方の境界線)に基づいて、下線UL上方の記入領域の副走査方向の距離Kh(高さKhと記載する場合がある)を算出する。
In
次いで、制御部30は、ステップ224において、高さKhに対して余白(マージン)を考慮した印刷可能高さIhを算出する。
具体的には、図11Cのフローに進んでいる場合、上側に文字列CSが存在しないので、その文字列CSとの関係で感じる見栄えの悪さは発生しないため、上側に余白(マージン)を取らなくてもよく、したがって、制御部30は、上側の境界線B1(一方の境界線)を一方の印刷境界線M1とする。
つまり、印刷幅Chの一方の端部に基づいて、定めた上側の境界線B1(一方の境界線)を一方の印刷境界線M1とする。
そして、印刷される下側の境界線B2(他方の境界線)に対しては、文字列「ABC」が下線ULに近づきすぎて見栄えが悪くならないように余白(マージン)を考慮して、他方の印刷境界線M2を設定し、高さKhに対して余白(マージン)を考慮した印刷境界線M1,M2を設定することで印刷領域Dを定める領域設定処理を行う。
Next, in
Specifically, when the process proceeds to the flow of FIG. 11C, since the character string CS does not exist on the upper side, the appearance that is felt in relation to the character string CS does not occur, so a margin (margin) is set on the upper side. Therefore, the
That is, based on one end of the printing width Ch, the upper boundary line B1 (one boundary line) determined is set as one printing boundary line M1.
For the lower boundary line B2 (the other boundary line) to be printed, the margin (margin) is taken into consideration so that the character string “ABC” is not too close to the underline UL and looks bad. The print boundary line M2 is set, and the print boundary lines M1 and M2 are set in consideration of the margin (margin) with respect to the height Kh.
そして、ステップ225において、制御部30は、印刷データの印刷幅Chが印刷可能高さIhに収まっているか否かを判定する第1比較処理を行う。
In
具体的には、印刷幅Chは上側の印刷境界線M1からはみ出すことはないので、制御部30は、下側の印刷境界線M2の座標I2と印刷幅Chの下端の座標C2を比較し、C2≧I2である場合(図17参照)、印刷データの印刷幅Chは印刷可能高さIhに収まっていると判定して、印刷幅Chの調整を行うことなく、そのままステップ205に進む。
そして、制御部30は、ステップ205において、先に説明したのと同様に、所定の距離だけ空送りを実行した後、ステップ206及びステップ207において印刷開始及び印刷終了を実行する。
Specifically, since the printing width Ch does not protrude from the upper printing boundary line M1, the
In
逆に、制御部30は、C2≧I2でない場合(図16(a)参照)、印刷データの印刷幅Chが印刷可能高さIhに収まっていないと判定して、処理はステップ218(図11B参照)に進む。
そして、制御部30は、ステップ218において、印刷幅Chの下端の座標C2を、下側の印刷境界線M2の座標I2の値とし、印刷幅Chが印刷領域Dに収まる図16(b)に示した状態となるように、印刷幅Chを小さくする第2印刷幅調整処理を行う。
Conversely, if C2 ≧ I2 is not satisfied (see FIG. 16A), the
Then, in
上述したステップ218を経て、手順はステップ220に進む。
ここで、ステップ220に進む状態のときには、先に説明したステップ214に進む状態と全く同じ状態になっている。
したがって、ステップ214と同様の判定をステップ220で行い、その結果、ステップ221に進む場合には、ステップ221でステップ215と同様の処理が実行され、続いて、ステップ205、206及び207が実行されて印刷が終了する。
Through
Here, when the state proceeds to step 220, the state is exactly the same as the state proceeds to step 214 described above.
Therefore, if the same determination as in
この結果、何もしなければ、図16(a)に例示するように、印刷結果が印刷領域Dの下方向にはみ出すことになる場合でも、図16(b)に例示するように、印刷領域Dに収まるきれいな印刷を実現することができる。 As a result, if nothing is done, as illustrated in FIG. 16A, even if the print result protrudes downward from the print area D, as illustrated in FIG. It is possible to achieve clean printing that fits in
また、ステップ222に進む場合には、ステップ216と同様のエラー処理が実行される。 Further, when proceeding to step 222, error processing similar to step 216 is executed.
以上、具体的に実施形態を基に本発明の印刷装置1について説明してきたが、本発明は具体的な実施形態に限定されるものではなく、様々な変形や改良を加えたものも本発明の技術的範囲に含まれるものであり、そのことは当業者にとって特許請求の範囲の記載から明らかである。
As described above, the
以下に、優先権前の出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、優先権前の出願の願書に最初に添付した特許請求の範囲のとおりである。
<請求項1>
移動させながら記録媒体に印刷を行なう印刷装置であって、
制御部と、
入力された印刷データに基づいて印刷を行うヘッド部と、
前記印刷装置の移動方向において前記ヘッド部よりも前方側に設けられ、予め前記記録媒体に記載されており、前記記録媒体の欄を示す境界線を含む画像を取得する画像取得部と、を備え、
前記制御部は、
前記画像に基づいて前記境界線を検出し、前記印刷データの印刷幅が検出された前記境界線に基づく前記記録媒体の印刷領域内に収まっているかを判定する第1判定処理を行うことを特徴とする印刷装置。
<請求項2>
前記制御部は、
前記画像に基づいて、予め前記記録媒体に記載されており、前記印刷装置が移動する第1方向に沿った第1の境界線及び第2の境界線を検出する検出処理と、
それら前記境界線に対して前記第1方向に直交する第2方向において余白を設けるように前記印刷領域の一方の印刷境界線と他方の印刷境界線を設定することで前記印刷領域を定める領域設定処理と、を行い、
前記第1判定処理は、前記印刷幅が前記印刷境界線間に収まっているかに基づいて行われていることを特徴とする請求項1に記載の印刷装置。
<請求項3>
前記制御部は、
前記印刷幅が前記記録媒体の前記印刷領域内に収まっている場合、前記印刷幅の一方の端部と一方の前記印刷境界線の間の第1距離と、前記印刷幅の他方の端部と他方の前記印刷境界線の間の第2距離と、を比較する第1比較処理と、
前記第1比較処理で前記第1距離と前記第2距離のうち距離が小さいほうを距離が大きいほうに合わせるように前記印刷幅を小さくする第1印刷幅調整処理と、を行うことを特徴とする請求項2に記載の印刷装置。
<請求項4>
前記制御部は、前記印刷幅が前記記録媒体の前記印刷領域内に収まっていない場合、前記印刷幅の一方の端部と他方の端部のうち前記印刷境界線の間に位置しないほうの端部が前記印刷境界線の間に位置するように前記印刷幅を小さくする第2印刷幅調整処理を行い、
前記第2印刷幅調整処理は、一方の前記端部が前記印刷境界線の間に位置しない場合、一方の前記端部と一方の前記印刷境界線の間の第1距離が、他方の前記端部と他方の前記印刷境界線の間の第2距離と同じ距離となるように前記印刷幅を小さくし、他方の前記端部が前記印刷境界線の間に位置しない場合、前記第2距離が前記第1距離と同じ距離となるように前記印刷幅を小さくする処理であることを特徴とする請求項2に記載の印刷装置。
<請求項5>
移動量を検出する移動量検出部を備え、
前記制御部は、前記印刷幅から前記印刷データの印刷サイズを算出して、前記印刷サイズが設定されているサイズ以上の場合、前記移動量検出部による前記移動量の検出結果があらかじめ設定されている移動量に到達すると、算出した前記印刷サイズで前記記録媒体への前記印刷データの印刷を前記ヘッド部に開始させる処理を行うことを特徴とする請求項3又は請求項4に記載の印刷装置。
<請求項6>
エラーメッセージを出すエラー出力部を備え、
前記制御部は、前記印刷サイズが設定されているサイズ未満の場合、前記記録媒体への前記印刷データの印刷を行わず、エラー出力部にエラーメッセージを出力する処理を行うことを特徴とする請求項5に記載の印刷装置。
<請求項7>
移動量を検出する移動量検出部を備え、
前記制御部は、前記移動量検出部による前記移動量の検出結果があらかじめ設定されている移動量に到達しても、前記画像から一方の前記境界線及び他方の前記境界線が検出できなかった場合、あらかじめ設定されている印刷データに従って前記記録媒体への印刷を前記ヘッド部に開始させることを特徴とする請求項2に記載の印刷装置。
<請求項8>
前記画像取得部の前記第2方向における長さは、前記ヘッド部の前記第2方向における長さよりも大きいことを特徴とする請求項2乃至7のいずれか一項に記載の印刷装置。
<請求項9>
移動させながら記録媒体に印刷を行なう印刷装置の制御方法であって、
入力された印刷データに基づいて印刷を行うヘッド部よりも前記印刷装置の移動方向において前方側に設けられ、予め前記記録媒体に記載されており、前記記録媒体の欄を示す境界線を含む画像を取得する画像取得部で前記画像を取得する画像取得ステップと、
前記画像に基づいて前記境界線を検出し、前記印刷データの印刷幅が検出された前記境界線に基づく前記記録媒体の印刷領域内に収まっているかを判定する第1判定ステップと、を含むことを特徴とする制御方法。
<請求項10>
移動させながら記録媒体に印刷を行なう印刷装置用のプログラムであって、
印刷装置の制御部に対して、
入力された印刷データに基づいて印刷を行うヘッド部よりも前記印刷装置の移動方向において前方側に設けられ、予め前記記録媒体に記載されており、前記記録媒体の欄を示す境界線を含む画像を取得する画像取得部で前記画像を取得させる画像取得処理と、
前記画像に基づいて前記境界線を検出し、前記印刷データの印刷幅が検出された前記境界線に基づく前記記録媒体の印刷領域内に収まっているかを判定する第1判定処理と、を少なくとも実行させることを特徴とするプログラム。
The invention described in the scope of claims attached to the application for the pre-priority application is added below. The item numbers of the claims described in the appendix are as in the scope of the claims originally attached to the application for the pre-priority application.
<Claim 1>
A printing apparatus that prints on a recording medium while moving,
A control unit;
A head unit that performs printing based on the input print data;
An image acquisition unit that is provided in front of the head unit in the moving direction of the printing apparatus and that is previously described in the recording medium and acquires an image including a boundary line indicating a column of the recording medium. ,
The controller is
The boundary line is detected based on the image, and a first determination process is performed to determine whether a print width of the print data is within a print area of the recording medium based on the detected boundary line. A printing device.
<Claim 2>
The controller is
A detection process which is described in advance on the recording medium based on the image and detects a first boundary line and a second boundary line along a first direction in which the printing apparatus moves;
Region setting for defining the print region by setting one print boundary line and the other print boundary line of the print region so as to provide a margin in the second direction orthogonal to the first direction with respect to the boundary line Processing, and
The printing apparatus according to
<Claim 3>
The controller is
When the print width is within the print area of the recording medium, a first distance between one end of the print width and one of the print boundary lines, and the other end of the print width, A first comparison process for comparing the second distance between the other print boundary lines;
And performing a first print width adjustment process for reducing the print width so that the smaller distance of the first distance and the second distance is matched with the larger distance in the first comparison process. The printing apparatus according to
<Claim 4>
The control unit, when the print width does not fit in the print area of the recording medium, of one end and the other end of the print width that is not located between the print boundary lines Performing a second print width adjustment process to reduce the print width so that the portion is located between the print boundary lines,
In the second print width adjustment process, when one of the end portions is not located between the print boundary lines, the first distance between the one end portion and the one print boundary line is set to the other end. When the printing width is reduced to be the same distance as the second distance between the printing portion and the other printing boundary line, and the other end portion is not located between the printing boundary lines, the second distance is The printing apparatus according to
<Claim 5>
A movement amount detection unit for detecting the movement amount is provided.
The control unit calculates a print size of the print data from the print width, and when the print size is equal to or larger than a set size, a detection result of the movement amount by the movement amount detection unit is set in advance. 5. The printing apparatus according to claim 3, wherein when the movement amount reaches a certain movement amount, a process of causing the head unit to start printing the print data on the recording medium with the calculated print size is performed. .
<Claim 6>
It has an error output part that gives an error message,
The control unit performs a process of outputting an error message to an error output unit without printing the print data on the recording medium when the print size is smaller than a set size. Item 6. The printing apparatus according to Item 5.
<Claim 7>
A movement amount detection unit for detecting the movement amount is provided.
The control unit could not detect one boundary line and the other boundary line from the image even when the detection result of the movement amount by the movement amount detection unit reaches a preset movement amount. 3. The printing apparatus according to
<Claim 8>
The printing apparatus according to
<Claim 9>
A control method of a printing apparatus that performs printing on a recording medium while moving,
An image that is provided on the front side in the movement direction of the printing apparatus with respect to the head unit that performs printing based on the input print data, is described in advance on the recording medium, and includes a boundary line indicating a column of the recording medium An image acquisition step of acquiring the image by an image acquisition unit for acquiring
Detecting a boundary line based on the image, and determining whether a print width of the print data is within a print area of the recording medium based on the detected boundary line. A control method characterized by the above.
<Claim 10>
A program for a printing apparatus that prints on a recording medium while moving,
For the control unit of the printing device,
An image that is provided on the front side in the movement direction of the printing apparatus with respect to the head unit that performs printing based on the input print data, is described in advance on the recording medium, and includes a boundary line indicating a column of the recording medium Image acquisition processing for acquiring the image by an image acquisition unit for acquiring
And a first determination process for detecting the boundary line based on the image and determining whether a print width of the print data is within a print area of the recording medium based on the detected boundary line. A program characterized by letting
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲のとおりである。
<請求項1>
移動させながら記録媒体に印刷を行なう印刷装置であって、
制御部と、
入力された印刷データに基づいて印刷を行うヘッド部と、
前記記録媒体の画像を取得する画像取得部と、
を備え、
前記制御部は、
前記印刷装置が、前記画像取得部が前方側になる移動方向に移動しているときに前記画像取得部が取得した前記画像に基づいて、前記記録媒体に示されている少なくとも一つの、第1方向に延在する線を検出し、
前記記録媒体の前記線に重ならない領域に前記第1方向に沿って印刷領域を設定することを特徴とする印刷装置。
<請求項2>
前記制御部は、
前記印刷データにより設定されている印刷幅が前記印刷領域の前記第1方向に直交する第2方向の幅内に収まっているかを判定する判定処理を行うことを特徴とする請求項1に記載の印刷装置。
<請求項3>
前記制御部は、
前記画像に基づいて、前記線として、前記記録媒体に前記第1方向に沿って示されている第1の線及び第2の線を検出する検出処理と、
それら前記第1の線及び前記第2の線に対して前記第2方向において余白を設けるように、前記印刷領域の一方の印刷境界線と他方の印刷境界線を前記第1方向に沿って設定することで前記印刷領域を定める領域設定処理と、を行い、
前記判定処理は、前記印刷幅が前記一方の印刷境界線と前記他方の印刷境界線との間に収まっているかに基づいて行われていることを特徴とする請求項2に記載の印刷装置。
<請求項4>
前記制御部は、
前記印刷幅が前記記録媒体の前記印刷領域の前記第2方向の幅内に収まっている場合、前記印刷幅の一方の端部と前記一方の印刷境界線の間の第1距離と、前記印刷幅の他方の端部と前記他方の前記印刷境界線の間の第2距離と、を比較する第1比較処理と、
前記第1比較処理で前記第1距離と前記第2距離のうち距離が小さいほうを距離が大きいほうに合わせるように前記印刷幅を小さくする第1印刷幅調整処理と、を行うことを特徴とする請求項3に記載の印刷装置。
<請求項5>
前記制御部は、前記印刷幅が前記記録媒体の前記印刷領域の前記第2方向の幅内に収まっていない場合、前記印刷幅の前記一方の端部と前記他方の端部のうち前記一方の印刷境界線と前記他方の印刷境界線との間に位置しないほうの端部が前記一方の印刷境界線と前記他方の印刷境界線との間に位置するように前記印刷幅を小さくする第2印刷幅調整処理を行い、
前記第2印刷幅調整処理は、前記一方の端部が前記一方の印刷境界線と前記他方の印刷境界線との間に位置しない場合、前記一方の端部と前記一方の印刷境界線の間の第1距離が、前記他方の端部と前記他方の印刷境界線の間の第2距離と同じ距離となるように前記印刷幅を小さくし、前記他方の端部が前記一方の印刷境界線と前記他方の印刷境界線との間に位置しない場合、前記第2距離が前記第1距離と同じ距離となるように前記印刷幅を小さくする処理であることを特徴とする請求項3に記載の印刷装置。
<請求項6>
移動量を検出する移動量検出部を備え、
前記制御部は、前記印刷幅から前記印刷データの印刷サイズを算出して、前記印刷サイズが設定されているサイズ以上の場合、前記移動量検出部による前記移動量の検出結果があらかじめ設定されている移動量に到達すると、算出した前記印刷サイズで前記記録媒体への前記印刷データの印刷を前記ヘッド部に開始させる処理を行うことを特徴とする請求項4又は請求項5に記載の印刷装置。
<請求項7>
移動量を検出する移動量検出部を備え、
前記制御部は、前記移動量検出部による前記移動量の検出結果があらかじめ設定されている移動量に到達しても、前記画像から前記一方の線及び前記他方の線が検出できなかった場合、あらかじめ設定されている印刷データに従って前記記録媒体への印刷を前記ヘッド部に開始させることを特徴とする請求項3に記載の印刷装置。
<請求項8>
前記制御部は、
前記画像に基づいて、前記線として、前記記録媒体に前記第1方向に沿って示されている他方の線を検出する検出処理と、
前記画像に基づいて、前記記録媒体における前記印刷幅の一方の端部側に前記第1方向に沿って示されている文字列が検出された場合に、前記文字列に基づいて前記第1方向に沿った一方の線を定める一方の線決定処理と、
前記一方の線と前記他方の線に対して前記第2方向において余白を設けるように前記印刷領域の一方の印刷境界線と他方の印刷境界線を設定することで前記印刷領域を定める領域設定処理と、を行い、
前記判定処理は、前記印刷幅が前記一方の印刷境界線と前記他方の印刷境界線との間に収まっているかに基づいて行われていることを特徴とする請求項2に記載の印刷装置。
<請求項9>
前記制御部は、
前記画像に基づいて、前記線として、前記記録媒体に前記第1方向に沿って示されている他方の線を検出する検出処理と、
前記印刷幅の前記一方の端部に基づいて、前記第1方向に沿った一方の線を定める一方の線決定処理と、
前記他方の線に対して前記第1方向に直交する第2方向において前記余白を設けるように前記印刷領域の他方の印刷境界線を設定するとともに、前記一方の線を前記印刷領域の一方の印刷境界線に設定することで前記印刷領域を定める領域設定処理と、を行い、
前記判定処理は、前記印刷幅が前記印刷境界線間に収まっているかに基づいて行われていることを特徴とする請求項2に記載の印刷装置。
<請求項10>
前記画像取得部の前記第2方向における長さは、前記ヘッド部の前記第2方向における長さよりも大きいことを特徴とする請求項3から請求項9のいずれか一項に記載の印刷装置。
<請求項11>
移動させながら記録媒体に印刷を行なう印刷装置の制御方法であって、
入力された印刷データに基づいて印刷を行うヘッド部よりも画像取得部が前方側になる移動方向に前記印刷装置が移動しているときに、前記画像取得部で前記記録媒体の画像を取得する画像取得ステップと、
前記画像取得部が取得した前記画像に基づいて、前記記録媒体に示されている少なくとも一つの、第1方向に延在する線を検出し、前記記録媒体の前記線に重ならない領域に前記第1方向に沿って印刷領域を設定する領域設定ステップと、を含むことを特徴とする制御方法。
<請求項12>
移動させながら記録媒体に印刷を行なう印刷装置用のプログラムであって、
印刷装置の制御部に対して、
入力された印刷データに基づいて印刷を行うヘッド部よりも画像取得部が前方側になる移動方向に前記印刷装置が移動しているときに、前記画像取得部で前記記録媒体の画像を取得させる画像取得処理と、
前記画像取得部により取得させた前記画像に基づいて、前記記録媒体に示されている少なくとも一つの、第1方向に沿って延在する線を検出し、前記記録媒体の前記線に重ならない領域に前記第1方向に沿って印刷領域を設定する領域設定処理と、を少なくとも実行させることを特徴とするプログラム。
The invention described in the scope of claims attached to the application of this application will be added below. The item numbers of the claims described in the appendix are as in the scope of the claims initially attached to the application of this application.
<Claim 1>
A printing apparatus that prints on a recording medium while moving,
A control unit;
A head unit that performs printing based on the input print data;
An image acquisition unit for acquiring an image of the recording medium;
With
The controller is
Based on the image acquired by the image acquisition unit when the printing apparatus is moving in a moving direction in which the image acquisition unit is on the front side, at least one first shown on the recording medium Detect lines extending in the direction,
A printing apparatus, wherein a printing area is set along the first direction in an area that does not overlap the line of the recording medium.
<Claim 2>
The controller is
The determination process for determining whether a print width set by the print data is within a width in a second direction orthogonal to the first direction of the print area is performed. Printing device.
<Claim 3>
The controller is
A detection process for detecting, as the line, the first line and the second line shown on the recording medium along the first direction based on the image;
One print boundary line and the other print boundary line of the print region are set along the first direction so as to provide a margin in the second direction with respect to the first line and the second line. And an area setting process for determining the print area,
The printing apparatus according to
<Claim 4>
The controller is
A first distance between one end of the print width and the one print boundary line when the print width is within the width in the second direction of the print area of the recording medium; A first comparison process for comparing a second distance between the other end of the width and the other printing boundary line;
And performing a first print width adjustment process for reducing the print width so that the smaller distance of the first distance and the second distance is matched with the larger distance in the first comparison process. The printing apparatus according to claim 3.
<Claim 5>
When the print width is not within the width of the print area of the recording medium in the second direction, the control unit is configured to select the one of the one end and the other end of the print width. Secondly, the print width is reduced so that the end not positioned between the print boundary line and the other print boundary line is positioned between the one print boundary line and the other print boundary line. Perform the print width adjustment process,
In the second print width adjustment process, when the one end portion is not positioned between the one print boundary line and the other print boundary line, the second print width adjustment process is performed between the one end portion and the one print boundary line. The print width is reduced so that the first distance is the same distance as the second distance between the other end and the other print boundary, and the other end is the one print boundary. 4. The process according to claim 3, wherein the print width is reduced so that the second distance is the same as the first distance when the print distance is not between the first print boundary line and the other print boundary line. Printing device.
<Claim 6>
A movement amount detection unit for detecting the movement amount is provided.
The control unit calculates a print size of the print data from the print width, and when the print size is equal to or larger than a set size, a detection result of the movement amount by the movement amount detection unit is set in advance. 6. The printing apparatus according to claim 4, wherein when the movement amount reaches a certain amount, the head unit starts processing to print the print data on the recording medium with the calculated print size. .
<Claim 7>
A movement amount detection unit for detecting the movement amount is provided.
When the control unit is unable to detect the one line and the other line from the image even when the detection result of the movement amount by the movement amount detection unit reaches a preset movement amount, The printing apparatus according to claim 3, wherein the head unit starts printing on the recording medium in accordance with preset print data.
<Claim 8>
The controller is
A detection process for detecting, as the line, the other line shown on the recording medium along the first direction based on the image;
When the character string shown along the first direction is detected on the one end side of the print width of the recording medium based on the image, the first direction based on the character string is detected. One line determination process for defining one line along the line;
Region setting processing for defining the print region by setting one print boundary line and the other print boundary line of the print region so as to provide a margin in the second direction with respect to the one line and the other line And
The printing apparatus according to
<Claim 9>
The controller is
A detection process for detecting, as the line, the other line shown on the recording medium along the first direction based on the image;
One line determination process for defining one line along the first direction based on the one end of the print width;
The other print boundary line of the print region is set so as to provide the margin in a second direction orthogonal to the first direction with respect to the other line, and the one line is printed on one of the print regions. An area setting process for determining the print area by setting a boundary line;
The printing apparatus according to
<Claim 10>
10. The printing apparatus according to claim 3, wherein a length of the image acquisition unit in the second direction is larger than a length of the head unit in the second direction. 11.
<Claim 11>
A control method of a printing apparatus that performs printing on a recording medium while moving,
The image acquisition unit acquires an image of the recording medium when the printing apparatus is moving in a moving direction in which the image acquisition unit is on the front side of the head unit that performs printing based on the input print data. An image acquisition step;
Based on the image acquired by the image acquisition unit, at least one line shown in the recording medium extending in the first direction is detected, and the first area is not overlapped with the line of the recording medium. And a region setting step for setting a print region along one direction.
<Claim 12>
A program for a printing apparatus that prints on a recording medium while moving,
For the control unit of the printing device,
When the printing apparatus is moving in a moving direction in which the image acquisition unit is in front of the head unit that performs printing based on the input print data, the image acquisition unit acquires an image of the recording medium. Image acquisition processing,
Based on the image acquired by the image acquisition unit, at least one line shown in the recording medium that extends along the first direction is detected and does not overlap the line of the recording medium And a region setting process for setting a print region along the first direction.
1 印刷装置
11 ケース
13 インクカートリッジ
14 ヘッド部
15 光学センサ
16 ラインスキャナ
17 印刷開始位置マーカ
30 制御部
31 CPU
32 印刷サイズ演算部
33 印刷制御部
43 印刷部
44 移動量検出部
45 画像取得部
DESCRIPTION OF
32 Print
Claims (12)
制御部と、
入力された印刷データに基づいて印刷を行うヘッド部と、
前記記録媒体の画像を取得する画像取得部と、
を備え、
前記制御部は、
前記印刷装置が、前記画像取得部が前方側になる移動方向に移動しているときに前記画像取得部が取得した前記画像に基づいて、前記記録媒体に示されている少なくとも一つの、第1方向に延在する線を検出し、
前記記録媒体の前記線に重ならない領域に前記第1方向に沿って印刷領域を設定することを特徴とする印刷装置。 A printing apparatus that prints on a recording medium while moving,
A control unit;
A head unit that performs printing based on the input print data;
An image acquisition unit for acquiring an image of the recording medium;
With
The controller is
Based on the image acquired by the image acquisition unit when the printing apparatus is moving in a moving direction in which the image acquisition unit is on the front side, at least one first shown on the recording medium Detect lines extending in the direction,
A printing apparatus, wherein a printing area is set along the first direction in an area that does not overlap the line of the recording medium.
前記印刷データにより設定されている印刷幅が前記印刷領域の前記第1方向に直交する第2方向の幅内に収まっているかを判定する判定処理を行うことを特徴とする請求項1に記載の印刷装置。 The controller is
The determination process for determining whether a print width set by the print data is within a width in a second direction orthogonal to the first direction of the print area is performed. Printing device.
前記画像に基づいて、前記線として、前記記録媒体に前記第1方向に沿って示されている第1の線及び第2の線を検出する検出処理と、
それら前記第1の線及び前記第2の線に対して前記第2方向において余白を設けるように、前記印刷領域の一方の印刷境界線と他方の印刷境界線を前記第1方向に沿って設定することで前記印刷領域を定める領域設定処理と、を行い、
前記判定処理は、前記印刷幅が前記一方の印刷境界線と前記他方の印刷境界線との間に収まっているかに基づいて行われていることを特徴とする請求項2に記載の印刷装置。 The controller is
A detection process for detecting, as the line, the first line and the second line shown on the recording medium along the first direction based on the image;
One print boundary line and the other print boundary line of the print region are set along the first direction so as to provide a margin in the second direction with respect to the first line and the second line. And an area setting process for determining the print area,
The printing apparatus according to claim 2, wherein the determination process is performed based on whether the print width is between the one print boundary line and the other print boundary line.
前記印刷幅が前記記録媒体の前記印刷領域の前記第2方向の幅内に収まっている場合、前記印刷幅の一方の端部と前記一方の印刷境界線の間の第1距離と、前記印刷幅の他方の端部と前記他方の前記印刷境界線の間の第2距離と、を比較する第1比較処理と、
前記第1比較処理で前記第1距離と前記第2距離のうち距離が小さいほうを距離が大きいほうに合わせるように前記印刷幅を小さくする第1印刷幅調整処理と、を行うことを特徴とする請求項3に記載の印刷装置。 The controller is
A first distance between one end of the print width and the one print boundary line when the print width is within the width in the second direction of the print area of the recording medium; A first comparison process for comparing a second distance between the other end of the width and the other printing boundary line;
And performing a first print width adjustment process for reducing the print width so that the smaller distance of the first distance and the second distance is matched with the larger distance in the first comparison process. The printing apparatus according to claim 3.
前記第2印刷幅調整処理は、前記一方の端部が前記一方の印刷境界線と前記他方の印刷境界線との間に位置しない場合、前記一方の端部と前記一方の印刷境界線の間の第1距離が、前記他方の端部と前記他方の印刷境界線の間の第2距離と同じ距離となるように前記印刷幅を小さくし、前記他方の端部が前記一方の印刷境界線と前記他方の印刷境界線との間に位置しない場合、前記第2距離が前記第1距離と同じ距離となるように前記印刷幅を小さくする処理であることを特徴とする請求項3に記載の印刷装置。 When the print width is not within the width of the print area of the recording medium in the second direction, the control unit is configured to select the one of the one end and the other end of the print width. Secondly, the print width is reduced so that the end not positioned between the print boundary line and the other print boundary line is positioned between the one print boundary line and the other print boundary line. Perform the print width adjustment process,
In the second print width adjustment process, when the one end portion is not positioned between the one print boundary line and the other print boundary line, the second print width adjustment process is performed between the one end portion and the one print boundary line. The print width is reduced so that the first distance is the same distance as the second distance between the other end and the other print boundary, and the other end is the one print boundary. 4. The process according to claim 3, wherein the print width is reduced so that the second distance is the same as the first distance when the print distance is not between the first print boundary line and the other print boundary line. Printing device.
前記制御部は、前記印刷幅から前記印刷データの印刷サイズを算出して、前記印刷サイズが設定されているサイズ以上の場合、前記移動量検出部による前記移動量の検出結果があらかじめ設定されている移動量に到達すると、算出した前記印刷サイズで前記記録媒体への前記印刷データの印刷を前記ヘッド部に開始させる処理を行うことを特徴とする請求項4又は請求項5に記載の印刷装置。 A movement amount detection unit for detecting the movement amount is provided.
The control unit calculates a print size of the print data from the print width, and when the print size is equal to or larger than a set size, a detection result of the movement amount by the movement amount detection unit is set in advance. 6. The printing apparatus according to claim 4, wherein when the movement amount reaches a certain amount, the head unit starts processing to print the print data on the recording medium with the calculated print size. .
前記制御部は、前記移動量検出部による前記移動量の検出結果があらかじめ設定されている移動量に到達しても、前記画像から前記一方の線及び前記他方の線が検出できなかった場合、あらかじめ設定されている印刷データに従って前記記録媒体への印刷を前記ヘッド部に開始させることを特徴とする請求項3に記載の印刷装置。 A movement amount detection unit for detecting the movement amount is provided.
When the control unit is unable to detect the one line and the other line from the image even when the detection result of the movement amount by the movement amount detection unit reaches a preset movement amount, The printing apparatus according to claim 3, wherein the head unit starts printing on the recording medium in accordance with preset print data.
前記画像に基づいて、前記線として、前記記録媒体に前記第1方向に沿って示されている他方の線を検出する検出処理と、
前記画像に基づいて、前記記録媒体における前記印刷幅の一方の端部側に前記第1方向に沿って示されている文字列が検出された場合に、前記文字列に基づいて前記第1方向に沿った一方の線を定める一方の線決定処理と、
前記一方の線と前記他方の線に対して前記第2方向において余白を設けるように前記印刷領域の一方の印刷境界線と他方の印刷境界線を設定することで前記印刷領域を定める領域設定処理と、を行い、
前記判定処理は、前記印刷幅が前記一方の印刷境界線と前記他方の印刷境界線との間に収まっているかに基づいて行われていることを特徴とする請求項2に記載の印刷装置。 The controller is
A detection process for detecting, as the line, the other line shown on the recording medium along the first direction based on the image;
When the character string shown along the first direction is detected on the one end side of the print width of the recording medium based on the image, the first direction based on the character string is detected. One line determination process for defining one line along the line;
Region setting processing for defining the print region by setting one print boundary line and the other print boundary line of the print region so as to provide a margin in the second direction with respect to the one line and the other line And
The printing apparatus according to claim 2, wherein the determination process is performed based on whether the print width is between the one print boundary line and the other print boundary line.
前記画像に基づいて、前記線として、前記記録媒体に前記第1方向に沿って示されている他方の線を検出する検出処理と、
前記印刷幅の前記一方の端部に基づいて、前記第1方向に沿った一方の線を定める一方の線決定処理と、
前記他方の線に対して前記第1方向に直交する第2方向において前記余白を設けるように前記印刷領域の他方の印刷境界線を設定するとともに、前記一方の線を前記印刷領域の一方の印刷境界線に設定することで前記印刷領域を定める領域設定処理と、を行い、
前記判定処理は、前記印刷幅が前記印刷境界線間に収まっているかに基づいて行われていることを特徴とする請求項2に記載の印刷装置。 The controller is
A detection process for detecting, as the line, the other line shown on the recording medium along the first direction based on the image;
One line determination process for defining one line along the first direction based on the one end of the print width;
The other print boundary line of the print region is set so as to provide the margin in a second direction orthogonal to the first direction with respect to the other line, and the one line is printed on one of the print regions. An area setting process for determining the print area by setting a boundary line;
The printing apparatus according to claim 2, wherein the determination process is performed based on whether the print width is within the print boundary line.
入力された印刷データに基づいて印刷を行うヘッド部よりも画像取得部が前方側になる移動方向に前記印刷装置が移動しているときに、前記画像取得部で前記記録媒体の画像を取得する画像取得ステップと、
前記画像取得部が取得した前記画像に基づいて、前記記録媒体に示されている少なくとも一つの、第1方向に延在する線を検出し、前記記録媒体の前記線に重ならない領域に前記第1方向に沿って印刷領域を設定する領域設定ステップと、を含むことを特徴とする制御方法。 A control method of a printing apparatus that performs printing on a recording medium while moving,
The image acquisition unit acquires an image of the recording medium when the printing apparatus is moving in a moving direction in which the image acquisition unit is on the front side of the head unit that performs printing based on the input print data. An image acquisition step;
Based on the image acquired by the image acquisition unit, at least one line shown in the recording medium extending in the first direction is detected, and the first area is not overlapped with the line of the recording medium. And a region setting step for setting a print region along one direction.
印刷装置の制御部に対して、
入力された印刷データに基づいて印刷を行うヘッド部よりも画像取得部が前方側になる移動方向に前記印刷装置が移動しているときに、前記画像取得部で前記記録媒体の画像を取得させる画像取得処理と、
前記画像取得部により取得させた前記画像に基づいて、前記記録媒体に示されている少なくとも一つの、第1方向に沿って延在する線を検出し、前記記録媒体の前記線に重ならない領域に前記第1方向に沿って印刷領域を設定する領域設定処理と、を少なくとも実行させることを特徴とするプログラム。 A program for a printing apparatus that prints on a recording medium while moving,
For the control unit of the printing device,
When the printing apparatus is moving in a moving direction in which the image acquisition unit is in front of the head unit that performs printing based on the input print data, the image acquisition unit acquires an image of the recording medium. Image acquisition processing,
Based on the image acquired by the image acquisition unit, at least one line shown in the recording medium that extends along the first direction is detected and does not overlap the line of the recording medium And a region setting process for setting a print region along the first direction.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/675,278 US10166797B2 (en) | 2016-09-27 | 2017-08-11 | Printer which sets a print area based on a scanned image of a material on which printing is to be performed, method for controlling printer, and recording medium |
CN201710777060.8A CN107867094B (en) | 2016-09-27 | 2017-08-31 | The control method and recording medium of printing equipment, printing equipment |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016187676 | 2016-09-27 | ||
JP2016187676 | 2016-09-27 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2021022937A Division JP7031767B2 (en) | 2016-09-27 | 2021-02-17 | Printing equipment, control methods and programs |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2018052099A true JP2018052099A (en) | 2018-04-05 |
JP2018052099A5 JP2018052099A5 (en) | 2020-04-30 |
JP6862946B2 JP6862946B2 (en) | 2021-04-21 |
Family
ID=61832849
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017048823A Active JP6862946B2 (en) | 2016-09-27 | 2017-03-14 | Printing equipment, control methods and programs |
JP2021022937A Active JP7031767B2 (en) | 2016-09-27 | 2021-02-17 | Printing equipment, control methods and programs |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2021022937A Active JP7031767B2 (en) | 2016-09-27 | 2021-02-17 | Printing equipment, control methods and programs |
Country Status (1)
Country | Link |
---|---|
JP (2) | JP6862946B2 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180088881A1 (en) * | 2016-09-27 | 2018-03-29 | Casio Computer Co., Ltd. | Printer, method for controlling printer, and recording medium |
JP2020029044A (en) * | 2018-08-23 | 2020-02-27 | カシオ計算機株式会社 | Printer, printing system, printing method and program |
JP2021041583A (en) * | 2019-09-10 | 2021-03-18 | 京セラドキュメントソリューションズ株式会社 | Image forming device and image forming method |
CN112739543A (en) * | 2018-09-28 | 2021-04-30 | 株式会社理光 | Portable image forming apparatus and portable image forming apparatus main body |
JP2021075023A (en) * | 2019-11-13 | 2021-05-20 | 株式会社リコー | Handy mobile printer, method for controlling handy mobile printer and program |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0226769A (en) * | 1988-07-18 | 1990-01-29 | Nec Home Electron Ltd | Manual type printer |
JPH02123866A (en) * | 1988-11-02 | 1990-05-11 | Canon Inc | Recorder |
JPH09109468A (en) * | 1995-10-18 | 1997-04-28 | Brother Ind Ltd | Manual scanning type printing apparatus |
JPH09300712A (en) * | 1996-05-08 | 1997-11-25 | Brother Ind Ltd | Printer |
US20070139508A1 (en) * | 2005-12-21 | 2007-06-21 | Muyskens Robert H | Hand-held ink jet printer |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08118759A (en) * | 1994-10-27 | 1996-05-14 | Canon Inc | Printer and printing method |
-
2017
- 2017-03-14 JP JP2017048823A patent/JP6862946B2/en active Active
-
2021
- 2021-02-17 JP JP2021022937A patent/JP7031767B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0226769A (en) * | 1988-07-18 | 1990-01-29 | Nec Home Electron Ltd | Manual type printer |
JPH02123866A (en) * | 1988-11-02 | 1990-05-11 | Canon Inc | Recorder |
JPH09109468A (en) * | 1995-10-18 | 1997-04-28 | Brother Ind Ltd | Manual scanning type printing apparatus |
JPH09300712A (en) * | 1996-05-08 | 1997-11-25 | Brother Ind Ltd | Printer |
US20070139508A1 (en) * | 2005-12-21 | 2007-06-21 | Muyskens Robert H | Hand-held ink jet printer |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180088881A1 (en) * | 2016-09-27 | 2018-03-29 | Casio Computer Co., Ltd. | Printer, method for controlling printer, and recording medium |
US10165146B2 (en) * | 2016-09-27 | 2018-12-25 | Casio Computer Co., Ltd. | Printer control using scanner disposed ahead of print head to detect frame on print material based on printer movement amount and acquired image before printing |
JP2020029044A (en) * | 2018-08-23 | 2020-02-27 | カシオ計算機株式会社 | Printer, printing system, printing method and program |
CN112739543A (en) * | 2018-09-28 | 2021-04-30 | 株式会社理光 | Portable image forming apparatus and portable image forming apparatus main body |
JP2021041583A (en) * | 2019-09-10 | 2021-03-18 | 京セラドキュメントソリューションズ株式会社 | Image forming device and image forming method |
JP2021075023A (en) * | 2019-11-13 | 2021-05-20 | 株式会社リコー | Handy mobile printer, method for controlling handy mobile printer and program |
Also Published As
Publication number | Publication date |
---|---|
JP2021079706A (en) | 2021-05-27 |
JP7031767B2 (en) | 2022-03-08 |
JP6862946B2 (en) | 2021-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7163993B2 (en) | Handy printer, control method and program | |
JP7031767B2 (en) | Printing equipment, control methods and programs | |
US20070076082A1 (en) | Methods and apparatuses for measuring print area using hand-held printer | |
US8724146B2 (en) | Systems and methods for defining print settings using device movements | |
US10166797B2 (en) | Printer which sets a print area based on a scanned image of a material on which printing is to be performed, method for controlling printer, and recording medium | |
US20120250072A1 (en) | Systems and methods for defining print settings using an input interface | |
US20070097101A1 (en) | User-interface system, method & apparatus | |
JP5326912B2 (en) | Printing device, composite image data generation device, and composite image data generation program | |
JP2016225699A (en) | Image forming apparatus and image forming program | |
US20130266206A1 (en) | Training A User On An Accessibility Device | |
JP2016157180A (en) | Handwriting input device | |
JP6260177B2 (en) | Image processing system, image processing method, and image processing program | |
JP6477558B2 (en) | Character learning system | |
US11461056B2 (en) | Printing device for printing while being manually moved, and method for producing printed matter using printing device | |
JP6754707B2 (en) | Image forming device | |
JP2021157256A (en) | Information processing device, storage medium storing display program, and display method | |
JP2007203590A (en) | Printing apparatus and printing position adjusting method | |
JP5664719B2 (en) | Printing device, composite image data generation device, and composite image data generation program | |
JP2007188159A (en) | Processor, program, and form for electronic pen | |
JP2005066653A (en) | Laser marking system and laser marking method | |
JP6520761B2 (en) | Information processing apparatus and program | |
JP2020155070A (en) | Information processing apparatus and program | |
JP6384079B2 (en) | Handwritten layout detection printing apparatus and method | |
JP2021149314A (en) | Program and electronic device | |
JP2022133891A (en) | handy printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200313 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200313 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210107 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210126 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210217 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20210302 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210315 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6862946 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |