JP2010044677A - Printing system, printing device, and printing method - Google Patents

Printing system, printing device, and printing method Download PDF

Info

Publication number
JP2010044677A
JP2010044677A JP2008209519A JP2008209519A JP2010044677A JP 2010044677 A JP2010044677 A JP 2010044677A JP 2008209519 A JP2008209519 A JP 2008209519A JP 2008209519 A JP2008209519 A JP 2008209519A JP 2010044677 A JP2010044677 A JP 2010044677A
Authority
JP
Japan
Prior art keywords
printing
print
print data
macro
unit
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.)
Withdrawn
Application number
JP2008209519A
Other languages
Japanese (ja)
Inventor
Yasuji Otaki
靖嗣 大滝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2008209519A priority Critical patent/JP2010044677A/en
Publication of JP2010044677A publication Critical patent/JP2010044677A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a proper result of printing even when a printing command is repeatedly executed in order to generate landscape and portrait printing data of each page, when alternately performing landscape and portrait printing for each copy (separate printing for each copy). <P>SOLUTION: In a printing data generation part 120, a macro registration section 121 registers a printing command as macro for each page, and a macro execution section 122 generates landscape and portrait image data sequentially by macro execution. When generating the landscape image data, environmental setting is restored to a previous state after the macro execution, and the macro execution section 122 executes the macro. When generating the portrait image data, the environmental setting is not restored to the previous state after the macro execution, and the macro execution section 122 executes the macro. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、部単位の印刷を行う印刷システム、印刷装置、印刷方法に関する。   The present invention relates to a printing system, a printing apparatus, and a printing method that perform printing in units of copies.

