JP4587171B2 - Recording apparatus and recording apparatus control method - Google Patents

Recording apparatus and recording apparatus control method Download PDF

Info

Publication number
JP4587171B2
JP4587171B2 JP2005086588A JP2005086588A JP4587171B2 JP 4587171 B2 JP4587171 B2 JP 4587171B2 JP 2005086588 A JP2005086588 A JP 2005086588A JP 2005086588 A JP2005086588 A JP 2005086588A JP 4587171 B2 JP4587171 B2 JP 4587171B2
Authority
JP
Japan
Prior art keywords
recording
image data
recording medium
raster
rasters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005086588A
Other languages
Japanese (ja)
Other versions
JP2005313616A5 (en
JP2005313616A (en
Inventor
義文 藤田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2005086588A priority Critical patent/JP4587171B2/en
Publication of JP2005313616A publication Critical patent/JP2005313616A/en
Publication of JP2005313616A5 publication Critical patent/JP2005313616A5/ja
Application granted granted Critical
Publication of JP4587171B2 publication Critical patent/JP4587171B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は記録装置、記録システム及び記録開始位置調整方法に関し、より詳細には、所定方向に配列された複数の記録素子を有する記録ヘッドを搭載したキャリッジを、前記記録素子の配列方向と交差する方向に記録媒体上で走査させて記録を行う記録装置で、記録媒体の全面に記録を行うフチ無し印刷を行う際の記録開始位置の調整に関する。   The present invention relates to a recording apparatus, a recording system, and a recording start position adjusting method, and more specifically, a carriage on which a recording head having a plurality of recording elements arranged in a predetermined direction is crossed with the arrangement direction of the recording elements. The present invention relates to adjustment of a recording start position when performing borderless printing in which recording is performed on the entire surface of a recording medium in a recording apparatus that performs recording by scanning the recording medium in a direction.

例えばワードプロセッサ、パーソナルコンピュータ、ファクシミリ等に於ける情報出力装置として、所望される文字や画像等の情報を用紙やフィルム等シート状の記録媒体に記録を行うプリンタが広く使用されている。   For example, as information output devices in word processors, personal computers, facsimiles, and the like, printers that record desired information such as characters and images on a sheet-like recording medium such as paper or film are widely used.

プリンタの記録方式としては様々な方式が知られているが、用紙等の記録媒体に非接触記録が可能である、カラー化が容易である、静粛性に富む、等の理由でインクジェット方式が近年特に注目されており、又その構成としては所望される記録情報に応じてインクを吐出する記録ヘッドを装着すると共に用紙等の記録媒体の送り方向と交差する方向に往復走査しながら記録を行なうシリアル記録方式が、安価で小型化が容易などの点から一般的に広く用いられている。   Various types of recording methods are known for printers, but inkjet methods have recently been used for reasons such as non-contact recording on recording media such as paper, easy colorization, and high quietness. In particular, the configuration is a serial in which a recording head for ejecting ink according to desired recording information is mounted and recording is performed while reciprocating scanning in a direction crossing the feeding direction of a recording medium such as paper. Recording methods are generally widely used because they are inexpensive and easy to downsize.

近年、インクジェット方式のプリンタには、記録媒体全面に記録を行う(記録媒体の端部に余白部分が無くなるように記録を行う)、いわゆる「フチ無し印刷」が可能なものが増えている。   In recent years, an increasing number of inkjet printers are capable of so-called “borderless printing” in which recording is performed on the entire surface of a recording medium (recording is performed so that there is no blank portion at the end of the recording medium).

このようなフチ無し印刷を実現する際には、記録に使用する記録媒体より大きな記録領域を有する記録データを生成して、記録媒体からはみだした部分のインクはプラテン上もしくは下部に設けられたインク吸収体上に吐出される(例えば、特許文献1を参照)。   When realizing such borderless printing, the recording data having a recording area larger than the recording medium used for recording is generated, and the portion of the ink protruding from the recording medium is the ink provided on or below the platen. It is discharged onto the absorber (see, for example, Patent Document 1).

また、このような記録装置では、ホスト機器からのデータの転送時間を短縮すると共に記録速度の向上のために、ホスト機器にインストールされたプリンタドライバで複数のラスタを含むラスタブロック単位でイメージ(画像)データを生成して記録装置に転送し、記録装置では受信したラスタブロック単位のイメージデータを、記録データに変換すべくバッファに展開することも行われている(例えば、特許文献1参照)。
特開2003−127341 特開2000−099295
Also, in such a recording apparatus, in order to shorten the data transfer time from the host device and improve the recording speed, the printer driver installed in the host device uses an image (raster block unit including a plurality of rasters). Data is generated and transferred to a recording apparatus, and the recording apparatus expands received image data in units of raster blocks in a buffer so as to be converted into recording data (see, for example, Patent Document 1).
JP 2003-127341 A JP 2000-099295 A

しかしながら、上記のようにホスト機器からラスタブロック単位でイメージデータを受信する記録装置で、フチ無し印刷を行うと以下のような問題が生じる。   However, when borderless printing is performed in the recording apparatus that receives image data in units of raster blocks from the host device as described above, the following problems occur.

図11は、記録媒体のサイズ、記録目標とする範囲(記録目標範囲)、及びイメージデータのサイズの関係の例を示す図である。図中、111が記録媒体、112が記録装置により記録目標範囲、113がイメージデータをそれぞれ示しており、この図では記録媒体111、記録目標範囲112、イメージデータ113を重ねて表している。図に示すように、イメージデータ113のサイズは、走査方向(x方向)の長さはdw、搬送方向(y方向)の長さはdhとなっている。また、記録目標範囲112のサイズは、走査方向(x方向)の長さはaw、搬送方向(y方向)の長さはahとなっている。また、記録媒体111のサイズは、走査方向(x方向)の長さはpw、搬送方向(y方向)の長さはphとなっている。そして、pw<aw<dw、ph<ah<dhとなっている。その面積を比較すると、111<112<113となっている。また、図示した例では、111、112及び113は中心合わせされている。   FIG. 11 is a diagram illustrating an example of the relationship between the size of a recording medium, a recording target range (recording target range), and the size of image data. In the figure, reference numeral 111 denotes a recording medium, 112 denotes a recording target range by the recording apparatus, and 113 denotes image data. In FIG. As shown in the drawing, the size of the image data 113 is dw in the scanning direction (x direction) and dh in the transport direction (y direction). The size of the recording target range 112 is aw in the scanning direction (x direction) and ah in the transport direction (y direction). The size of the recording medium 111 is pw in the scanning direction (x direction) and ph in the transport direction (y direction). Then, pw <aw <dw and ph <ah <dh. Comparing the areas, 111 <112 <113. In the illustrated example, 111, 112, and 113 are centered.

このように記録媒体の全面に記録がなされ、余白部分がない印刷をフチ無し印刷と表現している。なお、この場合のほかに、例えば記録媒体の端部に少し余白は残すものや、記録媒体の所定の端部のみ余白を無くすものにも適用できる。例えば、記録媒体の左端部や右端部、後端側(用紙送り方向の上流側)の余白がない場合についても適用できる。このようなフチ無し印刷を行うとき、記録媒体111の範囲外となり記録媒体に記録されないイメージデータは不要であるので、受信した後に破棄する必要がある。   In this way, printing that is recorded on the entire surface of the recording medium and has no margin is expressed as borderless printing. In addition to this case, the present invention can be applied to, for example, a case where a margin is left slightly at the end of the recording medium, or a case where the margin is eliminated only at a predetermined end of the recording medium. For example, the present invention can also be applied to a case where there is no margin on the left end portion, right end portion, or rear end side (upstream side in the paper feed direction) of the recording medium. When such borderless printing is performed, image data that is outside the range of the recording medium 111 and is not recorded on the recording medium is unnecessary, and thus must be discarded after being received.

しかしながら、上記のようにイメージデータが複数ラスタのブロック単位で転送される場合には、イメージデータを破棄する単位もラスタブロック単位となる。従って、イメージデータの高さ(用紙送り方向の長さ)dhと記録媒体の高さ(用紙送り方向の長さ)phとの差の1/2が、ラスタブロックの高さの倍数でないと、余分なラスタデータが残ってしまい、余分なラスタ分だけずれた位置から記録が開始され、用紙送り方向におけるフチ無し印刷の開始位置がユーザの意図した位置とずれてしまう。   However, when image data is transferred in units of blocks of a plurality of rasters as described above, the unit for discarding image data is also in units of raster blocks. Accordingly, if the half of the difference between the height (length in the paper feed direction) dh of the image data and the height (length in the paper feed direction) ph of the recording medium is not a multiple of the height of the raster block, an extra Raster data remains, recording starts from a position shifted by an extra raster, and the start position of borderless printing in the paper feed direction shifts from the position intended by the user.

本発明は以上のような状況に鑑みてなされたものであり、ラスタブロック単位でイメージデータを受信する記録装置において、用紙送り方向におけるフチ無し印刷の開始位置を正確に制御することを目的とする。   The present invention has been made in view of the above situation, and an object of the present invention is to accurately control the start position of borderless printing in the paper feed direction in a recording apparatus that receives image data in units of raster blocks.

上記目的を達成する本発明の一態様としての記録位置は、所定方向に配列された複数の記録素子を有する記録ヘッドを用いて記録媒体に対して記録を行う記録装置であって、
記録位置まで前記記録媒体を給紙する給紙手段と、
接続されたホスト機器から転送された制御コマンドと共に予め定められた複数のラスタからなるラスタブロックを単位とした画像データを格納する受信バッファと、
前記制御コマンドに含まれる画像データのサイズに関する情報及び記録媒体のサイズに関する情報に基づいて、前記記録媒体の全面に記録を行うフチ無し印刷を行うか否かを判定する判定手段と、
前記フチ無し印刷を行うときに、予め定められた複数のラスタの数と、前記画像データの搬送方向における長さと、前記記録媒体の外側に予め定められている記録目標範囲の搬送方向における長さと、に基づいて、前記記録ヘッドへ転送しないラスタ数N(Nは自然数)を算出する算出手段と、
前記記録位置に給紙された記録媒体に対して記録を行うために、前記画像データの先頭のラスタから前記記録ヘッドへ転送しないラスタ数N(Nは自然数)分の画像データの読み捨てを行い、N+1番目(Nは自然数)のラスタ位置の画像データから前記記録ヘッドへ転送を行って記録動作の開始を制御する制御手段と、を備えることを特徴とする。
A recording position as one aspect of the present invention that achieves the above object is a recording apparatus that performs recording on a recording medium using a recording head having a plurality of recording elements arranged in a predetermined direction.
Paper feeding means for feeding the recording medium to a recording position;
A reception buffer for storing image data in units of raster blocks each including a plurality of predetermined rasters together with a control command transferred from a connected host device;
Determining means for determining whether to perform borderless printing for recording on the entire surface of the recording medium based on information on the size of the image data included in the control command and information on the size of the recording medium;
When performing the borderless printing, a predetermined number of rasters, a length in the transport direction of the image data, and a length in the transport direction of a recording target range predetermined on the outside of the recording medium , based on the not transferred to the recording head raster number N (N is a natural number) and calculation means for calculating,
In order to perform recording on a recording medium fed to the recording position, image data corresponding to the number of rasters N (N is a natural number) not transferred from the head raster of the image data to the recording head is discarded . , Control means for controlling the start of the recording operation by transferring the image data at the (N + 1) th (N is a natural number) raster position to the recording head .

更に、上記目的は、上記の記録装置に対応した記録装置の記録開始位置調整方法、該記録開始位置の調整方法をコンピュータ装置に実行させるコンピュータプログラム、及び該コンピュータプログラムを記憶した記憶媒体によっても達成される。   Furthermore, the above object is achieved by a recording start position adjustment method for a recording apparatus corresponding to the above recording apparatus, a computer program for causing a computer apparatus to execute the recording start position adjustment method, and a storage medium storing the computer program. Is done.

本発明によれば、ホスト機器から複数のラスタを単位として画像データを受信する記録装置で、記録媒体の全面に記録を行うフチ無し印刷を行う際に、記録媒体の搬送方向における長さからはみ出る画像データの量が、単位となる複数のラスタの倍数で算出され、該算出された量の画像データは記録データの変換に使用せずに読み捨て、剰余のラスタ数に対応して記録媒体の搬送方向における記録開始位置が調整される。   According to the present invention, in a recording apparatus that receives image data in units of a plurality of rasters from a host device, when performing borderless printing for recording on the entire surface of the recording medium, the recording medium protrudes from the length in the conveyance direction. The amount of image data is calculated as a multiple of a plurality of rasters as a unit, and the calculated amount of image data is discarded without being used for conversion of recording data, and the recording medium is conveyed in accordance with the number of remaining rasters. The recording start position in the direction is adjusted.

従って、複数のラスタを単位として画像データを受信する記録装置において、記録媒体の搬送方向におけるフチ無し印刷の開始位置を正確に制御することが可能となる。   Therefore, in a recording apparatus that receives image data in units of a plurality of rasters, it is possible to accurately control the start position of borderless printing in the conveyance direction of the recording medium.

以下に、添付図面を参照して、本発明の好適な実施の形態を例示的に詳しく説明する。ただし、以下の実施形態に記載されている構成要素はあくまで例示であり、本発明の範囲をそれらのみに限定する趣旨のものではない。   Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, the components described in the following embodiments are merely examples, and are not intended to limit the scope of the present invention only to them.

なお以下に説明する実施形態では、記録装置としてのインクジェット記録方式を用いたプリンタと、ホスト機器としてのパーソナルコンピュータとを含む記録システムを例に挙げて説明する。   In the embodiments described below, a recording system including a printer using an inkjet recording method as a recording apparatus and a personal computer as a host device will be described as an example.

なお、この明細書において、「記録」(「印刷」という場合もある)とは、文字、図形等有意の情報を形成する場合のみならず、有意無意を問わず、また人間が視覚で知覚し得るように顕在化したものであるか否かを問わず、広く記録媒体上に画像、模様、パターン等を形成する、または媒体の加工を行う場合も表すものとする。   In this specification, “recording” (sometimes referred to as “printing”) is not only for forming significant information such as characters and figures, but also for human beings visually perceived regardless of significance. Regardless of whether or not it has been manifested, it also represents a case where an image, a pattern, a pattern, or the like is widely formed on a recording medium or the medium is processed.

また、「記録媒体」とは、一般的な記録装置で用いられる紙のみならず、広く、布、プラスチック・フィルム、金属板、ガラス、セラミックス、木材、皮革等、インクを受容可能なものも表すものとする。   “Recording medium” refers not only to paper used in general recording apparatuses but also widely to cloth, plastic film, metal plate, glass, ceramics, wood, leather, and the like that can accept ink. Shall.

さらに、「インク」(「液体」と言う場合もある)とは、上記「記録(プリント)」の定義と同様広く解釈されるべきもので、記録媒体上に付与されることによって、画像、模様、パターン等の形成または記録媒体の加工、或いはインクの処理(例えば記録媒体に付与されるインク中の色剤の凝固または不溶化)に供され得る液体を表すものとする。   Furthermore, “ink” (sometimes referred to as “liquid”) is to be interpreted broadly in the same way as the definition of “recording (printing)” above. It represents a liquid that can be used for forming a pattern or the like, processing a recording medium, or processing an ink (for example, solidification or insolubilization of a colorant in ink applied to the recording medium).

またさらに、「記録素子」とは、特にことわらない限り吐出口(ノズル)ないしこれに連通する液路およびインク吐出に利用されるエネルギーを発生する素子を総括して言うものとする。   Further, the “recording element” collectively refers to an ejection port (nozzle) or a liquid channel communicating with the ejection port and an element that generates energy used for ink ejection unless otherwise specified.

加えて、「読み捨て(処理)」とは、データを使用せずに破棄あるいは除去することを意味する。   In addition, “reading (processing)” means discarding or removing data without using it.

図1は、本発明に係る実施形態としての記録システムを示しており、図中、101はホスト機器としてのパーソナルコンピュータ(以下、単にPCとも称する)、102は記録装置としてのインクジェットプリンタ(以下、単にプリンタとも称する)、103はホスト機器とプリンタとを接続するケーブルである。   FIG. 1 shows a recording system as an embodiment according to the present invention. In FIG. 1, 101 is a personal computer (hereinafter also simply referred to as PC) as a host device, and 102 is an inkjet printer (hereinafter referred to as a recording apparatus). 103 is a cable for connecting the host device and the printer.

PC101にはプリンタ102用のプリンタドライバがインストールされており、例えば、アプリケーションの実行中に記録を指示すると、プリンタドライバが起動されてユーザの指定した情報に基づいてイメージ(画像)データが生成され、複数のラスタからなるラスタブックを単位として、ケーブル103を介して制御コマンドと共にプリンタ102に転送される。   A printer driver for the printer 102 is installed in the PC 101. For example, when recording is instructed during execution of an application, the printer driver is activated and image (image) data is generated based on information specified by the user. A raster book composed of a plurality of rasters is transferred as a unit to the printer 102 through the cable 103 together with a control command.

プリンタ102は、制御コマンドとラスタブロック単位のイメージデータを受信すると、制御コマンドを解析すると共にラスタブロックデータを記録ヘッドの1回の走査に対応した記録データに変換して、記録を実行する。   When the printer 102 receives the control command and raster block unit image data, the printer 102 analyzes the control command, converts the raster block data into print data corresponding to one scan of the print head, and executes printing.

図14は、本実施形態で説明するプリンタ102の斜視図である。3は複数枚積載された記録媒体を1枚ずつ記録部分に送り出すASFである。ASF3から送り出された記録媒体はLFローラ6と不図示のピンチローラにより記録部に搬送される。   FIG. 14 is a perspective view of the printer 102 described in the present embodiment. Reference numeral 3 denotes an ASF that sends out a plurality of recording media stacked one by one to a recording portion. The recording medium sent out from the ASF 3 is conveyed to the recording unit by the LF roller 6 and a pinch roller (not shown).

LFローラ6はLFモータ5の駆動力をLFギア4により伝達され記録命令に基づき間欠的に駆動される副走査方向に記録媒体を搬送する。   The LF roller 6 conveys the driving force of the LF motor 5 by the LF gear 4 and conveys the recording medium in the sub-scanning direction that is intermittently driven based on the recording command.

記録媒体の搬送のためにプラテン9が配置されている。プラテン9に対向する部分にはインクジェット記録ヘッドを搭載したキャリッジ1が配置され、キャリッジ1にはインクジェット記録ヘッドにインクを供給するインクを貯蔵したインクタンクが搭載されている。   A platen 9 is disposed for transporting the recording medium. A carriage 1 on which an ink jet recording head is mounted is disposed at a portion facing the platen 9, and an ink tank that stores ink for supplying ink to the ink jet recording head is mounted on the carriage 1.

キャリッジ1はガイド軸2に案内され不図示のキャリッジモータの駆動を不図示のタイミングベルトを介して駆動され記録命令に基づき主走査方向に記録ヘッドを走査する。   The carriage 1 is guided by a guide shaft 2 and is driven by a carriage motor (not shown) via a timing belt (not shown) to scan the recording head in the main scanning direction based on a recording command.

LFローラ6による副走査とキャリッジ1による主走査とを交互に繰り返し記録媒体上に画像を形成するいわゆるシリアル記録動作を行う。記録が終了した記録媒体は排紙ローラ11により機外に排出される。   A so-called serial recording operation for forming an image on a recording medium is performed by alternately repeating sub-scanning by the LF roller 6 and main scanning by the carriage 1. The recording medium for which recording has been completed is discharged out of the apparatus by a discharge roller 11.

なお、プラテン9にはプラテン開口10が設けられ、プラテン開口10直下には不図示のプラテン吸収体12が設けられている。   The platen 9 is provided with a platen opening 10, and a platen absorber 12 (not shown) is provided immediately below the platen opening 10.

図2は、プリンタ102の制御構成を示すブロック図である。   FIG. 2 is a block diagram illustrating a control configuration of the printer 102.

図2に示すように、プリンタ102は、ホスト機器から送信されるコマンドやイメージデータの受信と、各種制御信号の通信を制御するインタフェース(I/F)部E1、RAM E5、キャリッジを駆動するキャリッジモータや記録媒体を搬送する搬送モータ等を制御するモータドライバE6、記録データに従って記録ヘッドを駆動する記録ヘッドドライバE7、装置全体を制御するMPU E8、RAMやROMに直接アクセスしてデータの転送を行うDMA部 E9、制御シーケンスに対応したプログラム、所要のテーブル、その他の固定データを格納したROM E10、各種情報やデータを電気的に書き換え可能な状態で格納するEEPROM E11、記録ヘッドの温度やインク残量検知などの各種センサや操作スイッチを含むセンサ部E12を含み、これら各部はシステムバスで相互に接続されている。   As shown in FIG. 2, the printer 102 includes an interface (I / F) unit E <b> 1 that controls reception of commands and image data transmitted from the host device and communication of various control signals, a RAM E <b> 5, and a carriage that drives the carriage. A motor driver E6 that controls a motor, a conveyance motor that conveys a recording medium, etc., a recording head driver E7 that drives a recording head according to the recording data, an MPU E8 that controls the entire apparatus, and a RAM or ROM to directly transfer data DMA unit E9, program corresponding to control sequence, required table, ROM E10 storing other fixed data, EEPROM E11 storing various information and data in an electrically rewritable state, print head temperature and ink remaining Sensing including various sensors and operation switches These parts are connected to each other by a system bus.

RAM E5内には、受信したコマンドやイメージデータを一時的に格納する受信バッファE2、イメージデータの展開領域やプログラム実行のための作業用領域として使用されるワークバッファE3、記録ヘッドの走査に対応した形式の記録データが格納されるプリントバッファE4の各領域が設けられている。   In the RAM E5, a reception buffer E2 for temporarily storing received commands and image data, a work buffer E3 used as a development area for image data and a work area for program execution, and scanning of the recording head are supported. Each area of the print buffer E4 in which recording data of the above format is stored is provided.

以下、本実施形態におけるフチ無し印刷の際のデータ処理について詳細に説明する。なお、記録媒体のサイズ、記録目標範囲、及びイメージデータのサイズの関係は、上記図11に示した関係と同様であるとする。   Hereinafter, data processing at the time of borderless printing in the present embodiment will be described in detail. It is assumed that the relationship among the size of the recording medium, the recording target range, and the size of the image data is the same as that shown in FIG.

ホスト機器からI/F部 E1を介して記録開始コマンドを受信して受信バッファE2に格納されると、コマンド解析処理のタスクが起動される。図3は、コマンド解析処理のフローチャートである。   When a recording start command is received from the host device via the I / F unit E1 and stored in the reception buffer E2, a command analysis processing task is activated. FIG. 3 is a flowchart of command analysis processing.

コマンド解析処理では、始めに各種パラメータを初期化する(ステップS301)。その後、コマンド解析処理を行っていることを示すコマンド解析実行フラグをセットしてホスト機器へ当該ジョブの開始を通知し(ステップS302)、コマンドの受信及び解析処理を開始する(ステップS303)。このコマンド受信及び解析処理は、ジョブエンドコマンド受信するか、ジョブキャンセルのメッセージを受信するまで実行される。コマンド受信及び解析処理が終了したら、セットされているコマンド解析実行フラグをリセットしてホスト機器へジョブの終了を通知する(ステップS304)。   In the command analysis process, first, various parameters are initialized (step S301). Thereafter, a command analysis execution flag indicating that command analysis processing is being performed is set to notify the host device of the start of the job (step S302), and command reception and analysis processing is started (step S303). This command reception and analysis process is executed until a job end command is received or a job cancel message is received. When the command reception and analysis process ends, the command analysis execution flag that has been set is reset, and the end of the job is notified to the host device (step S304).

ステップS303のコマンド受信及び解析処理について、図4のフローチャートを参照して更に詳しく説明する。   The command reception and analysis process in step S303 will be described in more detail with reference to the flowchart of FIG.

まず、受信バッファE2のデータを1バイト単位で解析し(ステップS401)、S402〜S407で受信したコマンドがそれぞれ対応するコマンドであるか判定し、該当する場合にはコマンドディスパッチ処理を行う。   First, the data in the reception buffer E2 is analyzed in units of 1 byte (step S401), it is determined whether the commands received in S402 to S407 are the corresponding commands, and if applicable, command dispatch processing is performed.

具体的には、ステップS402ではジョブエンドコマンド(job_end)であるか否かを判定し、該当すればステップS408へ進みジョブエンド処理を実行する。ステップS403ではページマージンコマンド(page_margin)であるか否かを判定し、該当すればステップS409へ進み、ページマージン設定処理を実行する。ステップS405ではラスタブロックスキップコマンド(raster_block_skip)であるか否かを判定し、該当すればステップS410へ進み、ラスタブロックスキップ処理を実行する。ステップS407ではマルチラスタデータ(multi_raster_image)であるか否かを判定し、該当すればステップS411へ進み、マルチラスタデータ処理を実行する。   Specifically, in step S402, it is determined whether it is a job end command (job_end), and if applicable, the process proceeds to step S408 to execute job end processing. In step S403, it is determined whether or not it is a page margin command (page_margin). If the command is applicable, the process proceeds to step S409 to execute page margin setting processing. In step S405, it is determined whether or not it is a raster block skip command (raster_block_skip), and if so, the process proceeds to step S410 to execute a raster block skip process. In step S407, it is determined whether or not the data is multi-raster data (multi_raster_image). If yes, the process proceeds to step S411 to execute multi-raster data processing.

ここでラスタブロックの実施形態であるマルチラスタデータについて説明する。通常のラスタデータは、1ラスタ毎にラスタデータの内容を示すヘッダーがラスタデータの先頭部分に付いている。一方、マルチラスタデータは、例えば、ラスタブロックに含まれる16ラスタ分のデータ内容を示すヘッダーがデータの先頭についており、そのヘッダーの後に、16ラスタ分のデータが続く。ここで、先のラスタと次のラスタとの間には、区切りを示すコードが挿入されている。なお、1つのマルチラスタデータに含まれるラスタの数、すなわち、ラスタブロックの単位は、16に限定するものではなく、例えば8あるいは32でもかまわない。   Here, multi-raster data, which is an embodiment of a raster block, will be described. In normal raster data, a header indicating the contents of the raster data is attached to the head portion of the raster data for each raster. On the other hand, in multi-raster data, for example, a header indicating the data contents of 16 rasters included in the raster block is at the head of the data, and data for 16 rasters follows the header. Here, a code indicating a delimiter is inserted between the previous raster and the next raster. Note that the number of rasters included in one multi-raster data, that is, the unit of raster blocks is not limited to 16, and may be 8 or 32, for example.

また、上記以外の他のコマンド処理については、エラー処理を含めてその他の処理としてステップS412で実行するが、ここではその詳細は省略する。   Further, command processing other than the above is executed in step S412 as other processing including error processing, but details thereof are omitted here.

以下、ステップS409からS411で実行される処理について、図5から図7を参照してより詳細に説明する。   Hereinafter, the processing executed in steps S409 to S411 will be described in more detail with reference to FIGS.

図5は、ステップS409で実行されるページマージン設定処理の詳細を示すフローチャートである。ここでは、図11に示すプリンタドライバで生成されたイメージデータ113のサイズの情報を受信バッファE2から読み出して対応するグローバル変数にセットする。具体的には、ステップS501では記録ヘッドの走査方向であるx方向の原点を変数print_data_x0にセットし、ステップS502では記録媒体の送り方向であるy方向の原点を変数print_data_y0にセットし、ステップS503ではx方向の長さdwを変数print_data_widthにセットし、ステップS504ではy方向の長さdhを変数print_data_lengthにセットする。   FIG. 5 is a flowchart showing details of the page margin setting process executed in step S409. Here, the size information of the image data 113 generated by the printer driver shown in FIG. 11 is read from the reception buffer E2 and set to the corresponding global variable. Specifically, in step S501, the origin in the x direction, which is the scanning direction of the recording head, is set in a variable print_data_x0. In step S502, the origin in the y direction, which is the feeding direction of the recording medium, is set in the variable print_data_y0. The length dw in the x direction is set to the variable print_data_width, and the length dh in the y direction is set to the variable print_data_length in step S504.

図6は、ステップS410で実行されるラスタブロックスキップ処理の詳細を示すフローチャートである。ステップS601では、給紙実行メッセージが既に発行されているか否かを、フラグflag_sendmesLoadがセットされているか否かによって判定する。給紙実行メッセージが発行されていなければ、ステップS602のページ開始処理を実行し、ステップS603へ進む。一方、給紙実行メッセージが発行されていれば、ステップS602を実行せずにステップS603へ進む。ステップS602のページ開始処理は、図5に関して説明したページマージン設定処理によって得られたイメージデータのサイズと記録媒体のサイズとからフチ無し印刷であるか否かを判定したり、記録目標範囲とイメージデータのサイズとからイメージデータの読み捨て処理を行うか否かを判定する処理であるが、詳細については後述する。なお、本実施形態では、イメージデータと記録媒体とは、互いに中心が合わされており、イメージデータが記録媒体からはみ出す量は上下及び左右で等しいものとする。   FIG. 6 is a flowchart showing details of the raster block skip process executed in step S410. In step S601, it is determined whether or not a paper feed execution message has already been issued based on whether or not the flag flag_sendmesLoad is set. If the paper feed execution message has not been issued, the page start process in step S602 is executed, and the process proceeds to step S603. On the other hand, if a paper feed execution message has been issued, the process proceeds to step S603 without executing step S602. In step S602, the page start process determines whether or not borderless printing is performed from the size of the image data and the size of the recording medium obtained by the page margin setting process described with reference to FIG. This is a process for determining whether or not to discard the image data from the data size. Details will be described later. In the present embodiment, the image data and the recording medium are centered on each other, and the amount of the image data that protrudes from the recording medium is equal in the vertical and horizontal directions.

ステップS603では、ラスタブロックスキップ量を取得し、ラスタブロックスキップ量を表す変数raster_block_skipに格納する。ステップS604では、ステップS602で設定されるフチ無しフラグ(flag_over_edge)がセットされているか否かを判定し、セットされていなければステップS609に進む。一方、フチ無しフラグがセットされていれば、ステップS605に進み、プリンタの記録目標範囲とイメージデータのサイズのy方向の長さの差に基づいて、読み捨てるラスタブロックの数を表す変数であるラスタブロックの読み捨て量(記録に使用しないラスタブロック)(reject_raster_block)が0より大きいか否か(符号が正か負か)を判定する。ラスタブロック読み捨て量が正であれば、ステップS609に進み、ラスタブロック読み捨て量が負であれば、ステップS606に進む。   In step S603, the raster block skip amount is acquired and stored in a variable raster_block_skip representing the raster block skip amount. In step S604, it is determined whether or not the borderless flag (flag_over_edge) set in step S602 is set. If not set, the process proceeds to step S609. On the other hand, if the borderless flag is set, the flow advances to step S605 to indicate the number of raster blocks to be discarded based on the difference between the print target range of the printer and the length of the image data size in the y direction. It is determined whether or not the amount of discarded raster block (raster block not used for recording) (reject_raster_block) is larger than 0 (sign is positive or negative). If the raster block read-out amount is positive, the process proceeds to step S609. If the raster block read-out amount is negative, the process proceeds to step S606.

ステップS606では、ラスタブロック読み捨て量がステップS603で取得したラスタブロックスキップ量より大きいか否かを判定し、ラスタブロック読み捨て量がラスタブロックスキップ量より大きければ、ステップS607に進み、ラスタブロック読み捨て量の値を、ラスタブロック読み捨て量からラスタブロックスキップ量を減算した値に更新する。一方、ラスタブロック読み捨て量がラスタブロックスキップ量以下であれば、ステップS608に進み、ラスタブロックスキップ量の値を、ラスタブロックスキップ量からラスタブロックの読み捨て量を減算した値に更新して、ステップS609に進む。ステップS609では、ラスタブロックスキップ量に対応する距離だけ記録媒体を送る紙送りメッセージを送信する。ここでは詳細を記載しないが、モータドライバE6に対する指令を送り記録媒体を搬送させる。   In step S606, it is determined whether the raster block skipping amount is larger than the raster block skip amount acquired in step S603. If the raster block skipping amount is larger than the raster block skip amount, the process proceeds to step S607 and the raster block skipping amount is determined. The value is updated to a value obtained by subtracting the raster block skip amount from the raster block discard amount. On the other hand, if the raster block skip amount is equal to or less than the raster block skip amount, the process advances to step S608 to update the raster block skip amount to a value obtained by subtracting the raster block skip amount from the raster block skip amount, and step S609. Proceed to In step S609, a paper feed message for sending the recording medium by a distance corresponding to the raster block skip amount is transmitted. Although details are not described here, a command to the motor driver E6 is sent to transport the recording medium.

図7は、ステップS411で実行されるマルチラスタデータ処理の詳細を示すフローチャートである。ステップS701では、給紙実行メッセージが既に発行されているか否かを、フラグflag_sendmesLoadがセットされているか否かによって判定する。給紙実行メッセージが発行されていなければ、ステップS702のページ開始処理を実行し、ステップS703へ進む。一方、給紙実行メッセージが発行されていれば、ステップS702を実行せずにステップS703へ進む。ステップS702のページ開始処理は、ステップS602と同様な処理である。   FIG. 7 is a flowchart showing details of the multi-raster data processing executed in step S411. In step S701, whether or not a paper feed execution message has already been issued is determined based on whether or not the flag flag_sendmesLoad is set. If the paper feed execution message has not been issued, the page start process in step S702 is executed, and the process proceeds to step S703. On the other hand, if a paper feed execution message has been issued, the process proceeds to step S703 without executing step S702. The page start process in step S702 is the same process as in step S602.

ステップS703では、ステップS702で設定されるフチ無しフラグ(flag_over_edge)がセットされているか否かを判定し、セットされていなければステップS706に進む。一方、フチ無しフラグがセットされていれば、ステップS704に進み、プリンタの記録目標範囲とイメージデータのサイズのy方向の長さの差に基づいて、読み捨てるラスタブロックの数を表す変数であるラスタブロック読み捨て量(reject_raster_block)が0より大きいか否か(符号が正か負か)を判定する。ラスタブロック読み捨て量が正であれば、ステップS705に進み、ラスタブロック読み捨て量が負であれば、ステップS706に進む。   In step S703, it is determined whether or not the borderless flag (flag_over_edge) set in step S702 is set. If not set, the process proceeds to step S706. On the other hand, if the borderless flag is set, the flow advances to step S704 to indicate the number of raster blocks to be discarded based on the difference between the print target range of the printer and the length of the image data in the y direction. It is determined whether or not the raster block discarding amount (reject_raster_block) is greater than 0 (sign is positive or negative). If the raster block read-out amount is positive, the process proceeds to step S705. If the raster block read-out amount is negative, the process proceeds to step S706.

ステップS705では受信バッファE2からイメージデータをラスタブロック単位で読み捨てる(具体的には、受信バッファE2に対してアクセスするが、破棄すべきラスタブロックについては読出しを行わずない。あるいは、すべてのラスタブロックに対してデータ読出しを行っても、破棄するラスタブロックについては続いて行うべき処理を行わない)。その後、ステップS708へ進み、読み捨てたラスタブロック内に含まれるラスタ数をラスタブロック読み捨て量から減算してラスタブロック読み捨て量を更新する。ステップS706では、イメージデータを記録ヘッドでの走査に対応したデータ形式に変換する(縦横変換)イメージデータ処理を実行する。このように所望の数のラスタブロックを破棄して、イメージデータの処理を行う。   In step S705, the image data is discarded from the reception buffer E2 in units of raster blocks (specifically, the reception buffer E2 is accessed, but the raster blocks to be discarded are not read out, or all the rasters are discarded). Even if data is read from the block, the processing to be subsequently performed is not performed on the discarded raster block). Thereafter, the process proceeds to step S708, where the number of rasters contained in the read-out raster block is subtracted from the raster block read-out amount to update the raster block read-out amount. In step S706, image data processing is executed to convert the image data into a data format corresponding to scanning with the recording head (vertical / horizontal conversion). In this way, a desired number of raster blocks are discarded and image data is processed.

例えば図12は、フチ無し印刷を行う場合の読み捨て量の具体例を示しており、図中、111が記録媒体、112が記録目標範囲、113がイメージデータをそれぞれ示しており、左側に示す数字はその範囲内に含まれるラスタ数を表している。なお、記録目標範囲112は仕様として、例えば、ライン113dと記録媒体の距離は、1.9〜2.1mmであれば良い。   For example, FIG. 12 shows a specific example of the discard amount when performing borderless printing. In the figure, 111 indicates a recording medium, 112 indicates a recording target range, 113 indicates image data, and the numbers shown on the left side Represents the number of rasters included in the range. As the specification of the recording target range 112, for example, the distance between the line 113d and the recording medium may be 1.9 to 2.1 mm.

この様子を図12と図13を用いて説明する。図13において、9はプラテン、111は記録媒体を示す。113gはイメージデータ113に基づいてインクにより記録された画像を示す。矢印Aは記録媒体の搬送方向を示す。   This will be described with reference to FIGS. In FIG. 13, 9 indicates a platen and 111 indicates a recording medium. Reference numeral 113g denotes an image recorded with ink based on the image data 113. An arrow A indicates the conveyance direction of the recording medium.

ここで図13(a)は、イメージデータ113は破棄されずに全てのイメージデータに基づいて記録された場合を想定した図である。このため、記録媒体111とのほか、記録媒体外の搬送方向下流側にも118ラスタ分の画像113gが記録され、インクを無駄に消費してしまう。   Here, FIG. 13A is a diagram assuming that the image data 113 is recorded based on all image data without being discarded. Therefore, in addition to the recording medium 111, an image 113g for 118 rasters is recorded on the downstream side in the transport direction outside the recording medium, and ink is consumed wastefully.

このため、図13(b)に示すように、記録媒体外の搬送方向下流側54ラスタ分の画像113gが記録されるように、イメージデータ113の一部(64ラスタ分)を破棄する。つまり、イメージデータについて、搬送方向について記録に使用されない部分を破棄すれば、その部分に基づいて記録はなされず、インクの無駄な消費を防ぐことができる。   For this reason, as shown in FIG. 13B, a part (64 rasters) of the image data 113 is discarded so that an image 113g of 54 rasters downstream in the transport direction outside the recording medium is recorded. That is, if a portion of the image data that is not used for recording in the transport direction is discarded, recording is not performed based on that portion, and wasteful consumption of ink can be prevented.

図12に示した例では、記録媒体111からのイメージデータ113のはみ出し量が5mmであり、このうち、記録媒体の外側(記録媒体の搬送方向の下流側に隣接する)2mmまでが記録目標範囲112となっている。従って、イメージデータ113の記録目標範囲112の外側に隣接するの3mm分を破棄する。この2mmは、例えば、記録媒体が斜めに搬送されても、端部の余白が生じるのを防止するためのマージンである。   In the example shown in FIG. 12, the amount of protrusion of the image data 113 from the recording medium 111 is 5 mm, of which the recording target range is up to 2 mm outside the recording medium (adjacent to the downstream side in the conveyance direction of the recording medium). 112. Accordingly, 3 mm of the image data 113 adjacent to the outside of the recording target range 112 is discarded. This 2 mm is, for example, a margin for preventing margins at the end even when the recording medium is conveyed obliquely.

解像度600dpiでは、5mmは118ラスタ、2mmは47ラスタに相当する。従って破棄する部分(除去するデータ)(113)のラスタ数は71ラスタである。一方、マルチラスタの単位(ラスタブロックに含まれるラスタの数)は16ラスタであるので、マルチラスタ4つ分(ラスタブロック4つ分)である113aで示す64ラスタは破棄する(境界113dの位置に相当するラスタを含むラスタブロックは破棄しない)。そして、113bで示す余りの7ラスタ(71−64)、と112で示す47ラスタのイメージデータが、記録媒体外(記録媒体の搬送方向の下流側)に記録される。従って、Y軸方向について原点から54ラスタ離れた113cに相当する位置を記録開始位置(搬送方向の記録開始位置)とする。   At a resolution of 600 dpi, 5 mm corresponds to 118 rasters, and 2 mm corresponds to 47 rasters. Therefore, the number of rasters to be discarded (data to be removed) (113) is 71 rasters. On the other hand, since the unit of multi-raster (the number of rasters included in a raster block) is 16 rasters, 64 rasters indicated by 113a which is 4 multi-rasters (4 raster blocks) are discarded (position of boundary 113d). (The raster block containing the raster corresponding to is not discarded). The remaining 7 rasters (71-64) indicated by 113b and 47 rasters indicated by 112 are recorded outside the recording medium (downstream in the conveyance direction of the recording medium). Accordingly, a position corresponding to 113c that is 54 rasters away from the origin in the Y-axis direction is set as a recording start position (recording start position in the transport direction).

つまりこの場合、記録媒体が所望の給紙位置(搬送位置)まで給紙された後、記録ヘッドの走査により記録動作が開始される。そして、初回の走査での記録において、除去処理後の残った記録データの先頭から54ラスタ分(1ラスタから54ラスタ)は、記録媒体外(記録媒体の手前(搬送方向の下流側))に記録がなされ、55ラスタ目から記録媒体上に記録される。   That is, in this case, after the recording medium is fed to a desired paper feeding position (conveyance position), the recording operation is started by scanning the recording head. Then, in the recording in the first scan, 54 rasters (from 1 raster to 54 rasters) from the beginning of the remaining recording data after the removal processing are out of the recording medium (before the recording medium (downstream in the transport direction)). Recording is performed, and recording is performed on the recording medium from the 55th raster.

なお、プラテンについて、領域112と領域113bを含む領域には、にはプラテン開口部10が設けられており、図13(b)に示すように、記録媒体外に記録がなされても、そのインクにより記録媒体(あるいはプラテン)が汚れることはない。   As for the platen, the platen opening 10 is provided in the region including the region 112 and the region 113b. As shown in FIG. 13B, even if recording is performed outside the recording medium, the ink is not generated. This prevents the recording medium (or platen) from becoming dirty.

次に、ステップS602及びS702で実行されるページ開始処理について、図8のフローチャートを参照して詳細に説明する。ステップS801では、後述するように、フチ無し判定処理として、ページマージン設定処理によって得られたイメージデータのサイズと記録媒体のサイズとから、イメージデータのサイズが記録媒体のサイズより大きい場合、フチ無し印刷であると判定する。フチ無し印刷と判定されれば、フチ無しフラグ(flag_over_edge)をセットする。   Next, the page start process executed in steps S602 and S702 will be described in detail with reference to the flowchart of FIG. In step S801, as described later, as a borderless determination process, if the size of the image data is larger than the size of the recording medium based on the size of the image data obtained by the page margin setting process and the size of the recording medium, there is no margin. It is determined that it is printing. If borderless printing is determined, a borderless flag (flag_over_edge) is set.

ステップS802ではフチ無しフラグがセットされているか否かを判定する。フチ無しフラグがセットされていればステップS803に進み、読み捨てられるデータの範囲を計算し、ステップS804に進む。一方、ステップS802でフチ無しフラグがセットされていなければ、そのままステップS804に進む。ステップS804では、給紙メッセージを送信する。このメッセージによって用紙が給紙され、このメッセージのパラメータで指定された量だけ、用紙先端の頭だしがなされる。   In step S802, it is determined whether the borderless flag is set. If the borderless flag is set, the process proceeds to step S803, the range of data to be discarded is calculated, and the process proceeds to step S804. On the other hand, if the borderless flag is not set in step S802, the process proceeds to step S804. In step S804, a paper feed message is transmitted. The sheet is fed by this message, and the head of the sheet is cued by the amount specified by the parameter of this message.

図9は、ステップS801で実行されるフチ無し判定処理を詳細に説明するフローチャートである。ここでは上述のように、ページマージン設定処理によって得られたイメージデータのサイズと記録媒体のサイズとから、イメージデータのサイズが記録媒体のサイズより大きい場合、フチ無し印刷であると判定するが、イメージデータと記録媒体の上下左右の4つの端部の位置(座標)を比較していずれかの端部で記録媒体からイメージデータがはみ出すときにフチ無しフラグ(flag_over_edge)をセットする。   FIG. 9 is a flowchart for explaining in detail the borderless determination process executed in step S801. Here, as described above, from the size of the image data obtained by the page margin setting process and the size of the recording medium, if the size of the image data is larger than the size of the recording medium, it is determined that the printing is borderless. The image data is compared with the positions (coordinates) of the top, bottom, left, and right edges of the recording medium, and a borderless flag (flag_over_edge) is set when the image data protrudes from the recording medium at any edge.

具体的には、ステップS901では、イメージデータの左側端部が記録媒体の左側端部からはみ出すか否かを判定し、ステップS903では、イメージデータの上側端部が記録媒体の上側端部からはみ出すか否かを判定し、ステップS905では、イメージデータの右側端部が記録媒体の右側端部からはみ出すか否かを判定し、ステップS907では、イメージデータの下側端部が記録媒体の下側端部からはみ出すか否かを判定する。そして、S901、S903、S905及びS907のいずれかのステップで、はみ出すと判定された場合に、S902、S904、S906及びS908の対応するステップでフチ無しフラグ(flag_over_edge)をセットする。   Specifically, in step S901, it is determined whether the left end portion of the image data protrudes from the left end portion of the recording medium. In step S903, the upper end portion of the image data protrudes from the upper end portion of the recording medium. In step S905, it is determined whether or not the right edge of the image data protrudes from the right edge of the recording medium. In step S907, the lower edge of the image data is the lower side of the recording medium. It is determined whether or not it protrudes from the end. If it is determined in any of steps S901, S903, S905, and S907 that the image protrudes, a borderless flag (flag_over_edge) is set in steps corresponding to S902, S904, S906, and S908.

図10は、ステップS803で実行される読み捨て範囲計算処理を詳細に示すフローチャートである。ここでは、記録媒体上側(記録を開始する給紙先頭側)の読み捨てすべきラスタブロック数およびラスタ数を算出する処理である。   FIG. 10 is a flowchart showing in detail the read-ahead range calculation process executed in step S803. Here, it is a process of calculating the number of raster blocks and the number of rasters to be discarded on the upper side of the recording medium (the leading side of the paper feed for starting recording).

ステップS1001では、記録目標範囲の左側端部からイメージデータがはみ出す量を、読み捨てカラム量として計算する。ステップS1002では、記録目標範囲とイメージデータの上側端部位置との差分をラスタブロックの送り方向長さで除算して、読み捨てすべきラスタブロックの数(reject_raster_block)を求める。なお、この値は整数である。ステップS1003では、ステップS1002での除算で余ったラスタ数(reject_raster)を求める。そして、ステップS1004では、この余ったラスタ数(reject_raster)に対応した距離を給紙時の頭出し量(load_start_point)から減算して、頭だし量更新する。これにより、送り方向の記録開始位置は、読み捨て処理で余ったラスタ数分だけ減算される。   In step S1001, the amount of image data protruding from the left end of the recording target range is calculated as a read-out column amount. In step S1002, the difference between the recording target range and the upper edge position of the image data is divided by the length of the raster block in the feed direction to obtain the number of raster blocks (reject_raster_block) to be discarded. This value is an integer. In step S1003, the number of rasters (reject_raster) remaining after the division in step S1002 is obtained. In step S1004, the distance corresponding to the remaining raster number (reject_raster) is subtracted from the cueing amount (load_start_point) at the time of feeding to update the cueing amount. As a result, the recording start position in the feed direction is subtracted by the number of rasters remaining in the discarding process.

以上説明したように、本実施形態によれば、イメージデータがプリンタの記録目標範囲よりも大きい場合、記録媒体の上端(記録開始位置)からイメージデータがはみ出す部分のうち、ラスタブロック単位での読み捨て処理では破棄されない、余剰なラスタ数のずれを補正し、用紙送り方向におけるフチ無し印刷の開始位置を正確に制御することができる。   As described above, according to the present embodiment, when the image data is larger than the recording target range of the printer, the portion of the image data that protrudes from the upper end (recording start position) of the recording medium is discarded in units of raster blocks. It is possible to correct an excess raster number shift that is not discarded in the process, and to accurately control the start position of borderless printing in the paper feed direction.

(その他の実施形態)
上述したように、フチ無し印刷が失敗しないためのマージンが2mmである場合、このマージンである2mmより多く記録媒体外に記録する(境界113dの位置に相当するラスタを含むラスタブロックは破棄しない)ためのデータ処理について説明したが、この方法に限定するものではない。
(Other embodiments)
As described above, when the margin for preventing the borderless printing from failing is 2 mm, recording is performed outside the recording medium more than the margin of 2 mm (the raster block including the raster corresponding to the position of the boundary 113d is not discarded). However, the present invention is not limited to this method.

例えば、図13(c)に示すように、このマージンである2mmより少なく記録媒体外に記録するための処理を行っても構わない。この処理の場合には、境界113dの位置に相当するラスタを含むラスタブロックのイメージデータを破棄する(80ラスタ分のデータを破棄して、38ラスタ分のイメージデータを記録媒体外に記録する)。   For example, as shown in FIG. 13C, a process for recording outside the recording medium with less than 2 mm as the margin may be performed. In this process, the image data of the raster block including the raster corresponding to the position of the boundary 113d is discarded (80 raster data is discarded and 38 raster image data is recorded outside the recording medium). .

なお、上述した読み捨て処理は受信バッファに格納されているデータについて説明したが、これに限定するものではなく例えば、ワークバッファに格納されているデータに対するアクセス処理において行っても構わない。   The above-described discarding process has been described for the data stored in the reception buffer. However, the present invention is not limited to this, and for example, it may be performed in the access process for the data stored in the work buffer.

また、記録装置の形態として、ホスト機器からイメージデータを受信するものに限らず、メモリカードなどの記憶媒体にアクセスするインタフェース部を備え、ホスト機器を介さずにメモリカードから読み出して行う形態にも適用しても構わない。   Further, the form of the recording apparatus is not limited to the one that receives image data from the host device, but also includes the form in which an interface unit that accesses a storage medium such as a memory card is provided and read from the memory card without going through the host device. You may apply.

また、記録装置の形態としてシリアルタイプのプリンタに限定するものではなく、プリンタが記録できる記録媒体の最大の記録幅に対応した長さを有するフルラインタイプの記録ヘッドを用いたプリンタでも構わない。   Further, the form of the recording apparatus is not limited to a serial type printer, and a printer using a full line type recording head having a length corresponding to the maximum recording width of a recording medium that can be recorded by the printer may be used.

本発明は、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。   The present invention may be applied to a system composed of a plurality of devices, or may be applied to an apparatus composed of a single device.

なお、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラム(本実施形態では図3から図10に示すフローチャートに対応したプログラム)を、システム或いは装置に直接或いは遠隔から供給し、そのシステム或いは装置のコンピュータが該供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。その場合、プログラムの機能を有していれば、形態は、プログラムである必要はない。   In the present invention, a software program (in this embodiment, a program corresponding to the flowcharts shown in FIGS. 3 to 10) for realizing the functions of the above-described embodiment is directly or remotely supplied to a system or apparatus, and This includes the case where the object is also achieved by reading and executing the supplied program code by the computer of the system or apparatus. In that case, as long as it has the function of a program, the form does not need to be a program.

従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明のクレームでは、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。   Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. That is, the claims of the present invention include the computer program itself for realizing the functional processing of the present invention.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。   In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS.

プログラムを供給するための記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。   As a recording medium for supplying the program, for example, flexible disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD-R).

