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

Printing device, printing method, and printing system Download PDF

Info

Publication number
JP2009154540A
JP2009154540A JP2009021110A JP2009021110A JP2009154540A JP 2009154540 A JP2009154540 A JP 2009154540A JP 2009021110 A JP2009021110 A JP 2009021110A JP 2009021110 A JP2009021110 A JP 2009021110A JP 2009154540 A JP2009154540 A JP 2009154540A
Authority
JP
Japan
Prior art keywords
medium
printing
printed
page
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009021110A
Other languages
Japanese (ja)
Other versions
JP4698744B2 (en
Inventor
達也 ▲高▼木
Tatsuya Takagi
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data 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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2009021110A priority Critical patent/JP4698744B2/en
Publication of JP2009154540A publication Critical patent/JP2009154540A/en
Application granted granted Critical
Publication of JP4698744B2 publication Critical patent/JP4698744B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Controlling Sheets Or Webs (AREA)
  • Conveyance By Endless Belt Conveyors (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Control Or Security For Electrophotography (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent a double-sided printing job from being wasted even if a device recognizes, after the reception of a double-sided printing job, that a medium stored in a paper feed tray cannot be used for double-sided printing. <P>SOLUTION: When a medium determining means determines that a medium cannot be used for double-sided printing, image data are set so that printing is carried out on the front and back in this order. Then, the device performs a process so that after a first printing page is printed on one side of a medium, the medium is ejected by an ejecting section, and after a second printing page is printed on one side of a medium different from that medium, the different medium is ejected by the ejecting section. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、印刷装置、印刷方法及び印刷システムに関するものである。   The present invention relates to a printing apparatus, a printing method, and a printing system.

従来、印刷装置においては、1枚の媒体の表面と裏面とに、それぞれ、画像データを印刷する両面印刷を行うことのできるものが提供されている(例えば、特許文献1参照。)。上位装置から受信して前記印刷装置が保持する両面印刷ジョブのデータには、1枚の媒体の表面に印刷するための表面ページ用の画像データと裏面に印刷するための裏面ページ用の画像データとが含まれている。また、前記印刷装置は、両面印刷を行うための両面印刷ユニットを有する。そして、媒体を収容する給紙トレイから新規な媒体を給紙し、該新規な媒体の裏面に裏面ページを印刷して前記両面印刷ユニットに一時的に保持させる。続いて、前記両面印刷ユニットから裏面ページが印刷された媒体、すなわち、裏面印刷済みの媒体を給紙し、該媒体の表面に表面ページを印刷するようになっている。   2. Description of the Related Art Conventionally, printing apparatuses have been provided that can perform double-sided printing that prints image data on the front and back surfaces of a single medium (see, for example, Patent Document 1). The data of the double-sided print job received from the host device and held by the printing device includes image data for the front page for printing on the surface of one medium and image data for the back page for printing on the back surface. And are included. The printing apparatus includes a double-sided printing unit for performing double-sided printing. Then, a new medium is fed from a paper feed tray that accommodates the medium, a back page is printed on the back surface of the new medium, and is temporarily held by the duplex printing unit. Subsequently, the medium on which the back page is printed from the duplex printing unit, that is, the medium on which the back surface has been printed, is fed, and the front page is printed on the surface of the medium.

しかし、前記両面印刷ユニットに保持することができる媒体の数には上限が存在する。そこで、両面印刷を行う場合、前記上限に達するまで、給紙トレイから新規な媒体を給紙し、該媒体に裏面ページを先行して印刷して前記両面印刷ユニットに一時的に保持させる。その後は、該両面印刷ユニットから給紙された裏面印刷済みの媒体への表面ページの印刷と、給紙トレイから給紙された新規な媒体への裏面ページの印刷とを交互に行うようになっている。例えば、両面印刷ユニットが最大2枚の媒体を保持することができる場合、1枚目の裏面ページ、2枚目の裏面ページ、1枚目の表面ページ、3枚目の裏面ページ、2枚目の表面ページ、4枚目の裏面ページの順で印刷を行うようになっている。これにより、印刷効率を向上させることができる。   However, there is an upper limit on the number of media that can be held in the duplex printing unit. Therefore, when performing double-sided printing, a new medium is fed from the paper feed tray until the upper limit is reached, the back page is printed in advance on the medium, and is temporarily held in the double-sided printing unit. Thereafter, printing of the front page on the back-printed medium fed from the duplex printing unit and printing of the back page on the new medium fed from the paper feed tray are performed alternately. ing. For example, if the duplex printing unit can hold up to two media, the first back page, the second back page, the first front page, the third back page, the second page The front page and the fourth back page are printed in this order. Thereby, printing efficiency can be improved.

特開2001−151425号公報JP 2001-151425 A

しかしながら、前記従来の印刷装置においては、両面印刷ジョブを受信した場合に、給紙トレイに収容されている媒体が両面印刷不可媒体であることを認識すると、ジャムが発生したとして印刷を停止するようになっている。この場合、上位装置において作成され、印刷装置に送信された両面印刷ジョブは、データが破棄されてしまうので、媒体に印刷されず無駄になってしまう。   However, in the conventional printing apparatus, when a double-sided print job is received, if it is recognized that the medium stored in the paper feed tray is a double-sided non-printable medium, printing is stopped because a jam has occurred. It has become. In this case, the double-sided print job created in the host device and transmitted to the printing device is discarded because the data is discarded and is not printed on the medium.

通常、上位装置において両面印刷ジョブを作成しているときには、印刷装置の給紙トレイに収容されている媒体が両面印刷不可媒体であることが認識されることがない。そして、作成された両面印刷ジョブを受信した後に、前記印刷装置が有する媒体種別(メディアタイプ)や媒体厚さ(メディアウェイト)などの媒体の判別機構によって、給紙トレイに収容されている媒体が両面印刷不可媒体であることが認識される。この場合、ジャムが発生したとして印刷を停止するので、作成された両面印刷ジョブが無駄になってしまう。   Normally, when a double-sided print job is created in the host device, it is not recognized that the medium stored in the paper feed tray of the printing device is a double-sided non-printable medium. After receiving the created duplex print job, the medium stored in the paper feed tray is determined by a medium discrimination mechanism such as a medium type (media type) or a medium thickness (media weight) of the printing apparatus. It is recognized that the medium cannot be printed on both sides. In this case, since the printing is stopped when a jam occurs, the created duplex printing job is wasted.

本発明は、前記従来の印刷装置の問題点を解決して、両面印刷ジョブを受信した場合に、給紙トレイに収容されている媒体が両面印刷不可媒体であることを認識しても、前記両面印刷ジョブを無駄にすることがない印刷装置、印刷方法及び印刷システムを提供することを目的とする。   The present invention solves the problems of the conventional printing device, and when receiving a double-sided print job, even if it recognizes that the medium contained in the paper feed tray is a double-sided non-printable medium, It is an object to provide a printing apparatus, a printing method, and a printing system that do not waste a duplex printing job.

そのために、本発明の印刷装置においては、上位装置とデータの送受信を行う受信処理部と、該受信処理部が受信した印刷データを媒体に印刷可能な画像データに変換し、前記媒体の各面に対して第1の印刷ページ及び第2の印刷ページを設定し、前記媒体の各面への印刷を制御する制御手段と、前記媒体が走行し、該媒体へ前記画像データを印刷する用紙走行経路と、該用紙走行経路で前記画像データが印刷された媒体を排出する排出部と、前記媒体の印刷される面を反転する媒体反転手段と、前記媒体が両面印刷可能であるか否かを判別する媒体判別手段とを有し、前記制御手段は、前記媒体判別手段が前記媒体は両面印刷可能であると判別すると、前記画像データを裏面、表面の順で印刷するように設定し、前記媒体の裏面に第2の印刷ページが印刷された後に前記媒体を前記媒体反転手段によって反転させて前記用紙走行経路に送り込み、前記媒体の表面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させる処理を行い、前記媒体判別手段が前記媒体は両面印刷不可能であると判別すると、前記画像データを表面、裏面の順で印刷するように設定し、前記媒体の一方の面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させ、前記媒体と異なる媒体の一方の面に第2の印刷ページが印刷された後に前記異なる媒体を前記排出部によって排出させる処理を行う。   Therefore, in the printing apparatus of the present invention, the reception processing unit that transmits and receives data to and from the host device, the print data received by the reception processing unit is converted into image data that can be printed on a medium, and each surface of the medium Control means for setting a first print page and a second print page to control printing on each side of the medium, and paper running on which the medium runs and prints the image data on the medium A path, a discharge unit that discharges the medium on which the image data is printed on the paper travel path, a medium reversing unit that reverses the surface on which the medium is printed, and whether the medium is capable of duplex printing. Medium determining means for determining, and when the medium determining means determines that the medium can be printed on both sides, the control means sets the image data to be printed in order of the back side and the front side, A second mark on the back of the media After the page is printed, the medium is reversed by the medium reversing means and sent to the paper travel path, and the medium is ejected by the ejecting unit after the first print page is printed on the surface of the medium. When the medium determining unit determines that the medium cannot be printed on both sides, the image data is set to be printed in the order of the front side and the back side, and a first print page is set on one side of the medium. After the printing, the medium is discharged by the discharge unit, and after the second print page is printed on one surface of the medium different from the medium, the different medium is discharged by the discharge unit.

本発明の印刷方法においては、上位装置とデータの送受信を行い、受信した印刷データを媒体に印刷可能な画像データに変換し、前記媒体の各面に対して第1の印刷ページ及び第2の印刷ページを設定し、前記媒体の各面への印刷を制御し、用紙走行経路を走行する前記媒体へ前記画像データを印刷し、前記用紙走行経路で前記画像データが印刷された媒体を排出し、該媒体の印刷される面を反転し、前記媒体が両面印刷可能であるか否かを判別する印刷方法であって、前記媒体は両面印刷可能であると判別すると、前記画像データを裏面、表面の順で印刷するように設定し、前記媒体の裏面に第2の印刷ページを印刷した後に前記媒体を反転させて前記用紙走行経路に送り込み、前記媒体の表面に第1の印刷ページを印刷した後に前記媒体を排出する処理を行い、前記媒体は両面印刷不可能であると判別すると、前記画像データを表面、裏面の順で印刷するように設定し、前記媒体の一方の面に第1の印刷ページを印刷した後に前記媒体を排出し、前記媒体と異なる媒体の一方の面に第2の印刷ページを印刷した後に前記異なる媒体を排出する処理を行う。   In the printing method of the present invention, data is transmitted / received to / from the host device, the received print data is converted into image data that can be printed on a medium, and a first print page and a second print are printed on each side of the medium. Setting a print page, controlling printing on each side of the medium, printing the image data on the medium traveling on the paper travel path, and discharging the medium on which the image data is printed on the paper travel path , A printing method for inverting the printed surface of the medium and determining whether or not the medium can be printed on both sides, and determining that the medium is capable of duplex printing, Set to print in the order of the front side, print the second print page on the back side of the medium, invert the medium and send it to the paper travel path, print the first print page on the surface of the medium After the medium When it is determined that the medium cannot be printed on both sides, the image data is set to be printed in the order of front side and back side, and the first print page is printed on one side of the medium. Thereafter, the medium is discharged, and after the second print page is printed on one surface of a medium different from the medium, the different medium is discharged.

本発明の印刷システムにおいては、上位装置と、該上位装置から受信した印刷データを印刷する印刷装置とを有する印刷システムであって、前記上位装置は、前記印刷データを接続手段によって前記印刷装置へ送信し、該印刷装置は、前記上位装置とデータの送受信を行う受信処理部と、該受信処理部が受信した印刷データを媒体に印刷可能な画像データに変換し、前記媒体の各面に対して第1の印刷ページ及び第2の印刷ページを設定し、前記媒体の各面への印刷を制御する制御手段と、前記媒体が走行し、該媒体へ前記画像データを印刷する用紙走行経路と、該用紙走行経路で前記画像データが印刷された媒体を排出する排出部と、前記媒体の印刷される面を反転する媒体反転手段と、前記媒体が両面印刷可能であるか否かを判別する媒体判別手段とを備え、前記制御手段は、前記媒体判別手段が前記媒体は両面印刷可能であると判別すると、前記画像データを裏面、表面の順で印刷するように設定し、前記媒体の裏面に第2の印刷ページが印刷された後に前記媒体を前記媒体反転手段によって反転させて前記用紙走行経路に送り込み、前記媒体の表面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させる処理を行い、前記媒体判別手段が前記媒体は両面印刷不可能であると判別すると、前記画像データを表面、裏面の順で印刷するように設定し、前記媒体の一方の面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させ、前記媒体と異なる媒体の一方の面に第2の印刷ページが印刷された後に前記異なる媒体を前記排出部によって排出させる処理を行う。   In the printing system of the present invention, the printing system includes a host device and a printing device that prints print data received from the host device, and the host device sends the print data to the printing device by a connection unit. The printing apparatus transmits and receives data to and from the host apparatus, and converts the print data received by the reception processing section into image data that can be printed on a medium. Control means for setting the first print page and the second print page and controlling printing on each side of the medium; a paper travel path for traveling the medium and printing the image data on the medium; Determining a discharge unit that discharges the medium on which the image data is printed on the paper travel path, a medium reversing unit that reverses a surface on which the medium is printed, and whether the medium is capable of duplex printing. Medium Determining means, and when the medium determining means determines that the medium can be printed on both sides, the control means sets the image data to be printed in the order of the back side and the front side, and sets the image data on the back side of the medium. After the second print page is printed, the medium is reversed by the medium reversing means and sent to the paper travel path, and after the first print page is printed on the surface of the medium, the medium is removed by the discharge unit. If the medium determining unit determines that the medium cannot be printed on both sides, the image data is set to be printed in the order of the front side and the back side, and the first side is set on one side of the medium. After the print page is printed, the medium is discharged by the discharge unit, and after the second print page is printed on one side of the medium different from the medium, the different medium is transferred to the discharge unit. It performs a process of discharging me.

本発明によれば、印刷装置においては、上位装置とデータの送受信を行う受信処理部と、該受信処理部が受信した印刷データを媒体に印刷可能な画像データに変換し、前記媒体の各面に対して第1の印刷ページ及び第2の印刷ページを設定し、前記媒体の各面への印刷を制御する制御手段と、前記媒体が走行し、該媒体へ前記画像データを印刷する用紙走行経路と、該用紙走行経路で前記画像データが印刷された媒体を排出する排出部と、前記媒体の印刷される面を反転する媒体反転手段と、前記媒体が両面印刷可能であるか否かを判別する媒体判別手段とを有し、前記制御手段は、前記媒体判別手段が前記媒体は両面印刷可能であると判別すると、前記画像データを裏面、表面の順で印刷するように設定し、前記媒体の裏面に第2の印刷ページが印刷された後に前記媒体を前記媒体反転手段によって反転させて前記用紙走行経路に送り込み、前記媒体の表面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させる処理を行い、前記媒体判別手段が前記媒体は両面印刷不可能であると判別すると、前記画像データを表面、裏面の順で印刷するように設定し、前記媒体の一方の面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させ、前記媒体と異なる媒体の一方の面に第2の印刷ページが印刷された後に前記異なる媒体を前記排出部によって排出させる処理を行う。   According to the present invention, in the printing apparatus, the reception processing unit that transmits and receives data to and from the host device, the print data received by the reception processing unit is converted into image data that can be printed on the medium, and each surface of the medium Control means for setting a first print page and a second print page to control printing on each side of the medium, and paper running on which the medium runs and prints the image data on the medium A path, a discharge unit that discharges the medium on which the image data is printed on the paper travel path, a medium reversing unit that reverses the surface on which the medium is printed, and whether the medium is capable of duplex printing. Medium determining means for determining, and when the medium determining means determines that the medium can be printed on both sides, the control means sets the image data to be printed in order of the back side and the front side, A second printing page is placed on the back of the media. After the medium is printed, the medium is reversed by the medium reversing means and sent to the paper travel path, and after the first print page is printed on the surface of the medium, the medium is discharged by the discharge unit. When the medium determining unit determines that the medium cannot be printed on both sides, the image data is set to be printed in the order of the front side and the back side, and a first print page is set on one side of the medium. After the printing, the medium is discharged by the discharge unit, and after the second print page is printed on one surface of the medium different from the medium, the different medium is discharged by the discharge unit.

この場合、両面印刷ジョブを受信した場合に、収容手段に収容されている媒体が両面印刷不可媒体であることを認識しても、印刷ジョブを無駄にすることがない。   In this case, when a double-sided print job is received, even if it is recognized that the medium stored in the storage unit is a medium that cannot be printed on both sides, the print job is not wasted.

本発明の第1の実施の形態における印刷装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a printing apparatus according to a first embodiment of the present invention. 本発明の第1の実施の形態における印刷装置の構成を示す概略側断面図である。It is a schematic sectional side view which shows the structure of the printing apparatus in the 1st Embodiment of this invention. 本発明の第1の実施の形態における通常の両面印刷のときの印刷順序を示す図である。It is a figure which shows the printing order at the time of the normal double-sided printing in the 1st Embodiment of this invention. 本発明の第1の実施の形態における両面印刷不可のときの片面印刷順序を示す第1の図である。It is a 1st figure which shows the single-sided printing order when double-sided printing is impossible in the 1st Embodiment of this invention. 本発明の第1の実施の形態における両面印刷不可のときの片面印刷順序を示す第2の図である。It is a 2nd figure which shows the single-sided printing order when double-sided printing is impossible in the 1st Embodiment of this invention. 本発明の第1の実施の形態における受信処理部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the reception process part in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるジョブ制御部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the job control part in the 1st Embodiment of this invention. 本発明の第1の実施の形態における印刷制御部の動作を示すフローチャートである。3 is a flowchart illustrating an operation of a print control unit according to the first embodiment of the present invention. 本発明の第1の実施の形態における給紙トレイからの給紙開始処理のサブルーチンを示す第1のフローチャートである。6 is a first flowchart showing a subroutine for paper feed start processing from a paper feed tray according to the first embodiment of the present invention. 本発明の第1の実施の形態における給紙トレイからの給紙開始処理のサブルーチンを示す第2のフローチャートである。6 is a second flowchart illustrating a subroutine for paper feed start processing from a paper feed tray according to the first embodiment of the present invention. 本発明の第1の実施の形態におけるビデオデータ設定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the video data setting process in the 1st Embodiment of this invention. 本発明の第1の実施の形態における媒体搬入処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the medium carrying-in process in the 1st Embodiment of this invention. 本発明の第1の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the medium discharge | emission process in the 1st Embodiment of this invention. 本発明の第1の実施の形態における両面印刷不可媒体通知受付処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the double-sided printing impossible medium notification reception process in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるプリンタユニット制御部の動作を示すフローチャートである。3 is a flowchart illustrating an operation of a printer unit control unit according to the first embodiment of the present invention. 本発明の第1の実施の形態における給紙トレイからの給紙開始処理のサブルーチンを示すフローチャートである。4 is a flowchart illustrating a subroutine for paper feed start processing from a paper feed tray according to the first embodiment of the present invention. 本発明の第1の実施の形態における印刷順序決定処理のサブルーチンを示すフローチャートである。6 is a flowchart illustrating a subroutine of a printing order determination process according to the first embodiment of the present invention. 本発明の第1の実施の形態における両面印刷判別処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the double-sided printing discrimination | determination process in the 1st Embodiment of this invention. 本発明の第1の実施の形態における印刷開始処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the printing start process in the 1st Embodiment of this invention. 本発明の第1の実施の形態における両面印刷ユニットからの給紙開始処理のサブルーチンを示すフローチャートである。4 is a flowchart illustrating a subroutine for paper feed start processing from a duplex printing unit according to the first embodiment of the present invention. 本発明の第1の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the medium discharge | emission process in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるカセット引抜き処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the cassette extraction process in the 1st Embodiment of this invention. 本発明の第2の実施の形態における両面印刷不可のときの片面印刷順序を示す図である。It is a figure which shows the single-sided printing order when double-sided printing is impossible in the 2nd Embodiment of this invention. 本発明の第2の実施の形態における両面印刷不可通知受付処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of a double-sided printing impossible notification reception process in the 2nd Embodiment of this invention. 本発明の第2の実施の形態におけるプリンタユニット制御部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the printer unit control part in the 2nd Embodiment of this invention. 本発明の第2の実施の形態における両面印刷判別処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the double-sided printing discrimination | determination process in the 2nd Embodiment of this invention. 本発明の第2の実施の形態における印刷再開処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the printing resumption process in the 2nd Embodiment of this invention. 本発明の第3の実施の形態における印刷装置の構成を示すブロック図である。It is a block diagram which shows the structure of the printing apparatus in the 3rd Embodiment of this invention. 本発明の第3の実施の形態における印刷制御部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the printing control part in the 3rd Embodiment of this invention. 本発明の第3の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the medium discharge | emission processing in the 3rd Embodiment of this invention. 本発明の第3の実施の形態における両面印刷不可通知受付処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the double-sided printing impossibility notification reception process in the 3rd Embodiment of this invention. 本発明の第3の実施の形態における手差しからの印刷開始処理のサブルーチンを示すフローチャートである。16 is a flowchart illustrating a subroutine for manual print start processing according to the third embodiment of the present invention. 本発明の第3の実施の形態における印刷順序決定処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the printing order determination process in the 3rd Embodiment of this invention. 本発明の第3の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。It is a flowchart which shows the subroutine of the medium discharge | emission processing in the 3rd Embodiment of this invention. 本発明の第3の実施の形態におけるオペレータパネル制御部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the operator panel control part in the 3rd Embodiment of this invention.

以下、本発明の実施の形態について図面を参照しながら詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は本発明の第1の実施の形態における印刷装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing the configuration of the printing apparatus according to the first embodiment of the present invention.

図において、12は印刷装置であり、11は該印刷装置12に通信可能に接続された上位装置である。本実施の形態において、前記印刷装置12は、ある給紙トレイから給紙した媒体が、後述される媒体自動判別機構23等によって、両面印刷不可媒体であることが認識されている場合には、両面印刷指定ジョブを実行するときに、媒体の裏表に印刷するデータを、連続して片面に印刷することができるようになっている。   In the figure, reference numeral 12 denotes a printing apparatus, and reference numeral 11 denotes a host apparatus connected to the printing apparatus 12 so as to be communicable. In the present embodiment, the printing apparatus 12 recognizes that a medium fed from a certain paper feed tray is a medium that cannot be printed on both sides by a medium automatic discrimination mechanism 23 described later. When a duplex printing designation job is executed, data to be printed on both sides of the medium can be continuously printed on one side.

前記上位装置11は、印刷装置12に対して印刷データ及び印刷装置制御データを含む印刷ジョブを送信する外部装置であり、例えば、パーソナルコンピュータやワークステーションであるが、印刷ジョブを作成することのできる装置であればいかなる装置であってもよい。また、印刷データとしては、例えば、Post ScriptやPCLのようなPDL(Page Description Language)形式のデータであるが、いかなるものであってもよい。さらに、印刷装置制御データとしては、例えば、PJL(Printer Job Language)形式のデータであるが、いかなるものであってもよい。また、上位装置11と印刷装置12との間の接続方法としては、例えば、セントロニクスインターフェイスやUSB(Universal Serial Bus)などであるが、いかなるものであってもよい。   The host apparatus 11 is an external apparatus that transmits a print job including print data and printing apparatus control data to the printing apparatus 12, and is a personal computer or a workstation, for example, and can create a print job. Any device can be used. The print data is, for example, data in PDL (Page Description Language) format such as Post Script or PCL, but may be any data. Furthermore, the printing apparatus control data is, for example, data in PJL (Printer Job Language) format, but may be any data. The connection method between the host device 11 and the printing device 12 is, for example, a Centronics interface or USB (Universal Serial Bus), but may be any method.

そして、前記印刷装置12は、受信処理部13、ジョブ制御部14、印刷処理部15、及び、プリンタユニット制御部16を有する。ここで、前記受信処理部13は、印刷装置12の内部処理部であり、前記上位装置11から印刷ジョブを受信する処理を行う。主な役割は、データ受信の検出、ジョブ種類(PDL種類)の判別、ジョブ境界の判別等である。   The printing apparatus 12 includes a reception processing unit 13, a job control unit 14, a print processing unit 15, and a printer unit control unit 16. Here, the reception processing unit 13 is an internal processing unit of the printing apparatus 12 and performs a process of receiving a print job from the host apparatus 11. The main roles are detection of data reception, determination of job type (PDL type), determination of job boundary, and the like.

また、前記ジョブ制御部14は、印刷装置12の内部処理部であり、印刷ジョブの処理の流れを制御し、媒体に印刷するページを生成する。また、ジョブ制御部14は、印刷ジョブの翻訳も行う。そして、印刷ジョブの翻訳においては、印刷データを処理し、印刷可能なビデオデータ(画像データ)に変換する。   The job control unit 14 is an internal processing unit of the printing apparatus 12 and controls the flow of processing of a print job to generate a page to be printed on a medium. The job control unit 14 also translates the print job. In the translation of the print job, the print data is processed and converted into printable video data (image data).

さらに、前記印刷処理部15は、印刷装置12の内部処理部であり、制御手段として機能し、ジョブ制御部14によって生成されたページを受け付け、それぞれのページに関してプリンタユニット制御部16との間でコマンドの送受信を行うことによって、媒体へのビデオデータの印刷をプリンタユニット制御部16に対して指示する。本実施の形態において、印刷処理部15における印刷方式は、例えば、インクジェット方式、熱転写方式、電子写真方式等であるが、いかなるものであってもよい。   Further, the print processing unit 15 is an internal processing unit of the printing apparatus 12, functions as a control unit, receives pages generated by the job control unit 14, and communicates with the printer unit control unit 16 for each page. By sending and receiving commands, the printer unit control unit 16 is instructed to print video data on a medium. In the present embodiment, the printing method in the print processing unit 15 is, for example, an inkjet method, a thermal transfer method, an electrophotographic method, or the like, but may be any method.

さらに、前記プリンタユニット制御部16は、印刷装置12の内部処理部であり、制御手段として機能し、印刷制御部15との間で印刷に必要なコマンドの送受信を行うことによって印刷を実現する。そして、プリンタユニット制御部16は、前記印刷制御部15の指定に基づいて後述される給紙トレイから媒体を給紙し、指定に基づいて後述される両面印刷ユニット25又は排出口26に媒体を排出する。なお、前記プリンタユニット制御部16は、媒体判別機構を制御する。   Further, the printer unit control unit 16 is an internal processing unit of the printing apparatus 12 and functions as a control unit, and realizes printing by transmitting / receiving commands necessary for printing to / from the print control unit 15. Then, the printer unit control unit 16 feeds a medium from a paper feed tray, which will be described later, based on the designation of the print control unit 15, and the medium is fed to the double-sided printing unit 25 or the discharge port 26, which will be described later, based on the designation. Discharge. The printer unit controller 16 controls the medium discrimination mechanism.

図2は本発明の第1の実施の形態における印刷装置の構成を示す概略側断面図である。   FIG. 2 is a schematic sectional side view showing the configuration of the printing apparatus according to the first embodiment of the present invention.

図において、22は、媒体を収容する収容手段である給紙トレイとしての第1のトレイであり、印刷装置12のユーザは媒体を前記第1のトレイ22にセットする。そして、第1のトレイ22には媒体有無を検出する媒体有無センサ、又は、第1のトレイ22のカセットの抜差しを検出するセンサが装着されている。なお、本実施の形態において、給紙トレイの数は1個でもよいし、複数個であってもよい。   In the figure, reference numeral 22 denotes a first tray as a paper feed tray which is a storage means for storing a medium, and the user of the printing apparatus 12 sets the medium on the first tray 22. The first tray 22 is equipped with a medium presence / absence sensor for detecting the presence / absence of a medium or a sensor for detecting insertion / removal of a cassette in the first tray 22. In the present embodiment, the number of paper feed trays may be one or plural.

また、23は媒体判別手段としての媒体自動判別機構であり、両面印刷を実現することが可能であるか否かを判別するための媒体種別や媒体厚さなどを自動判別するセンサから成る。該センサは、例えば、媒体種別がOHP(Over Head Projector)投影などで使用される透過性媒体であるか、通常の普通紙であるかを判別するセンサや媒体厚さが何〔μm〕であるかを測定するセンサであるが、いかなるものであってもよい。   Reference numeral 23 denotes a medium automatic determination mechanism as medium determination means, which includes a sensor for automatically determining a medium type, a medium thickness, and the like for determining whether or not double-sided printing can be realized. The sensor is, for example, a sensor for determining whether the medium type is a transmissive medium used in OHP (Over Head Projector) projection or the like, or ordinary plain paper, and what is the medium thickness ([mu] m). Although it is a sensor which measures these, what kind of thing may be sufficient.

なお、媒体の寸法を検知する場合、媒体の走行経路に設けた接触センサによって、媒体走行時の媒体のセンサ検知時間とあらかじめ設定された媒体走行速度とに基づいて、媒体の走行方向の長さを検知する。また、接触センサを媒体走行方向に対して垂直で媒体面に平行に複数並べることによって、媒体が接触したセンサの位置情報に基づいて媒体の横幅を検知する。さらに、媒体種別を判別する場合、光学センサと接触センサとを使用し、接触センサが媒体を検知し、光学センサが検知しないときには、OHP投影などで使用する透過性媒体であると判別する。さらに、媒体厚さを判別する場合、媒体の走行経路に媒体面と垂直方向の距離センサを配設して媒体の厚さを計測し、媒体厚さを判別する。   When detecting the dimensions of the medium, the length of the medium in the traveling direction is determined based on the sensor detection time of the medium during the medium traveling and the preset medium traveling speed by the contact sensor provided in the medium traveling path. Is detected. In addition, by arranging a plurality of contact sensors in parallel to the medium surface perpendicular to the medium traveling direction, the lateral width of the medium is detected based on the position information of the sensor in contact with the medium. Further, when the medium type is determined, an optical sensor and a contact sensor are used. When the contact sensor detects the medium, and when the optical sensor does not detect, it is determined that the medium is a transmissive medium used for OHP projection or the like. Further, when determining the thickness of the medium, a distance sensor in the direction perpendicular to the medium surface is disposed in the traveling path of the medium, the thickness of the medium is measured, and the thickness of the medium is determined.

また、24は第1の用紙走行経路であり、第1のトレイ22から給紙された媒体は、媒体自動判別機構23を経由し、前記第1の用紙走行経路24に送り込まれる。なお、前記第1の用紙走行経路24上においてビデオデータの媒体上への印刷が行われる。さらに、25は媒体反転手段としての両面印刷ユニットであり、両面印刷が行われる媒体は前記両面印刷ユニット25内で表裏が反転される。なお、媒体は第1のトレイ22、又は、両面印刷ユニット25から給紙される。そして、両面印刷が行われる場合、媒体は、前記第1の用紙走行経路24を通過した後に、両面印刷ユニット25に送り込まれ、該両面印刷ユニット25内で反転され、再び前記第1の用紙走行経路24に送り込まれる。また、両面印刷が行われない場合、又は、両面に印刷された両面印刷済みの媒体は、前記第1の用紙走行経路24を通過した後に、排出口26から排出される。   Reference numeral 24 denotes a first paper travel path, and the medium fed from the first tray 22 is sent to the first paper travel path 24 via the automatic medium discrimination mechanism 23. Note that video data is printed on the medium on the first paper travel path 24. Further, reference numeral 25 denotes a double-sided printing unit serving as a medium reversing unit. The medium is fed from the first tray 22 or the duplex printing unit 25. When double-sided printing is performed, the medium passes through the first paper travel path 24 and is then sent to the double-sided printing unit 25 where it is reversed in the double-sided printing unit 25 and again the first paper traveling. It is sent to the path 24. When double-sided printing is not performed or the double-sided printed medium printed on both sides passes through the first paper travel path 24, the medium is discharged from the discharge port 26.

そして、27は媒体の印刷順序決定限界地点である。前記プリンタユニット制御部16は印刷制御部15に対してページをどのような順序で印刷するかを通知する必要があり、印刷制御部15は、通知されたページに基づいて、該ページのビデオデータを設定するようになっている。そして、該ビデオデータの設定を媒体の走行経路における所定の地点までに実行しないと、印刷を停止せずに前記第1の用紙走行経路24上を走行する媒体に対して適切にビデオデータを印刷することができない。前記所定の地点が前記印刷順序決定限界地点27である。   Reference numeral 27 denotes a medium printing order determination limit point. The printer unit control unit 16 needs to notify the print control unit 15 in what order the pages are to be printed, and the print control unit 15 determines the video data of the page based on the notified page. Is set. If the video data is not set up to a predetermined point in the medium travel route, the video data is appropriately printed on the medium traveling on the first paper travel route 24 without stopping printing. Can not do it. The predetermined point is the printing order determination limit point 27.

そして、片面印刷の場合は、その媒体に印刷される片面印刷のページの順が無条件で印刷順として決定される。また、両面印刷が可能である場合、第1のトレイ22から媒体が給紙されたときには該媒体に印刷される裏面ページが、また、両面印刷ユニット25から給紙されたときには該媒体に印刷される表面ページが印刷順序として決定される。ただし、第1のトレイ22にセットされている媒体が両面印刷不可媒体であることが判別されている場合には、第1のトレイ22から給紙されたときでも、表面ページが印刷順序として決定される。   In the case of single-sided printing, the order of single-sided printing pages printed on the medium is unconditionally determined as the printing order. When duplex printing is possible, the back page printed on the medium when the medium is fed from the first tray 22 is printed on the medium when the medium is fed from the first tray 22. The front page to be printed is determined as the printing order. However, if it is determined that the medium set in the first tray 22 is a medium that cannot be printed on both sides, the front page is determined as the print order even when the medium is fed from the first tray 22. Is done.

また、印刷装置12の構成上、図2に示されるように、媒体の走行経路上で、媒体自動判別機構23より前に印刷順序決定限界地点27が存在する場合には、印刷順序が決定された後で、両面印刷不可媒体であると判別される。その場合には、両面印刷を行うことができないので、片面印刷に切り替えられ、媒体には裏面ページから先に印刷されることになる。   Further, as shown in FIG. 2, when the printing order determination limit point 27 exists before the automatic medium determination mechanism 23 on the medium traveling path, the printing order is determined due to the configuration of the printing apparatus 12. After that, it is determined that the medium cannot be printed on both sides. In this case, since double-sided printing cannot be performed, switching to single-sided printing is performed, and the medium is printed first from the back page.

なお、28は給紙トレイとしての手差しトレイであり、第1のトレイ22のようなカセットを備えておらず、媒体の補給の際には媒体を置くだけで補給することができる。   Reference numeral 28 denotes a manual feed tray as a paper feed tray, which does not include a cassette like the first tray 22 and can be replenished by simply placing the medium when the medium is replenished.

次に、前記構成の印刷装置12の動作について説明する。   Next, the operation of the printing apparatus 12 having the above configuration will be described.

図3は本発明の第1の実施の形態における通常の両面印刷のときの印刷順序を示す図、図4は本発明の第1の実施の形態における両面印刷不可のときの片面印刷順序を示す第1の図、図5は本発明の第1の実施の形態における両面印刷不可のときの片面印刷順序を示す第2の図である。   FIG. 3 is a diagram showing a printing order in normal double-sided printing in the first embodiment of the present invention, and FIG. 4 shows a single-sided printing order in double-sided printing impossible in the first embodiment of the present invention. FIGS. 1 and 5 are second diagrams showing the single-sided printing order when double-sided printing is not possible in the first embodiment of the present invention.

本実施の形態において、通常の両面印刷を行う場合、図3に示されるように、1枚目の裏面ページ、2枚目の裏面ページ、1枚目の表面ページ、3枚目の裏面ページ、2枚目の表面ページ・・・の順で媒体に印刷するようになっている。なお、両面印刷ユニット25に保持することができる媒体は2枚であるとする。   In the present embodiment, when performing normal double-sided printing, as shown in FIG. 3, the first back page, the second back page, the first front page, the third back page, It prints on the medium in the order of the second front page. It is assumed that the number of media that can be held in the duplex printing unit 25 is two.

また、給紙トレイにセットされている媒体が両面印刷不可媒体であることが印刷前に判別されている場合、図4に示されるように、1枚目の表面ページ、1枚目の裏面ページ、2枚目の表面ページ、2枚目の裏面ページ、3枚目の表面ページ・・・の順で媒体に片面印刷するようになっている。   If it is determined before printing that the medium set in the paper feed tray is a medium that cannot be printed on both sides, as shown in FIG. 4, the first front page and the first back page One-side printing is performed on the medium in the order of the second front page, the second back page, the third front page, and so on.

さらに、n−1枚目までの媒体に両面印刷が行われた後、給紙トレイの入れ替え等によって媒体の種別が不明となり、n枚目の媒体の印刷開始後に両面印刷不可媒体であることが判別された場合、図5に示されるように、n枚目の裏面ページ、n枚目の表面ページ、n+1枚目の表面ページ、n+1枚目の裏面ページ、n+2枚目の表面ページ、n+2枚目の裏面ページ・・・の順で媒体に片面印刷するようになっている。   Furthermore, after double-sided printing is performed on the media up to the (n-1) th sheet, the medium type becomes unknown due to replacement of the paper feed tray or the like, and the medium cannot be double-sided printed after the printing of the nth medium is started. If determined, as shown in FIG. 5, the nth back page, the nth front page, the (n + 1) th front page, the (n + 1) back page, the (n + 2) front page, and the (n + 2) page One-sided printing is performed on the medium in the order of the back page of the eyes.

次に、前記受信処理部13の動作について説明する。   Next, the operation of the reception processing unit 13 will be described.

図6は本発明の第1の実施の形態における受信処理部の動作を示すフローチャートである。   FIG. 6 is a flowchart showing the operation of the reception processing unit in the first embodiment of the present invention.

まず、受信処理部13は上位装置11から印刷ジョブを受信すると、ジョブ制御部14に対して翻訳を指示する。そして、このような動作をすべての印刷ジョブの処理が終了するまで繰り返す。   First, when the reception processing unit 13 receives a print job from the upper level apparatus 11, the reception processing unit 13 instructs the job control unit 14 to translate. Such an operation is repeated until all print jobs have been processed.

次に、フローチャートについて説明する。
ステップS1 ジョブ制御部14に翻訳を指示する。
ステップS2 すべての印刷ジョブの処理が終了したか否かを判断する。すべての印刷ジョブの処理が終了した場合は処理を終了し、すべての印刷ジョブの処理が終了していない場合はステップS1に戻る。
Next, a flowchart will be described.
Step S1: The job control unit 14 is instructed to translate.
Step S2: Determine whether all print jobs have been processed. If all print jobs have been processed, the process ends. If all print jobs have not been processed, the process returns to step S1.

次に、前記ジョブ制御部14の動作について説明する。   Next, the operation of the job control unit 14 will be described.

図7は本発明の第1の実施の形態におけるジョブ制御部の動作を示すフローチャートである。   FIG. 7 is a flowchart showing the operation of the job control unit in the first embodiment of the present invention.

まず、ジョブ制御部14は、イベント待ちをしている。そして、印刷ジョブを受け付けると、ジョブ受信開始処理を行い、該ジョブ受信開始処理によって印刷ジョブの翻訳が完了すると、ジョブ翻訳完了処理を行う。続いて、ジョブ翻訳完了処理によってページの生成が完了すると、ページ生成完了処理を行い、印刷処理部15に対してビデオデータを有するページを引き渡す。   First, the job control unit 14 is waiting for an event. When a print job is received, a job reception start process is performed. When the print job translation is completed by the job reception start process, a job translation completion process is performed. Subsequently, when the page generation is completed by the job translation completion process, the page generation completion process is performed, and the page having the video data is delivered to the print processing unit 15.

続いて、前記印刷制御部15においてページの印刷が完了し、印刷制御部15からページ印刷完了を受け付けると、ページ印刷完了処理を行ってページのビデオデータなどをメモリ上から消去する。   Subsequently, when the printing of the page is completed in the printing control unit 15 and the completion of page printing is received from the printing control unit 15, a page printing completion process is performed to erase the video data of the page from the memory.

次に、フローチャートについて説明する。
ステップS11 イベントを待つ。
ステップS12 印刷ジョブを受信したか否かを判断する。印刷ジョブを受信した場合はステップS13に進み、受信していない場合はステップS14に進む。
ステップS13 ジョブ受信開始処理を行う。
ステップS14 印刷ジョブの翻訳が完了したか否かを判断する。印刷ジョブの翻訳が完了した場合はステップS15に進み、完了していない場合はステップS16に進む。
ステップS15 ジョブ翻訳完了処理を行う。
ステップS16 ページの生成が完了したか否かを判断する。ページの生成が完了した場合はステップS17に進み、完了していない場合はステップS18に進む。
ステップS17 ページ生成完了処理を行う。
ステップS18 ページの印刷が完了したか否かを判断する。ページの印刷が完了した場合はステップS19に進み、完了していない場合はステップS11に戻る。
ステップS19 ページ印刷完了処理を行う。
Next, a flowchart will be described.
Step S11 Wait for an event.
Step S12: It is determined whether a print job has been received. If a print job is received, the process proceeds to step S13, and if not received, the process proceeds to step S14.
Step S13: Job reception start processing is performed.
Step S14: It is determined whether or not the translation of the print job is completed. If the translation of the print job is completed, the process proceeds to step S15, and if not completed, the process proceeds to step S16.
Step S15: Job translation completion processing is performed.
Step S16: It is determined whether the page generation is completed. If the generation of the page is completed, the process proceeds to step S17, and if not completed, the process proceeds to step S18.
Step S17 A page generation completion process is performed.
Step S18: It is determined whether the printing of the page is completed. If the printing of the page is completed, the process proceeds to step S19, and if not completed, the process returns to step S11.
Step S19 A page printing completion process is performed.

次に、前記印刷制御部15の動作について説明する。   Next, the operation of the print control unit 15 will be described.

図8は本発明の第1の実施の形態における印刷制御部の動作を示すフローチャートである。   FIG. 8 is a flowchart showing the operation of the print control unit in the first embodiment of the present invention.

まず、印刷制御部15は、イベント待ちをしている。そして、ページを受け付けると、給紙トレイからの給紙開始処理を行い、給紙トレイからの給紙開始処理によって、プリンタユニット制御部16がページの印刷順序を決定する。そして、該プリンタユニット制御部16からの印刷順序決定通知を受け付けると、印刷順序が決定したページのビデオデータ設定処理を行う。   First, the print control unit 15 is waiting for an event. When a page is received, a paper feed start process from the paper feed tray is performed, and the printer unit control unit 16 determines the page printing order by the paper feed start process from the paper feed tray. When a print order determination notification is received from the printer unit control unit 16, video data setting processing is performed for the page for which the print order is determined.

続いて、給紙トレイから給紙された媒体上にビデオデータが印刷されると、両面印刷の場合、媒体は両面印刷ユニット25に挿入される。そして、プリンタユニット制御部16から両面印刷ユニット25への媒体搬入通知を受け付けると、媒体搬入処理を行う。   Subsequently, when the video data is printed on the medium fed from the paper feed tray, the medium is inserted into the duplex printing unit 25 in the case of duplex printing. When a medium carry-in notification from the printer unit control unit 16 to the duplex printing unit 25 is received, a medium carry-in process is performed.

次に、両面印刷ユニット25に媒体が搬入され、両面印刷ユニット25からの印刷準備が整うと、再びプリンタユニット制御部16は、印刷順序決定を印刷制御部15に通知する。該印刷制御部15はプリンタユニット制御部16からの印刷順序決定通知を受け付けると、ビデオデータ設定処理を行う。そして、媒体へのページの印刷が終了すると、プリンタユニット制御部16は、媒体排出完了を印刷制御部15に通知する。   Next, when the medium is carried into the duplex printing unit 25 and printing preparation from the duplex printing unit 25 is completed, the printer unit control unit 16 notifies the printing control unit 15 of the printing order determination again. When the print control unit 15 receives a print order determination notification from the printer unit control unit 16, the print control unit 15 performs video data setting processing. When the printing of the page on the medium is completed, the printer unit control unit 16 notifies the print control unit 15 of the completion of the medium discharge.

続いて、印刷制御部15はプリンタユニット制御部16からの媒体排出通知を受け付けると、媒体排出処理を行い、媒体自動認識の結果、プリンタユニット制御部16が第1のトレイ22に給紙されている媒体では、両面印刷を継続することができないと判別した場合には、印刷制御部15にその旨を通知する。該印刷制御部15は、両面印刷不可媒体を検出した通知を受け付けると、両面印刷不可媒体通知受付処理を行う。   Subsequently, when the print control unit 15 receives a medium discharge notification from the printer unit control unit 16, the print control unit 15 performs a medium discharge process. As a result of automatic medium recognition, the printer unit control unit 16 is fed to the first tray 22. If it is determined that the double-sided printing cannot be continued with the existing medium, the print control unit 15 is notified accordingly. When the printing control unit 15 receives a notification that a double-sided printing impossible medium is detected, the printing control unit 15 performs a double-sided printing impossible medium notification receiving process.

次に、フローチャートについて説明する。
ステップS21 イベントを待つ。
ステップS22 ページを受け付けたか否かを判断する。ページを受け付けた場合はステップS23に進み、受け付けていない場合はステップS24に進む。
ステップS23 給紙トレイからの給紙開始処理を行う。
ステップS24 印刷順序決定通知を受け付けたか否かを判断する。印刷順序決定通知を受け付けた場合はステップS25に進み、受け付けていない場合はステップS26に進む。
ステップS25 ビデオデータ設定処理を行う。
ステップS26 両面印刷ユニット25への媒体搬入通知を受け付けたか否かを判断する。媒体搬入通知を受け付けた場合はステップS27に進み、受け付けていない場合はステップS28に進む。
ステップS27 媒体搬入処理を行う。
ステップS28 媒体排出通知を受け付けたか否かを判断する。媒体排出通知を受け付けた場合はステップS29に進み、受け付けていない場合はステップS30に進む。
ステップS29 媒体排出処理を行う。
ステップS30 両面印刷不可媒体検出通知を受け付けたか否かを判断する。両面印刷不可媒体検出通知を受け付けた場合はステップS31に進み、受け付けていない場合はステップS21に戻る。
ステップS31 両面印刷不可媒体通知受付処理を行う。
Next, a flowchart will be described.
Step S21 Wait for an event.
Step S22: It is determined whether a page has been accepted. If a page is accepted, the process proceeds to step S23, and if not accepted, the process proceeds to step S24.
Step S23: Starts paper feed from the paper feed tray.
Step S24: to judge whether a print order determination notification has been accepted. If a print order determination notification is accepted, the process proceeds to step S25, and if not received, the process proceeds to step S26.
Step S25 Video data setting processing is performed.
Step S26: It is determined whether a medium delivery notification to the duplex printing unit 25 has been accepted. If a medium carry-in notification is accepted, the process proceeds to step S27. If not received, the process proceeds to step S28.
Step S27: A medium carrying-in process is performed.
Step S28: It is determined whether a medium discharge notification is accepted. If the medium discharge notification is accepted, the process proceeds to step S29, and if not received, the process proceeds to step S30.
Step S29: A medium discharge process is performed.
Step S30: It is determined whether a double-sided printing impossible medium detection notification has been received. If a double-sided printing disabled medium detection notification is accepted, the process proceeds to step S31. If not received, the process returns to step S21.
Step S31 A double-sided printing disabled medium notification acceptance process is performed.

次に、図8のステップS23における給紙トレイからの給紙開始処理のサブルーチンについて説明する。   Next, a subroutine for paper feed start processing from the paper feed tray in step S23 of FIG. 8 will be described.

図9は本発明の第1の実施の形態における給紙トレイからの給紙開始処理のサブルーチンを示す第1のフローチャート、図10は本発明の第1の実施の形態における給紙トレイからの給紙開始処理のサブルーチンを示す第2のフローチャートである。   FIG. 9 is a first flowchart showing a subroutine for paper feed start processing from the paper feed tray according to the first embodiment of the present invention, and FIG. 10 is a diagram showing a paper feed from the paper feed tray according to the first embodiment of the present invention. 10 is a second flowchart showing a subroutine for paper start processing.

本実施の形態においては、印刷制御部15はページの様々な状態をキューによって管理する。   In the present embodiment, the print control unit 15 manages various states of pages using queues.

まず、印刷制御部15は、ページを受け付けると、給紙開始待ちページキュー(行列)にページを入れる。次に、媒体の給紙が可能な状態であるか否かを判断し、印刷装置12の内部に許容範囲の限界で媒体が挿入されている場合には、媒体の給紙を開始することはできないので、排出待ちをする。   First, when the print control unit 15 receives a page, the print control unit 15 puts the page in a paper supply start waiting page queue (queue). Next, it is determined whether or not the medium can be fed. If the medium is inserted in the printing apparatus 12 within the limit of the allowable range, the feeding of the medium may be started. Since it is not possible, wait for discharge.

また、給紙が可能な状態である場合は、前記ページが両面印刷指定があるページであるか否かを判断し、両面印刷指定があるページである場合は、表面ページ及び裏面ページの両面がそろうまで待つ。そして、表面ページ及び裏面ページの両面がそろった場合は、印刷待ちページキューから前記表面ページ及び裏面ページを取り出し、ページから給紙トレイの情報を取り出し、プリンタユニット制御部16に対して給紙トレイを指定する。   Further, when the sheet can be fed, it is determined whether or not the page is a page for which duplex printing is designated. If the page is a page for which duplex printing is designated, both sides of the front page and the back page are determined. Wait until they are ready. When both the front page and the back page are aligned, the front page and the back page are taken out from the print queue page queue, the information on the paper feed tray is taken out from the page, and the paper feed tray is sent to the printer unit controller 16. Is specified.

次に、印刷制御部15は、プリンタユニット制御部16に対して前記給紙トレイから給紙する媒体に対して両面印刷を行うように通知する。その後、印刷制御部15及びプリンタユニット制御部16が、それぞれ、該当ページを唯一に特定するためのページID(ユニークなID)をページに付与し、プリンタユニット制御部16に対してその媒体に印刷すべきページのページIDとして、表面のページIDと裏面のページIDとを通知する。   Next, the print control unit 15 notifies the printer unit control unit 16 to perform duplex printing on the medium fed from the paper feed tray. Thereafter, the print control unit 15 and the printer unit control unit 16 respectively assign a page ID (unique ID) for uniquely identifying the corresponding page to the page, and print to the printer unit control unit 16 on the medium. The page ID on the front side and the page ID on the back side are notified as the page ID of the page to be processed.

前記ページIDによって、プリンタユニット制御部16は、ページの印刷順序を決定したときに、印刷制御部15に対してページIDによってどのページを次に印刷するかを通知することができるようになる。   Based on the page ID, the printer unit control unit 16 can notify the print control unit 15 which page is to be printed next by determining the page printing order.

また、前記ページが両面印刷指定があるページでない場合、印刷制御部15は、印刷待ちページキューから前記ページを取り出し、ページから給紙トレイの情報を取り出し、プリンタユニット制御部16に対して給紙トレイを指定する。その後、プリンタユニット制御部16に対して前記給紙トレイから給紙する媒体に対して片面印刷を行うように通知する。次に、印刷制御部15及びプリンタユニット制御部16が、それぞれ、該当ページを唯一に特定するためのページIDをページに付与し、プリンタユニット制御部16に対して、前記媒体に印刷すべきページのページIDとして、片面印刷ページのページIDを通知する。そして、給紙開始待ちページキューから取り出したページを印刷開始待ちキューに入れる。   If the page is not a page for which duplex printing is designated, the print control unit 15 takes out the page from the print queue page queue, takes out information on a paper feed tray from the page, and feeds paper to the printer unit control unit 16. Specify a tray. Thereafter, the printer unit controller 16 is notified to perform single-sided printing on the medium fed from the paper feed tray. Next, each of the print control unit 15 and the printer unit control unit 16 assigns a page ID for uniquely identifying the corresponding page to the page, and the page to be printed on the medium to the printer unit control unit 16. As the page ID, the page ID of the single-sided printing page is notified. Then, the page taken out from the paper supply start waiting page queue is placed in the print start waiting queue.

次に、フローチャートについて説明する。
ステップS23−1 給紙開始待ちページキューにページを入れる。
ステップS23−2 媒体の給紙が可能な状態であるか否かを判断する。媒体の給紙が可能な状態である場合はステップS23−4に進み、媒体の給紙が不可能な状態である場合はステップS23−3に進む。
ステップS23−3 媒体の排出待ちをする。
ステップS23−4 ページが両面印刷指定のページであるか否かを判断する。両面印刷指定のページである場合はステップS23−5に進み、両面印刷指定のページでない場合はステップS23−11に進む。
ステップS23−5 1枚目の両面印刷の表面ページと裏面ページとがそろったか否かを判断する。表面ページと裏面ページとがそろった場合はステップS23−6に進み、表面ページと裏面ページとがそろっていない場合はステップS23−16に進む。
ステップS23−6 印刷待ちページキューから2ページ(1枚目の表面ページ及び裏面ページ)を取り出す。
ステップS23−7 ページから給紙トレイの情報を取り出す。
ステップS23−8 プリンタユニット制御部16に対して給紙トレイを指定する。
ステップS23−9 プリンタユニット制御部16に対して両面印刷であることを通知する。
ステップS23−10 表面ページ及び裏面ページにユニークなIDを付与し、プリンタユニット制御部16に対してそのページIDを通知する。
ステップS23−11 印刷待ちページキューからページ(1枚目の片面印刷のページ)を取り出す。
ステップS23−12 ページから給紙トレイの情報を取り出す。
ステップS23−13 プリンタユニット制御部16に対して給紙トレイを指定する。
ステップS23−14 プリンタユニット制御部16に対して片面印刷であることを通知する。
ステップS23−15 片面印刷ページにユニークなIDを付与し、プリンタユニット制御部16に対してそのページIDを通知する。
ステップS23−16 取り出したページを印刷開始待ちキューに入れ、処理を終了する。
Next, a flowchart will be described.
Step S23-1: The page is put into the paper supply start waiting page queue.
Step S23-2: It is determined whether or not the medium can be fed. If the medium can be fed, the process proceeds to step S23-3, and if the medium cannot be fed, the process proceeds to step S23-3.
Step S23-3 Wait for the medium to be discharged.
Step S23-4: It is determined whether or not the page is a page designated for duplex printing. If the page is designated for duplex printing, the process proceeds to step S23-5. If the page is not designated for duplex printing, the process proceeds to step S23-11.
Step S23-5: It is determined whether the front page and the back page of the first double-sided printing are ready. If the front page and the back page are aligned, the process proceeds to step S23-6. If the front page and the back page are not aligned, the process proceeds to step S23-16.
Step S23-6: Take out two pages (first front page and back page) from the print queue page queue.
Step S23-7: Take out the information of the paper feed tray from the page.
Step S23-8: Specify the paper feed tray for the printer unit controller 16.
Step S23-9: The printer unit controller 16 is notified that double-sided printing is being performed.
Step S23-10: A unique ID is assigned to the front page and the back page, and the page ID is notified to the printer unit controller 16.
Step S23-11: Takes out the page (first single-sided printing page) from the print queue page queue.
Step S23-12: Take out the information of the paper feed tray from the page.
Step S23-13: Specify the paper feed tray for the printer unit controller 16.
Step S23-14: Notify the printer unit controller 16 that single-sided printing is being performed.
Step S23-15: Assign a unique ID to the single-sided printing page, and notify the printer unit controller 16 of the page ID.
Step S23-16: The taken out page is put in the print start waiting queue, and the process is terminated.

次に、図8のステップS25におけるビデオデータ設定処理のサブルーチンについて説明する。   Next, the video data setting process subroutine in step S25 of FIG. 8 will be described.

図11は本発明の第1の実施の形態におけるビデオデータ設定処理のサブルーチンを示すフローチャートである。   FIG. 11 is a flowchart showing a subroutine of video data setting processing in the first embodiment of the present invention.

まず、印刷制御部15は、印刷順序決定通知としてプリンタユニット制御部16から受け付けた次に印刷するページのページIDに基づいて、次に印刷すべきページを特定する。前述されたように、前記印刷制御部15は、それぞれのページに対して唯一のページIDを付与しているので、次に印刷すべきページの特定を容易に行うことができる。   First, the print control unit 15 specifies the next page to be printed based on the page ID of the next page to be printed received from the printer unit control unit 16 as a print order determination notification. As described above, since the print control unit 15 assigns a unique page ID to each page, the page to be printed next can be easily specified.

次に、印刷制御部15は、印刷開始待ちキューから印刷順序が決定したページを取り出し、該印刷順序が決定したページからビデオデータを取り出し、ビデオデータの印刷設定を行う。前記印刷順序が決定したビデオデータの印刷設定によって、印刷制御部15からプリンタユニット制御部16に対して、このページのビデオデータが送信されることになる。   Next, the print control unit 15 takes out a page for which the print order has been determined from the print start waiting queue, takes out video data from the page for which the print order has been determined, and performs print settings for the video data. The video data of this page is transmitted from the print control unit 15 to the printer unit control unit 16 according to the print setting of the video data determined by the print order.

続いて、印刷制御部15は、印刷を開始するようにプリンタユニット制御部16に対して通知する。そして、前記印刷順序が決定したページが両面印刷の裏面ページであるか否かを判断し、ページが両面印刷の裏面ページである場合は、ページを両面印刷ユニット25の搬入待ちキューに入れ、裏面ページでない場合は、ページを排出待ちキューに入れる。   Subsequently, the print control unit 15 notifies the printer unit control unit 16 to start printing. Then, it is determined whether or not the page for which the printing order is determined is a back page for double-sided printing. If the page is a back page for double-sided printing, the page is placed in the carry-in waiting queue of the double-sided printing unit 25, and If it is not a page, the page is put in a discharge queue.

次に、フローチャートについて説明する。
ステップS25−1 プリンタユニット制御部16から通知されたページIDからページを特定する。
ステップS25−2 印刷順序が決定したページを印刷開始待ちキューから取り出す。
ステップS25−3 前記印刷順序が決定したページからビデオデータを取り出し、ビデオデータの印刷設定を開始する。
ステップS25−4 印刷を開始するようにプリンタユニット制御部16に対して通知する。
ステップS25−5 前記印刷順序が決定したページが両面印刷の裏面ページであるか否かを判断する。両面印刷の裏面ページである場合はステップS25−6に進み、裏面ページでない場合はステップS25−7に進む。
ステップS25−6 ページを両面印刷ユニット25の搬入待ちキューに入れ、処理を終了する。
ステップS25−7 ページを排出待ちキューに入れ、処理を終了する。
Next, a flowchart will be described.
Step S25-1: The page is identified from the page ID notified from the printer unit control unit 16.
Step S25-2: The page whose printing order is determined is taken out from the print start waiting queue.
Step S25-3: Take out the video data from the page whose printing order has been determined, and start the print setting of the video data.
Step S25-4: The printer unit control unit 16 is notified to start printing.
Step S25-5: It is determined whether or not the page for which the printing order is determined is a reverse page for duplex printing. If it is a back page for duplex printing, the process proceeds to step S25-6, and if it is not a back page, the process proceeds to step S25-7.
Step S25-6: The page is placed in the carry-in waiting queue of the duplex printing unit 25, and the process is terminated.
Step S25-7: The page is put in the discharge waiting queue, and the process is terminated.

次に、図8のステップS27における媒体搬入処理のサブルーチンについて説明する。   Next, the medium carrying-in process subroutine in step S27 of FIG. 8 will be described.

図12は本発明の第1の実施の形態における媒体搬入処理のサブルーチンを示すフローチャートである。   FIG. 12 is a flowchart showing a medium carry-in processing subroutine according to the first embodiment of the present invention.

まず、両面印刷ユニット25に媒体が搬入された場合、プリンタユニット制御部16は、媒体が搬入された旨を該媒体に印刷されたページのページIDとともに印刷制御部15に通知する。   First, when a medium is carried into the duplex printing unit 25, the printer unit control unit 16 notifies the print control unit 15 that the medium is carried together with the page ID of the page printed on the medium.

続いて、該印刷制御部15は、プリンタユニット制御部16から通知されたページIDに基づいてページを特定し、両面印刷ユニット25の搬入待ちキューから前記ページを取り出し、ページを排出待ちキューに入れる。   Subsequently, the print control unit 15 specifies a page based on the page ID notified from the printer unit control unit 16, takes out the page from the carry-in queue of the duplex printing unit 25, and puts the page into the discharge queue. .

次に、フローチャートについて説明する。
ステップS27−1 プリンタユニット制御部16から通知されたページIDからページを特定する。
ステップS27ー2 プリンタユニット制御部16に搬入したページを両面印刷ユニット25から取り出す。
ステップS27−3 前記ページを排出待ちキューに入れ、処理を終了する。
Next, a flowchart will be described.
Step S27-1: The page is specified from the page ID notified from the printer unit control unit 16.
Step S27-2: The page carried into the printer unit controller 16 is taken out from the duplex printing unit 25.
Step S27-3: The page is put in the discharge waiting queue, and the process is terminated.

次に、図8のステップS29における媒体排出処理のサブルーチンについて説明する。   Next, the medium discharge subroutine in step S29 of FIG. 8 will be described.

図13は本発明の第1の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。   FIG. 13 is a flowchart showing a subroutine of medium discharge processing in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、媒体を排出口26から排出すると、その媒体に印刷されたページのページIDとともに媒体の排出完了を印刷制御部15に通知する。該印刷制御部15は、媒体の排出通知を受け付けると、プリンタユニット制御部16から通知されたページIDに基づいて排出されたページを特定する。   First, when the medium is discharged from the discharge port 26, the printer unit controller 16 notifies the print controller 15 of the completion of discharging the medium together with the page ID of the page printed on the medium. When the print control unit 15 receives the medium discharge notification, the print control unit 15 specifies the discharged page based on the page ID notified from the printer unit control unit 16.

続いて、印刷制御部15は、排出されたページが排出待ちキューに存在するか否かを判断し、排出待ちキューに存在する場合、前記ページを排出待ちキューから取り出す。なお、両面印刷でその媒体に表面ページ及び裏面ページの両面が印刷されている場合は、表面ページ及び裏面ページに対して実施する。   Subsequently, the print control unit 15 determines whether or not the discharged page exists in the discharge waiting queue. When the page is in the discharge waiting queue, the print control unit 15 takes out the page from the discharge waiting queue. In addition, when both sides of the front page and the back page are printed on the medium by double-sided printing, it is performed on the front page and the back page.

また、排出されたページが排出待ちキューに存在しない場合は、両面印刷ユニット25の搬入待ちキューから取り出す。なお、両面印刷ユニット25の排出待ちキューにページが存在するということは、本来両面印刷されるべき両面印刷ページが、両面印刷不可媒体であり、片面のページだけ印刷されて排出されたことを意味する。   If the discharged page does not exist in the discharge waiting queue, the page is taken out from the carry-in waiting queue of the duplex printing unit 25. The presence of a page in the discharge queue of the duplex printing unit 25 means that the duplex printing page that should be duplex printed is a medium that cannot be printed on both sides, and only the single-sided page is printed and ejected. To do.

そして、印刷制御部15は、排出されたページの印刷完了をジョブ制御部14に通知する。この通知によってこのページの後始末処理が行われる。   Then, the print control unit 15 notifies the job control unit 14 of the completion of printing of the discharged page. This notification performs cleanup processing for this page.

次に、フローチャートについて説明する。
ステップS29−1 プリンタユニット制御部16から通知されたページIDからページを特定する。
ステップS29−2 排出されたページが排出待ちキューに存在するか否かを判断する。排出待ちキューに存在する場合はステップS29−3に進み、排出待ちキューに存在しない場合はステップS29−4に進む。
ステップS29−3 ページを排出待ちキューから取り出す。
ステップS29−4 ページを搬入待ちキューから取り出す。
ステップS29−5 前記ページの印刷完了をジョブ制御部14に通知し、処理を終了する。
Next, a flowchart will be described.
Step S29-1: The page is specified from the page ID notified from the printer unit control unit 16.
Step S29-2: It is determined whether or not the discharged page exists in the discharge waiting queue. When it exists in the discharge waiting queue, the process proceeds to step S29-3, and when it does not exist in the discharge waiting queue, the process proceeds to step S29-4.
Step S29-3 Take out the page from the discharge waiting queue.
Step S29-4: Remove the page from the carry-in queue.
Step S29-5: The job control unit 14 is notified of the completion of printing of the page, and the process is terminated.

次に、図8のステップS31における両面印刷不可媒体通知受付処理のサブルーチンについて説明する。   Next, the subroutine of the double-sided print disabled medium notification receiving process in step S31 of FIG. 8 will be described.

図14は本発明の第1の実施の形態における両面印刷不可媒体通知受付処理のサブルーチンを示すフローチャートである。   FIG. 14 is a flowchart showing a subroutine of the double-sided print disabled medium notification acceptance process in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、給紙した媒体に対して媒体自動判別機構23によって媒体の自動判別を行い、その媒体が両面印刷不可媒体であることを認識した場合は、その給紙トレイに挿入されている媒体は両面印刷不可である旨を通知する。   First, the printer unit control unit 16 automatically determines the medium by the medium automatic determination mechanism 23 for the fed medium, and if the medium is recognized as a medium that cannot be printed on both sides, the printer unit control unit 16 stores the medium in the sheet feeding tray. Notifies that the inserted medium cannot be printed on both sides.

そして、印刷制御部15は、両面印刷不可である旨の通知を受け付けると、両面印刷指定がTRUE(正しい)であるか否かを判断し、両面印刷指定がFALSE(正しくない)である場合は処理を終了する。また、両面印刷指定がTRUEである場合、印刷制御部15は両面印刷不可媒体通知によってその媒体に印刷するページの裏面と表面の印刷順序が入れ替わっているか否かを判断し、片面印刷になって裏面ページ、表面ページの順になったときは、両面印刷不可媒体検出と印刷順序の入れ替わりの旨をLCDパネル等に表示する。さらに、片面印刷になって表面ページ、裏面ページの順になったときは、両面印刷不可媒体検出をLCDパネル等に表示する。   Upon receiving a notification that double-sided printing is not possible, the print control unit 15 determines whether the double-sided printing designation is TRUE (correct), and if the double-sided printing designation is FALSE (incorrect). The process ends. If the double-sided printing designation is TRUE, the print control unit 15 determines whether or not the printing order of the back side and the front side of the page to be printed on the medium is switched by the double-sided printing disabled medium notification, and the single-sided printing is performed. When the order of the back page and the front page is reached, information indicating that double-sided printing is not possible and that the printing order is switched are displayed on the LCD panel or the like. Further, when single-sided printing is performed in the order of the front page and the back page, double-sided printing impossible medium detection is displayed on the LCD panel or the like.

次に、フローチャートについて説明する。
ステップS31−1 両面印刷指定がTRUEであるか否かを判断する。両面印刷指定がTRUEである場合はステップS31−2に進み、両面印刷指定がFALSEである場合は処理を終了する。
ステップS31−2 裏面と表面の印刷順序が入れ替わっているか否かを判断する。印刷順序が入れ替わっている場合はステップS31−3に進み、印刷順序が入れ替わっていない場合はステップS31−4に進む。
ステップS31−3 LCDパネル等に両面印刷を行うことができず、片面印刷になって印刷順次が入れ替わったことを表示し、処理を終了する。
ステップS31−4 LCDパネル等に両面印刷を行うことができず、片面印刷になったことを表示し、処理を終了する。
Next, a flowchart will be described.
Step S31-1: It is determined whether or not the double-sided printing designation is TRUE. If the duplex printing designation is TRUE, the process proceeds to step S31-2, and if the duplex printing designation is FALSE, the process ends.
Step S31-2: It is determined whether or not the printing order of the back surface and the front surface is switched. If the printing order is changed, the process proceeds to step S31-3. If the printing order is not changed, the process proceeds to step S31-4.
Step S31-3 Display that double-sided printing cannot be performed on the LCD panel or the like, and that the printing order has been changed due to single-sided printing, and the process ends.
Step S31-4 Display that double-sided printing cannot be performed on the LCD panel or the like, and single-sided printing has been performed, and the process ends.

次に、前記プリンタユニット制御部16の動作について説明する。   Next, the operation of the printer unit controller 16 will be described.

図15は本発明の第1の実施の形態におけるプリンタユニット制御部の動作を示すフローチャートである。   FIG. 15 is a flowchart showing the operation of the printer unit control unit in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、イベント待ちをしている。そして、給紙トレイからの給紙開始処理を受け付けると、給紙トレイからの給紙開始処理を行い、給紙トレイ又は両面印刷ユニット25からの給紙を開始し、媒体の供給が完了通知を受け付けると、媒体の印刷順序決定処理を行う。   First, the printer unit control unit 16 is waiting for an event. When the paper feed start process from the paper feed tray is received, the paper feed start process from the paper feed tray is performed, the paper feed from the paper feed tray or the duplex printing unit 25 is started, and the medium supply completion notification is sent. If accepted, a printing order determination process for the medium is performed.

続いて、プリンタユニット制御部16は、媒体の印刷順序決定処理後に、更に媒体を走行して媒体自動判別機構23が媒体を判別して、媒体自動判別結果を受け付けると、両面印刷判断処理を行う。また、印刷制御部15から印刷開始通知を受け付けると、印刷開始処理を行う。さらに、印刷を行って媒体を両面印刷ユニット25への搬入を検出すると、両面印刷ユニット25からの給紙開始処理を行う。   Subsequently, after the medium printing order determination process, the printer unit control unit 16 further travels the medium, the medium automatic determination mechanism 23 determines the medium, and performs a double-sided printing determination process when the medium automatic determination result is received. . When a print start notification is received from the print control unit 15, a print start process is performed. Furthermore, when printing is performed and the medium is detected to be carried into the duplex printing unit 25, a paper feed start process from the duplex printing unit 25 is performed.

そして、プリンタユニット制御部16は、媒体の排出を検出すると、媒体排出処理を行う。また、給紙トレイのカセットの引抜きを検出すると、カセット引抜き処理を行う。   When the printer unit control unit 16 detects the discharge of the medium, the printer unit control unit 16 performs a medium discharge process. Further, when it is detected that the cassette in the paper feed tray has been pulled out, a cassette pulling out process is performed.

次に、フローチャートについて説明する。
ステップS41 イベントを待つ。
ステップS42 給紙開始通知を受け付けたか否かを判断する。給紙開始通知を受け付けた場合はステップS43に進み、給紙開始通知を受け付けていない場合はステップS44に進む。
ステップS43 給紙トレイからの給紙開始処理を行う。
ステップS44 給紙完了通知を受け付けたか否かを判断する。給紙完了通知を受け付けた場合はステップS45に進み、給紙完了通知を受け付けていない場合はステップS46に進む。
ステップS45 印刷順序決定処理を行う。
ステップS46 媒体自動判別結果を受け付けたか否かを判断する。媒体自動判別結果を受け付けた場合はステップS47に進み、媒体自動判別結果を受け付けていない場合はステップS48に進む。
ステップS47 両面印刷判断処理を行う。
ステップS48 印刷開始通知を受け付けたか否かを判断する。印刷開始通知を受け付けた場合はステップS49に進み、印刷開始通知を受け付けていない場合はステップS50に進む。
ステップS49 印刷開始処理を行う。
ステップS50 両面印刷ユニットへ25の搬入を検出したか否かを判断する。両面印刷ユニット25への搬入を検出した場合はステップS51に進み、両面印刷ユニット25への搬入を検出していない場合はステップS52に進む。
ステップS51 両面印刷ユニット25からの給紙開始処理を行う。
ステップS52 媒体の排出を検出したか否かを判断する。媒体の排出を検出した場合はステップS53に進み、媒体の排出を検出していない場合はステップS54に進む。
ステップS53 媒体排出処理を行う。
ステップS54 カセットの引抜きを検出したか否かを判断する。カセットの引抜きを検出した場合はステップS55に進み、カセットの引抜きを検出していない場合はステップS41に戻る。
ステップS55 カセット引抜き処理を行う。
Next, a flowchart will be described.
Step S41 Wait for an event.
Step S42: to judge whether a paper feed start notification has been accepted. If a paper feed start notification is accepted, the process proceeds to step S43. If a paper feed start notice is not accepted, the process proceeds to step S44.
Step S43: A process for starting paper feed from the paper feed tray is performed.
Step S44: to judge whether a paper feed completion notice has been accepted. If a paper feed completion notification is accepted, the process proceeds to step S45. If a paper feed completion notice is not accepted, the process proceeds to step S46.
Step S45: Print order determination processing is performed.
Step S46: It is determined whether an automatic medium discrimination result has been accepted. When the automatic medium determination result is accepted, the process proceeds to step S47, and when the automatic medium determination result is not accepted, the process proceeds to step S48.
Step S47 A duplex printing determination process is performed.
Step S48: to judge whether a print start notification has been accepted. If a print start notification has been received, the process proceeds to step S49, and if a print start notification has not been received, the process proceeds to step S50.
Step S49 Print start processing is performed.
Step S50: It is determined whether or not loading of 25 into the duplex printing unit is detected. When carrying in to the duplex printing unit 25 is detected, the process proceeds to step S51, and when carrying into the duplex printing unit 25 is not detected, the process proceeds to step S52.
Step S51 A paper feed start process from the duplex printing unit 25 is performed.
Step S52: It is determined whether or not the ejection of the medium is detected. If the discharge of the medium is detected, the process proceeds to step S53, and if the discharge of the medium is not detected, the process proceeds to step S54.
Step S53 A medium discharge process is performed.
Step S54: It is determined whether or not cassette removal has been detected. If it is detected that the cassette has been pulled out, the process proceeds to step S55. If it is not detected, the process returns to step S41.
Step S55: Cassette removal processing is performed.

次に、図15のステップS43における給紙トレイからの給紙開始処理のサブルーチンについて説明する。   Next, a subroutine for paper feed start processing from the paper feed tray in step S43 in FIG. 15 will be described.

図16は本発明の第1の実施の形態における給紙トレイからの給紙開始処理のサブルーチンを示すフローチャートである。   FIG. 16 is a flowchart showing a subroutine for paper feed start processing from the paper feed tray in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、給紙トレイから給紙するか両面印刷ユニット25から給紙するかを印刷装置12内の媒体数、媒体位置から判断する。そして、両面印刷ユニット25から給紙する場合は、両面印刷ユニット25からの給紙処理を行う。また、給紙トレイから給紙する場合は、給紙トレイに挿入されている媒体が媒体自動判別済であるか否かを、給紙トレイの媒体自動判別済フラグがTRUE/FALSEであるか否かによって判断する。   First, the printer unit control unit 16 determines whether to feed paper from the paper feed tray or from the duplex printing unit 25 from the number of media and the media position in the printing apparatus 12. When paper is fed from the double-sided printing unit 25, paper feeding processing from the double-sided printing unit 25 is performed. When paper is fed from the paper feed tray, whether the medium inserted in the paper feed tray has already been automatically discriminated or not, and whether the media auto discriminating flag of the paper feed tray is TRUE / FALSE. Judgment by

続いて、プリンタユニット制御部16は、判別済でない場合、すなわち、給紙トレイの媒体自動判別済フラグがFALSEである場合、媒体自動判別機構23に対して媒体を自動判別するように通知する。そして、この給紙トレイの媒体自動判別済フラグをTRUEにする。これにより、前記給紙トレイについては、次に給紙トレイのカセットが引き抜かれるまで、又は、用紙なしが検出されるまで、媒体自動判別は行わない。   Subsequently, when the determination is not completed, that is, when the medium automatic determination flag of the paper feed tray is FALSE, the printer unit control unit 16 notifies the automatic medium determination mechanism 23 to automatically determine the medium. Then, the medium automatic discrimination flag of this paper feed tray is set to TRUE. As a result, for the paper feed tray, automatic medium discrimination is not performed until the cassette of the paper feed tray is next pulled out or until no paper is detected.

また、プリンタユニット制御部16は、判別済である場合、すなわち、給紙トレイの媒体自動判別済フラグがTRUEである場合、給紙トレイの媒体が両面印刷が可能であるか否かを判断する。そして、両面印刷が可能である場合は、この媒体については両面印刷可能フラグをTRUEにし、両面印刷が不可能である場合は、この媒体については両面印刷可能フラグをFALSEにする。   Further, when the printer unit control unit 16 has determined, that is, when the medium automatic determination flag of the paper feed tray is TRUE, the printer unit control unit 16 determines whether the medium of the paper feed tray is capable of duplex printing. . If duplex printing is possible, the duplex printing enable flag is set to TRUE for this medium, and if duplex printing is not possible, the duplex printing enable flag is set to FALSE for this medium.

続いて、プリンタユニット制御部16は、前記媒体に印刷するページが両面印刷ページであるか否かを判断し、両面印刷の表面ページ及び裏面ページである場合は、両面印刷指定フラグをTRUEにする。また、片面印刷ページである場合は、両面印刷指定フラグをFALSEにし、指定された給紙トレイから給紙を開始する。   Subsequently, the printer unit control unit 16 determines whether or not the page to be printed on the medium is a double-sided printing page. If the page is a front-side page and a back-side page for double-sided printing, the double-sided printing designation flag is set to TRUE. . If the page is a single-sided printing page, the double-sided printing designation flag is set to FALSE, and paper feeding is started from the designated paper feeding tray.

次に、フローチャートについて説明する。
ステップS43−1 印刷装置12内部の媒体数、媒体位置から、給紙トレイから給紙するか両面印刷ユニット25から給紙するかを判断する。給紙トレイから給紙する場合はステップS43−3に進み、両面印刷ユニット25から給紙する場合はステップS43−2に進む。
ステップS43−2 両面印刷ユニット25からの給紙開始処理を行う。
ステップS43−3 給紙トレイに挿入されている媒体が媒体自動判別済であるか否かを判断する。媒体自動判別済である場合はステップS43−6に進み、媒体自動判別済でない場合はステップS43−4に進む。
ステップS43−4 媒体自動判別機構23に対して媒体を自動判別するように通知する。
ステップS43−5 給紙トレイの媒体自動判別済フラグをTRUEにする。
ステップS43−6 給紙トレイの媒体が両面印刷が可能であるか否かを判断する。両面印刷が可能である場合はステップS43−7に進み、両面印刷が不可能である場合はステップS43−8に進む。
ステップS43−7 両面印刷可能フラグをTRUEにする。
ステップS43−8 両面印刷可能フラグをFALSEにする。
ステップS43−9 媒体に印刷するページが両面印刷ページであるか否かを判断する。両面印刷ページである場合はステップS43−10に進み、両面印刷ページでない場合はステップS43−11に進む。
ステップS43−10 両面印刷指定フラグをTRUEにする。
ステップS43−11 両面印刷指定フラグをFALSEにする。
ステップS43−12 指定された給紙トレイから給紙を開始し、処理を終了する。
Next, a flowchart will be described.
Step S43-1 Whether the paper is fed from the paper feed tray or the double-sided printing unit 25 is determined from the number of media in the printing apparatus 12 and the media position. When the paper is fed from the paper feed tray, the process proceeds to step S43-3, and when the paper is fed from the duplex printing unit 25, the process proceeds to step S43-2.
Step S43-2: Feeding start processing from the duplex printing unit 25 is performed.
Step S43-3: It is determined whether or not the medium inserted in the paper feed tray has already been automatically discriminated. If the medium automatic determination has been completed, the process proceeds to step S43-6. If the medium automatic determination has not been completed, the process proceeds to step S43-4.
Step S43-4: The automatic media discrimination mechanism 23 is notified to discriminate media automatically.
Step S43-5: The medium automatic discrimination flag of the paper feed tray is set to TRUE.
Step S43-6: It is determined whether the medium in the paper feed tray is capable of duplex printing. When double-sided printing is possible, it progresses to step S43-7, and when double-sided printing is impossible, it progresses to step S43-8.
Step S43-7: The duplex printing enable flag is set to TRUE.
Step S43-8: The duplex printing enable flag is set to FALSE.
Step S43-9: It is determined whether or not the page to be printed on the medium is a duplex printing page. If it is a double-sided printing page, the process proceeds to step S43-10, and if it is not a double-sided printing page, the process proceeds to step S43-11.
Step S43-10: Set the duplex printing designation flag to TRUE.
Step S43-11: The duplex printing designation flag is set to FALSE.
Step S43-12: Feeding is started from the designated paper feed tray, and the process is terminated.

次に、図15のステップS45における印刷順序決定処理のサブルーチンについて説明する。   Next, a subroutine of the printing order determination process in step S45 in FIG. 15 will be described.

図17は本発明の第1の実施の形態における印刷順序決定処理のサブルーチンを示すフローチャートである。   FIG. 17 is a flowchart showing a subroutine of the printing order determination process in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、両面印刷指定フラグがTRUEであるか否かを判断する。そして、両面印刷指定フラグがTRUEでない場合は、片面印刷であるので、その媒体に印刷される予定ページのページIDを印刷制御部15に通知し、媒体の行き先を排出口26とする。   First, the printer unit control unit 16 determines whether or not the duplex printing designation flag is TRUE. If the double-sided printing designation flag is not TRUE, it means single-sided printing, so the page ID of the scheduled page to be printed on the medium is notified to the print control unit 15 and the destination of the medium is set as the discharge port 26.

また、両面印刷指定フラグがTRUEである場合は、両面印刷であるので、プリンタユニット制御部16は、その媒体の給紙元が給紙トレイであるか両面印刷ユニット25であるか否かを判断する。そして、給紙元が両面印刷ユニット25である場合は、既に媒体の裏面は印刷済であるので、プリンタユニット制御部16は、表面ページのページIDを印刷制御部15に通知し、媒体の行き先を排出口26とする。   If the double-sided printing designation flag is TRUE, double-sided printing is performed, so the printer unit control unit 16 determines whether the medium is fed from the paper-feeding tray or the double-sided printing unit 25. To do. If the paper source is the duplex printing unit 25, the back side of the medium has already been printed, so the printer unit control unit 16 notifies the page ID of the front page to the print control unit 15 and the destination of the medium. Is the outlet 26.

また、給紙元が給紙トレイである場合、プリンタユニット制御部16は、両面印刷可能フラグがFALSEであるか否かを判断する。そして、両面印刷可能フラグがFALSEでない場合、すなわち、媒体の両面印刷が可能である場合、プリンタユニット制御部16は、媒体の裏面ページから印刷することとし、裏面ページのページIDを印刷制御部15に通知し、媒体の行き先を両面印刷ユニット25とする。   If the paper supply source is a paper supply tray, the printer unit control unit 16 determines whether the double-sided printable flag is FALSE. If the double-sided printable flag is not FALSE, that is, if double-sided printing of the medium is possible, the printer unit control unit 16 prints from the backside page of the medium, and sets the page ID of the backside page to the print control unit 15. To the double-sided printing unit 25 as the destination of the medium.

また、両面印刷可能フラグがFALSEである場合、すなわち、媒体の両面印刷が不可能である場合、プリンタユニット制御部16は、両面指定のページを片面で、それぞれ、表面ページの片面印刷、裏面ページの片面印刷の順で印刷する。   When the double-sided printing enable flag is FALSE, that is, when double-sided printing of the medium is impossible, the printer unit control unit 16 performs single-sided printing on the front page, single-sided printing on the front page, and back page, respectively. Print in the order of single-sided printing.

次に、プリンタユニット制御部16は、媒体の表面ページの片面印刷が済であるか否かを判断する。そして、表面ページの片面印刷が済でない場合、プリンタユニット制御部16は、表面ページから印刷するとして表面ページのページIDを印刷制御部15に通知し、続いて、印刷制御部15に両面印刷不可であることを通知し、媒体の行き先を排出口26とする。   Next, the printer unit control unit 16 determines whether or not single-sided printing of the front page of the medium has been completed. If the front page has not been printed on one side, the printer unit control unit 16 notifies the print control unit 15 of the page ID of the front page to print from the front page, and then the double-sided printing is not possible. And the destination of the medium is the discharge port 26.

また、表面ページの片面印刷が済である場合、プリンタユニット制御部16は、裏面ページから印刷するとして裏面ページのページIDを印刷制御部15に通知し、媒体の行き先を排出口26とする。   In addition, when the single-sided printing of the front page has been completed, the printer unit control unit 16 notifies the print control unit 15 of the page ID of the back page to print from the back page, and sets the destination of the medium as the discharge port 26.

次に、フローチャートについて説明する。
ステップS45−1 両面印刷指定フラグがTRUEであるか否かを判断する。両面印刷指定フラグがTRUEである場合はステップS45−4に進み、両面印刷指定フラグがTRUEでない場合はステップS45−2に進む。
ステップS45−2 片面印刷であるので、印刷制御部15から通知された媒体のページIDを今回印刷するページとする。
ステップS45−3 媒体の行き先を排出口26とし、処理を終了する。
ステップS45−4 媒体の給紙元が給紙トレイであるか両面印刷ユニット25であるか否かを判断する。給紙元が給紙トレイである場合はステップS45−7に進み、給紙元が両面印刷ユニット25である場合はステップS45−5に進む。
ステップS45−5 両面印刷中であるので、印刷制御部15から通知されたこの媒体の表面ページのページIDを今回印刷するページとする。
ステップS45−6 媒体の行き先を排出口26とし、処理を終了する。
ステップS45−7 両面印刷可能フラグがFALSEであるか否かを判断する。両面印刷可能フラグがFALSEである場合はステップS45−10に進み、両面印刷可能フラグがTRUEである場合はステップS45−8に進む。
ステップS45−8 両面印刷が可能であるので、印刷制御部15から通知されたこの媒体の裏面ページのページIDを今回印刷するページとする。
ステップS45−9 媒体の行き先を両面印刷ユニット25とし、処理を終了する。
ステップS45−10 媒体の表面ページが印刷済であるか否かを判断する。表面ページが印刷済である場合はステップS45−13に進み、表面ページが印刷済でない場合はステップS45−11に進む。
ステップS45−11 両面印刷不可であるので、印刷制御部15から通知されたこの媒体の表面ページのページIDを今回印刷するページとする。
ステップS45−12 両面印刷不可であることを印刷制御部15に通知する。
ステップS45−13 両面印刷不可であるので、印刷制御部15から通知されたこの媒体の裏面ページのページIDを今回印刷するページとする。
ステップS45−14 媒体の行き先を排出口26とし、処理を終了する。
Next, a flowchart will be described.
Step S45-1: Determine whether the duplex printing designation flag is TRUE. If the duplex printing designation flag is TRUE, the process proceeds to step S45-4. If the duplex printing designation flag is not TRUE, the process proceeds to step S45-2.
Step S45-2 Since it is single-sided printing, the page ID of the medium notified from the print control unit 15 is the page to be printed this time.
Step S45-3: The medium destination is set as the discharge port 26, and the process is terminated.
Step S45-4: It is determined whether or not the medium supply source is the paper supply tray or the duplex printing unit 25. If the paper source is the paper tray, the process proceeds to step S45-7. If the paper source is the duplex printing unit 25, the process proceeds to step S45-5.
Step S45-5 Since duplex printing is in progress, the page ID of the front page of the medium notified from the print control unit 15 is set as the page to be printed this time.
Step S45-6: The destination of the medium is the outlet 26, and the process is terminated.
Step S45-7: It is determined whether or not the double-sided print enable flag is FALSE. If the double-sided printable flag is FALSE, the process proceeds to step S45-10. If the double-sided printable flag is TRUE, the process proceeds to step S45-8.
Step S45-8 Since double-sided printing is possible, the page ID of the back page of this medium notified from the print control unit 15 is set as the page to be printed this time.
Step S45-9: The destination of the medium is the duplex printing unit 25, and the process is terminated.
Step S45-10: It is determined whether or not the front page of the medium has been printed. If the front page has been printed, the process proceeds to step S45-13. If the front page has not been printed, the process proceeds to step S45-11.
Step S45-11 Since double-sided printing is not possible, the page ID of the front page of the medium notified from the print control unit 15 is set as the page to be printed this time.
Step S45-12: notifies the print controller 15 that double-sided printing is not possible.
Step S45-13 Since double-sided printing is not possible, the page ID of the back page of this medium notified from the print control unit 15 is set as the page to be printed this time.
Step S45-14: The medium destination is set as the discharge port 26, and the process is terminated.

次に、図15のステップS47における両面印刷判別処理のサブルーチンについて説明する。   Next, the double-sided printing discrimination process subroutine in step S47 of FIG. 15 will be described.

図18は本発明の第1の実施の形態における両面印刷判別処理のサブルーチンを示すフローチャートである。   FIG. 18 is a flowchart showing a subroutine of duplex printing discrimination processing in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、媒体自動判別機構23から媒体の自動判別結果を受け付け、該自動判別結果に基づいて、給紙トレイから給紙した媒体が両面印刷が可能であるか否かを判断する。   First, the printer unit control unit 16 receives an automatic medium determination result from the automatic medium determination mechanism 23, and based on the automatic determination result, determines whether the medium fed from the paper feed tray is capable of duplex printing. to decide.

そして、両面印刷が可能である場合、プリンタユニット制御部16は、給紙トレイ内部に存在する残りの媒体すべてを両面印刷可能であるとし、両面印刷可能フラグをTRUEにする。また、両面印刷が不可能である場合、プリンタユニット制御部16は、給紙トレイ内部に存在する残りの媒体すべてを両面印刷が不可能であるとし、両面印刷可能フラグをFALSEにする。続いて、両面印刷不可媒体を検出したことを印刷制御部15に通知する。さらに、プリンタユニット制御部16は、媒体の行き先が両面印刷ユニット25であっても行き先を切り替え、排出口26に変更する。   If double-sided printing is possible, the printer unit control unit 16 determines that double-sided printing is possible for all the remaining media existing in the paper feed tray, and sets the double-sided printable flag to TRUE. If double-sided printing is not possible, the printer unit controller 16 determines that double-sided printing is not possible for all remaining media in the paper feed tray and sets the double-sided printable flag to FALSE. Subsequently, the print control unit 15 is notified that a medium that cannot be printed on both sides is detected. Further, the printer unit control unit 16 switches the destination even if the destination of the medium is the duplex printing unit 25 and changes the destination to the discharge port 26.

これにより、媒体給紙時には両面印刷する予定であった媒体も、媒体自動判別処理において両面印刷が不可能であると判断され、媒体は片面印刷で排出されることになる。   As a result, even if the medium is scheduled to be printed on both sides when the medium is fed, it is determined that double-sided printing is impossible in the automatic medium determination process, and the medium is ejected by single-sided printing.

次に、フローチャートについて説明する。
ステップS47−1 判別された媒体が両面印刷可能媒体であるか否かを判断する。両面印刷可能媒体である場合はステップS47−2に進み、両面印刷不可媒体である場合はステップS47−4に進む。
ステップS47−2 この媒体を給紙した給紙トレイ内の媒体はすべて両面印刷可能媒体であるとする。
ステップS47−3 両面印刷可能フラグをTRUEにし、処理を終了する。
ステップS47−4 この媒体を給紙した給紙トレイ内の媒体はすべて両面印刷不可媒体であるとする。
ステップS47−5 両面印刷可能フラグをFALSEにする。
ステップS47−6 両面印刷不可媒体を検出した旨を印刷制御部15に通知する。
ステップS47−7 この媒体の行き先を排出口26に変更し、処理を終了する。
Next, a flowchart will be described.
Step S47-1: Determine whether the discriminated medium is a duplex printable medium. If it is a double-sided printable medium, the process proceeds to step S47-2, and if it is a double-sided non-printable medium, the process proceeds to step S47-4.
Step S47-2: It is assumed that all the media in the paper feed tray that has fed this medium are duplex printable media.
Step S47-3: The duplex printing enable flag is set to TRUE, and the process ends.
Step S47-4: It is assumed that all the media in the paper feed tray that has fed this medium are non-double-sided printing media.
Step S47-5: The duplex printing enable flag is set to FALSE.
Step S47-6: The print control unit 15 is notified that a medium that cannot be printed on both sides has been detected.
Step S47-7: The destination of this medium is changed to the discharge port 26, and the process ends.

次に、図15のステップS49における印刷開始処理のサブルーチンについて説明する。   Next, the print start processing subroutine in step S49 of FIG. 15 will be described.

図19は本発明の第1の実施の形態における印刷開始処理のサブルーチンを示すフローチャートである。   FIG. 19 is a flowchart showing a subroutine of the print start process in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、印刷制御部15からの印刷開始を受け付けると、給紙済の媒体に対してビデオデータを印刷する。   First, when receiving a print start from the print control unit 15, the printer unit control unit 16 prints video data on the fed medium.

次に、フローチャートについて説明する。
ステップS49−1 給紙した媒体に対してビデオデータを印刷し、処理を終了する。
Next, a flowchart will be described.
Step S49-1 The video data is printed on the fed medium, and the process is terminated.

次に、図15のステップS51における両面印刷ユニットからの給紙開始処理のサブルーチンについて説明する。   Next, a subroutine for paper feed start processing from the duplex printing unit in step S51 in FIG. 15 will be described.

図20は本発明の第1の実施の形態における両面印刷ユニットからの給紙開始処理のサブルーチンを示すフローチャートである。   FIG. 20 is a flow chart showing a subroutine for paper feed start processing from the duplex printing unit in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、給紙トレイから給紙するか両面印刷ユニット25から給紙するかを、印刷装置12内の媒体数及び媒体位置に基づいて判断する。そして、給紙トレイから給紙する場合は、給紙トレイからの給紙開始処理を行う。   First, the printer unit control unit 16 determines whether to feed paper from the paper feed tray or from the duplex printing unit 25 based on the number of media and the media position in the printing apparatus 12. When paper is fed from the paper feed tray, paper feed start processing from the paper feed tray is performed.

また、両面印刷ユニット25から給紙する場合は、媒体を両面印刷ユニット25内に搬入したことを搬入した媒体に印刷したページのページIDとともに、印刷制御部15に通知し、両面印刷ユニット25から媒体の給紙を開始する。   Further, when paper is fed from the duplex printing unit 25, the print control unit 15 is notified together with the page ID of the page printed on the loaded medium that the medium has been carried into the duplex printing unit 25. Start feeding media.

次に、フローチャートについて説明する。
ステップS51−1 印刷装置12内の媒体数、媒体位置から給紙トレイから給紙するか両面印刷ユニット25から給紙するかを判断する。給紙トレイから給紙する場合はステップS51−4に進み、両面印刷ユニット25から給紙する場合はステップS51−2に進む。
ステップS51−2 媒体を両面印刷ユニット25内に搬入したことを印刷制御部15に通知する。
ステップS51−3 両面印刷ユニット25から給紙を開始し、処理を終了する。
ステップS51−4 給紙トレイからの給紙開始処理を行い、処理を終了する。
Next, a flowchart will be described.
Step S51-1: It is determined whether the paper is fed from the paper feed tray or the double-sided printing unit 25 from the number of media in the printing apparatus 12 and the media position. When the paper is fed from the paper feed tray, the process proceeds to step S51-4, and when the paper is fed from the duplex printing unit 25, the process proceeds to step S51-2.
Step S51-2: Notifies the print control unit 15 that the medium has been carried into the duplex printing unit 25.
Step S51-3: Feeding is started from the duplex printing unit 25, and the process is terminated.
Step S51-4: Starts paper feed from the paper feed tray, and ends the process.

次に、図15のステップS53における媒体排出処理のサブルーチンについて説明する。   Next, the medium discharge processing subroutine in step S53 in FIG. 15 will be described.

図21は本発明の第1の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。   FIG. 21 is a flowchart showing a subroutine of medium discharge processing in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、媒体の排出を検出すると、該媒体上に印刷されたページのページIDとともに、排出完了を印刷制御部15に通知する。   First, when detecting the discharge of the medium, the printer unit control unit 16 notifies the print control unit 15 of the discharge completion together with the page ID of the page printed on the medium.

次に、フローチャートについて説明する。
ステップS53−1 媒体を排出したことを印刷制御部15に通知し、処理を終了する。
Next, a flowchart will be described.
Step S53-1: The print controller 15 is notified that the medium has been ejected, and the process is terminated.

次に、図15のステップS55におけるカセット引抜き処理のサブルーチンについて説明する。   Next, the subroutine for the cassette pulling process in step S55 in FIG. 15 will be described.

図22は本発明の第1の実施の形態におけるカセット引抜き処理のサブルーチンを示すフローチャートである。   FIG. 22 is a flowchart showing a subroutine of the cassette pulling-out process in the first embodiment of the present invention.

まず、プリンタユニット制御部16は、給紙トレイのカセットの引抜き、又は、用紙なしを検出すると、前記給紙トレイの媒体判別済フラグをFALSEにする。また、両面印刷可能フラグをTRUEにする。これにより、初期状態では、両面印刷は可能となる。   First, when the printer unit control unit 16 detects that the cassette of the paper feed tray is pulled out or no paper is present, the printer unit control unit 16 sets the medium discrimination flag of the paper feed tray to FALSE. In addition, the duplex printing enable flag is set to TRUE. Thereby, double-sided printing is possible in the initial state.

次に、フローチャートについて説明する。
ステップS55−1 カセットが引き抜かれた給紙トレイの媒体判別済フラグをクリア(FALSE)にする。
ステップS55−2 両面印刷可能フラグをTRUEにし、処理を終了する。
Next, a flowchart will be described.
Step S55-1: Clear the medium discrimination flag of the paper feed tray from which the cassette has been pulled out (FALSE).
Step S55-2: The duplex printing enable flag is set to TRUE, and the process is terminated.

このように、本実施の形態においては、給紙トレイから給紙した媒体が、媒体自動判別機構23等によって既に両面印刷不可媒体であることが認識されている場合には、両面印刷指定の印刷ジョブを印刷するときに、両面印刷ジョブの1枚目の表面ページ、1枚目の裏面ページ、2枚目の表面ページ、2枚目の裏面ページの順で印刷することによって、1枚の裏表に印刷するデータを連続して片面印刷することができる。   As described above, in the present embodiment, when the medium fed from the paper feed tray is already recognized as a medium that cannot be printed on both sides by the automatic medium discrimination mechanism 23 or the like, printing designated for duplex printing is performed. When printing a job, the first front page, the first back page, the second front page, and the second back page of the duplex print job are printed in this order. The data to be printed can be continuously printed on one side.

また、給紙トレイでのカセット引抜き、又は、用紙なしが検出された場合、媒体自動判別機構23は、一旦、前記給紙トレイでの両面印刷可・不可情報をクリアする。そのため、クリア後の最初の1枚目の媒体に対して両面印刷を行う場合には、最初の2ページについては、裏面の片面印刷、表面の片面印刷の順となるが、その次の媒体からは、表面の片面印刷、裏面の片面印刷となる。   Further, when it is detected that the cassette is pulled out from the paper feed tray or no paper is detected, the automatic medium discrimination mechanism 23 once clears the information indicating whether duplex printing is possible in the paper feed tray. Therefore, when performing duplex printing on the first first medium after clearing, the first two pages are in the order of single-sided printing on the back side and single-sided printing on the front side. Are single-sided printing on the front side and single-sided printing on the back side.

ところで、前記第1の実施の形態においては、給紙トレイの媒体の自動判別が終了していない状態で、両面印刷指定のページを印刷する場合、ページの印刷順序決定後に両面印刷不可媒体が検出されると、その時点で片面印刷に切り替えるので、最初の2ページは裏面の片面印刷、表面の片面印刷となってしまう。   By the way, in the first embodiment, when printing a page designated for duplex printing in a state where automatic discrimination of the medium in the paper feed tray has not been completed, a medium that cannot be printed on both sides is detected after the page printing order is determined. Then, since it switches to single-sided printing at that time, the first two pages will be single-sided printing on the back side and single-sided printing on the front side.

そこで、給紙トレイの媒体の自動判別が終了していない状態で、両面印刷指定のページを印刷する場合において、ページの印刷順序決定後に両面印刷不可媒体が検出されたときに、決定済の印刷順序を一旦クリアして印刷順序を再決定することによって、両面印刷不可媒体を片面印刷に切り替えても、常に、表面ページの片面印刷、裏面ページの印刷順序になる本発明の第2の実施の形態について説明する。   Therefore, when printing a page specified for double-sided printing without automatic determination of the medium in the paper feed tray, the determined printing is performed when a medium that cannot be printed on both sides is detected after the page printing order is determined. By clearing the order once and re-determining the printing order, even if the medium that cannot be printed on both sides is switched to single-sided printing, the single-sided printing for the front page and the printing order for the back page are always performed. A form is demonstrated.

なお、第1の実施の形態と同じ構造を有するものについては、同じ符号を付与することによってその説明を省略する。また、第1の実施の形態と同じ動作及び効果についてもその説明を省略する。   In addition, about the thing which has the same structure as 1st Embodiment, the description is abbreviate | omitted by providing the same code | symbol. Also, the description of the same operations and effects as those of the first embodiment is omitted.

図23は本発明の第2の実施の形態における両面印刷不可のときの片面印刷順序を示す図である。   FIG. 23 is a diagram showing a single-sided printing order when double-sided printing is not possible in the second embodiment of the present invention.

本実施の形態において、n−1枚目までの媒体に両面印刷が行われた後、給紙トレイの入れ替え等によって媒体の種別が不明となり、n枚目の媒体の印刷開始後に両面印刷不可媒体であることが判別された場合、図23に示されるように、n枚目の表面ページ、n枚目の裏面ページ、n+1枚目の表面ページ、n+1枚目の裏面ページ、n+2枚目の表面ページ、n+2枚目の裏面ページ・・・の順で媒体に片面印刷するようになっている。   In this embodiment, after double-sided printing is performed on the media up to the (n-1) th sheet, the medium type becomes unclear due to replacement of the paper feed tray or the like, and double-sided printing is impossible after printing of the nth medium is started. 23, as shown in FIG. 23, as shown in FIG. 23, the nth front page, the nth back page, the (n + 1) th front page, the (n + 1) th back page, and the (n + 2) th page Single-sided printing is performed on the medium in the order of pages, n + 2 back page, and so on.

なお、本実施の形態において、受信制御部13の動作及びジョブ制御部14の動作については、前記第1の実施の形態(図6及び7)と同様であるので説明を省略する。   In the present embodiment, the operation of the reception control unit 13 and the operation of the job control unit 14 are the same as those in the first embodiment (FIGS. 6 and 7), and thus description thereof is omitted.

次に、前記印刷制御部15の動作について説明する。   Next, the operation of the print control unit 15 will be described.

なお、印刷制御部15のメイン動作については、前記第1の実施の形態における印刷制御部15のメイン動作(図8)と同様であるので説明を省略する。さらに、印刷制御部15におけるトレイからの給紙開始処理(図9及び10)、ビデオデータ設定処理(図11)、媒体搬入処理(図12)、及び、媒体排出処理(図13)の動作についても、前記第1の実施の形態と同様であるので説明を省略する。   Since the main operation of the print control unit 15 is the same as the main operation (FIG. 8) of the print control unit 15 in the first embodiment, the description thereof is omitted. Furthermore, the operations of the paper feed start process (FIGS. 9 and 10), the video data setting process (FIG. 11), the medium carry-in process (FIG. 12), and the medium discharge process (FIG. 13) in the print control unit 15 are performed. Since this is the same as the first embodiment, the description thereof is omitted.

次に、図8のステップS31における両面印刷不可通知受付処理のサブルーチンについて説明する。   Next, the subroutine of the double-sided printing disapproval notification acceptance process in step S31 of FIG.

図24は本発明の第2の実施の形態における両面印刷不可通知受付処理のサブルーチンを示すフローチャートである。   FIG. 24 is a flowchart showing a subroutine of double-sided printing disapproval notification acceptance processing in the second embodiment of the present invention.

まず、プリンタユニット制御部16は、給紙した媒体に対して媒体の自動判別を行い、該媒体が両面印刷不可媒体であることを認識した場合は、給紙トレイに挿入されている媒体は両面印刷不可である旨を通知する。   First, the printer unit controller 16 automatically determines the medium for the fed medium, and if the medium is recognized as a medium that cannot be printed on both sides, the medium inserted in the paper feed tray is the double-sided printing medium. Notify that printing is not possible.

そして、印刷制御部15は、両面印刷不可を受け付けると、両面印刷指定がTRUEであるか否かを判断し、両面印刷指定がFALSEである場合は処理を終了する。また、両面印刷指定がTRUEである場合は、印刷順序変更通知とともに印刷順序変更後のページIDを受け付けたか否かを判断する。そして、印刷順序変更通知及び印刷順序変更後のページIDを受け付けていない場合は、図示されないLCDパネル等に両面印刷を行うことができず、片面印刷になった旨を表示する。   Then, when accepting the double-sided printing impossibility, the printing control unit 15 determines whether or not the double-sided printing designation is TRUE, and ends the process when the double-sided printing designation is FALSE. If the double-sided printing designation is TRUE, it is determined whether or not the page ID after the change of the print order is received together with the print order change notification. If the print order change notification and the page ID after the print order change are not received, double-sided printing cannot be performed on an LCD panel (not shown), and a message indicating that single-sided printing has been performed is displayed.

また、印刷制御部15は、印刷順序変更通知及び印刷順序変更後のページIDを受け付けた場合は、印刷順序の変更処理を行う。この時点においては、両面印刷時には裏面ページのビデオデータを設定済であるが、裏面のビデオデータの印刷を停止する。次に、印刷制御部15は、ビデオデータの印刷を停止した裏面ページを両面印刷ユニット25の搬入待ちキューから取り出し、印刷開始待ちキューに入れる。   In addition, when the print control unit 15 receives the print order change notification and the page ID after the print order change, the print control unit 15 performs a print order change process. At this time, the video data of the back page is already set at the time of duplex printing, but the printing of the video data of the back side is stopped. Next, the print control unit 15 takes out the back page for which the printing of the video data is stopped from the carry-in queue of the duplex printing unit 25 and puts it in the print start queue.

続いて、印刷制御部15は、プリンタユニット制御部16から通知されたページID(表面ページ)を印刷開始待ちキューから取り出して排出完了待ちキューに入れ、ビデオデータの印刷設定を行う。そして、印刷設定が終了すると、印刷順序を入れ替えた旨をプリンタユニット制御部16に通知する。   Subsequently, the print control unit 15 takes out the page ID (front page) notified from the printer unit control unit 16 from the print start waiting queue and puts it in the discharge completion waiting queue, and performs print settings for video data. When the print setting is completed, the printer unit control unit 16 is notified that the printing order has been changed.

次に、フローチャートについて説明する。
ステップS31−11 両面印刷指定がTRUEであるか否かを判断する。両面印刷指定がTRUEである場合はステップS31−12に進み、両面印刷指定がFALSEである場合は処理を終了する。
ステップS31−12 印刷順序変更通知及び変更後のページIDを受け付けたか否かを判断する。印刷順序変更通知及び変更後のページIDを受け付けた場合はステップS31−13に進み、印刷順序変更通知及び変更後のページIDを受け付けていない場合はステップS31−18に進む。
ステップS31−13 既に設定した裏面のビデオデータの印刷を停止する。
ステップS31−14 この裏面ページを両面印刷ユニット25の搬入待ちキューから取り出し、印刷開始待ちキューの先頭に入れる。
ステップS31−15 通知されたページIDのページを印刷開始待ちキューから取り出し、排出完了待ちキューに入れる。
ステップS31−16 通知されたページIDのビデオデータの印刷設定を行う。
ステップS31−17 印刷順序を入れ替えた旨をプリンタユニット制御部16に通知する。
ステップS31−18 LCDパネル等に両面印刷を行うことができず、片面印刷になったことを表示し、処理を終了する。
Next, a flowchart will be described.
Step S31-11: It is determined whether the double-sided printing designation is TRUE. If the duplex printing designation is TRUE, the process proceeds to step S31-12, and if the duplex printing designation is FALSE, the process ends.
Step S31-12: It is determined whether a print order change notification and a changed page ID have been accepted. If the print order change notification and the changed page ID are accepted, the process proceeds to step S31-13. If the print order change notice and the changed page ID are not accepted, the process proceeds to step S31-18.
Step S31-13 The printing of the back side video data that has already been set is stopped.
Step S31-14: This back page is taken out from the carry-in queue of the duplex printing unit 25 and placed at the head of the print start queue.
Step S31-15 Take out the page of the notified page ID from the print start waiting queue and place it in the discharge completion waiting queue.
Step S31-16 Print setting of the video data of the notified page ID is performed.
Step S31-17: The printer unit controller 16 is notified that the printing order has been changed.
Step S31-18 Display that double-sided printing cannot be performed on the LCD panel or the like and single-sided printing has been performed, and the processing is terminated.

次に、前記プリンタユニット制御部16の動作について説明する。   Next, the operation of the printer unit controller 16 will be described.

図25は本発明の第2の実施の形態におけるプリンタユニット制御部の動作を示すフローチャートである。   FIG. 25 is a flowchart showing the operation of the printer unit controller in the second embodiment of the present invention.

まず、プリンタユニット制御部16は、イベント待ちをしている。そして、給紙トレイからの給紙開始処理を受け付けると、給紙トレイからの給紙開始処理を行う。そして、給紙トレイ又は両面印刷ユニット25からの給紙を開始し、媒体の給紙が完了すると、媒体の印刷順序決定処理を行う。   First, the printer unit control unit 16 is waiting for an event. When a paper feed start process from the paper feed tray is received, a paper feed start process from the paper feed tray is performed. Then, the sheet feeding from the sheet feeding tray or the duplex printing unit 25 is started, and when the medium feeding is completed, the medium printing order determining process is performed.

続いて、プリンタユニット制御部16は、媒体の印刷順序決定処理後に、更に媒体を走行して媒体自動判別機構23が媒体を判別すると、両面印刷判断処理を行う。そして、印刷制御部15から印刷開始を受け付けると、印刷開始処理を行う。そして、印刷して、媒体を両面印刷ユニット25に搬入すると、該両面印刷ユニット25からの給紙開始処理を行う。   Subsequently, after the printing order determination process of the medium, the printer unit control unit 16 performs a double-sided printing determination process when the medium further travels and the medium automatic determination mechanism 23 determines the medium. When a print start is received from the print control unit 15, a print start process is performed. When printing is performed and the medium is carried into the double-sided printing unit 25, a paper feeding start process from the double-sided printing unit 25 is performed.

続いて、プリンタユニット制御部16は、媒体の排出を検出すると、媒体排出処理を行う。そして、給紙トレイのカセットの引抜きを検出すると、カセット引抜き処理を行う。続いて、プリンタユニット制御部16は、両面印刷不可媒体の検出によって、印刷制御部15に印刷順序が入れ替わった旨を通知する。これにより、印刷制御部15から印刷順序入替え済が通知されると、印刷再開処理を行う。   Subsequently, when the printer unit control unit 16 detects the discharge of the medium, it performs a medium discharge process. Then, when it is detected that the cassette in the paper feed tray has been pulled out, a cassette pulling process is performed. Subsequently, the printer unit control unit 16 notifies the print control unit 15 that the printing order has been changed by detecting a medium that cannot be printed on both sides. As a result, when the print control unit 15 notifies that the printing order has been changed, the printing restart process is performed.

次に、フローチャートについて説明する。
ステップS61 イベントを待つ。
ステップS62 給紙開始通知を受け付けたか否かを判断する。給紙開始通知を受け付けた場合はステップS63に進み、給紙開始通知を受け付けていない場合はステップS64に進む。
ステップS63 給紙トレイからの給紙開始処理を行う。
ステップS64 給紙完了通知を受け付けたか否かを判断する。給紙完了通知を受け付けた場合はステップS65に進み、給紙完了通知を受け付けていない場合はステップS66に進む。
ステップS65 印刷順序決定処理を行う。
ステップS66 媒体自動判別結果を受け付けたか否かを判断する。媒体自動判別結果を受け付けた場合はステップS67に進み、媒体自動判別結果を受け付けていない場合はステップS68に進む。
ステップS67 両面印刷判断処理を行う。
ステップS68 印刷開始通知を受け付けたか否かを判断する。印刷開始通知を受け付けた場合はステップS69に進み、印刷開始通知を受け付けていない場合はステップS470に進む。
ステップS69 印刷開始処理を行う。
ステップS70 両面印刷ユニット25への搬入を検出したか否かを判断する。両面印刷ユニット25への搬入を検出した場合はステップS71に進み、両面印刷ユニット25への搬入を検出していない場合はステップS72に進む。
ステップS71 両面印刷ユニット25からの給紙開始処理を行う。
ステップS72 媒体の排出を検出したか否かを判断する。媒体の排出を検出した場合はステップS73に進み、媒体の排出を検出していない場合はステップS74に進む。
ステップS73 媒体排出処理を行う。
ステップS74 カセットの引抜きを検出したか否かを判断する。カセットの引抜きを検出した場合はステップS75に進み、カセットの引抜きを検出していない場合はステップS76に進む。
ステップS75 カセット引抜き処理を行う。
ステップS76 印刷順序変更済通知を受け付けたか否かを判断する。印刷順序変更済通知を受け付けた場合はステップS77に進み、印刷順序変更済通知を受け付けていない場合はステップS61に戻る。
ステップS77 印刷再開処理を行い、ステップS61に戻る。
Next, a flowchart will be described.
Step S61 Wait for an event.
Step S62: to judge whether a paper feed start notification has been accepted. If a paper feed start notification is accepted, the process proceeds to step S63. If a paper feed start notice is not accepted, the process proceeds to step S64.
Step S63: Starts paper feed from the paper feed tray.
Step S64: to judge whether a paper feed completion notice has been accepted. If a paper feed completion notification has been received, the process proceeds to step S65. If a paper feed completion notification has not been received, the process proceeds to step S66.
Step S65: A printing order determination process is performed.
Step S66: to judge whether an automatic medium discrimination result has been accepted. If the automatic medium determination result is accepted, the process proceeds to step S67. If the automatic medium determination result is not accepted, the process proceeds to step S68.
Step S67 A duplex printing determination process is performed.
Step S68: It is determined whether a print start notification is accepted. If a print start notification has been received, the process proceeds to step S69. If a print start notification has not been received, the process proceeds to step S470.
Step S69 Print start processing is performed.
Step S70: It is determined whether or not the carry-in to the duplex printing unit 25 is detected. When carrying in to the duplex printing unit 25 is detected, the process proceeds to step S71, and when carrying into the duplex printing unit 25 is not detected, the process proceeds to step S72.
Step S71 A paper feed start process from the duplex printing unit 25 is performed.
Step S72: to judge whether the discharge of the medium is detected. If the discharge of the medium is detected, the process proceeds to step S73, and if the discharge of the medium is not detected, the process proceeds to step S74.
Step S73: A medium discharge process is performed.
Step S74: It is determined whether or not cassette removal has been detected. If it is detected that the cassette has been pulled out, the process proceeds to step S75. If it is not detected, the process proceeds to step S76.
Step S75 A cassette drawing process is performed.
Step S76: It is determined whether a print order change notification has been received. If a print order change notification has been received, the process proceeds to step S77. If a print order change notification has not been received, the process returns to step S61.
Step S77 The printing restart process is performed, and the process returns to Step S61.

なお、本実施の形態においては、プリンタユニット制御部16におけるトレイからの給紙開始処理(図16)、印刷順序決定処理(図17)、印刷処理、両面印刷ユニットからの給紙開始処理(図20)、媒体排出処理(図21)及びカセット引抜き処理(図22)の動作については、前記第1の実施の形態と同様であるので説明を省略する。   In this embodiment, the printer unit control unit 16 starts the paper feed process from the tray (FIG. 16), the print order determination process (FIG. 17), the print process, and the paper feed start process from the duplex printing unit (FIG. 16). 20) The operations of the medium discharge process (FIG. 21) and the cassette pull-out process (FIG. 22) are the same as those in the first embodiment, and a description thereof will be omitted.

次に、図25のステップS67における両面印刷判別処理のサブルーチンについて説明する。   Next, the subroutine for the double-sided printing determination process in step S67 in FIG. 25 will be described.

図26は本発明の第2の実施の形態における両面印刷判別処理のサブルーチンを示すフローチャートである。   FIG. 26 is a flowchart showing a subroutine of double-sided printing determination processing in the second embodiment of the present invention.

まず、プリンタユニット制御部16は、媒体自動判別機構23から媒体の自動判別結果を受け付け、該自動判別結果から、給紙トレイの媒体が両面印刷が可能であるか否かを判断する。   First, the printer unit control unit 16 receives an automatic medium determination result from the automatic medium determination mechanism 23, and determines from the automatic determination result whether the medium on the paper feed tray is capable of duplex printing.

そして、プリンタユニット制御部16は、両面印刷が可能である場合、給紙トレイ内部の引き続きの媒体すべてを両面印刷可能であるとし、両面印刷可能フラグをTRUEにする。また、両面印刷が不可能である場合は、給紙トレイ内部に存在する残りの媒体すべてを両面印刷が不可能であるとし、両面印刷可能フラグをFALSEにする。さらに、媒体の行き先が両面印刷ユニット25であっても行き先を切り替え、排出口26に変更する。   Then, if double-sided printing is possible, the printer unit control unit 16 determines that all subsequent media in the paper feed tray can be double-sided printed, and sets the double-sided printable flag to TRUE. If double-sided printing is impossible, it is determined that double-sided printing is impossible for all the remaining media in the paper feed tray, and the double-sided printable flag is set to FALSE. Furthermore, even if the destination of the medium is the duplex printing unit 25, the destination is switched and changed to the discharge port 26.

これにより、媒体給紙時には両面印刷する予定であった媒体も、媒体自動判別処理において両面印刷が不可能であると判断され、媒体は片面印刷で排出されることになる。   As a result, even if the medium is scheduled to be printed on both sides when the medium is fed, it is determined that double-sided printing is impossible in the automatic medium determination process, and the medium is ejected by single-sided printing.

次に、プリンタユニット制御部16は、現在印刷中の媒体が両面印刷の裏面ページであるか否かを判断する。そして、両面印刷の裏面ページでない場合は処理を終了する。また、両面印刷の裏面ページである場合は、媒体への印刷を裏面ページではなく表面ページに変更するために、印刷制御部15に対して印刷順序の変更通知とともに表面ページのページIDを通知する。なお、印刷順序決定限界地点27以降の媒体印刷順序の変更であるので、印刷を保証するために一旦媒体の走行を停止する。   Next, the printer unit control unit 16 determines whether or not the medium currently being printed is a back page for double-sided printing. If it is not the back side page of double-sided printing, the process ends. Further, in the case of the back page of duplex printing, in order to change the printing on the medium to the front page instead of the back page, the page ID of the front page is notified to the print control unit 15 together with the print order change notification. . Since the medium printing order is changed after the printing order determination limit point 27, the medium is temporarily stopped to guarantee printing.

次に、フローチャートについて説明する。
ステップS67−1 判別された媒体が両面印刷可能媒体であるか否かを判断する。両面印刷可能媒体である場合はステップS67−2に進み、両面印刷不可媒体である場合はステップS67−4に進む。
ステップS67−2 この媒体を給紙した給紙トレイ内の媒体はすべて両面印刷可能媒体であるとする。
ステップS67−3 両面印刷可能フラグをTRUEにし、処理を終了する。
ステップS67−4 この媒体を給紙した給紙トレイ内の媒体はすべて両面印刷不可媒体であるとする。
ステップS67−5 両面印刷可能フラグをFALSEにする。
ステップS67−6 この媒体の行き先を排出口26に変更する。
ステップS67−7 現在印刷中の媒体は両面印刷の裏面ページであるか否かを判断する。両面印刷の裏面ページでない場合は処理を終了し、両面印刷の裏面ページである場合はステップS67−8に進む。
ステップS67−8 両面印刷不可媒体を検出し、印刷制御部15から通知されたこの媒体の表面ページのページIDを今回印刷するページに変更するように印刷制御部15に通知する。
ステップS67−9 印刷順序変更済通知があるまで媒体の走行再開を待ち、処理を終了する。
Next, a flowchart will be described.
Step S67-1: Determine whether the discriminated medium is a duplex printable medium. If it is a double-sided printable medium, the process proceeds to step S67-2. If it is a double-sided printable medium, the process proceeds to step S67-4.
Step S67-2: It is assumed that all the media in the paper feed tray that has fed this medium are duplex printable media.
Step S67-3: The duplex printing enable flag is set to TRUE, and the process ends.
Step S67-4: It is assumed that all the media in the paper feed tray that has fed this medium are non-double-sided printing media.
Step S67-5: The duplex printing enable flag is set to FALSE.
Step S67-6 The destination of this medium is changed to the discharge port 26.
Step S67-7: It is determined whether or not the medium currently being printed is a reverse page for duplex printing. If it is not the back page of double-sided printing, the process ends. If it is the back page of double-sided printing, the process proceeds to step S67-8.
Step S67-8: A medium that cannot be printed on both sides is detected, and the print control unit 15 is notified to change the page ID of the front page of the medium notified from the print control unit 15 to the page to be printed this time.
Step S67-9 Waiting for the medium to resume running until a notification of changing the printing order is received, and the process ends.

次に、図25のステップS77における印刷再開処理のサブルーチンについて説明する。   Next, a subroutine for the print restart process in step S77 in FIG. 25 will be described.

図27は本発明の第2の実施の形態における印刷再開処理のサブルーチンを示すフローチャートである。   FIG. 27 is a flowchart showing a subroutine of the print resumption process in the second embodiment of the present invention.

まず、プリンタユニット制御部16は、印刷順序変更通知を印刷制御部15に通知した後は、印刷制御部15からの印刷順序変更済通知を待つために、媒体の走行を停止する。そして、プリンタユニット制御部16は、印刷順序変更済通知を受け付けると、媒体の走行を再開する。   First, after notifying the print control unit 15 of the print order change notification, the printer unit control unit 16 stops running the medium in order to wait for the print order change notification from the print control unit 15. When the printer unit control unit 16 receives the notification that the printing order has been changed, the printer unit control unit 16 resumes running of the medium.

次に、フローチャートについて説明する。
ステップS77−1 停止していた媒体の走行を再開し、処理を終了する。
Next, a flowchart will be described.
Step S77-1 The travel of the stopped medium is resumed, and the process is terminated.

このように、本実施の形態においては、給紙トレイの媒体の自動判別が終了していない状態で、両面印刷指定のページを印刷する場合において、ページの印刷順序決定後に両面印刷不可媒体が検出されたとき、決定済の印刷順序を一旦クリアして印刷順序を再決定することによって、両面印刷不可媒体を片面印刷に切り替えても、常に表面ページの片面印刷、裏面ページの印刷順序にすることができる。   As described above, in the present embodiment, when printing a page designated for duplex printing in a state where automatic determination of the medium in the paper feed tray has not been completed, a medium that cannot be printed on both sides is detected after the page printing order is determined. When it is done, once the determined printing order is cleared and the printing order is re-determined, even if the medium that cannot be printed on both sides is switched to single-sided printing, the single-sided printing on the front page and the printing order on the back page are always performed. Can do.

これにより、両面印刷不可媒体が検出された場合には、その媒体に対しては常に片面印刷の表面ページ、裏面ページの印刷順序を保つことができる。   Thereby, when a medium that cannot be printed on both sides is detected, the printing order of the front page and the back page of single-sided printing can always be maintained for the medium.

次に、給紙トレイから給紙した媒体が既に両面印刷不可媒体であることが認識されている場合に、両面印刷ジョブの片面だけを印刷して一旦媒体を排出し、その後、媒体の印刷されていないもう片面への印刷を行うために、ユーザに対して片面印刷済の媒体を再度給紙トレイに置くように促し、同じ媒体を給紙トレイから引き込んでもう片面の印刷を行うことによって両面印刷を実現する本発明の第3の実施の形態について説明する。   Next, when it is recognized that the medium fed from the paper feed tray is already a medium that cannot be printed on both sides, only one side of the duplex printing job is printed, the medium is ejected, and then the medium is printed. In order to print on the other side that is not, the user is prompted to place the single-sided printed media in the paper feed tray again, and the other side is printed by pulling the same medium from the paper feed tray and printing on the other side. A third embodiment of the present invention that realizes printing will be described.

なお、第1及び第2の実施の形態と同じ構造を有するものについては、同じ符号を付与することによってその説明を省略する。また、第1及び第2の実施の形態と同じ動作及び効果についてもその説明を省略する。   In addition, about the thing which has the same structure as 1st and 2nd embodiment, the description is abbreviate | omitted by providing the same code | symbol. The description of the same operations and effects as those in the first and second embodiments is also omitted.

図28は本発明の第3の実施の形態における印刷装置の構成を示すブロック図である。   FIG. 28 is a block diagram showing a configuration of a printing apparatus according to the third embodiment of the present invention.

本実施の形態において、印刷装置12は入力手段としてのオペレータパネル制御部37を有する。該オペレータパネル制御部37は、印刷装置12の内部処理部であり、印刷装置12の図示されないオペレータパネルからのキー入力を処理し、印刷装置12の図示されない表示装置にメッセージを表示する。   In the present embodiment, the printing apparatus 12 has an operator panel control unit 37 as input means. The operator panel control unit 37 is an internal processing unit of the printing apparatus 12, processes a key input from an operator panel (not shown) of the printing apparatus 12, and displays a message on a display device (not shown) of the printing apparatus 12.

なお、本実施の形態における印刷装置12のその他の点の構成については、前記第1の実施の形態と同様であるので、説明を省略する。また、本実施の形態において、媒体は給紙トレイとしての第1のトレイ22、給紙トレイとしての手差しトレイ28、又は、両面印刷ユニット25から給紙される。   Note that the configuration of other points of the printing apparatus 12 in the present embodiment is the same as that in the first embodiment, and thus the description thereof is omitted. In the present embodiment, the medium is fed from the first tray 22 as a paper feed tray, the manual feed tray 28 as a paper feed tray, or the duplex printing unit 25.

次に、前記構成の印刷装置12の動作について説明する。なお、受信制御部13の動作及びジョブ制御部14の動作については、前記第1の実施の形態(図6及び7)と同様であるので説明を省略する。   Next, the operation of the printing apparatus 12 having the above configuration will be described. Since the operation of the reception control unit 13 and the operation of the job control unit 14 are the same as those in the first embodiment (FIGS. 6 and 7), description thereof is omitted.

次に、前記印刷制御部15の動作について説明する。   Next, the operation of the print control unit 15 will be described.

図29は本発明の第3の実施の形態における印刷制御部の動作を示すフローチャートである。   FIG. 29 is a flowchart showing the operation of the print control unit in the third embodiment of the present invention.

まず、印刷制御部15は、イベント待ちをしている。そして、印刷制御部15は、ページを受け付けると、トレイからの給紙開始処理を行い、給紙トレイからの給紙ジョブ受信開始処理によって、プリンタユニット制御部16がページの印刷順序を決定する。そして、該プリンタユニット制御部16からの印刷順序決定通知を受け付けると、印刷制御部15は、印刷順序が決定したページのビデオデータ設定処理を行う。   First, the print control unit 15 is waiting for an event. When the print control unit 15 receives a page, the print control unit 15 performs a paper feed start process from the tray, and the printer unit control unit 16 determines a page printing order by a paper feed job reception start process from the paper feed tray. When receiving a print order determination notification from the printer unit control unit 16, the print control unit 15 performs video data setting processing for the page for which the print order has been determined.

続いて、給紙トレイから給紙された媒体上にビデオデータが印刷されると、両面印刷の場合、媒体は両面印刷ユニット25に挿入される。そして、プリンタユニット制御部16から両面印刷ユニット25への媒体搬入通知を受け付けると、媒体搬入処理を行う。   Subsequently, when the video data is printed on the medium fed from the paper feed tray, the medium is inserted into the duplex printing unit 25 in the case of duplex printing. When a medium carry-in notification from the printer unit control unit 16 to the duplex printing unit 25 is received, a medium carry-in process is performed.

次に、両面印刷ユニット25に媒体が搬入され、両面印刷ユニット25からの印刷準備が整うと、再びプリンタユニット制御部16は、印刷順序決定を印刷制御部15に通知する。該印刷制御部15はプリンタユニット制御部16からの印刷順序決定通知を受け付けると、ビデオデータ設定処理を行う。そして、媒体へのページの印刷が終了すると、プリンタユニット制御部16は、媒体排出完了を印刷制御部15に通知する。   Next, when the medium is carried into the duplex printing unit 25 and printing preparation from the duplex printing unit 25 is completed, the printer unit control unit 16 notifies the printing control unit 15 of the printing order determination again. When the print control unit 15 receives a print order determination notification from the printer unit control unit 16, the print control unit 15 performs video data setting processing. When the printing of the page on the medium is completed, the printer unit control unit 16 notifies the print control unit 15 of the completion of the medium discharge.

続いて、印刷制御部15は、プリンタユニット制御部16からの媒体排出通知を受け付けると、媒体排出処理を行い、媒体自動認識の結果、プリンタユニット制御部16が第1のトレイ22に給紙されている媒体では、両面印刷を継続することができないと判別した場合には、印刷制御部15にその旨を通知する。該印刷制御部15は、両面印刷不可媒体を検出した通知を受け付けると、両面印刷不可媒体受付処理を行う。   Subsequently, when the print control unit 15 receives a medium discharge notification from the printer unit control unit 16, the print control unit 15 performs a medium discharge process, and as a result of automatic medium recognition, the printer unit control unit 16 is fed to the first tray 22. If it is determined that the double-sided printing cannot be continued with the medium being printed, the print control unit 15 is notified of the fact. When the print control unit 15 receives a notification that a double-sided printing impossible medium is detected, the printing control unit 15 performs a double-sided printing impossible medium receiving process.

また、両面印刷不可媒体が片面印刷だけで排出された場合には、印刷装置12は、片面印刷されて排出された媒体を、手差しトレイ28に置くようにユーザに促す。そして、ユーザが媒体を手差しトレイ28にセットした旨を認識すると、印刷制御部15は手差しトレイ28からの印刷開始処理を行う。   When the medium that cannot be printed on both sides is discharged only by single-sided printing, the printing apparatus 12 prompts the user to place the medium that has been printed on one side and discharged on the manual feed tray 28. When the user recognizes that the medium has been set on the manual feed tray 28, the print control unit 15 performs a print start process from the manual feed tray 28.

次に、フローチャートについて説明する。
ステップS81 イベントを待つ。
ステップS82 ページを受け付けたか否かを判断する。ページを受け付けた場合はステップS83に進み、受け付けていない場合はステップS84に進む。
ステップS83 給紙トレイからの給紙開始処理を行う。
ステップS84 印刷順序決定通知を受け付けたか否かを判断する。印刷順序決定通知を受け付けた場合はステップS85に進み、受け付けていない場合はステップS86に進む。
ステップS85 ビデオデータ設定処理を行う。
ステップS86 両面印刷ユニット25への媒体搬入通知を受け付けたか否かを判断する。媒体搬入通知を受け付けた場合はステップS87に進み、受け付けていない場合はステップS88に進む。
ステップS87 媒体搬入処理を行う。
ステップS88 媒体排出通知を受け付けたか否かを判断する。媒体排出通知を受け付けた場合はステップS89に進み、受け付けていない場合はステップS90に進む。
ステップS89 媒体排出処理を行う。
ステップS90 両面印刷不可媒体検出通知を受け付けたか否かを判断する。両面印刷不可媒体検出通知を受け付けた場合はステップS91に進み、受け付けていない場合はステップS92に進む。
ステップS91 両面印刷不可媒体通知受付処理を行う。
ステップS92 ユーザ確認を受け付けたか否かを判断する。ユーザ確認を受け付けた場合はステップS93に進み、ユーザ確認を受け付けていない場合はステップS81に戻る。
ステップS93 印刷開始処理を行い、ステップS81に戻る。
Next, a flowchart will be described.
Step S81 Wait for an event.
Step S82: Whether the page has been accepted or not is determined. If a page is accepted, the process proceeds to step S83, and if not received, the process proceeds to step S84.
Step S83: Starts paper feed from the paper feed tray.
Step S84: to judge whether a print order determination notification has been accepted. If a print order determination notification is accepted, the process proceeds to step S85, and if not received, the process proceeds to step S86.
Step S85 A video data setting process is performed.
Step S86: It is determined whether a medium delivery notification to the duplex printing unit 25 has been received. If a medium carry-in notification is accepted, the process proceeds to step S87, and if not received, the process proceeds to step S88.
Step S87 A medium carrying-in process is performed.
Step S88: It is determined whether a medium discharge notification has been accepted. If a medium discharge notification is accepted, the process proceeds to step S89, and if not received, the process proceeds to step S90.
Step S89: A medium discharge process is performed.
Step S90: It is determined whether or not a double-sided printing impossible medium detection notification has been received. If a double-sided printing disabled medium detection notification is accepted, the process proceeds to step S91. If not received, the process proceeds to step S92.
Step S91 A double-sided printing disabled medium notification acceptance process is performed.
Step S92: to judge whether the user confirmation is accepted. If user confirmation is accepted, the process proceeds to step S93. If user confirmation is not accepted, the process returns to step S81.
Step S93: A print start process is performed, and the process returns to Step S81.

なお、印刷制御部15におけるトレイからの給紙開始処理(図9及び10)、ビデオデータ設定処理(図11)、及び、媒体搬入処理(図12)の動作については、前記第1の実施の形態と同様であるので説明を省略する。   The operations of the paper feed start process (FIGS. 9 and 10), the video data setting process (FIG. 11), and the medium carry-in process (FIG. 12) in the print control unit 15 are the same as those in the first embodiment. Since it is the same as that of a form, description is abbreviate | omitted.

次に、図29のステップS89における媒体排出処理のサブルーチンについて説明する。   Next, the medium discharge processing subroutine in step S89 of FIG. 29 will be described.

図30は本発明の第3の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。   FIG. 30 is a flowchart showing a medium discharge processing subroutine according to the third embodiment of the present invention.

まず、プリンタユニット制御部16は、媒体を排出口26から排出すると、その媒体に印刷されたページのページIDとともに媒体の排出完了を印刷制御部15に通知する。また、両面印刷手差しモード、すなわち、両面印刷不可媒体に対して両面印刷ページの表面ページだけを先に媒体に印刷して、その後、同じ媒体を手差し口から給紙して裏面ページを同じ媒体に印刷するモードである場合は、印刷待ちキューのページをすべて給紙待ちキューに移し変え、未印刷のページをすべてリセットする。前記印刷制御部15は、媒体の排出通知を受け付けると、ページIDから排出されたページを特定する。   First, when the medium is discharged from the discharge port 26, the printer unit controller 16 notifies the print controller 15 of the completion of discharging the medium together with the page ID of the page printed on the medium. Also, in double-sided manual feed mode, that is, only the front page of the double-sided printing page is printed on the medium first, and then the same medium is fed from the manual feed slot to the same medium. If the mode is for printing, all pages in the print queue are moved to the paper feed queue and all unprinted pages are reset. When the print control unit 15 receives a medium discharge notification, the print control unit 15 specifies the page discharged from the page ID.

続いて、排出されたページが排出待ちキューに存在するかどうかを判断し、排出待ちキューに存在する場合は、そのページを排出待ちキューから取り出す。なお、両面印刷でその媒体に表面ページ及び裏面ページの両面が印刷されている場合は、表面ページ及び裏面ページに対して実施する。   Subsequently, it is determined whether or not the discharged page exists in the discharge waiting queue, and if it exists in the discharge waiting queue, the page is taken out from the discharge waiting queue. In addition, when both sides of the front page and the back page are printed on the medium by double-sided printing, it is performed on the front page and the back page.

また、排出されたページが排出待ちキューに存在しない場合は、両面印刷ユニット25の搬入待ちキューから取り出す。なお、両面印刷ユニット25の排出待ちキューにページが存在するということは、本来両面印刷されるべき両面印刷ページが、両面印刷不可媒体であり、片面のページだけ印刷されて排出されたことを意味する。   If the discharged page does not exist in the discharge waiting queue, the page is taken out from the carry-in waiting queue of the duplex printing unit 25. The presence of a page in the discharge queue of the duplex printing unit 25 means that the duplex printing page that should be duplex printed is a medium that cannot be printed on both sides, and only the single-sided page is printed and ejected. To do.

そして、排出されたページの印刷完了をジョブ制御部14に通知する。次に、両面印刷手差しモードであるかどうかを判断し、両面印刷手差しモードでない場合は処理を終了する。また、両面印刷手差しモードである場合は、オペレータパネル制御部37に対して、ユーザに排出した媒体の手差しトレイ28への設定を促すメッセージを表示するように依頼する。続いて、印刷開始待ちキューにあるページをすべて印刷開始待ちするのを停止し、給紙開始待ちキューに入れなおす。   Then, the job control unit 14 is notified of the completion of printing of the discharged page. Next, it is determined whether or not the double-sided printing manual feed mode is set. If the double-sided printing manual feed mode is not set, the processing is terminated. In the case of the double-sided printing manual feed mode, the operator panel control unit 37 is requested to display a message prompting the user to set the discharged medium on the manual feed tray 28. Subsequently, all the pages in the print start waiting queue are stopped from waiting to start printing, and are put into the paper feed start waiting queue again.

次に、フローチャートについて説明する。
ステップS89−1 プリンタユニット制御部16から通知されたページIDからページを特定する。
ステップS89−2 排出されたページが排出待ちキューに存在するか否かを判断する。排出待ちキューに存在する場合はステップS89−3に進み、排出待ちキューに存在しない場合はステップS89−4に進む。
ステップS89−3 ページを排出待ちキューから取り出す。
ステップS89−4 ページを搬入待ちキューから取り出す。
ステップS89−5 ページの印刷完了をジョブ制御部14に通知する。
ステップS89−6 両面印刷手差しモードであるか否かを判断する。両面印刷手差しモードでない場合は処理を終了し、両面印刷手差しモードである場合はステップS89−7に進む。
ステップS89−7 オペレータパネル制御部37に対して排出した媒体を手差しトレイ28に置くメッセージを表示するように依頼する。
ステップS89−8 印刷開始待ちキューのページをすべて給紙開始待ちキューに入れ、処理を終了する。
Next, a flowchart will be described.
Step S89-1: The page is specified from the page ID notified from the printer unit control unit 16.
Step S89-2: It is determined whether or not the discharged page exists in the discharge waiting queue. When it exists in the discharge waiting queue, the process proceeds to step S89-3, and when it does not exist in the discharge waiting queue, the process proceeds to step S89-4.
Step S89-3 Take out the page from the discharge waiting queue.
Step S89-4: The page is taken out from the carry-in queue.
Step S89-5: The job controller 14 is notified of the completion of printing the page.
Step S89-6: It is determined whether or not it is the duplex printing manual feed mode. If it is not in the duplex printing manual feed mode, the process ends. If it is in the duplex printing manual feed mode, the process proceeds to step S89-7.
Step S89-7 The operator panel control unit 37 is requested to display a message for placing the discharged medium on the manual feed tray 28.
Step S89-8: All pages in the print start waiting queue are placed in the paper feed start waiting queue, and the process is terminated.

次に、図29のステップS91における両面印刷不可通知受付処理のサブルーチンについて説明する。   Next, the subroutine of the double-sided printing disapproval notification acceptance process in step S91 in FIG.

図31は本発明の第3の実施の形態における両面印刷不可通知受付処理のサブルーチンを示すフローチャートである。   FIG. 31 is a flow chart showing a subroutine of double-sided printing disapproval notification acceptance processing in the third embodiment of the present invention.

まず、プリンタユニット制御部16は、給紙した媒体に対して媒体の自動判別を行い、媒体が両面印刷不可媒体であることを認識した場合は、給紙トレイに挿入されている媒体は両面印刷不可である旨を通知する。   First, the printer unit controller 16 automatically determines the medium for the fed medium, and if the medium is recognized as a medium that cannot be printed on both sides, the medium inserted in the paper feed tray is printed on both sides. Notify that it is not possible.

そして、印刷制御部15は、両面印刷不可を受け付けると、両面印刷指定がTRUEであるか否かを判断し、両面印刷指定がFALSEである場合は処理を終了する。また、両面印刷指定がTRUEである場合は、印刷順序変更通知とともに印刷順序変更後のページIDを受け付けたか否かを判断する。そして、印刷順序変更通知及び印刷順序変更後のページIDを受け付けていない場合は、両面印刷手差しモードをTRUEとする。   Then, when accepting the double-sided printing impossibility, the printing control unit 15 determines whether or not the double-sided printing designation is TRUE, and ends the process when the double-sided printing designation is FALSE. If the double-sided printing designation is TRUE, it is determined whether or not the page ID after the change of the print order is received together with the print order change notification. When the print order change notification and the page ID after the print order change are not received, the duplex printing manual feed mode is set to TRUE.

また、印刷順序変更通知及び印刷順序変更後のページIDを受け付けた場合は、印刷順序の変更処理を行う。その時点において、両面印刷時には裏面ページのビデオデータを設定済であるが、裏面のビデオデータの印刷を停止する。次に、印刷制御部15は、ビデオデータの印刷を停止した裏面ページを両面印刷ユニット25の搬入待ちキューから取り出し、印刷開始待ちキューに入れる。   When the print order change notification and the page ID after the print order change are received, the print order change process is performed. At that time, the video data of the back page has been set at the time of duplex printing, but the printing of the video data of the back side is stopped. Next, the print control unit 15 takes out the back page for which the printing of the video data is stopped from the carry-in queue of the duplex printing unit 25 and puts it in the print start queue.

続いて、印刷制御部15は、プリンタユニット制御部16から通知されたページID(表面ページ)を印刷開始待ちキューから取り出して排出完了待ちキューに入れ、ビデオデータの印刷設定を行う。そして、印刷設定が終了すると、印刷順序を入れ替えた旨をプリンタユニット制御部16に通知する。   Subsequently, the print control unit 15 takes out the page ID (front page) notified from the printer unit control unit 16 from the print start waiting queue and puts it in the discharge completion waiting queue, and performs print settings for video data. When the print setting is completed, the printer unit control unit 16 is notified that the printing order has been changed.

次に、フローチャートについて説明する。
ステップS91−1 両面印刷指定がTRUEであるか否かを判断する。両面印刷指定がTRUEである場合はステップS91−2に進み、両面印刷指定がFALSEである場合は処理を終了する。
ステップS91−2 印刷順序変更通知及び変更後のページIDを受け付けたか否かを判断する。印刷順序変更通知及び変更後のページIDを受け付けた場合はステップS91−3に進み、印刷順序変更通知及び変更後のページIDを受け付けていない場合はステップS91−7に進む。
ステップS91−3 既に設定した裏面のビデオデータの印刷を停止する。
ステップS91−4 裏面ページを両面印刷ユニット25の搬入待ちキューから取り出し、印刷開始待ちキューの先頭に入れる。
ステップS91−5 通知されたページIDのビデオデータの印刷設定を行う。
ステップS91−6 印刷順序を入れ替えた旨をプリンタユニット制御部16に通知する。
ステップS91−7 両面印刷手差しモードをTRUEにし、処理を終了する。
Next, a flowchart will be described.
Step S91-1: It is determined whether or not the duplex printing designation is TRUE. If the duplex printing designation is TRUE, the process proceeds to step S91-2. If the duplex printing designation is FALSE, the process ends.
Step S91-2: It is determined whether a print order change notification and a changed page ID have been received. If the print order change notification and the changed page ID are received, the process proceeds to step S91-3. If the print order change notification and the changed page ID are not received, the process proceeds to step S91-7.
Step S91-3: Printing of the video data on the back side that has already been set is stopped.
Step S91-4: Remove the back page from the carry-in queue of the duplex printing unit 25 and place it at the head of the print start queue.
Step S91-5: Print setting of the video data of the notified page ID is performed.
Step S91-6: The printer unit controller 16 is notified that the printing order has been changed.
Step S91-7: The duplex printing manual feed mode is set to TRUE, and the process is terminated.

次に、図29のステップS93における手差しからの印刷開始処理のサブルーチンについて説明する。   Next, the subroutine for the manual print start process in step S93 in FIG. 29 will be described.

図32は本発明の第3の実施の形態における手差しからの印刷開始処理のサブルーチンを示すフローチャートである。   FIG. 32 is a flowchart showing a subroutine for manual print start processing in the third embodiment of the present invention.

まず、オペレータパネル制御部37は、オペレータパネルに手差しトレイ28への媒体セットを促す表示を行い、該表示に対してユーザ確認を受け付けたことを印刷制御部15に通知する。そして、印刷制御部15は、手差しトレイ28に媒体がセットされているか否かを判断し、セットされている場合は前記媒体上に両面印刷ページの片面分のページを片面印刷する。   First, the operator panel control unit 37 displays on the operator panel a prompt to set a medium on the manual feed tray 28, and notifies the print control unit 15 that a user confirmation has been accepted for the display. Then, the print control unit 15 determines whether or not a medium is set on the manual feed tray 28. If the medium is set, the single-sided printing is performed on one side of the double-sided printing page on the medium.

次に、フローチャートについて説明する。
ステップS93−1 手差しトレイ28に媒体が挿入されているか否かを判断する。手差しトレイ28に媒体が挿入されている場合はステップS93−2に進み、手差しトレイ28に媒体が挿入されていない場合はステップS93−6に進む。
ステップS93−2 プリンタユニット制御部16に対して給紙トレイとして手差しトレイ28を指定する。
ステップS93−3 プリンタユニット制御部16に対して片面印刷であることを通知する。
ステップS93−4 プリンタユニット制御部16に対して既に付与済のページのページIDを通知する。
ステップS93−5 ページを印刷開始待ちキューに入れ、処理を終了する。
ステップS93−6 オペレータパネル制御部37に排出した媒体を手差しトレイ28に置くメッセージを表示するように依頼し、処理を終了する。
Next, a flowchart will be described.
Step S93-1: It is determined whether or not a medium is inserted in the manual feed tray. If a medium is inserted in the manual feed tray 28, the process proceeds to step S93-2, and if no medium is inserted in the manual feed tray 28, the process proceeds to step S93-6.
Step S93-2: The manual feed tray 28 is designated as the paper feed tray for the printer unit controller 16.
Step S93-3: Notify the printer unit controller 16 that single-sided printing is being performed.
Step S93-4: The printer unit controller 16 is notified of the page ID of the already assigned page.
Step S93-5: The page is placed in the print start waiting queue, and the process is terminated.
Step S93-6: The operator panel control unit 37 is requested to display a message for placing the discharged medium on the manual feed tray 28, and the process is terminated.

次に、前記プリンタユニット制御部16の動作について説明する。   Next, the operation of the printer unit controller 16 will be described.

なお、プリンタユニット制御部16のメイン動作については、前記第2の実施の形態におけるプリンタユニット制御部16のメイン動作(図25)と同様であるので説明を省略する。また、プリンタユニット制御部16における給紙トレイからの給紙開始処理(図16)、両面印刷判別処理(図26)、印刷開始処理(図19)、カセット引抜き検出処理(図22)、及び、印刷再開処理(図27)の動作についても、前記第1又は第2の実施の形態と同様であるので説明を省略する。   The main operation of the printer unit control unit 16 is the same as the main operation (FIG. 25) of the printer unit control unit 16 in the second embodiment, and a description thereof will be omitted. In addition, the printer unit control unit 16 starts paper feed from the paper feed tray (FIG. 16), duplex printing discrimination processing (FIG. 26), print start processing (FIG. 19), cassette pull-out detection processing (FIG. 22), and Since the operation of the print resumption process (FIG. 27) is the same as that in the first or second embodiment, the description thereof is omitted.

次に、図25のステップS65における印刷順序決定処理のサブルーチンについて説明する。   Next, a subroutine of the printing order determination process in step S65 in FIG. 25 will be described.

図33は本発明の第3の実施の形態における印刷順序決定処理のサブルーチンを示すフローチャートである。   FIG. 33 is a flowchart showing a subroutine of the printing order determination process in the third embodiment of the present invention.

まず、プリンタユニット制御部16は、両面印刷指定フラグがTRUEであるか否かを判断し、両面印刷指定フラグがTRUEでない場合、片面印刷であるので、媒体に印刷される予定ページのページIDを印刷制御部15に通知し、媒体の行き先を排出口26とする。   First, the printer unit control unit 16 determines whether or not the double-sided printing designation flag is TRUE. If the double-sided printing designation flag is not TRUE, the printer unit control unit 16 performs single-sided printing, so the page ID of the scheduled page to be printed on the medium is set. The print control unit 15 is notified and the destination of the medium is set as the discharge port 26.

また、両面印刷指定フラグがTRUEである場合は、両面印刷であるので、前記媒体の給紙元が給紙トレイであるか両面印刷ユニット25であるかを判断する。そして、給紙元が両面印刷ユニット25である場合は、既にこの媒体の裏面は印刷済であるので、表面ページのページIDを印刷制御部15に通知し、媒体の行き先を排出口26とする。   If the double-sided printing designation flag is TRUE, double-sided printing is performed, so it is determined whether the medium is fed from the paper feed tray or the double-sided printing unit 25. If the paper supply source is the duplex printing unit 25, the back side of the medium has already been printed, so the page ID of the front page is notified to the print control unit 15, and the destination of the medium is set as the discharge port 26. .

また、給紙元が給紙トレイである場合は、両面印刷可能フラグがFALSEであるか否かを判断する。そして、両面印刷可能フラグがFALSEでない場合、すなわち、媒体の両面印刷が可能である場合は、前記媒体の裏面ページから印刷することとし、裏面ページのページIDを印刷制御部15に通知し、媒体の行き先を両面印刷ユニット25とする。   If the paper feed source is a paper feed tray, it is determined whether the double-sided print enable flag is FALSE. When the double-sided printable flag is not FALSE, that is, when double-sided printing of the medium is possible, printing is performed from the backside page of the medium, and the page ID of the backside page is notified to the print control unit 15, and the medium Is the double-sided printing unit 25.

また、両面印刷可能フラグがFALSEである場合、すなわち、媒体の両面印刷が不可能である場合は、両面指定のページの表面を片面印刷する。そして、片面印刷した媒体を排出した後で、ユーザが前記媒体を手差しトレイ28にセットすると、印刷装置12は手差しトレイ28から前記媒体を給紙し、裏面ページの片面印刷を実施する。   If the double-sided printing enable flag is FALSE, that is, if double-sided printing of the medium is impossible, the single-sided printing is performed on the surface of the page designated for double-sided printing. When the user sets the medium on the manual feed tray 28 after discharging the single-side printed medium, the printing apparatus 12 feeds the medium from the manual feed tray 28 and performs single-sided printing of the back page.

次に、プリンタユニット制御部16は、表面ページから印刷するとして表面ページのページIDを印刷制御部15に通知し、続いて、印刷制御部15に両面印刷不可であることを通知し、媒体の行き先を排出口26とする。   Next, the printer unit control unit 16 notifies the print control unit 15 of the page ID of the front page for printing from the front page, and then notifies the print control unit 15 that double-sided printing is not possible. The destination is the outlet 26.

次に、フローチャートについて説明する。
ステップS65−1 両面印刷指定フラグがTRUEであるか否かを判断する。両面印刷指定フラグがTRUEである場合はステップS65−4に進み、両面印刷指定フラグがTRUEでない場合はステップS65−2に進む。
ステップS65−2 片面印刷であるので、印刷制御部15から通知された媒体用のページIDを今回印刷するページとする。
ステップS65−3 媒体の行き先を排出口26とし、処理を終了する。
ステップS65−4 この媒体の給紙元が給紙トレイであるか両面印刷ユニット25であるかを判断する。給紙元がトレイである場合はステップS65−7に進み、給紙元が両面印刷ユニット25である場合はステップS65−5に進む。
ステップS65−5 両面印刷中であるので、印刷制御部15から通知されたこの媒体の表面ページのページIDを今回印刷するページとする。
ステップS65−6 媒体の行き先を排出口26とし、処理を終了する。
ステップS65−7 両面印刷可能フラグがFALSEであるか否かを判断する。両面印刷可能フラグがFALSEである場合はステップS65−10に進み、両面印刷可能フラグがTRUEである場合はステップS65−8に進む。
ステップS65−8 両面印刷が可能であるので、印刷制御部15から通知されたこの媒体の裏面用のページIDを今回印刷するページとする。
ステップS65−9 媒体の行き先を両面印刷ユニット25とし、処理を終了する。
ステップS65−10 両面印刷不可であるので、印刷制御部15から通知されたこの媒体の表面用のページIDを今回印刷するページとする。
ステップS65−11 両面印刷不可であることを印刷制御部15に通知する。
ステップS65−12 媒体の行き先を排出口26とし、処理を終了する。
Next, a flowchart will be described.
Step S65-1: Determine whether the duplex printing designation flag is TRUE. If the duplex printing designation flag is TRUE, the process proceeds to step S65-4. If the duplex printing designation flag is not TRUE, the process proceeds to step S65-2.
Step S65-2 Since single-sided printing is performed, the page ID for the medium notified from the print control unit 15 is set as the page to be printed this time.
Step S65-3: The destination of the medium is set as the discharge port 26, and the process is terminated.
Step S65-4: It is determined whether the paper supply source is the paper supply tray or the duplex printing unit 25. If the paper source is a tray, the process proceeds to step S65-7. If the paper source is the duplex printing unit 25, the process proceeds to step S65-5.
Step S65-5 Since duplex printing is in progress, the page ID of the front page of the medium notified from the print control unit 15 is set as the page to be printed this time.
Step S65-6: The destination of the medium is the discharge port 26, and the process is terminated.
Step S65-7: It is determined whether or not the double-sided print enable flag is FALSE. If the double-sided printable flag is FALSE, the process proceeds to step S65-10. If the double-sided printable flag is TRUE, the process proceeds to step S65-8.
Step S65-8 Since double-sided printing is possible, the page ID for the back side of this medium notified from the print control unit 15 is set as the page to be printed this time.
Step S65-9: The destination of the medium is the duplex printing unit 25, and the process is terminated.
Step S65-10 Since double-sided printing is not possible, the page ID for the surface of the medium notified from the print control unit 15 is set as the page to be printed this time.
Step S65-11: Notifies the print controller 15 that double-sided printing is not possible.
Step S65-12: The destination of the medium is set as the outlet 26, and the process is terminated.

次に、図25のステップS73における媒体排出処理のサブルーチンについて説明する。   Next, the subroutine for medium discharge processing in step S73 in FIG. 25 will be described.

図34は本発明の第3の実施の形態における媒体排出処理のサブルーチンを示すフローチャートである。   FIG. 34 is a flowchart showing a subroutine of medium discharge processing in the third embodiment of the present invention.

まず、プリンタユニット制御部16は、媒体の排出を検出すると、該媒体上に印刷されたページのページIDとともに、排出完了を印刷制御部15に通知する。   First, when detecting the discharge of the medium, the printer unit control unit 16 notifies the print control unit 15 of the discharge completion together with the page ID of the page printed on the medium.

続いて、両面印刷可能フラグがFALSEであり、かつ、両面印刷指定がTRUE、すなわち、両面印刷ページであるが両面印刷不可媒体が検出されたか否かを判断する。そして、両面印刷可能フラグがFALSEであり、かつ、両面印刷指定がTRUEである場合は、印刷を停止し、手差しトレイ28からの印刷開始を待つ。また、両面印刷可能フラグがFALSEであり、かつ、両面印刷指定がTRUEでない場合は処理を終了する。   Subsequently, it is determined whether or not the double-sided printing enable flag is FALSE and the double-sided printing designation is TRUE, that is, a double-sided printing page but a double-sided printing impossible medium is detected. If the double-sided printing enable flag is FALSE and the double-sided printing designation is TRUE, printing is stopped and the start of printing from the manual feed tray 28 is awaited. If the double-sided printing enable flag is FALSE and the double-sided printing designation is not TRUE, the process ends.

次に、フローチャートについて説明する。
ステップS73−1 媒体を排出したことを印刷制御部15に通知する。
ステップS73−2 両面印刷可能フラグがFALSEであり、かつ、両面印刷指定がTRUEであるか否かを判断する。両面印刷可能フラグがFALSEであり、かつ、両面印刷指定がTRUEである場合はステップS73−3に進み、両面印刷可能フラグがFALSEであり、かつ、両面印刷指定がTRUEでない場合は処理を終了する。
ステップS73−3 印刷を停止し、手差しトレイ28からの印刷開始を待ち、処理を終了する。
Next, a flowchart will be described.
Step S73-1: The print controller 15 is notified that the medium has been discharged.
Step S73-2: It is determined whether or not the duplex printing enable flag is FALSE and the duplex printing designation is TRUE. If the duplex print enable flag is FALSE and the duplex print designation is TRUE, the process proceeds to step S73-3. If the duplex print enable flag is FALSE and the duplex print designation is not TRUE, the process ends. .
Step S73-3 Stops printing, waits for printing to start from the manual feed tray 28, and ends the process.

次に、前記オペレータパネル制御部37の動作について説明する。   Next, the operation of the operator panel control unit 37 will be described.

図35は本発明の第3の実施の形態におけるオペレータパネル制御部の動作を示すフローチャートである。   FIG. 35 is a flowchart showing the operation of the operator panel control unit in the third embodiment of the present invention.

まず、オペレータパネル制御部37は、イベント待ちをしていて、キー入力を受け付けると、キー入力判断処理を行う。   First, the operator panel control unit 37 waits for an event and performs key input determination processing when receiving a key input.

続いて、ジョブ受信開始処理によってジョブの翻訳を完了すると、ジョブ翻訳完了処理を行い、パネル表示依頼を受け付けると、LCDパネル等に依頼を受けた文字列を表示する。   Subsequently, when job translation is completed by job reception start processing, job translation completion processing is performed. When a panel display request is received, the requested character string is displayed on the LCD panel or the like.

次に、フローチャートについて説明する。
ステップS101 イベント待ちをする。
ステップS102 キー入力を受け付けたか否かを判断する。キー入力を受け付けた場合はステップS103に進み、キー入力を受け付けていない場合はステップS104に進む。
ステップS103 キー入力判断処理を行う。
ステップS104 パネル表示依頼を受け付けたか否かを判断する。パネル表示依頼を受け付けた場合はステップS105に進み、パネル表示依頼を受け付けていない場合はステップS101に戻る。
ステップS105 パネル表示処理を行い、ステップS101に戻る。
Next, a flowchart will be described.
Step S101 Wait for an event.
Step S102: It is determined whether a key input is accepted. If a key input is accepted, the process proceeds to step S103, and if no key input is accepted, the process proceeds to step S104.
Step S103 A key input determination process is performed.
Step S104: It is determined whether a panel display request has been accepted. If a panel display request is accepted, the process proceeds to step S105. If a panel display request is not accepted, the process returns to step S101.
Step S105: Panel display processing is performed, and the process returns to step S101.

このように、本実施の形態においては、給紙トレイから給紙した媒体が既に両面印刷不可媒体であることが認識されている場合、両面印刷ジョブの片面だけを印刷して一旦媒体を排出する。そして、その後、媒体の印刷されていないもう片面への印刷を行うために、ユーザに対して片面印刷済の媒体を再度給紙トレイに置くように促し、同じ媒体を給紙トレイから引き込んでもう片面の印刷を行う。これにより、一つの媒体の両面への印刷を行うことができる。   As described above, in this embodiment, when it is recognized that the medium fed from the paper feed tray is already a medium that cannot be printed on both sides, only one side of the duplex printing job is printed and the medium is discharged once. . Then, in order to print on the other side where the medium is not printed, the user is urged to put the medium that has been printed on one side in the paper feed tray again, and the same medium is pulled from the paper feed tray. Print on one side. Thereby, printing on both sides of one medium can be performed.

なお、本発明は前記実施の形態に限定されるものではなく、本発明の趣旨に基づいて種々変形させることが可能であり、それらを本発明の範囲から排除するものではない。   In addition, this invention is not limited to the said embodiment, It can change variously based on the meaning of this invention, and does not exclude them from the scope of the present invention.

本発明は、印刷装置、印刷方法及び印刷システムに利用することができる。   The present invention can be used in a printing apparatus, a printing method, and a printing system.

11 上位装置
12 印刷装置
13 受信処理部
15 印刷制御部
16 プリンタユニット制御部
23 媒体自動判別機構
24 第1の用紙走行経路
25 両面印刷ユニット
27 印刷順序決定限界地点
DESCRIPTION OF SYMBOLS 11 Host apparatus 12 Printing apparatus 13 Reception processing part 15 Print control part 16 Printer unit control part 23 Automatic medium discrimination mechanism 24 First paper travel path 25 Duplex printing unit 27 Printing order determination limit point

Claims (19)

上位装置とデータの送受信を行う受信処理部と、
該受信処理部が受信した印刷データを媒体に印刷可能な画像データに変換し、前記媒体の各面に対して第1の印刷ページ及び第2の印刷ページを設定し、前記媒体の各面への印刷を制御する制御手段と、
前記媒体が走行し、該媒体へ前記画像データを印刷する用紙走行経路と、
該用紙走行経路で前記画像データが印刷された媒体を排出する排出部と、
前記媒体の印刷される面を反転する媒体反転手段と、
前記媒体が両面印刷可能であるか否かを判別する媒体判別手段とを有し、
前記制御手段は、
前記媒体判別手段が前記媒体は両面印刷可能であると判別すると、前記画像データを裏面、表面の順で印刷するように設定し、前記媒体の裏面に第2の印刷ページが印刷された後に前記媒体を前記媒体反転手段によって反転させて前記用紙走行経路に送り込み、前記媒体の表面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させる処理を行い、
前記媒体判別手段が前記媒体は両面印刷不可能であると判別すると、前記画像データを表面、裏面の順で印刷するように設定し、前記媒体の一方の面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させ、前記媒体と異なる媒体の一方の面に第2の印刷ページが印刷された後に前記異なる媒体を前記排出部によって排出させる処理を行う
ことを特徴とする印刷装置。
A reception processing unit that transmits and receives data to and from the host device;
Print data received by the reception processing unit is converted into image data that can be printed on a medium, a first print page and a second print page are set for each side of the medium, and each side of the medium is set. Control means for controlling printing of
A paper travel path on which the medium travels and prints the image data on the medium;
A discharge unit for discharging the medium on which the image data is printed in the paper travel path;
Medium reversing means for reversing the printed surface of the medium;
Medium discrimination means for discriminating whether or not the medium is capable of duplex printing;
The control means includes
When the medium determining unit determines that the medium can be printed on both sides, the image data is set to be printed in the order of the back side and the front side, and the second print page is printed on the back side of the medium. The medium is reversed by the medium reversing means and sent to the paper travel path, and after the first print page is printed on the surface of the medium, the medium is discharged by the discharge unit.
When the medium determination unit determines that the medium cannot be printed on both sides, the image data is set to be printed in the order of the front side and the back side, and a first print page is printed on one side of the medium. And after the second print page is printed on one surface of a medium different from the medium, the different medium is discharged by the discharge section. Printing device.
前記制御手段は、両面印刷のために媒体収容手段から給紙した媒体に対して、該媒体の後端が印刷順序決定限界地点に達するまでに、前記媒体判別手段によって両面印刷不可能であると判別されたか否かを判断する請求項1に記載の印刷装置。 The control unit is configured such that, with respect to a medium fed from the medium storage unit for duplex printing, duplex printing by the medium determination unit is not possible until the trailing edge of the medium reaches a printing order determination limit point. The printing apparatus according to claim 1, wherein it is determined whether or not it has been determined. 前記制御手段は、両面印刷のために媒体収容手段から給紙した媒体に対して、前記媒体判別手段によって媒体が両面印刷不可能であると判別された場合、前記第1の印刷ページが未印刷であり、かつ、前記第2の印刷ページの印刷動作を行っているときには、前記第2の印刷ページの印刷動作を停止し、前記媒体に対して前記第1の印刷ページを優先して片面印刷し、続いて、前記媒体と異なる媒体に前記第2の印刷ページを片面印刷する請求項1に記載の印刷装置。 When the medium determining unit determines that the medium cannot be double-sided printed with respect to the medium fed from the medium storage unit for double-sided printing, the first printed page is not printed. When the printing operation of the second print page is being performed, the printing operation of the second print page is stopped, and the first print page is preferentially printed on the medium with respect to the medium. Subsequently, the printing apparatus according to claim 1, wherein the second print page is printed on one side on a medium different from the medium. 前記媒体判別手段は前記媒体の長さを判別する請求項1〜3のいずれか1項に記載の印刷装置。 The printing apparatus according to claim 1, wherein the medium determination unit determines the length of the medium. 前記媒体判別手段は接触センサである請求項4に記載の印刷装置。 The printing apparatus according to claim 4, wherein the medium determination unit is a contact sensor. 前記媒体判別手段は前記媒体の種類を判別する請求項1〜3のいずれか1項に記載の印刷装置。 The printing apparatus according to claim 1, wherein the medium determination unit determines a type of the medium. 前記媒体の種類は透過性媒体及び普通紙である請求項6に記載の印刷装置。 The printing apparatus according to claim 6, wherein the type of the medium is a transmissive medium or plain paper. 前記媒体判別手段は光学センサである請求項6に記載の印刷装置。 The printing apparatus according to claim 6, wherein the medium determination unit is an optical sensor. 前記媒体判別手段は前記媒体の厚さを判別する請求項1〜3のいずれか1項に記載の印刷装置。 The printing apparatus according to claim 1, wherein the medium determining unit determines the thickness of the medium. 前記媒体判別手段は距離センサである請求項9に記載の印刷装置。 The printing apparatus according to claim 9, wherein the medium determination unit is a distance sensor. 前記媒体反転手段は媒体を複数枚保持する請求項1〜10のいずれか1項に記載の印刷装置。 The printing apparatus according to claim 1, wherein the medium reversing unit holds a plurality of media. 前記媒体反転手段は媒体を2枚保持する請求項1〜10のいずれか1項に記載の印刷装置。 The printing apparatus according to claim 1, wherein the medium reversing unit holds two sheets of media. 前記制御手段は、両面印刷のために前記収容手段から給紙した媒体に対して、前記媒体判別手段によって媒体が両面印刷不可媒体であると判別された場合、前記媒体反転手段が保持する枚数の媒体の第2面に画像データを印刷した後、第2面に画像データが印刷され前記媒体反転手段に保持されている媒体の第1面に画像データを印刷する請求項11又は12に記載の印刷装置。 The control means determines the number of sheets held by the medium reversing means when the medium determining means determines that the medium is a double-sided non-printable medium for the medium fed from the storage means for double-sided printing. 13. The image data is printed on the second surface of the medium, and then the image data is printed on the second surface of the medium, and the image data is printed on the first surface of the medium held by the medium reversing unit. Printing device. 前記制御手段は、前記媒体判別手段によって前記収容手段に収容されている媒体が両面印刷を実現することが可能か否かが判別されると、前記媒体判別手段の判別結果を前記収容手段が前記印刷装置から引き出されるまで保持する請求項1〜13のいずれか1項に記載の印刷装置。 When it is determined by the medium determination unit whether the medium stored in the storage unit can realize double-sided printing, the storage unit displays the determination result of the medium determination unit. The printing apparatus according to claim 1, wherein the printing apparatus is held until pulled out from the printing apparatus. 前記制御手段は、両面印刷を実現することが不可能である場合、表示部に片面印刷となったことを表示する請求項1〜14のいずれか1項に記載の印刷装置。 The printing apparatus according to claim 1, wherein when the double-sided printing cannot be realized, the control unit displays that single-sided printing has been performed on the display unit. 前記制御手段は、両面印刷を実現することが不可能であって片面印刷となった場合、前記第1面と第2面の印刷順番が入れ替わったか否かを判断し、印刷順番が入れ替わったと判断すると印刷順番の入れ替わりを表示する請求項15に記載の印刷装置。 The control means determines whether or not the printing order of the first side and the second side has been switched when it is impossible to realize double-sided printing and single-sided printing has been performed, and determines that the printing order has been switched. The printing apparatus according to claim 15, wherein a printing order change is displayed. LCDパネルを更に有し、前記制御手段は、両面印刷の可否又は印刷順番の入れ替わりの判断結果の少なくともいずれか一方を前記LCDパネルに表示する請求項15又は16に記載の印刷装置。 The printing apparatus according to claim 15, further comprising an LCD panel, wherein the control unit displays on the LCD panel at least one of the determination result of whether double-sided printing is possible or whether the printing order is changed. 上位装置とデータの送受信を行い、
受信した印刷データを媒体に印刷可能な画像データに変換し、前記媒体の各面に対して第1の印刷ページ及び第2の印刷ページを設定し、前記媒体の各面への印刷を制御し、
用紙走行経路を走行する前記媒体へ前記画像データを印刷し、
前記用紙走行経路で前記画像データが印刷された媒体を排出し、
該媒体の印刷される面を反転し、
前記媒体が両面印刷可能であるか否かを判別する印刷方法であって、
前記媒体は両面印刷可能であると判別すると、前記画像データを裏面、表面の順で印刷するように設定し、前記媒体の裏面に第2の印刷ページを印刷した後に前記媒体を反転させて前記用紙走行経路に送り込み、前記媒体の表面に第1の印刷ページを印刷した後に前記媒体を排出する処理を行い、
前記媒体は両面印刷不可能であると判別すると、前記画像データを表面、裏面の順で印刷するように設定し、前記媒体の一方の面に第1の印刷ページを印刷した後に前記媒体を排出し、前記媒体と異なる媒体の一方の面に第2の印刷ページを印刷した後に前記異なる媒体を排出する処理を行う
ことを特徴とする印刷方法。
Send and receive data with the host device,
The received print data is converted into image data that can be printed on a medium, a first print page and a second print page are set for each side of the medium, and printing on each side of the medium is controlled. ,
Printing the image data on the medium traveling on the paper travel route;
Discharging the medium on which the image data is printed in the paper travel path;
Reverse the printed side of the medium,
A printing method for determining whether the medium is capable of duplex printing,
If it is determined that the medium can be printed on both sides, the image data is set to be printed in the order of the back side and the front side, and after the second print page is printed on the back side of the medium, the medium is reversed to Sending to the paper travel path, printing the first print page on the surface of the medium, and discharging the medium;
If it is determined that the medium cannot be printed on both sides, the image data is set to be printed in the order of the front side and the back side, and the first print page is printed on one side of the medium, and then the medium is ejected. And printing a second print page on one surface of a medium different from the medium, and then discharging the different medium.
上位装置と、該上位装置から受信した印刷データを印刷する印刷装置とを有する印刷システムであって、
前記上位装置は、前記印刷データを接続手段によって前記印刷装置へ送信し、
該印刷装置は、
前記上位装置とデータの送受信を行う受信処理部と、
該受信処理部が受信した印刷データを媒体に印刷可能な画像データに変換し、前記媒体の各面に対して第1の印刷ページ及び第2の印刷ページを設定し、前記媒体の各面への印刷を制御する制御手段と、
前記媒体が走行し、該媒体へ前記画像データを印刷する用紙走行経路と、
該用紙走行経路で前記画像データが印刷された媒体を排出する排出部と、
前記媒体の印刷される面を反転する媒体反転手段と、
前記媒体が両面印刷可能であるか否かを判別する媒体判別手段とを備え、
前記制御手段は、
前記媒体判別手段が前記媒体は両面印刷可能であると判別すると、前記画像データを裏面、表面の順で印刷するように設定し、前記媒体の裏面に第2の印刷ページが印刷された後に前記媒体を前記媒体反転手段によって反転させて前記用紙走行経路に送り込み、前記媒体の表面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させる処理を行い、
前記媒体判別手段が前記媒体は両面印刷不可能であると判別すると、前記画像データを表面、裏面の順で印刷するように設定し、前記媒体の一方の面に第1の印刷ページが印刷された後に前記媒体を前記排出部によって排出させ、前記媒体と異なる媒体の一方の面に第2の印刷ページが印刷された後に前記異なる媒体を前記排出部によって排出させる処理を行う
ことを特徴とする印刷システム。
A printing system having a host device and a printing device that prints print data received from the host device,
The upper device transmits the print data to the printing device by a connection unit,
The printing apparatus includes:
A reception processing unit that transmits and receives data to and from the host device;
Print data received by the reception processing unit is converted into image data that can be printed on a medium, a first print page and a second print page are set for each side of the medium, and each side of the medium is set. Control means for controlling printing of
A paper travel path on which the medium travels and prints the image data on the medium;
A discharge unit for discharging the medium on which the image data is printed in the paper travel path;
Medium reversing means for reversing the printed surface of the medium;
Medium discriminating means for discriminating whether or not the medium is capable of duplex printing;
The control means includes
When the medium determining unit determines that the medium can be printed on both sides, the image data is set to be printed in the order of the back side and the front side, and the second print page is printed on the back side of the medium. The medium is reversed by the medium reversing means and sent to the paper travel path, and after the first print page is printed on the surface of the medium, the medium is discharged by the discharge unit.
When the medium determination unit determines that the medium cannot be printed on both sides, the image data is set to be printed in the order of the front side and the back side, and a first print page is printed on one side of the medium. And after the second print page is printed on one surface of a medium different from the medium, the different medium is discharged by the discharge section. Printing system.
JP2009021110A 2009-02-02 2009-02-02 Printing apparatus, printing method, and printing system Expired - Lifetime JP4698744B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009021110A JP4698744B2 (en) 2009-02-02 2009-02-02 Printing apparatus, printing method, and printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009021110A JP4698744B2 (en) 2009-02-02 2009-02-02 Printing apparatus, printing method, and printing system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003208940A Division JP4276487B2 (en) 2003-08-27 2003-08-27 Printing device

Publications (2)

Publication Number Publication Date
JP2009154540A true JP2009154540A (en) 2009-07-16
JP4698744B2 JP4698744B2 (en) 2011-06-08

Family

ID=40959046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009021110A Expired - Lifetime JP4698744B2 (en) 2009-02-02 2009-02-02 Printing apparatus, printing method, and printing system

Country Status (1)

Country Link
JP (1) JP4698744B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011177905A (en) * 2010-02-26 2011-09-15 Canon Inc Print control apparatus, method and program
JP2014012410A (en) * 2013-08-21 2014-01-23 Canon Inc Print control apparatus, method, and program
US8891093B2 (en) 2011-03-23 2014-11-18 Oki Data Corporation Image forming apparatus
CN104210240A (en) * 2013-06-03 2014-12-17 立志凯株式会社 Printing apparatus and printing method
US9138984B2 (en) 2010-03-24 2015-09-22 Canon Kabushiki Kaisha Apparatus capable of executing printing on both surfaces of a continuous sheet and printing control method for executing printing on both surfaces of a continuous sheet
JP2015214066A (en) * 2014-05-09 2015-12-03 京セラドキュメントソリューションズ株式会社 Image forming apparatus
US9438758B2 (en) * 2014-09-18 2016-09-06 Kyocera Document Solutions Inc. Image forming apparatus
JP2019018416A (en) * 2017-07-13 2019-02-07 キヤノン株式会社 Recording device and recording control method of the same
US10725415B2 (en) 2018-04-25 2020-07-28 Canon Kabushiki Kaisha Image forming apparatus and image forming method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09278252A (en) * 1996-04-08 1997-10-28 Canon Inc Image forming device
JP2001094763A (en) * 1999-09-24 2001-04-06 Murata Mach Ltd Facsimile equipment
JP2001213031A (en) * 2000-02-02 2001-08-07 Casio Electronics Co Ltd Printer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09278252A (en) * 1996-04-08 1997-10-28 Canon Inc Image forming device
JP2001094763A (en) * 1999-09-24 2001-04-06 Murata Mach Ltd Facsimile equipment
JP2001213031A (en) * 2000-02-02 2001-08-07 Casio Electronics Co Ltd Printer

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011177905A (en) * 2010-02-26 2011-09-15 Canon Inc Print control apparatus, method and program
US8641305B2 (en) 2010-02-26 2014-02-04 Canon Kabushiki Kaisha Print control apparatus and method for interruption-handling of duplex printing
US9138984B2 (en) 2010-03-24 2015-09-22 Canon Kabushiki Kaisha Apparatus capable of executing printing on both surfaces of a continuous sheet and printing control method for executing printing on both surfaces of a continuous sheet
US8891093B2 (en) 2011-03-23 2014-11-18 Oki Data Corporation Image forming apparatus
CN104210240A (en) * 2013-06-03 2014-12-17 立志凯株式会社 Printing apparatus and printing method
US9139018B2 (en) 2013-06-03 2015-09-22 Nisca Corporation Printing apparatus and printing method
JP2014012410A (en) * 2013-08-21 2014-01-23 Canon Inc Print control apparatus, method, and program
JP2015214066A (en) * 2014-05-09 2015-12-03 京セラドキュメントソリューションズ株式会社 Image forming apparatus
US9238561B2 (en) * 2014-05-09 2016-01-19 Kyocera Document Solutions Inc. Image forming apparatus
US9438758B2 (en) * 2014-09-18 2016-09-06 Kyocera Document Solutions Inc. Image forming apparatus
JP2019018416A (en) * 2017-07-13 2019-02-07 キヤノン株式会社 Recording device and recording control method of the same
US10725415B2 (en) 2018-04-25 2020-07-28 Canon Kabushiki Kaisha Image forming apparatus and image forming method

Also Published As

Publication number Publication date
JP4698744B2 (en) 2011-06-08

Similar Documents

Publication Publication Date Title
JP4698744B2 (en) Printing apparatus, printing method, and printing system
JP2010159130A (en) Image forming device
JP2009226706A (en) Printing apparatus
JP2009202575A (en) Image forming apparatus, medium feed control method and computer program
JP2011177906A (en) Print control apparatus, method and program
JP4276487B2 (en) Printing device
JP2007076782A (en) Manual paper feed device, image forming device, manual feed method, and image forming method
JP5587147B2 (en) Printing device
JP5783746B2 (en) Printing control apparatus, method and program
JP2008262103A (en) Controller for printer, printing system and control program for printer
JP2018118832A (en) Image formation system, job execution method, and job execution program
JP2015202684A (en) Image formation device
JP5592823B2 (en) Image forming apparatus
JP2018069606A (en) Image formation system
JP5327548B2 (en) Double-sided printer
US9405258B2 (en) Image forming apparatus
JP2009216780A (en) Image forming apparatus, its printing control method and program
JP2015225158A (en) Image forming apparatus
JP2019112185A (en) Sheet sorting device and image formation apparatus
JP3768696B2 (en) Sheet processing apparatus and method for controlling sheet processing apparatus
JP2012093427A (en) Image forming device
JP2013086480A (en) Printing control apparatus, method, and program
EP4043376A2 (en) Sheet stacking apparatus, printing apparatus, control method, and program
JP2005041204A (en) Recording apparatus and method for discriminating type of recording medium
JP2005193486A (en) Image forming apparatus, image forming system, computer program, and recording medium

Legal Events

Date Code Title Description
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: 20110301

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110301

R150 Certificate of patent or registration of utility model

Ref document number: 4698744

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term