プリンタなどの印刷装置において、印刷部数、部単位印刷(ソート)、オフセット印刷を指示する印刷ジョブを受け付けた場合に、部ごとに印刷用紙の方向を異ならせて(例えば、横と縦を交互に)排紙トレイなどに出力する方法が知られている(例えば、特許文献1)。   When a printing apparatus such as a printer receives a print job instructing the number of copies, unit printing (sorting), or offset printing, the direction of the printing paper is changed for each copy (for example, horizontal and vertical alternately A method of outputting to a paper discharge tray or the like is known (for example, Patent Document 1).

特開2006−51660号公報JP 2006-51660 A

ところで、部単位で横方向および縦方向の印刷を交互に行う印刷やオフセット印刷(以下、「部単位セパレート(separate)印刷」と呼ぶ。)を行う印刷装置は、例えば、印刷部数、部単位印刷、セパレート印刷の指示などの各種設定を含む制御コマンドと、印刷対象の各ページの画像データを生成するための印刷コマンドとを含む印刷ジョブを受け付け、印刷ジョブに従った印刷を実行する。   By the way, a printing apparatus that performs printing in which horizontal printing and vertical printing are alternately performed in units of copies and offset printing (hereinafter referred to as “separate separate printing”) is, for example, the number of copies, printing in units of copies. A print job including a control command including various settings such as a separate print instruction and a print command for generating image data of each page to be printed is received, and printing according to the print job is executed.

また、上記のような印刷装置は、横と縦の2つの方向の印刷用紙に印刷を行うため、印刷対象のページごとに、横および縦の画像データ(例えば、ビットマップイメージなど)を生成する必要がある。横および縦の画像データを生成する方法としては、印刷コマンドをページごとに2回ずつ繰り返し実行して、ページごとに横および縦の画像データを順次生成する方法が考えられる。しかしながら、この方法では、以下のような問題がある。   In addition, since the printing apparatus as described above performs printing on printing paper in two directions, horizontal and vertical, it generates horizontal and vertical image data (for example, a bitmap image) for each page to be printed. There is a need. As a method for generating horizontal and vertical image data, a method of generating horizontal and vertical image data sequentially for each page by repeatedly executing a print command twice for each page can be considered. However, this method has the following problems.

まず、図6を参照して、部数が1部の場合の、印刷コマンドおよび印刷コマンドに従って生成される画像データの関係について説明する。   First, the relationship between a print command and image data generated according to the print command when the number of copies is 1 will be described with reference to FIG.

本図は、2ページの原稿を1部印刷する場合の例を示している。この場合、印刷装置は、印刷コマンドを1ページ目の先頭から順に実行し、1ページ目および2ページ目の画像データを生成する。   This figure shows an example in which one copy of a two-page document is printed. In this case, the printing apparatus executes print commands in order from the top of the first page, and generates image data for the first and second pages.

本図の例では、塗りつぶし設定コマンド、円描画コマンド、輪郭線設定コマンド、矩形描画コマンド、改ページコマンド、が順に実行されることにより、塗りつぶされた円画像a、所定の輪郭線の矩形画像bを含む1ページ目の画像データが生成される。また、円描画コマンド、塗りつぶし設定コマンド、矩形描画コマンド、改ページコマンド、が順に実行されることにより、所定の輪郭線の円画像c、塗りつぶされた矩形画像dを含む2ページ目の画像データが生成される。   In the example of this figure, a fill circle command a, a rectangular image b of a predetermined contour line are executed by sequentially executing a fill setting command, a circle drawing command, an outline setting command, a rectangle drawing command, and a page break command. The image data of the first page including is generated. In addition, by executing a circle drawing command, a fill setting command, a rectangle drawing command, and a page break command in order, the image data of the second page including the circle image c with a predetermined outline and the filled rectangular image d is obtained. Generated.

ここで、通常、印刷コマンドは、前のページのコマンドで指定された設定(環境設定)を利用して、後ろのページのコマンドが実行されるように構成されている。例えば、2ページ目の円描画コマンドでは、1ページ目の輪郭線設定コマンドで指定された環境設定が引き続き使用される。そのため、2ページ目では、輪郭線設定コマンドが含まれていなくても、1ページ目の矩形画像bと同様の輪郭線により円画像cが描画される。   Here, normally, the print command is configured such that the command of the subsequent page is executed using the setting (environment setting) specified by the command of the previous page. For example, in the circle drawing command for the second page, the environment setting specified by the outline setting command for the first page is continuously used. Therefore, on the second page, the circular image c is drawn with the same contour line as the rectangular image b on the first page even if the contour line setting command is not included.

次に、図7を参照して、部数が2部以上の場合の、印刷コマンドおよび印刷コマンドに従って生成される画像データの関係について説明する。   Next, the relationship between the print command and the image data generated according to the print command when the number of copies is two or more will be described with reference to FIG.

本図は、2ページの原稿を2部印刷する場合の例を示している。各ページの印刷コマンドの内容は、図6と同様である。   This figure shows an example in which two copies of a two-page document are printed. The contents of the print command for each page are the same as in FIG.

また、本図は、上述した、印刷コマンドをページごとに2回ずつ繰り返し実行して、ページごとに横および縦の画像データを順次生成する方法により、横方向および縦方向の印刷のための画像データを生成する場合を示している。すなわち、横方向の1ページ目のための印刷コマンド、縦方向の1ページ目のための印刷コマンド、横方向の2ページ目のための印刷コマンド、縦方向の2ページ目のための印刷コマンド、が順に実行される。   In addition, this figure shows an image for printing in the horizontal and vertical directions by repeatedly executing the print command twice for each page and sequentially generating horizontal and vertical image data for each page. The case where data is generated is shown. A print command for the first page in the horizontal direction, a print command for the first page in the vertical direction, a print command for the second page in the horizontal direction, a print command for the second page in the vertical direction, Are executed in order.

しかしながら、上述したように、印刷コマンドは、前のページのコマンドで指定された設定を利用して、後ろのページのコマンドが実行される。上記の方法では、各ページの縦方向のための印刷コマンドの実行の前に、同じページの横方向のための印刷コマンドが実行される。そのため、各ページの縦方向のための印刷コマンドの実行の際に、同一コマンドの実行による本来不要な環境設定が行われている場合があり、予定されていない画像データが生成されることがある。   However, as described above, as for the print command, the command for the subsequent page is executed using the setting specified by the command for the previous page. In the above method, the print command for the horizontal direction of the same page is executed before the print command for the vertical direction of each page is executed. Therefore, when executing the print command for the vertical direction of each page, there may be a case where an originally unnecessary environment setting is performed by executing the same command, and unscheduled image data may be generated. .

例えば、縦方向の2ページ目の円描画コマンドでは、横方向の2ページ目の塗りつぶし設定コマンドで指定された環境設定が引き続き使用される。そのため、縦方向の2ページ目では、本来不要な塗りつぶし設定が行われたまま、円描画コマンドが実行されて円画像c´が生成される。これでは、予定されていない画像データが生成されてしまう。   For example, in the circle drawing command for the second page in the vertical direction, the environment setting specified by the fill setting command for the second page in the horizontal direction is continuously used. Therefore, on the second page in the vertical direction, the circle drawing command is executed and the circle image c ′ is generated with the originally unnecessary fill setting being performed. As a result, unscheduled image data is generated.

以上のように、印刷コマンドをページごとに2回ずつ繰り返し実行して、ページごとに横および縦の画像データを順次生成する方法では、正しい印刷結果が得られないという問題がある。なお、縦と横の順序が入れ替わっても同様である。   As described above, the method in which the print command is repeatedly executed twice for each page and the horizontal and vertical image data is sequentially generated for each page has a problem that a correct print result cannot be obtained. The same applies even if the vertical and horizontal orders are switched.

そこで、本発明は、上記の問題を解決した部単位セパレート印刷を行うための技術を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a technique for performing unit-separated separate printing that solves the above-described problems.

上記の課題を解決するための印刷システムに係る発明は、コンピュータと、横および縦方向の印刷媒体に印刷可能な印刷装置とを有する印刷システムであって、前記コンピュータは、部単位印刷の方法の指定を含む印刷コマンドを生成して前記印刷装置に送信する手段を有し、前記印刷装置は、前記印刷コマンドを受け付けるコマンド受付手段と、前記印刷コマンドに従ってページ毎の印刷データを生成する印刷データ生成手段と、前記印刷データに従って、前記いずれかの方向の印刷媒体に印刷を行う印刷処理手段と、を有し、前記印刷データ生成手段は、部単位で横方向および縦方向の印刷を交互に行う部単位印刷の方法が指定された場合に、ページ毎に、前記印刷コマンドをマクロとして記憶手段に登録し、当該マクロを実行することにより所定の第1の方向の印刷のための印刷データおよび前記第1の方向と異なる所定の第2の方向の印刷のための印刷データを順に生成し、前記印刷データの生成の終了後、前記マクロを前記記憶手段から削除する処理を繰り返し、前記第1の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行前の状態に戻し、前記第2の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行後の状態のまま維持し、前記印刷処理手段は、前記部単位印刷の方法が指定された場合に、部単位で前記第1の方向および第2の方向の印刷が交互に行われるように、前記生成された印刷データの印刷を順次行うこと、を特徴とする。   An invention relating to a printing system for solving the above problems is a printing system having a computer and a printing apparatus capable of printing on a printing medium in a horizontal and vertical direction, wherein the computer is a unit printing method. Means for generating a print command including a designation and transmitting the print command to the printing apparatus, the printing apparatus receiving a command for receiving the print command, and generating print data for each page according to the print command And print processing means for printing on the print medium in one of the directions according to the print data, and the print data generating means alternately performs horizontal and vertical printing in units of copies. Registering the print command as a macro in the storage means and executing the macro for each page when a method for printing a copy is specified Print data for printing in a predetermined first direction and print data for printing in a predetermined second direction different from the first direction are generated in order, and after the generation of the print data, When the process of deleting the macro from the storage unit is repeated and the generation of the print data in the first direction is completed, the environment set by the execution of the macro is returned to the state before the execution, and the second direction When the generation of print data is completed, the environment set by the execution of the macro is maintained in the state after execution, and the print processing unit is configured to copy the copy when the copy printing method is designated. The generated print data is sequentially printed so that the printing in the first direction and the second direction are alternately performed.

ここで、上記の印刷システムにおいて、前記印刷処理手段は、前記部単位印刷の方法が指定された場合に、先頭ページの前記第2の方向の印刷データが生成された後、前記第1の方向および第2の方向のいずれかの方向により1部目の印刷を開始すること、を特徴としていてもよい。   Here, in the printing system, the print processing unit may generate the first direction after the print data in the second direction of the first page is generated when the copy printing method is designated. The printing of the first copy may be started in any one of the second direction and the second direction.

上記の課題を解決するための印刷装置に係る発明は、上述した印刷装置である。   The invention according to the printing apparatus for solving the above problem is the above-described printing apparatus.

上記の課題を解決するための印刷方法に係る発明は、横および縦方向の印刷媒体に印刷可能な印刷装置における印刷方法であって、前記印刷装置は、部単位印刷の方法の指定を含む印刷コマンドを受け付けるコマンド受付ステップと、前記印刷コマンドに従ってページ毎の印刷データを生成する印刷データ生成ステップと、前記印刷データに従って、前記いずれかの方向の印刷媒体に印刷を行う印刷処理ステップと、を行い、前記印刷データ生成ステップは、部単位で横方向および縦方向の印刷を交互に行う部単位印刷の方法が指定された場合に、ページ毎に、前記印刷コマンドをマクロとして記憶手段に登録し、当該マクロを実行することにより所定の第1の方向の印刷のための印刷データおよび前記第1の方向と異なる所定の第2の方向の印刷のための印刷データを順に生成し、前記印刷データの生成の終了後、前記マクロを前記記憶手段から削除する処理を繰り返し、前記第1の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行前の状態に戻し、前記第2の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行後の状態のまま維持し、前記印刷処理ステップは、前記部単位印刷の方法が指定された場合に、部単位で前記第1の方向および第2の方向の印刷が交互に行われるように、前記生成された印刷データの印刷を順次行うこと、を特徴とする。   An invention according to a printing method for solving the above-described problem is a printing method in a printing apparatus capable of printing on a printing medium in a horizontal and vertical direction, and the printing apparatus includes a printing including designation of a unit printing method. A command receiving step for receiving a command, a print data generating step for generating print data for each page according to the print command, and a print processing step for printing on the print medium in any one direction according to the print data. The print data generation step registers the print command as a macro in the storage unit for each page when a unit printing method for alternately performing horizontal and vertical printing in units is specified. Print data for printing in a predetermined first direction and a predetermined second direction different from the first direction by executing the macro When the print data for printing is generated in order, and after the generation of the print data, the process of deleting the macro from the storage unit is repeated, and the generation of the print data in the first direction is completed, the macro If the environment set by execution is returned to the state before execution and the generation of the print data in the second direction is completed, the environment set by execution of the macro is maintained in the state after execution, The printing processing step prints the generated print data so that printing in the first direction and the second direction is alternately performed in units of copies when the unit printing method is specified. It carries out sequentially.

以下、本発明の第1の実施形態について、図面を参照して説明する。   A first embodiment of the present invention will be described below with reference to the drawings.

図1は、第1の実施形態に係るプリンタ1のハードウェア構成例を示す図である。   FIG. 1 is a diagram illustrating a hardware configuration example of the printer 1 according to the first embodiment.

本図に示すように、プリンタ1は、コンピュータ2と接続され、コンピュータ2とともに印刷システム3を構築する。プリンタ1とコンピュータ2とは、例えば、LANなどのネットワークを介して接続される。もちろん、印刷システム3の構成は上記に限られない。   As shown in the figure, the printer 1 is connected to a computer 2 and constructs a printing system 3 together with the computer 2. The printer 1 and the computer 2 are connected via a network such as a LAN, for example. Of course, the configuration of the printing system 3 is not limited to the above.

コンピュータ2は、アプリケーションプログラムや、プリンタドライバによる各種処理を実現する。また、コンピュータ2は、各種印刷設定を含む制御コマンド、印刷対象の各ページの画像データを生成するための印刷コマンドを生成し、 プリンタ1に送信するプリンタホストとして機能する。なお、コマンドの形式は上記に限られない。   The computer 2 implements various processes using application programs and printer drivers. The computer 2 also functions as a printer host that generates control commands including various print settings and print commands for generating image data for each page to be printed, and transmits the print commands to the printer 1. The command format is not limited to the above.

また、コンピュータ2は、印刷部数や部単位印刷の設定を、入力装置などを介してユーザから受け付け、制御コマンドに含めてプリンタ1に送信する。   In addition, the computer 2 accepts the setting of the number of copies to be printed and the setting of unit printing from the user via an input device or the like, and transmits it to the printer 1 by including it in a control command.

コンピュータ2は、例えば、各種プログラムを実行するCPU、データおよびプログラム等を一時的に記憶するRAM、各種プログラム等があらかじめ不揮発的に記憶されているROM、接続されたプリンタ1等の装置とのデータの送受信を行う通信インタフェースを有する(いずれも図示しない)。   The computer 2 includes, for example, a CPU that executes various programs, a RAM that temporarily stores data and programs, a ROM that stores various programs in a nonvolatile manner, and data with devices such as the connected printer 1. (Not shown).

また、コンピュータ2は、LCD、CRTなどの表示装置、マウス、キーボード等の入力装置、CD−ROM等の記録媒体からデータを読み取るメディア読取装置、内蔵または外付けの補助記憶装置が接続される(いずれも図示しない)。もちろん、コンピュータ2の構成はこれに限られない。   The computer 2 is connected to a display device such as an LCD and a CRT, an input device such as a mouse and a keyboard, a media reading device that reads data from a recording medium such as a CD-ROM, and a built-in or external auxiliary storage device ( Neither is shown in the figure). Of course, the configuration of the computer 2 is not limited to this.

プリンタ1は、受信した制御コマンドや印刷コマンドに基づいて印刷を行う印刷装置として機能する。また、プリンタ1は、印刷部数や部単位印刷の設定を含む制御コマンドを受け付けた場合、部ごとに印刷用紙の方向(横および縦)を異ならせて印刷を行う。   The printer 1 functions as a printing apparatus that performs printing based on the received control command and print command. In addition, when the printer 1 receives a control command including settings for the number of copies to be printed and set-unit printing, the printer 1 performs printing by changing the direction (horizontal and vertical) of the printing paper for each copy.

プリンタ1は、制御部10、印刷機構部20、操作パネル30を有する。   The printer 1 includes a control unit 10, a printing mechanism unit 20, and an operation panel 30.

制御部10は、受信した制御コマンドおよび印刷コマンドに応じた印刷を印刷機構部20に実行させる処理、操作パネル30における表示処理、操作パネル30におけるユーザの操作を検知する処理などを行うユニットである。   The control unit 10 is a unit that performs processing for causing the printing mechanism unit 20 to execute printing according to the received control command and print command, display processing on the operation panel 30, processing for detecting a user operation on the operation panel 30, and the like. .

制御部10は、CPU11、RAM12、ROM13、通信インタフェース部14、インタフェース部15を有する。   The control unit 10 includes a CPU 11, a RAM 12, a ROM 13, a communication interface unit 14, and an interface unit 15.

ROM13は、各種のプログラム、データ等が記憶された不揮発性メモリである。RAM12は、ROM13に記憶されているプログラム、データ等がロードされるメモリである。   The ROM 13 is a non-volatile memory that stores various programs, data, and the like. The RAM 12 is a memory into which programs, data and the like stored in the ROM 13 are loaded.

CPU11は、RAM12にロードされたプログラムにしたがって、他のハードウェアを制御し、各種の処理を実行する演算回路である。   The CPU 11 is an arithmetic circuit that controls other hardware according to a program loaded in the RAM 12 and executes various processes.

通信インタフェース部14は、コンピュータ2などと通信を行うための回路からなるユニットである。通信インタフェース部14は、CPU11の制御の下で、例えば、ホストコンピュータなどから受信した印刷データをRAM12に転送する処理などを行う。   The communication interface unit 14 is a unit composed of a circuit for communicating with the computer 2 or the like. The communication interface unit 14 performs a process of transferring print data received from a host computer or the like to the RAM 12 under the control of the CPU 11, for example.

インタフェース部15は、CPU11と印刷機構部20との間、CPU11と操作パネル30との間で、各種のデータを送受信するための回路からなるユニットである。   The interface unit 15 is a unit composed of a circuit for transmitting and receiving various data between the CPU 11 and the printing mechanism unit 20 and between the CPU 11 and the operation panel 30.

インタフェース部15は、CPU11の制御の下で、例えば、RAM12に記憶された印刷用データを印刷機構部20に送信する処理、RAM12に記憶された表示用のデータを操作パネル30に送信する処理、操作パネル30から受信したデータをRAM12に転送する処理などを行う。   Under the control of the CPU 11, for example, the interface unit 15 transmits processing for printing data stored in the RAM 12 to the printing mechanism unit 20, processing for transmitting display data stored in the RAM 12 to the operation panel 30, A process of transferring data received from the operation panel 30 to the RAM 12 is performed.

印刷機構部20は、制御部10の制御の下で、印刷用紙に印刷を行うユニットである。印刷機構部20は、制御部10から供給される信号に基づいて用紙上に印刷を行う印刷エンジン、印刷用紙等の印刷媒体を装填するための給紙トレイ、給紙トレイから用紙を取り出して印刷エンジンに供給するための給紙装置、印刷が行われた用紙を排出するための排出装置、排出された用紙が置かれる排紙トレイなどから構成される(いずれも図示しない)。   The printing mechanism unit 20 is a unit that performs printing on printing paper under the control of the control unit 10. The printing mechanism unit 20 takes out a sheet from the printing engine that prints on the sheet based on a signal supplied from the control unit 10, a sheet feeding tray for loading a printing medium such as printing sheet, and prints the sheet from the sheet feeding tray. A sheet feeding device for supplying the engine, a discharging device for discharging the printed paper, a paper discharge tray on which the discharged paper is placed (all not shown).

印刷エンジンは、例えば、レーザ方式である。レーザ方式の印刷エンジンは、トナーを充填したカートリッジを備え、このトナーを印刷用紙等の印刷媒体に転写することで印刷を行う。もちろん、インクジェット方式であってもよい。   The print engine is, for example, a laser system. A laser type printing engine includes a cartridge filled with toner, and performs printing by transferring the toner to a printing medium such as printing paper. Of course, an inkjet method may be used.

本実施形態では、印刷機構部20は、部単位で印刷用紙の方向(横および縦)を異ならせて印刷することができるように構成される。そのため、印刷機構部20は、例えば、同一サイズの印刷用紙を、横および縦方向でそれぞれ装填可能な給紙トレイを2つ有する。給紙装置、排出装置、排紙トレイは1つあればよい。   In the present embodiment, the printing mechanism unit 20 is configured so that printing can be performed by changing the direction (horizontal and vertical) of the printing paper in units of copies. Therefore, the printing mechanism unit 20 includes, for example, two paper feed trays that can load printing paper of the same size in the horizontal and vertical directions. There may be only one paper feeding device, paper ejection device, and paper ejection tray.

操作パネル30は、ユーザとプリンタ1との間の入出力インタフェースとして、プリンタ1の筐体に設けられているユニットである。操作パネル30は、例えば、LCDと、LCDの画面の表示面に貼られたタッチパネルとを有する(いずれも図示しない)。LCDは、制御部10の制御の下で、例えば、操作メニューなどを表示する。LCDの替わりに有機EL(Electro-Luminescence)ディスプレイを用いてもよい。   The operation panel 30 is a unit provided in the housing of the printer 1 as an input / output interface between the user and the printer 1. The operation panel 30 includes, for example, an LCD and a touch panel affixed to the display surface of the LCD screen (none is shown). The LCD displays an operation menu, for example, under the control of the control unit 10. An organic EL (Electro-Luminescence) display may be used instead of the LCD.

また、タッチパネルは、LCDに表示された画像のXY座標と対応したタッチ位置を特定し、タッチ位置を座標に変換して制御部10に出力する。タッチパネルは、感圧式または静電式の入力検出素子などにより構成される。もちろん、操作パネル30は、ボタンキーなどの各種ハードスイッチを備えていてもよい。   Further, the touch panel specifies a touch position corresponding to the XY coordinates of the image displayed on the LCD, converts the touch position into coordinates, and outputs the coordinates to the control unit 10. The touch panel includes a pressure-sensitive or electrostatic input detection element. Of course, the operation panel 30 may include various hard switches such as button keys.

もちろん、プリンタ1の構成は上記に限られない。   Of course, the configuration of the printer 1 is not limited to the above.

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

本図に示すように、プリンタ1は、コマンド受付部100、印刷データ生成部120、印刷処理部140、記憶部160を有する。これらの機能部は、CPU11がROM13からRAM12にロードしたプログラムを実行するとともに、通信インタフェース部14、インタフェース部15、印刷機構部20、操作パネル30などを制御することにより、実現される。   As shown in the drawing, the printer 1 includes a command receiving unit 100, a print data generating unit 120, a print processing unit 140, and a storage unit 160. These functional units are realized by the CPU 11 executing a program loaded from the ROM 13 to the RAM 12 and controlling the communication interface unit 14, the interface unit 15, the printing mechanism unit 20, the operation panel 30, and the like.

コマンド受付部100は、コンピュータ2から送られる制御コマンドおよび印刷コマンドを受け付け、印刷データ生成部120に出力する。なお、制御コマンドに、印刷部数の設定が含まれる場合、印刷コマンドには、1部分の各ページの印刷コマンドが含まれる。   The command reception unit 100 receives control commands and print commands sent from the computer 2 and outputs them to the print data generation unit 120. When the control command includes setting of the number of prints, the print command includes a print command for each page of one part.

印刷データ生成部120は、制御コマンドや印刷コマンドに従って、印刷対象の各ページについてビットマップ画像データを生成する。プリンタ1が解釈可能な描画命令の集まりである中間コードの形式で表したデータを生成してもよい。   The print data generation unit 120 generates bitmap image data for each page to be printed in accordance with a control command or a print command. Data expressed in the form of an intermediate code that is a collection of drawing commands that can be interpreted by the printer 1 may be generated.

また、印刷データ生成部120は、制御コマンドに、印刷部数、部単位印刷、セパレート印刷の設定が含まれる場合、マクロ機能を用いて、印刷対象の各ページについて、横方向および縦方向それぞれ1回ずつマクロを実行し、横方向および縦方向の画像データを生成する。   In addition, when the control command includes settings for the number of copies to be printed, unit-by-unit printing, and separate printing, the print data generation unit 120 uses the macro function once for each page to be printed once in the horizontal and vertical directions. Macros are executed one by one to generate horizontal and vertical image data.

なお、マクロとは、一または複数のコマンドから構成される情報である。マクロ機能では、予め所定のコマンドをマクロとして登録しておけば、マクロ実行コマンドの発行により、登録されたマクロに含まれるコマンドが順次自動的に実行されることができる。   A macro is information composed of one or a plurality of commands. In the macro function, if a predetermined command is registered as a macro in advance, the commands included in the registered macro can be automatically executed sequentially by issuing a macro execution command.

具体的には、印刷データ生成部120は、マクロ登録部121、マクロ実行部122、マクロ削除部123を有する。   Specifically, the print data generation unit 120 includes a macro registration unit 121, a macro execution unit 122, and a macro deletion unit 123.

マクロ登録部121は、コマンド受付部100から出力された1ページ分の画像データを生成するための印刷コマンドを、マクロとして記憶部160に登録する。   The macro registration unit 121 registers a print command for generating one page of image data output from the command reception unit 100 in the storage unit 160 as a macro.

マクロ実行部122は、記憶部160に登録されたマクロを実行することにより、1ページ分の画像データを生成する。   The macro execution unit 122 generates image data for one page by executing the macro registered in the storage unit 160.

マクロ削除部123は、画像データが生成されたページに対応するマクロを記憶部160から削除する。   The macro deletion unit 123 deletes the macro corresponding to the page on which the image data is generated from the storage unit 160.

印刷データ生成部120は、1ページ毎に、コマンド受付部100を介して受け付けた印刷コマンドをマクロ登録部121にマクロとして登録させ、マクロ実行部122にマクロ実行により横方向および縦方向の画像データを生成させ、マクロ削除部123に登録されたマクロを削除させる。   For each page, the print data generation unit 120 causes the macro registration unit 121 to register the print command received via the command reception unit 100 as a macro, and the macro execution unit 122 performs horizontal and vertical image data by executing the macro. And the macro registered in the macro deletion unit 123 is deleted.

ここで、印刷データ生成部120は、所定の設定を指定してマクロ実行部122にマクロ実行を行わせる。マクロ機能では、マクロ実行コマンドの発行の際に、当該マクロ実行後に環境設定を当該マクロ実行前の状態に戻すことを指示する設定(以下、「リセットON設定」と呼ぶ。)、当該マクロ実行後に環境設定を当該マクロ実行前の状態に戻さない(すなわち、当該マクロ実行後の状態のまま維持する)ことを指示する設定(以下、「リセットOFF設定」と呼ぶ。)などが指定されることができる。   Here, the print data generation unit 120 designates predetermined settings and causes the macro execution unit 122 to perform macro execution. In the macro function, when a macro execution command is issued, a setting for instructing to return the environment setting to the state before the macro execution after the macro execution (hereinafter referred to as “reset ON setting”), after the macro execution. A setting (hereinafter referred to as “reset OFF setting”) for instructing not to return the environment setting to the state before executing the macro (that is, maintaining the state after executing the macro) is specified. it can.

上記の機能を用いて、印刷データ生成部120は、各ページの横方向の画像データを生成する際に、「リセットON設定」を指定して、マクロ実行部122にマクロ実行を行わせる。一方、各ページの縦方向の画像データを生成する際には、「リセットOFF設定」を指定して、マクロ実行部122にマクロ実行を行わせる。   Using the above function, the print data generation unit 120 designates “reset ON setting” and causes the macro execution unit 122 to execute macro execution when generating horizontal image data of each page. On the other hand, when generating the image data in the vertical direction of each page, “reset OFF setting” is designated to cause the macro execution unit 122 to execute the macro.

上記のような方法により、各ページの縦方向のためのマクロ実行の際には、直前に実行された横方向のためのマクロ実行において指定された設定がリセットされている(すなわち、当該横方向のためのマクロ実行前の状態に戻る)。そのため、各ページの縦方向のためのマクロ実行の際に、不要な環境設定が行われている状態が回避され、正しく画像データが生成される。   With the above method, when executing the macro for the vertical direction of each page, the setting specified in the macro execution for the horizontal direction executed immediately before is reset (that is, the horizontal direction To the state before the macro execution for Therefore, when executing macros for the vertical direction of each page, a state in which unnecessary environment setting is performed is avoided, and image data is generated correctly.

図3を参照して、各ページの印刷コマンドを上記のような方法により、マクロで実行した場合について説明する。図3は、部数が2部以上の場合の、印刷コマンド(マクロ)および印刷コマンドに従って生成される画像データの関係について説明するための図である。印刷コマンドの内容は、図7と同様である。   With reference to FIG. 3, a case where the print command for each page is executed in a macro by the above method will be described. FIG. 3 is a diagram for explaining a relationship between a print command (macro) and image data generated according to the print command when the number of copies is two or more. The contents of the print command are the same as in FIG.

例えば、横方向の2ページ目のマクロ実行では、「リセットON設定」が指定されるため、横方向の2ページ目の塗りつぶし設定コマンドで指定された設定はリセットされる。すなわち、環境設定は、縦方向の1ページ目のマクロ実行後の状態に戻る。   For example, in the macro execution of the second page in the horizontal direction, “reset ON setting” is specified, so the setting specified by the fill setting command on the second page in the horizontal direction is reset. That is, the environment setting returns to the state after the macro execution of the first page in the vertical direction.

そのため、縦方向の2ページ目の円描画コマンドでは、横方向の2ページ目の塗りつぶし設定コマンドで指定された設定が引き継がれず、縦方向の1ページ目の輪郭線設定コマンドで指定された設定が引き継がれる。その結果、縦方向の2ページ目では、1ページ目の矩形画像b´と同様の輪郭線により円画像c´が正しく描画されるようになる。   Therefore, with the circle drawing command for the second page in the vertical direction, the setting specified by the fill setting command for the second page in the horizontal direction is not carried over, and the setting specified by the contour setting command for the first page in the vertical direction is not inherited. Taken over. As a result, on the second page in the vertical direction, the circular image c ′ is correctly drawn with the same outline as the rectangular image b ′ on the first page.

なお、印刷データ生成部120は、制御コマンドに、印刷部数および部単位印刷の設定が含まれる場合(セパレート印刷でない場合)、各ページの印刷コマンドに従って、各ページの所定の一方向(横もしくは縦)の画像データを生成する。制御コマンドに、印刷部数の設定が含まれる場合(部単位セパレート印刷でない)も同様である。   Note that the print data generation unit 120, when the control command includes settings for the number of copies to be printed and unit-unit printing (in the case of separate printing), according to the print command for each page, a predetermined direction (horizontal or vertical) for each page. ) Image data is generated. The same applies when the setting of the number of copies to be printed is included in the control command (not separate copy printing).

図2に戻って説明を続ける。印刷データ生成部120は、生成した画像データを印刷データとして記憶部160に格納する。また、制御コマンドおよび生成した印刷データに従った印刷処理を、印刷処理部140に要求する。   Returning to FIG. 2, the description will be continued. The print data generation unit 120 stores the generated image data in the storage unit 160 as print data. Further, the print processing unit 140 is requested to perform print processing according to the control command and the generated print data.

また、部単位セパレート印刷を行う場合、印刷データ生成部120は、マクロ実行部122により生成された各ページの横方向および縦方向の印刷データに基づいて、横方向および縦方向の印刷が部単位で交互に行われるように、印刷処理部140に要求する。   Also, in the case of performing separate printing, the print data generation unit 120 performs horizontal and vertical printing in units based on the horizontal and vertical print data of each page generated by the macro execution unit 122. The print processing unit 140 is requested so as to be alternately performed.

例えば、5ページの原稿を5部、部単位で印刷する場合、印刷データ生成部120は、1部目について、横方向の各ページの印刷処理を要求し、2部目について、縦方向の各ページの印刷処理を要求する。以降、3部目について横方向、4部目について縦方向、5部目について横方向と、交互に印刷要求を行う。   For example, when a 5-page document is printed in 5 copies, the print data generation unit 120 requests a print process for each page in the horizontal direction for the first copy, and prints each page in the vertical direction for the second copy. Request page printing. Thereafter, print requests are alternately made in the horizontal direction for the third copy, in the vertical direction for the fourth copy, and in the horizontal direction for the fifth copy.

なお、部単位印刷(セパレート印刷でない)を行う場合、印刷データ生成部120は、生成した各ページの所定の一方向の画像データに基づいて、部単位の印刷が行われるように、印刷処理部140に要求する。また、複数部の印刷(部単位セパレート印刷でない)を行う場合、印刷データ生成部120は、生成した各ページの所定の一方向の画像データに基づいて、ページごとに部数分の印刷が順次行われるように、印刷処理部140に要求する。   Note that when performing copy printing (not separate printing), the print data generation unit 120 prints the print processing unit so that printing is performed based on the generated image data in one direction of each page. Request to 140. Further, when printing a plurality of copies (not a separate print), the print data generation unit 120 sequentially prints the number of copies for each page based on the generated image data in one direction of each page. Request to the print processing unit 140.

印刷処理部140は、印刷データ生成部120から受け付けた印刷要求に従って、印刷処理を実行する。   The print processing unit 140 executes print processing according to the print request received from the print data generation unit 120.

印刷処理部140は、印刷要求において指定された横方向もしくは縦方向の印刷データ(ビットマップ画像データや中間コードデータ)を記憶部160から取得する。また、印刷要求で指定された印刷用紙、用紙方向、解像度などの印刷設定に合わせて、取得した印刷データをラスタデータに変換し(ラスタライズ)、必要に応じて色変換処理等を行う。このようにして生成した横方向もしくは縦方向の印刷用のデータに基づいて、印刷要求で指定された横方向もしくは縦方向の印刷用紙に印刷を実行する。   The print processing unit 140 acquires the horizontal or vertical print data (bitmap image data or intermediate code data) designated in the print request from the storage unit 160. Further, the acquired print data is converted into raster data (rasterization) in accordance with print settings such as the print paper, paper orientation, and resolution specified in the print request, and color conversion processing is performed as necessary. Based on the data for printing in the horizontal direction or the vertical direction generated in this way, printing is performed on the printing paper in the horizontal direction or the vertical direction specified by the print request.

記憶部160は、マクロ、印刷データを記憶する。すなわち、記憶部160は、印刷データ生成部120のマクロ登録部121から出力されたマクロを記憶するための記憶領域161、印刷データ生成部120から出力された印刷データを記憶するための記憶領域161を有する。   The storage unit 160 stores macro and print data. That is, the storage unit 160 stores a storage area 161 for storing the macro output from the macro registration unit 121 of the print data generation unit 120 and a storage area 161 for storing the print data output from the print data generation unit 120. Have

次に、上記の各種機能部により実現される、部単位セパレート印刷における印刷データの生成処理について説明する。   Next, print data generation processing in unit-separate separate printing, which is realized by the various functional units described above, will be described.

図4は、部単位セパレート印刷における印刷データの生成処理の流れを示すフロー図である。本フローは、プリンタ1がコンピュータ2から、印刷部数、部単位印刷、セパレート印刷の設定を含む制御コマンドを受け付けることにより開始される。   FIG. 4 is a flowchart showing the flow of print data generation processing in separate unit printing. This flow is started when the printer 1 receives from the computer 2 a control command including settings for the number of copies, copy unit printing, and separate printing.

本フローが開始されると、コマンド受付部100は、印刷コマンドを受信する(S10)。具体的には、コンピュータ2から順次送られる、印刷対象の各ページの画像データを生成するための印刷コマンドを受信し、印刷データ生成部120に出力する。そして、処理をS20に進める。   When this flow is started, the command receiving unit 100 receives a print command (S10). Specifically, a print command for generating image data of each page to be printed, which is sequentially sent from the computer 2, is received and output to the print data generation unit 120. Then, the process proceeds to S20.

コマンド受付部100から出力される印刷コマンドを順次受け付けて、印刷データ生成部120は、マクロ登録を行う(S20)。具体的には、マクロ登録部121は、受信した印刷コマンドを、マクロとして記憶部160の記憶領域161に順次格納する。そして、処理を、S30進める。   The print data generation unit 120 sequentially receives print commands output from the command reception unit 100, and performs macro registration (S20). Specifically, the macro registration unit 121 sequentially stores the received print commands in the storage area 161 of the storage unit 160 as a macro. Then, the process proceeds to S30.

マクロ登録を実行後(S20)、印刷データ生成部120は、1ページ分の印刷コマンドについてマクロ登録が完了したか否かを判定する(S30)。具体的には、マクロ登録部121は、例えば、改ページコマンドを登録したか否かにより判定する。   After executing the macro registration (S20), the print data generation unit 120 determines whether or not the macro registration is completed for the print command for one page (S30). Specifically, the macro registration unit 121 determines whether or not a page break command is registered, for example.

1ページ分の印刷コマンドについてマクロ登録が完了した場合(S30:YES)、印刷データ生成部120は、登録したマクロの実行の開始を、「リセットON設定」を指定してマクロ実行部122に要求し、処理をS40に進める。   When the macro registration is completed for the print command for one page (S30: YES), the print data generation unit 120 requests the macro execution unit 122 to start the execution of the registered macro by specifying “reset ON setting”. Then, the process proceeds to S40.

一方、1ページ分の印刷コマンドについてマクロ登録が完了していない場合(S30:NO)、印刷データ生成部120は、処理をS10に戻す。   On the other hand, when the macro registration has not been completed for the print command for one page (S30: NO), the print data generation unit 120 returns the process to S10.

1ページ分の印刷コマンドのマクロ登録が完了した場合(S30:YES)、印刷データ生成部120は、登録されたマクロを取得する(S40)。具体的には、マクロ実行部122は、マクロとして登録された印刷コマンドを記憶部160の記憶領域161から順次取得する。   When the macro registration of the print command for one page is completed (S30: YES), the print data generation unit 120 acquires the registered macro (S40). Specifically, the macro execution unit 122 sequentially acquires print commands registered as macros from the storage area 161 of the storage unit 160.

それから、印刷データ生成部120は、横印刷用の印刷データを生成する(S50)。具体的には、マクロ実行部122は、取得した印刷コマンドを順次解釈して、横方向の印刷用紙に印刷するための画像データを生成し、記憶部160の記憶領域162に印刷データとして格納する。そして、処理をS60に進める。   Then, the print data generation unit 120 generates print data for horizontal printing (S50). Specifically, the macro execution unit 122 sequentially interprets the acquired print commands, generates image data to be printed on the printing paper in the horizontal direction, and stores it as print data in the storage area 162 of the storage unit 160. . Then, the process proceeds to S60.

マクロの実行後(S50)、印刷データ生成部120は、1ページ分の印刷データの生成が完了したか否かを判定する(S60)。具体的には、マクロ実行部122は、例えば、改ページコマンドを実行したか否かにより判定する。   After execution of the macro (S50), the print data generation unit 120 determines whether generation of print data for one page has been completed (S60). Specifically, the macro execution unit 122 determines, for example, whether or not a page break command has been executed.

1ページ分の印刷データの生成が完了した場合(S60:YES)、マクロ実行部122は、「リセットON設定」が指定されているため(S30:YES)、マクロ実行により指定された設定を当該マクロの実行前の状態に戻す。また、印刷データ生成部120は、登録したマクロの実行の開始を、「リセットOFF設定」を指定してマクロ実行部122に要求し、処理をS70に進める。   When the generation of print data for one page is completed (S60: YES), the macro execution unit 122 specifies the setting specified by the macro execution because “reset ON setting” is specified (S30: YES). Return to the state before executing the macro. Further, the print data generation unit 120 requests the macro execution unit 122 to start execution of the registered macro by designating “reset OFF setting”, and advances the process to S70.

一方、1ページ分の印刷データの生成が完了していない場合(S60:NO)、印刷データ生成部120は、処理をS40に戻す。   On the other hand, if the generation of print data for one page has not been completed (S60: NO), the print data generation unit 120 returns the process to S40.

1ページ分の印刷データの生成が完了した場合(S60:YES)、印刷データ生成部120は、登録されたマクロを取得する(S70)。具体的には、マクロ実行部122は、マクロとして登録された印刷コマンドを記憶部160の記憶領域161から順次取得する。   When the generation of print data for one page is completed (S60: YES), the print data generation unit 120 acquires a registered macro (S70). Specifically, the macro execution unit 122 sequentially acquires print commands registered as macros from the storage area 161 of the storage unit 160.

それから、印刷データ生成部120は、縦印刷用の印刷データを生成する(S80)。具体的には、マクロ実行部122は、取得した印刷コマンドを順次解釈して、縦方向の印刷用紙に印刷するための画像データを生成し、記憶部160の記憶領域162に印刷データとして格納する。そして、処理をS90に進める。   Then, the print data generation unit 120 generates print data for vertical printing (S80). Specifically, the macro execution unit 122 sequentially interprets the acquired print commands, generates image data for printing on a vertical print sheet, and stores the image data in the storage area 162 of the storage unit 160 as print data. . Then, the process proceeds to S90.

マクロの実行後(S80)、印刷データ生成部120は、1ページ分の印刷データの生成が完了したか否かを判定する(S90)。具体的には、マクロ実行部122は、例えば、改ページコマンドを実行したか否かにより判定する。   After execution of the macro (S80), the print data generation unit 120 determines whether generation of print data for one page has been completed (S90). Specifically, the macro execution unit 122 determines, for example, whether or not a page break command has been executed.

1ページ分の印刷データの生成が完了した場合(S90:YES)、マクロ実行部122は、「リセットOFF設定」が指定されているため(S60:YES)、マクロ実行により指定された設定を当該マクロの実行後の状態で維持する。また、印刷データ生成部120は、処理をS100に進める。   When the generation of print data for one page is completed (S90: YES), the macro execution unit 122 specifies “reset OFF setting” (S60: YES). Keep the state after the macro is executed. In addition, the print data generation unit 120 advances the process to S100.

一方、1ページ分の印刷データの生成が完了していない場合(S90:NO)、印刷データ生成部120は、処理をS70に戻す。   On the other hand, if the generation of print data for one page has not been completed (S90: NO), the print data generation unit 120 returns the process to S70.

1ページ分の印刷データの生成が完了した場合(S90:YES)、印刷データ生成部120は、マクロを削除する(S100)。具体的には、マクロ削除部123は、横方向および縦方向の印刷データの生成を完了したページに対応するマクロを、記憶部160の記憶領域161から削除する。   When generation of print data for one page is completed (S90: YES), the print data generation unit 120 deletes the macro (S100). Specifically, the macro deletion unit 123 deletes the macro corresponding to the page for which the generation of the print data in the horizontal direction and the vertical direction has been completed from the storage area 161 of the storage unit 160.

また、印刷データ生成部120は、印刷処理要求を行う(S110)。具体的には、印刷データ生成部120は、1部目に含まれるページのうち、横方向および縦方向の印刷データの生成が完了したページについて、横方向もしくは縦方向の印刷処理を実行するように印刷処理部140に要求する。   Further, the print data generation unit 120 makes a print processing request (S110). Specifically, the print data generation unit 120 performs a horizontal or vertical print process on a page in which generation of horizontal and vertical print data has been completed among the pages included in the first copy. To the print processing unit 140.

ここで、縦方向の印刷データの生成が完了したタイミングで印刷処理の要求を行うようにしているのは、前回の印刷ジョブで最後に印刷が行われた印刷用紙の方向と異なる方向を設定して、1部目の印刷を開始することができるようにするためである。なお、1部目の印刷を縦方向もしくは横方向のいずれで行うかどうかは、例えば、前回の印刷ジョブにおいて最後に印刷が行われた印刷用紙の方向を記録しておき、その方向と異なる方向を1部目の方向として選択することができる。   Here, the print processing request is made at the timing when the generation of the vertical print data is completed because the direction different from the direction of the print paper that was printed last in the previous print job is set. This is so that printing of the first copy can be started. Whether the first copy is printed in the vertical direction or the horizontal direction is determined by, for example, recording the direction of the printing paper that was last printed in the previous print job and a direction different from that direction. Can be selected as the direction of the first copy.

また、印刷データ生成部120は、最終ページの縦印刷用の印刷データの生成が完了したか否かを判定する(S120)。具体的には、印刷データ生成部120は、例えば、制御コマンドなどに設定されたページ数分、縦方向の印刷データの生成を完了したか否かを判定する。そして、最終ページの縦印刷用の印刷データの生成が完了したと判定した場合(S120:YES)、本フローを終了する。一方、最終ページの縦印刷用の印刷データの生成が完了していないと判定した場合(S120:NO)、処理をS10に戻す。   Further, the print data generation unit 120 determines whether or not generation of print data for vertical printing of the last page has been completed (S120). Specifically, the print data generation unit 120 determines whether or not generation of print data in the vertical direction has been completed for the number of pages set in the control command or the like, for example. Then, when it is determined that the generation of the print data for vertical printing of the final page is completed (S120: YES), this flow ends. On the other hand, if it is determined that generation of print data for vertical printing of the final page has not been completed (S120: NO), the process returns to S10.

以上のようにして、部単位セパレート印刷における印刷データの生成処理が実行される。なお、本フローの終了後、2部目以降の各ページについて印刷処理要求が印刷データ生成部120により引き続き行われる。   As described above, the print data generation process in the copy separation printing is executed. Note that after the end of this flow, the print data generation unit 120 continues to make print processing requests for the second and subsequent pages.

次に、印刷コマンド(マクロ)および印刷データのメモリ使用量の変化と、印刷処理要求のタイミングについて説明する。   Next, changes in the memory usage of the print command (macro) and print data and the timing of the print processing request will be described.

図5は、印刷コマンド(マクロ)および印刷データのメモリ使用量の変化と、印刷処理要求のタイミングを説明するための図である。本図は、ページ単位のマクロおよび印刷データのメモリ使用量を示している。また、ページ単位の印刷処理要求のタイミングを示している。なお、本図は、5ページの原稿を部単位セパレート印刷する場合の例を示している。   FIG. 5 is a diagram for explaining the change in the memory usage of the print command (macro) and print data, and the timing of the print processing request. This figure shows the memory usage of macro and print data in units of pages. In addition, the timing of a print processing request for each page is shown. This figure shows an example of a case where a five-page document is printed in a separate unit.

本図に示すように、各ページのマクロは、各ページについて横印刷用および縦印刷用の印刷データの生成が完了する度に、メモリ(記憶部160)から削除される(図4のS100)。すなわち、メモリに格納されるマクロは、最大で1ページ分である。そのため、印刷対象の全ページのマクロが蓄積されることがなく、余分なメモリが使用されない。   As shown in the figure, the macro of each page is deleted from the memory (storage unit 160) every time generation of print data for horizontal printing and vertical printing is completed for each page (S100 in FIG. 4). . That is, the maximum number of macros stored in the memory is one page. Therefore, macros for all pages to be printed are not accumulated, and no extra memory is used.

一方、印刷データは、各ページについて横印刷用および縦印刷用が順に生成され(図4のS40〜90)、メモリに順次蓄積される。印刷データは、2部目以降の印刷処理で使用されるため、指定された部数分の印刷処理が終了するまでの間、メモリに格納されている。   On the other hand, the print data is sequentially generated for each page for horizontal printing and vertical printing (S40 to 90 in FIG. 4), and is sequentially stored in the memory. Since the print data is used in the printing process for the second and subsequent copies, the print data is stored in the memory until the printing process for the designated number of copies is completed.

1部目の各ページの印刷処理要求のタイミングは、各ページの縦方向の印刷データの生成が完了した後となっている(図4のS110)。このようにすることにより、1部目の印刷を縦方向もしくは横方向のいずれで行うかどうかが、自動的にもしくはユーザの設定により決定されることができる。すなわち、前回の印刷ジョブで最後に印刷が行われた印刷用紙の方向と異なる方向で印刷を開始することができる。   The timing of the print processing request for each page of the first copy is after the generation of the vertical print data for each page is completed (S110 in FIG. 4). In this way, whether the first copy is printed in the vertical direction or the horizontal direction can be determined automatically or by user settings. That is, it is possible to start printing in a direction different from the direction of the printing paper that was printed last in the previous print job.

もちろん、固定的に横方向で1部目の印刷が行われるようにしてもよい。この場合、1部目の各ページの印刷処理要求のタイミングは、各ページの横方向の印刷データの生成が完了した後とされることができる。このようにすれば、1部目の印刷処理の開始を早めることができるとともに、2部目以降の印刷処理の開始も早めることができる。なお、この場合、図4のS110の処理を、S60とS70の間で行うようにすればよい。   Of course, the first copy may be fixedly printed in the horizontal direction. In this case, the print processing request timing of each page of the first copy can be made after the generation of the horizontal print data of each page is completed. In this way, the start of the printing process for the first copy can be accelerated and the start of the printing process for the second and subsequent copies can also be accelerated. In this case, the process of S110 in FIG. 4 may be performed between S60 and S70.

また、前回の印刷ジョブで最後に印刷が行われた印刷用紙の方向に応じて、1部目の各ページの印刷処理要求のタイミングを、各ページの横方向の印刷データの生成が完了した後に設定したり、各ページの縦方向の印刷データの生成が完了した後に設定したりすることができるようにしてもよい。   Also, according to the direction of the printing paper that was printed last in the previous print job, the timing of the print processing request for each page of the first copy is after the generation of the horizontal print data for each page is completed. It may be set after the generation of print data in the vertical direction of each page is completed.

また、前回の印刷ジョブで最後に印刷が行われた印刷用紙の方向に応じて、横方向および縦方向のうち、先に印刷データの生成を行うべき方向を設定できるようにしてもよい。このようにすれば、前回の印刷ジョブの印刷用紙の方向が横および縦のいずれの方向であっても、1部目の印刷処理の開始を早めることができるとともに、2部目以降の印刷処理の開始も早めることができる。   Further, according to the direction of the printing paper that has been printed last in the previous print job, the direction in which print data should be generated first among the horizontal direction and the vertical direction may be set. In this way, it is possible to speed up the start of the first printing process regardless of whether the direction of the printing paper of the previous print job is horizontal or vertical, and the second and subsequent printing processes Can also be started earlier.

以上、本発明の実施形態について説明した。   The embodiment of the present invention has been described above.

以上、本発明について、例示的な実施形態と関連させて記載した。多くの代替物、修正および変形例が当業者にとって明らかであることは明白である。したがって、上に記載の本発明の実施形態は、本発明の要旨と範囲を例示することを意図し、限定するものではない。   The present invention has been described in connection with exemplary embodiments. Obviously, many alternatives, modifications, and variations will be apparent to practitioners skilled in this art. Accordingly, the above-described embodiments of the present invention are intended to illustrate and not limit the gist and scope of the present invention.

例えば、縦印刷用の印刷データが横印刷用の印刷データよりも先に生成されるようにしてもよい。また、本発明は、プリンタに限られず、プリンタを有するコピー機、複合機などにも適用することができる。   For example, the print data for vertical printing may be generated before the print data for horizontal printing. The present invention is not limited to a printer, and can also be applied to a copier, a multifunction machine, or the like having a printer.

第1の実施形態に係るプリンタ1のハードウェア構成例を示す図。1 is a diagram illustrating a hardware configuration example of a printer 1 according to a first embodiment. プリンタ1の機能構成を示すブロック図。FIG. 2 is a block diagram showing a functional configuration of the printer 1. 部数が2部以上の場合の、印刷コマンド(マクロ)および画像データの関係を説明するための図。The figure for demonstrating the relationship between a print command (macro) and image data in case the number of copies is two or more. 部単位セパレート印刷における印刷データの生成処理の流れを示すフロー図。FIG. 5 is a flowchart showing a flow of print data generation processing in copy unit separate printing. 印刷コマンド(マクロ)および印刷データのメモリ使用量の変化と、印刷処理要求のタイミングを説明するための図。The figure for demonstrating the change of the memory usage-amount of a print command (macro) and print data, and the timing of a print processing request. 部数が1部の場合の、印刷コマンドおよび画像データの関係を説明するための図。The figure for demonstrating the relationship between a print command and image data in case the number of copies is one. 部数が2部以上の場合の、印刷コマンドおよび画像データの関係を説明するための図。The figure for demonstrating the relationship between a print command and image data in case the number of copies is two or more.

符号の説明Explanation of symbols

1:プリンタ、2:コンピュータ、3:印刷システム、10:制御部、11:CPU、12:RAM、13:ROM、14:通信インタフェース部、15:インタフェース部、20:印刷機構部、30:操作パネル、
100:コマンド受付部、120:印刷データ生成部、121:マクロ登録部、122:マクロ実行部、123:マクロ削除部、140:印刷処理部、160:記憶部、161:記憶領域、162:記憶領域
1: printer, 2: computer, 3: printing system, 10: control unit, 11: CPU, 12: RAM, 13: ROM, 14: communication interface unit, 15: interface unit, 20: printing mechanism unit, 30: operation panel,
100: Command reception unit, 120: Print data generation unit, 121: Macro registration unit, 122: Macro execution unit, 123: Macro deletion unit, 140: Print processing unit, 160: Storage unit, 161: Storage area, 162: Storage region

Claims (5)

コンピュータと、横および縦方向の印刷媒体に印刷可能な印刷装置とを有する印刷システムであって、
前記コンピュータは、
部単位印刷の方法の指定を含む印刷コマンドを生成して前記印刷装置に送信する手段を有し、
前記印刷装置は、
前記印刷コマンドを受け付けるコマンド受付手段と、
前記印刷コマンドに従ってページ毎の印刷データを生成する印刷データ生成手段と、
前記印刷データに従って、前記いずれかの方向の印刷媒体に印刷を行う印刷処理手段と、を有し、
前記印刷データ生成手段は、
部単位で横方向および縦方向の印刷を交互に行う部単位印刷の方法が指定された場合に、ページ毎に、前記印刷コマンドをマクロとして記憶手段に登録し、当該マクロを実行することにより所定の第1の方向の印刷のための印刷データおよび前記第1の方向と異なる所定の第2の方向の印刷のための印刷データを順に生成し、前記印刷データの生成の終了後、前記マクロを前記記憶手段から削除する処理を繰り返し、
前記第1の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行前の状態に戻し、
前記第2の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行後の状態のまま維持し、
前記印刷処理手段は、
前記部単位印刷の方法が指定された場合に、部単位で前記第1の方向および第2の方向の印刷が交互に行われるように、前記生成された印刷データの印刷を順次行うこと、
を特徴とする印刷システム。
A printing system comprising a computer and a printing device capable of printing on horizontal and vertical print media,
The computer
Means for generating a print command including designation of a method for printing a unit and transmitting it to the printing apparatus;
The printing apparatus includes:
Command accepting means for accepting the print command;
Print data generation means for generating print data for each page according to the print command;
Print processing means for performing printing on the print medium in one of the directions according to the print data,
The print data generation means includes
When a unit printing method for alternately printing in the horizontal direction and the vertical direction is specified for each unit, the print command is registered in the storage unit as a macro for each page, and the macro is executed to execute the macro. Print data for printing in the first direction and print data for printing in a predetermined second direction different from the first direction are generated in order, and after the generation of the print data, the macro is Repeat the process of deleting from the storage means,
When the generation of the print data in the first direction is finished, the environment set by the execution of the macro is returned to the state before the execution,
When the generation of the print data in the second direction is finished, the environment set by the execution of the macro is maintained in the state after the execution,
The print processing means includes
Sequentially printing the generated print data so that printing in the first direction and the second direction is alternately performed in units of copies when the unit printing method is specified;
A printing system featuring.
請求項1に記載の印刷システムであって、
前記印刷処理手段は、
前記部単位印刷の方法が指定された場合に、先頭ページの前記第2の方向の印刷データが生成された後、前記第1の方向および第2の方向のいずれかの方向により1部目の印刷を開始すること、
を特徴とする印刷システム。
The printing system according to claim 1,
The print processing means includes
When the printing method of the unit printing is designated, after the print data in the second direction of the first page is generated, the first copy is generated depending on one of the first direction and the second direction. Starting printing,
A printing system featuring.
横および縦方向の印刷媒体に印刷可能な印刷装置であって、
部単位印刷の方法の指定を含む印刷コマンドを受け付けるコマンド受付手段と、
前記印刷コマンドに従ってページ毎の印刷データを生成する印刷データ生成手段と、
前記印刷データに従って、前記いずれかの方向の印刷媒体に印刷を行う印刷処理手段と、を有し、
前記印刷データ生成手段は、
部単位で横方向および縦方向の印刷を交互に行う部単位印刷の方法が指定された場合に、ページ毎に、前記印刷コマンドをマクロとして記憶手段に登録し、当該マクロを実行することにより所定の第1の方向の印刷のための印刷データおよび前記第1の方向と異なる所定の第2の方向の印刷のための印刷データを順に生成し、前記印刷データの生成の終了後、前記マクロを前記記憶手段から削除する処理を繰り返し、
前記第1の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行前の状態に戻し、
前記第2の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行後の状態のまま維持し、
前記印刷処理手段は、
前記部単位印刷の方法が指定された場合に、部単位で前記第1の方向および第2の方向の印刷が交互に行われるように、前記生成された印刷データの印刷を順次行うこと、
を特徴とする印刷装置。
A printing device capable of printing on horizontal and vertical print media,
Command accepting means for accepting a print command including designation of a method for printing a copy;
Print data generation means for generating print data for each page according to the print command;
Print processing means for performing printing on the print medium in one of the directions according to the print data,
The print data generation means includes
When a unit printing method for alternately printing in the horizontal direction and the vertical direction is specified for each unit, the print command is registered in the storage unit as a macro for each page, and the macro is executed to execute the macro. Print data for printing in the first direction and print data for printing in a predetermined second direction different from the first direction are generated in order, and after the generation of the print data, the macro is Repeat the process of deleting from the storage means,
When the generation of the print data in the first direction is finished, the environment set by the execution of the macro is returned to the state before the execution,
When the generation of the print data in the second direction is completed, the environment set by the execution of the macro is maintained in the state after the execution,
The print processing means includes
Sequentially printing the generated print data so that printing in the first direction and the second direction is alternately performed in units of copies when the unit printing method is specified;
A printing apparatus characterized by the above.
請求項3に記載の印刷装置は、プリンタ、コピー機、または、複合機であること、を特徴とする印刷装置。   The printing apparatus according to claim 3, wherein the printing apparatus is a printer, a copier, or a multifunction machine. 横および縦方向の印刷媒体に印刷可能な印刷装置における印刷方法であって、
前記印刷装置は、
部単位印刷の方法の指定を含む印刷コマンドを受け付けるコマンド受付ステップと、
前記印刷コマンドに従ってページ毎の印刷データを生成する印刷データ生成ステップと、
前記印刷データに従って、前記いずれかの方向の印刷媒体に印刷を行う印刷処理ステップと、を行い、
前記印刷データ生成ステップは、
部単位で横方向および縦方向の印刷を交互に行う部単位印刷の方法が指定された場合に、ページ毎に、前記印刷コマンドをマクロとして記憶手段に登録し、当該マクロを実行することにより所定の第1の方向の印刷のための印刷データおよび前記第1の方向と異なる所定の第2の方向の印刷のための印刷データを順に生成し、前記印刷データの生成の終了後、前記マクロを前記記憶手段から削除する処理を繰り返し、
前記第1の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行前の状態に戻し、
前記第2の方向の印刷データの生成が終了した場合、前記マクロの実行により設定された環境を実行後の状態のまま維持し、
前記印刷処理ステップは、
前記部単位印刷の方法が指定された場合に、部単位で前記第1の方向および第2の方向の印刷が交互に行われるように、前記生成された印刷データの印刷を順次行うこと、
を特徴とする印刷方法。
A printing method in a printing apparatus capable of printing on horizontal and vertical print media,
The printing apparatus includes:
A command accepting step for accepting a print command including designation of a method of copy printing;
A print data generation step for generating print data for each page according to the print command;
A print processing step of performing printing on the print medium in any of the directions according to the print data,
The print data generation step includes:
When a unit printing method for alternately printing in the horizontal direction and the vertical direction is specified for each unit, the print command is registered in the storage unit as a macro for each page, and the macro is executed to execute the macro. Print data for printing in the first direction and print data for printing in a predetermined second direction different from the first direction are generated in order, and after the generation of the print data, the macro is Repeat the process of deleting from the storage means,
When the generation of the print data in the first direction is finished, the environment set by the execution of the macro is returned to the state before the execution,
When the generation of the print data in the second direction is completed, the environment set by the execution of the macro is maintained in the state after the execution,
The printing process step includes
Sequentially printing the generated print data so that printing in the first direction and the second direction is alternately performed in units of copies when the unit printing method is specified;
A printing method characterized by the above.
JP2008209519A 2008-08-18 2008-08-18 Printing system, printing device, and printing method Withdrawn JP2010044677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008209519A JP2010044677A (en) 2008-08-18 2008-08-18 Printing system, printing device, and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008209519A JP2010044677A (en) 2008-08-18 2008-08-18 Printing system, printing device, and printing method

Publications (1)

Publication Number Publication Date
JP2010044677A true JP2010044677A (en) 2010-02-25

Family

ID=42015996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008209519A Withdrawn JP2010044677A (en) 2008-08-18 2008-08-18 Printing system, printing device, and printing method

Country Status (1)

Country Link
JP (1) JP2010044677A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018083292A (en) * 2016-11-21 2018-05-31 セイコーエプソン株式会社 Printer, control method, information processing device, information processing method, and program for information processing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018083292A (en) * 2016-11-21 2018-05-31 セイコーエプソン株式会社 Printer, control method, information processing device, information processing method, and program for information processing
US10766281B2 (en) 2016-11-21 2020-09-08 Seiko Epson Corporation Printer, information processing device, and a non-transitory computer-readable recording medium recording an information processing program

Similar Documents

Publication Publication Date Title
JP5967376B2 (en) Display device, image forming apparatus, and display control program
JP2022109916A (en) Program and printing system
US8437017B2 (en) Printing apparatus and computer program product for displaying bitmap of operation screen from rasterized PDL and controlling layout
US8253962B2 (en) Image forming apparatus, computer readable storage medium and image formation processing method
US20050094163A1 (en) Printer driver and method of forming user interface
JP6457808B2 (en) Print control device
EP2639644A2 (en) Image forming apparatus capable of issuing instruction to skip error and control method therefor
US20230236773A1 (en) Non-transitory storage medium storing supporting program executable by computer of information processing apparatus
US10956093B2 (en) Image forming apparatus and non-transitory computer readable medium
JP2009053789A (en) Information processor, program, and computer-readable recording medium
JP2007238305A (en) Image forming device
JP2010165008A (en) Information processing apparatus, image forming system, and processing program
US11347455B2 (en) Information processing device, control method for information processing device, and program
US20180084122A1 (en) Processing device, image forming apparatus, and non-transitory computer readable medium
JP2010044677A (en) Printing system, printing device, and printing method
US9575698B2 (en) Printer control device and non-transitory computer readable medium
JP2010042632A (en) System, apparatus and method of printing
JP7147593B2 (en) printer
JP4688042B2 (en) Printer and printer print layout setting method
JP5173354B2 (en) Printing system and printing program
JP2006347115A (en) Printer
US11200016B2 (en) Print data control apparatus to instruct another printing apparatus at transmission destination to perform desired process, printing apparatus thereof, and printing system
JP5551532B2 (en) Print setting device
JP2010284810A (en) Printer, printer driver, and printing system
JP2001138595A (en) Printing system and printer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20111101