その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、該ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明の範囲に含まれるものである。   As another program supply method, a client computer browser is used to connect to an Internet homepage, and the computer program of the present invention itself or a compressed file including an automatic installation function is downloaded from the homepage to a recording medium such as a hard disk. Can also be supplied. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the scope of the present invention.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.

また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現され得る。   In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer based on an instruction of the program is a part of the actual processing. Alternatively, the functions of the above-described embodiment can be realized by performing all of them and performing the processing.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現される。   Furthermore, after the program read from the recording medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion board or The CPU or the like provided in the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are also realized by the processing.

本発明に係る実施形態としての記録システムを示す図である。It is a figure which shows the recording system as embodiment which concerns on this invention. 図1の記録装置の制御構成を示すブロック図である。FIG. 2 is a block diagram illustrating a control configuration of the recording apparatus in FIG. 1. コマンド解析処理のフローチャートである。It is a flowchart of a command analysis process. コマンド受信及び解析処理のフローチャートである。It is a flowchart of a command reception and analysis process. ページマージン設定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a page margin setting process. ラスタブロックスキップ処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a raster block skip process. マルチラスタデータ処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of multi-raster data processing. ページ開始処理のフローチャートである。It is a flowchart of a page start process. フチ無し判定処理を詳細に説明するフローチャートである。It is a flowchart explaining a borderless determination process in detail. 読み捨て範囲計算処理を詳細に示すフローチャートである。It is a flowchart which shows a read-out range calculation process in detail. 記録媒体のサイズ、記録目標範囲、及びイメージデータのサイズの関係の例を示す図である。It is a figure which shows the example of the relationship between the size of a recording medium, a recording target range, and the size of image data. 読み捨て処理の具体例を説明する図である。It is a figure explaining the specific example of a discard process. 読み捨て処理の具体例を説明する図である。It is a figure explaining the specific example of a discard process. 本発明に係る記録装置の構成を示す図である。It is a figure which shows the structure of the recording device based on this invention.

Claims (6)

所定方向に配列された複数の記録素子を有する記録ヘッドを用いて記録媒体に対して記録を行う記録装置であって、
記録位置まで前記記録媒体を給紙する給紙手段と、
接続されたホスト機器から転送された制御コマンドと共に予め定められた複数のラスタからなるラスタブロックを単位とした画像データを格納する受信バッファと、
前記制御コマンドに含まれる画像データのサイズに関する情報及び記録媒体のサイズに関する情報に基づいて、前記記録媒体の全面に記録を行うフチ無し印刷を行うか否かを判定する判定手段と、
前記フチ無し印刷を行うときに、予め定められた複数のラスタの数と、前記画像データの搬送方向における長さと、前記記録媒体の外側に予め定められている記録目標範囲の搬送方向における長さと、に基づいて、前記記録ヘッドへ転送しないラスタ数N(Nは自然数)を算出する算出手段と、
前記記録位置に給紙された記録媒体に対して記録を行うために、前記画像データの先頭のラスタから前記記録ヘッドへ転送しないラスタ数N(Nは自然数)分の画像データの読み捨てを行い、N+1番目(Nは自然数)のラスタ位置の画像データから前記記録ヘッドへ転送を行って記録動作の開始を制御する制御手段と、を備えることを特徴とする記録装置。
A recording apparatus that performs recording on a recording medium using a recording head having a plurality of recording elements arranged in a predetermined direction,
Paper feeding means for feeding the recording medium to a recording position;
A reception buffer for storing image data in units of raster blocks each including a plurality of predetermined rasters together with a control command transferred from a connected host device;
Determining means for determining whether to perform borderless printing for recording on the entire surface of the recording medium based on information on the size of the image data included in the control command and information on the size of the recording medium;
When performing the borderless printing, a predetermined number of rasters, a length in the transport direction of the image data, and a length in the transport direction of a recording target range predetermined on the outside of the recording medium , based on the not transferred to the recording head raster number N (N is a natural number) and calculation means for calculating,
In order to perform recording on the recording medium fed to the recording position, image data corresponding to the number of rasters N (N is a natural number) not transferred from the head raster of the image data to the recording head is discarded . And a control means for controlling the start of the recording operation by transferring the image data at the (N + 1) th (N is a natural number) raster position to the recording head .
前記画像データのサイズが、前記記録装置で記録目標範囲よりも大きい場合、前記算出手段は、前記記録媒体の搬送方向における長さと前記記録目標範囲の前記搬送方向における長さとに基づいて、前記記録ヘッドへ転送しない画像データの量を算出することを特徴とする請求項1に記載の記録装置。 Size of the image data is greater than the recording target range in the recording apparatus, the calculating means, based on the length in the transport direction of the length and the recording target range in the conveying direction of the recording medium, the recording The recording apparatus according to claim 1, wherein the amount of image data not transferred to the head is calculated. 前記算出手段は、画像データのラスタ数と記録目標範囲のラスタ数との差分を前記予め定められた複数のラスタの数で除算することで、前記記録ヘッドへ転送しない画像データのラスタ数を算出することを特徴とする請求項1又は2に記載の記録装置。 The calculating means divides the difference between the number of rasters of the image data and the number of rasters in the recording target range by the predetermined number of rasters, thereby obtaining the number of rasters of the image data not transferred to the recording head. The recording apparatus according to claim 1, wherein the recording apparatus calculates the recording apparatus. 前記記録装置は、更に、画像データの縦横変換処理を行う変換手段を備えることを特徴とする請求項1から3のいずれか1項に記載の記録装置。   The recording apparatus according to claim 1, further comprising a conversion unit that performs vertical / horizontal conversion processing of image data. 前記記録装置は、前記記録ヘッドを記録媒体に対して走査させて記録を行うことを特徴とする請求項1から4のいずれか1項に記載の記録装置。   The recording apparatus according to claim 1, wherein the recording apparatus performs recording by causing the recording head to scan a recording medium. 所定方向に配列された複数の記録素子を有する記録ヘッドを用いて記録媒体に対して記録を行う記録装置の制御方法であって、
記録位置まで前記記録媒体を給紙する給紙工程と、
接続されたホスト機器から転送された制御コマンドと共に予め定められた複数のラスタからなるラスタブロックを単位とした画像データを受信バッファに格納する受信工程と、
前記制御コマンドに含まれる画像データのサイズに関する情報及び記録媒体のサイズに関する情報に基づいて、前記記録媒体の全面に記録を行うフチ無し印刷を行うか否かを判定する判定工程と、
前記フチ無し印刷を行うときに、予め定められた複数のラスタの数と、前記画像データの搬送方向における長さと、前記記録媒体の外側に予め定められている記録目標範囲の搬送方向における長さと、に基づいて、前記記録ヘッドへ転送しないラスタ数N(Nは自然数)を算出する算出工程と、
前記記録位置に給紙された記録媒体に対して記録を行うために、前記画像データの先頭のラスタから前記記録ヘッドへ転送しないラスタ数N(Nは自然数)分の画像データの読み捨てを行い、N+1番目(Nは自然数)のラスタ位置の画像データから前記記録ヘッドへ転送を行って記録動作の開始を制御する制御工程と、を有することを特徴とする記録装置の制御方法。
A control method for a recording apparatus for recording on a recording medium using a recording head having a plurality of recording elements arranged in a predetermined direction,
A paper feeding step of feeding the recording medium to a recording position;
A receiving step for storing image data in a unit of a raster block composed of a plurality of predetermined rasters together with a control command transferred from a connected host device;
A determination step of determining whether to perform borderless printing for recording on the entire surface of the recording medium based on information on the size of the image data included in the control command and information on the size of the recording medium;
When performing the borderless printing, a predetermined number of rasters, a length in the transport direction of the image data, and a length in the transport direction of a recording target range predetermined on the outside of the recording medium , based on the not transferred to the recording head raster number N (N is a natural number) calculation step of calculating a
In order to perform recording on the recording medium fed to the recording position, image data corresponding to the number of rasters N (N is a natural number) not transferred from the head raster of the image data to the recording head is discarded . , N + 1 th (N is a natural number) control method for a recording apparatus characterized by and a control step of controlling the start of the recording operation performed transferred from the image data of the raster position on the recording head.
JP2005086588A 2004-03-31 2005-03-24 Recording apparatus and recording apparatus control method Expired - Fee Related JP4587171B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005086588A JP4587171B2 (en) 2004-03-31 2005-03-24 Recording apparatus and recording apparatus control method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004106362 2004-03-31
JP2005086588A JP4587171B2 (en) 2004-03-31 2005-03-24 Recording apparatus and recording apparatus control method

Publications (3)

Publication Number Publication Date
JP2005313616A JP2005313616A (en) 2005-11-10
JP2005313616A5 JP2005313616A5 (en) 2008-05-08
JP4587171B2 true JP4587171B2 (en) 2010-11-24

Family

ID=35441520

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005086588A Expired - Fee Related JP4587171B2 (en) 2004-03-31 2005-03-24 Recording apparatus and recording apparatus control method

Country Status (1)

Country Link
JP (1) JP4587171B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4938556B2 (en) * 2007-06-11 2012-05-23 富士フイルム株式会社 Image placement apparatus and image placement program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10293667A (en) * 1997-04-18 1998-11-04 Fuji Xerox Co Ltd Band dividing method in banding, and double-sided printing method
JP2001058427A (en) * 1999-08-24 2001-03-06 Canon Inc Recording apparatus and recording method
JP2001239710A (en) * 2000-03-01 2001-09-04 Fuji Xerox Co Ltd Image processor
JP2004025557A (en) * 2002-06-24 2004-01-29 Canon Inc Ink jet recording device, ink jet recording method, program and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10293667A (en) * 1997-04-18 1998-11-04 Fuji Xerox Co Ltd Band dividing method in banding, and double-sided printing method
JP2001058427A (en) * 1999-08-24 2001-03-06 Canon Inc Recording apparatus and recording method
JP2001239710A (en) * 2000-03-01 2001-09-04 Fuji Xerox Co Ltd Image processor
JP2004025557A (en) * 2002-06-24 2004-01-29 Canon Inc Ink jet recording device, ink jet recording method, program and storage medium

Also Published As

Publication number Publication date
JP2005313616A (en) 2005-11-10

Similar Documents

Publication Publication Date Title
US20060274096A1 (en) Image forming system, print control method and control program for printing apparatus
JP4646751B2 (en) Image forming apparatus, functional component determination method, control program, and storage medium
US7465009B2 (en) Printing apparatus, printing system, and printing start position alignment method
US20020003634A1 (en) Printing apparatus, method of controlling same, information processor connected thereto, system and storage medium
JP2006247905A (en) Recording device, data processing method for recording device, and recording system
KR20070073219A (en) Image forming method and device for borderless printing
US7258409B2 (en) Inkjet printing apparatus and control method for the same
JP3825937B2 (en) Information processing apparatus and method, storage medium, and image forming system
JP2007130881A (en) Inkjet printer
JP4587171B2 (en) Recording apparatus and recording apparatus control method
EP1727076B1 (en) Recording apparatus and method of controlling the recording apparatus
JP4455295B2 (en) Recording apparatus and data processing method of recording apparatus
JP2007130934A (en) Inkjet recording apparatus
US8137015B2 (en) Image forming method for determining a position of an ink ribbon with a boundary line
JP2001219566A (en) Printer host, medium storing its operating program, ink jet printer
KR100771714B1 (en) Recording apparatus and data processing method for recording apparatus
US7320511B2 (en) Image forming apparatus and high-resolution printing method in a horizontal direction
JPH02196672A (en) Controlling method for serial recorder
JP4455210B2 (en) Recording apparatus and recording method
US20080013131A1 (en) Image forming apparatus, control method for image forming apparatus and memory medium
JP3947890B2 (en) Printer
JP4502391B2 (en) Recording apparatus, data processing method of recording apparatus, and recording system
JP2008073881A (en) Recorder and recording system
JP2000355143A (en) Ink-jet recording apparatus and image forming device
JP2006341447A (en) Recording device and data processing method of recording device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080324

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080324

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100611

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100809

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: 20100827

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100906

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100831

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130917

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130917

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130917

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130917

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees