JP7384032B2 - Printing device, control method, and control program - Google Patents

Printing device, control method, and control program Download PDF

Info

Publication number
JP7384032B2
JP7384032B2 JP2019238691A JP2019238691A JP7384032B2 JP 7384032 B2 JP7384032 B2 JP 7384032B2 JP 2019238691 A JP2019238691 A JP 2019238691A JP 2019238691 A JP2019238691 A JP 2019238691A JP 7384032 B2 JP7384032 B2 JP 7384032B2
Authority
JP
Japan
Prior art keywords
printing
rip
area
control unit
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.)
Active
Application number
JP2019238691A
Other languages
Japanese (ja)
Other versions
JP2021108418A (en
Inventor
直樹 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2019238691A priority Critical patent/JP7384032B2/en
Publication of JP2021108418A publication Critical patent/JP2021108418A/en
Application granted granted Critical
Publication of JP7384032B2 publication Critical patent/JP7384032B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、印刷装置、制御方法、及び制御プログラムに関する。 The present invention relates to a printing device, a control method, and a control program.

記録用紙等の媒体に印刷処理を行う印刷装置として、割込印刷機能を有するものが知られている。割込印刷機能は、印刷装置が印刷処理を実行している途中で、その印刷処理とは別の印刷処理を実行する機能である。 2. Description of the Related Art As a printing device that performs printing processing on a medium such as recording paper, one having an interrupt printing function is known. The interrupt printing function is a function that executes a print process other than the print process while the printing device is executing the print process.

特許文献1には、実行中の印刷処理に対する割込予告を受け付けた際に、割込ボタンが操作されてから実行ボタンが操作されるまでの間を利用して、RIP(Raster Image Processor)処理を継続して実行する画像記録装置が開示されている。 Patent Document 1 discloses that when an interrupt notice for print processing that is being executed is received, RIP (Raster Image Processor) processing is performed using the period from when an interrupt button is operated until when an execution button is operated. An image recording apparatus that continuously performs the following is disclosed.

特開2016-193514号公報(2016年11月17日公開)Japanese Patent Application Publication No. 2016-193514 (published on November 17, 2016)

本発明の一態様は、先に印刷処理が実行されている際に割込印刷処理が実行された場合でも、実行されていた印刷処理の完了が割込印刷処理が実行されなかった場合と比較して遅くなってしまうことを低減させることを目的とする。 According to one aspect of the present invention, even if interrupt print processing is executed while print processing is being executed first, the completion of the print processing that was being executed is compared to the case where interrupt print processing was not executed. The purpose is to reduce the delay caused by

前記の課題を解決するために、本発明の一態様に係る印刷装置は、画像を記録媒体に印刷する印刷部と、外部端末から、ページ記述言語で記述された第1データを受信する通信部と、ユーザの操作を受け付ける操作パネルと、前記操作パネルによる入力に応じて原稿の画像を読み取る画像読取部と、記憶部と、制御部と、を備え、前記記憶部には、前記通信部により受信される第1データを記憶する受信バッファ領域、RIP処理において用いられるワーク領域、及び、前記RIP処理により生成されるラスターデータを記憶するページメモリ領域が設けられ、前記制御部は、前記受信バッファ領域に記憶されている前記第1データを解析し、前記ワーク領域を用いてラスターデータを生成するRIP処理と、前記RIP処理により生成された前記ラスターデータに基づく画像を、前記印刷部を用いて印刷する第1印刷処理と、前記画像読取部によって読み取られた原稿の画像である第2データを、前記印刷部を用いて印刷する第2印刷処理と、前記第1印刷処理の実行中に、前記第2印刷処理を実行する割込印刷の指示を前記操作パネルにより受け付ける割込受付処理と、前記割込受付処理により前記割込印刷の指示が受け付けられると、前記ページメモリ領域を前記ワーク領域に拡張し、前記第1印刷処理を停止させるとともに、前記RIP処理を継続し、継続される前記RIP処理により生成される前記ラスターデータを、拡張された前記ページメモリ領域に記憶していく、RIP継続処理と、を実行する。 In order to solve the above problems, a printing device according to one aspect of the present invention includes a printing unit that prints an image on a recording medium, and a communication unit that receives first data written in a page description language from an external terminal. an operation panel that receives user operations; an image reading section that reads an image of a document in response to input from the operation panel; a storage section; and a control section; A reception buffer area for storing first data to be received, a work area for use in RIP processing, and a page memory area for storing raster data generated by the RIP processing are provided, and the control unit controls the reception buffer area for storing first data to be received. A RIP process that analyzes the first data stored in the area and generates raster data using the work area, and an image based on the raster data generated by the RIP process using the print unit. During execution of a first printing process of printing, a second printing process of printing second data, which is an image of a document read by the image reading unit, using the printing unit, and the first printing process, an interrupt acceptance process in which an interrupt print instruction for executing the second print process is accepted by the operation panel; and when the interrupt print instruction is accepted by the interrupt acceptance process, the page memory area is transferred to the work area; RIP processing that expands the first printing process to stop the first print process, continues the RIP process, and stores the raster data generated by the continued RIP process in the expanded page memory area. Execute continuation processing.

上述した構成によれば、第2印刷処理の割込を受け付けた場合、実行中であった(割り込まれた側の)第1印刷処理は停止するが、RIP処理は継続して実行される。このとき、RIP処理のワーク領域の一部が、ラスターデータを記憶するページメモリ領域として用いられる。そのため、ラスターデータを記憶するページメモリ領域が大きくなり、第1印刷処理を停止している状態であってもRIP処理を続行することができる。したがって、先に印刷処理が実行されている際に割込印刷処理が実行された場合でも、実行されていた印刷処理の完了が割込印刷処理が実行されなかった場合と比較して遅くなってしまうことを低減させることができる。 According to the above-described configuration, when an interruption of the second print process is accepted, the first print process that is being executed (on the interrupted side) is stopped, but the RIP process continues to be executed. At this time, a part of the work area for RIP processing is used as a page memory area for storing raster data. Therefore, the page memory area for storing raster data becomes large, and the RIP process can be continued even when the first print process is stopped. Therefore, even if the interrupt print process is executed while the print process is being executed first, the print process that was being executed will complete later than if the interrupt print process had not been executed. It is possible to reduce the amount of storage.

上述の印刷装置において、前記制御部は、前記RIP継続処理において、前記RIP処理のタスク優先順位を前記第2印刷処理のタスク優先順位よりも下げる処理を実行してもよい。 In the above-described printing apparatus, the control unit may perform a process of lowering a task priority of the RIP process to a task priority of the second print process in the RIP continuation process.

上述した構成によれば、印刷装置が第2印刷処理を実行する割込印刷の指示を受け付けた場合、第2印刷処理はRIP処理よりも優先して実行される。これにより、第1印刷処理の完了が割込印刷処理が実行されない場合と比較して遅くなってしまうことを防ぎつつ、第2印刷処理の完了がRIP処理が継続して実行されない場合と比較して遅くなってしまうことを低減することができる。 According to the above-described configuration, when the printing device receives an instruction for interrupt printing to execute the second print process, the second print process is executed with priority over the RIP process. This prevents the completion of the first print process from being delayed compared to the case where the interrupt print process is not executed, while also preventing the completion of the second print process from being delayed compared to the case where the RIP process is not continuously executed. This can reduce delays caused by

上述の印刷装置において、前記制御部は、前記第2印刷処理が完了した後、前記RIP処理のタスク優先順位を元に戻す処理を実行してもよい。 In the above-described printing apparatus, the control unit may execute a process of restoring the task priority of the RIP process after the second print process is completed.

上述した構成によれば、第2印刷処理が完了した後、元の優先順位でRIP処理が実行される。これにより、第1印刷処理の完了が、タスクの優先順位が元に戻されない場合と比較して遅くなってしまうことを低減することができる。 According to the above-described configuration, after the second printing process is completed, the RIP process is executed with the original priority order. This can reduce the delay in completing the first print process compared to the case where the priority order of the tasks is not restored.

上述の印刷装置において、前記制御部は、前記第2印刷処理を開始してから完了するまでの一部の期間において、前記RIP処理のタスクをスリープさせる処理を実行してもよい。 In the above-described printing apparatus, the control unit may execute a process of putting the RIP process task to sleep during a part of the period from when the second print process is started until it is completed.

上述した構成によれば、印刷装置が割込印刷の指示を受け付けた場合、第2印刷処理が完了するまで、RIP処理においてタスクスリープ処理が行われる。これにより、割込印刷が発生しない場合と比較して第1印刷処理の完了が遅くなってしまうことを防ぎつつ、RIP処理が継続して実行されない場合と比較して第2印刷処理の完了が遅くなってしまうことを低減することができる。 According to the above-described configuration, when the printing device receives an instruction for interrupt printing, task sleep processing is performed in the RIP processing until the second printing processing is completed. This prevents the completion of the first print process from being delayed compared to the case where no interrupt printing occurs, and also prevents the completion of the second print process from being delayed compared to the case where the RIP process is not continuously executed. This can reduce delays.

上述の印刷装置において、前記制御部は、前記RIP継続処理において、ページ単位での前記RIP処理が開始される毎に、1ページ分のラスターデータを記憶可能な領域を拡張領域として前記ページメモリ領域に加えてもよい。 In the printing apparatus described above, in the RIP continuation process, each time the RIP process for each page is started, the control unit sets an area capable of storing one page of raster data as an expanded area in the page memory area. May be added to.

上述した構成によれば、ページ単位でのRIP処理が開始される毎に、1ページ分のラスターデータを記憶可能な領域の分、ページメモリ領域が拡張される。これにより、ワーク領域が不要に小さくなってしまうことが防止される。 According to the above-described configuration, each time RIP processing is started in page units, the page memory area is expanded by an area that can store one page of raster data. This prevents the work area from becoming unnecessarily small.

上述の印刷装置において、前記制御部は、前記第2印刷処理が完了した後、前記第1印刷処理を再開し、前記ワーク領域において前記ページメモリ領域として拡張された領域を解放する処理を実行してもよい。 In the above printing device, the control unit restarts the first print process after the second print process is completed, and executes a process of releasing an area expanded as the page memory area in the work area. You can.

上述した構成によれば、印刷装置は、割込印刷が完了した後、ページメモリ領域として拡張された領域を解放する。これにより、割込印刷終了後、ワーク領域全体を本来の用途に用いることができる。 According to the above-described configuration, the printing device releases the expanded area as a page memory area after interrupt printing is completed. This allows the entire work area to be used for its intended purpose after the interrupt printing is completed.

上述の印刷装置において、前記制御部は、前記RIP継続処理において、前記ワーク領域の空き領域が閾値以上である場合に、当該空き領域の一部を拡張領域として前記ページメモリ領域を拡張してもよい。 In the above-described printing apparatus, the control unit may extend the page memory area by using a part of the free space as an expansion area when the free space in the work area is equal to or greater than a threshold value in the RIP continuation process. good.

上述した構成によれば、RIP処理において用いられるワーク領域132が不足してしまうことが防止される。 According to the above-described configuration, the work area 132 used in RIP processing is prevented from running out.

本発明の一態様に係る制御方法は、画像を記録媒体に印刷する印刷部と、外部端末から、ページ記述言語で記述された第1データを受信する通信部と、ユーザの操作を受け付ける操作パネルと、前記操作パネルによる入力に応じて原稿の画像を読み取る画像読取部と、記憶部と、を備えた印刷装置を制御する制御方法であって、前記記憶部には、前記通信部により受信される第1データを記憶する受信バッファ領域、RIP処理工程において用いられるワーク領域、及び、前記RIP処理工程により生成されるラスターデータを記憶するページメモリ領域が設けられ、前記受信バッファ領域に記憶されている前記第1データを解析し、前記ワーク領域を用いてラスターデータを生成するRIP処理工程と、前記RIP処理工程により生成された前記ラスターデータに基づく画像を、前記印刷部を用いて印刷する第1印刷処理工程と、前記画像読取部によって読み取られた原稿の画像である第2データを、前記印刷部を用いて印刷する第2印刷処理工程と、前記第1印刷処理工程の実行中に、前記第2印刷処理工程を実行する割込印刷の指示を前記操作パネルにより受け付ける割込受付処理工程と、前記割込受付処理工程により前記割込印刷の指示が受け付けられると、前記ページメモリ領域を前記ワーク領域に拡張し、前記第1印刷処理工程を停止させるとともに、前記RIP処理工程を継続し、継続される前記RIP処理工程により生成される前記ラスターデータを、拡張された前記ページメモリ領域に記憶していく、RIP継続処理工程と、を実行する。 A control method according to one aspect of the present invention includes a printing unit that prints an image on a recording medium, a communication unit that receives first data written in a page description language from an external terminal, and an operation panel that receives user operations. A control method for controlling a printing device comprising: an image reading unit that reads an image of a document according to an input from the operation panel; and a storage unit, the storage unit including an image received by the communication unit. A receive buffer area for storing first data, a work area used in the RIP process, and a page memory area for storing raster data generated by the RIP process, and the first data stored in the receive buffer area is provided. a RIP processing step of analyzing the first data and generating raster data using the work area; and a step of printing an image based on the raster data generated by the RIP processing step using the printing unit. during the execution of a first print processing step, a second print processing step of printing second data, which is an image of a document read by the image reading section, using the printing section, and the first print processing step, an interrupt reception processing step in which an interrupt print instruction for executing the second print processing step is accepted by the operation panel; and when the interrupt print instruction is accepted by the interrupt reception processing step, the page memory area is expanding into the work area, stopping the first printing process, continuing the RIP process, and transferring the raster data generated by the continued RIP process to the expanded page memory area. The RIP continuation processing step for storing information is executed.

上述した構成によれば、第2印刷処理の割込を受け付けた場合、実行中であった(割り込まれた側の)第1印刷処理は停止するが、RIP処理は継続して実行される。このとき、RIP処理のワーク領域の一部が、ラスターデータを記憶するページメモリ領域として用いられる。そのため、ラスターデータを記憶するページメモリ領域が大きくなり、第1印刷処理を停止している状態であってもRIP処理を続行することができる。したがって、先に印刷処理が実行されている際に割込印刷処理が実行された場合でも、実行されていた印刷処理の完了が割込印刷処理が実行されなかった場合と比較して遅くなってしまうことを低減させることができる。 According to the above-described configuration, when an interruption of the second print process is accepted, the first print process that is being executed (on the interrupted side) is stopped, but the RIP process continues to be executed. At this time, a part of the work area for RIP processing is used as a page memory area for storing raster data. Therefore, the page memory area for storing raster data becomes large, and the RIP process can be continued even when the first print process is stopped. Therefore, even if the interrupt print process is executed while the print process is being executed first, the print process that was being executed will complete later than if the interrupt print process had not been executed. It is possible to reduce the amount of storage.

本発明の一態様に係る制御プログラムは、上述の印刷装置における制御部としてコンピュータを機能させるための制御プログラムであることを特徴とする。 A control program according to one aspect of the present invention is a control program for causing a computer to function as a control unit in the above-described printing apparatus.

上述した構成によれば、第2印刷処理の割込を受け付けた場合、実行中であった(割り込まれた側の)第1印刷処理は停止するが、RIP処理は継続して実行される。このとき、RIP処理のワーク領域の一部が、ラスターデータを記憶するページメモリ領域として用いられる。そのため、ラスターデータを記憶するページメモリ領域が大きくなり、第1印刷処理を停止している状態であってもRIP処理を続行することができる。したがって、先に印刷処理が実行されている際に割込印刷処理が実行された場合でも、実行されていた印刷処理の完了が割込印刷処理が実行されなかった場合と比較して遅くなってしまうことを低減させることができる。 According to the above-described configuration, when an interruption of the second print process is accepted, the first print process that is being executed (on the interrupted side) is stopped, but the RIP process continues to be executed. At this time, a part of the work area for RIP processing is used as a page memory area for storing raster data. Therefore, the page memory area for storing raster data becomes large, and the RIP process can be continued even when the first print process is stopped. Therefore, even if the interrupt print process is executed while the print process is being executed first, the print process that was being executed will complete later than if the interrupt print process had not been executed. It is possible to reduce the amount of storage.

本発明の一態様によれば、先に印刷処理が実行されている際に割込印刷処理が実行された場合でも、実行されていた印刷処理の完了が割込印刷処理が実行されなかった場合と比較して遅くなってしまうことを低減させることができる。 According to one aspect of the present invention, even if the interrupt print process is executed while the print process is being executed first, if the print process that was being executed is completed without the interrupt print process being executed. It is possible to reduce the delay compared to .

本発明の実施形態1に係る印刷システムの構成を概略的に示す図である。1 is a diagram schematically showing the configuration of a printing system according to Embodiment 1 of the present invention. 印刷装置の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of a printing device. 印刷装置の機能構成を例示するブロック図である。FIG. 2 is a block diagram illustrating the functional configuration of a printing device. RIP処理の詳細を説明する模式図である。FIG. 2 is a schematic diagram illustrating details of RIP processing. ページメモリ領域を拡張する拡張処理を説明するための図である。FIG. 3 is a diagram for explaining expansion processing for expanding a page memory area. 印刷装置が行うPCプリント処理の流れを例示するフローチャートである。2 is a flowchart illustrating the flow of PC print processing performed by the printing device. 印刷装置が行うPCプリント処理の流れを例示するフローチャートである。2 is a flowchart illustrating the flow of PC print processing performed by the printing device. 印刷装置が行う割込みコピーからの復帰処理の流れを例示するフローチャートである。12 is a flowchart illustrating the flow of a return process from interrupt copying performed by the printing device. 印刷装置が行うPCプリント処理の流れを例示するフローチャートである。2 is a flowchart illustrating the flow of PC print processing performed by the printing device. 印刷装置が行うRIP処理の流れを例示するフローチャートである。3 is a flowchart illustrating the flow of RIP processing performed by the printing device.

〔実施形態1〕
<システム構成>
図1は、本発明の実施形態1に係る印刷システム100の構成を概略的に示す図である。印刷システム100は、印刷装置1及びPC(Personal Computer)9を備える。印刷装置1は、PCプリント処理及びコピー処理等の印刷処理を実行する。PCプリント処理は、PC9から受信されるデータを用いて記録媒体に画像を印刷する処理である。コピー処理は、印刷装置1が読み取った原稿の画像を記録媒体に印刷する処理である。記録媒体は画像が印刷される媒体であり、例えば用紙である。PC9は、印刷装置1にデータを送信する装置であり、例えば、パーソナルコンピュータ、スマートフォン、又はタブレット端末である。ユーザU1は印刷装置1に対し、コピー処理の指示等の各種の操作を行う。
[Embodiment 1]
<System configuration>
FIG. 1 is a diagram schematically showing the configuration of a printing system 100 according to Embodiment 1 of the present invention. The printing system 100 includes a printing device 1 and a PC (Personal Computer) 9. The printing device 1 executes print processing such as PC print processing and copy processing. The PC print process is a process of printing an image on a recording medium using data received from the PC 9. The copy process is a process of printing an image of a document read by the printing device 1 onto a recording medium. The recording medium is a medium on which an image is printed, such as paper. The PC 9 is a device that transmits data to the printing device 1, and is, for example, a personal computer, a smartphone, or a tablet terminal. The user U1 performs various operations on the printing apparatus 1, such as instructing copy processing.

<印刷装置1の構成>
図2は、印刷装置1の構成を示すブロック図である。印刷装置1は、図2に示すように、ASIC(Application Specific Integrated Circuit)11と、ROM(Read Only Memory)12と、RAM(Random Access Memory)13と、印刷部14と、読取部15と、通信インタフェース16と、操作パネル17とを含む。
<Configuration of printing device 1>
FIG. 2 is a block diagram showing the configuration of the printing device 1. As shown in FIG. As shown in FIG. 2, the printing device 1 includes an ASIC (Application Specific Integrated Circuit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a printing section 14, a reading section 15, It includes a communication interface 16 and an operation panel 17.

(ASIC11)
ASIC11は、制御部111を含む。ASIC11は、ROM12、RAM13、印刷部14、読取部15、通信インタフェース16、及び操作パネル17と、それぞれ通信可能に接続される。なお、ASIC11は、ROM12及びRAM13の一方又は両方を含んでいてもよい。ASIC11は、制御部111の制御の基に、接続される各部との間で信号を送受信する。制御部111は例えばCPU(Central Processing Unit)であり、ROM12に記憶された制御プログラムを読み込んでRAM13に展開し、展開されたプログラムにしたがって各種の処理を実行する。
(ASIC11)
ASIC 11 includes a control section 111. The ASIC 11 is communicably connected to a ROM 12, a RAM 13, a printing section 14, a reading section 15, a communication interface 16, and an operation panel 17. Note that the ASIC 11 may include one or both of the ROM 12 and the RAM 13. The ASIC 11 transmits and receives signals to and from each connected unit under the control of the control unit 111. The control unit 111 is, for example, a CPU (Central Processing Unit), reads a control program stored in the ROM 12, expands it to the RAM 13, and executes various processes according to the expanded program.

(ROM12)
ROM12は、例えば、フラッシュメモリ等といった書き換え可能な不揮発性メモリによって構成される。ROM12は、制御部111を、本発明における制御部又はコンピュータとして機能させるための制御プログラムを記憶している。ROM12に記憶される制御プログラムは、本発明における制御プログラムの一例である。
(ROM12)
The ROM 12 is composed of a rewritable nonvolatile memory such as a flash memory, for example. The ROM 12 stores a control program for causing the control unit 111 to function as a control unit or a computer in the present invention. The control program stored in the ROM 12 is an example of a control program in the present invention.

(RAM13)
RAM13は、本発明における記憶部の一例である。RAM13は、DRAM(Dynamic Random Access Memory)等といった揮発性メモリによって構成される。RAM13は、制御部111が制御プログラムを実行する際の作業領域として用いられる。制御部111がPCプリント処理及びコピー処理を実行する際、RAM13には、受信バッファ領域131、ワーク領域132、ページメモリ領域133、及び登録バッファ領域134が確保される。すなわち、RAM13は、受信バッファ領域131、ワーク領域132、ページメモリ領域133、及び登録バッファ領域134を含む。
(RAM13)
The RAM 13 is an example of a storage unit in the present invention. The RAM 13 is constituted by a volatile memory such as DRAM (Dynamic Random Access Memory). The RAM 13 is used as a work area when the control unit 111 executes a control program. When the control unit 111 executes PC print processing and copy processing, a reception buffer area 131, a work area 132, a page memory area 133, and a registration buffer area 134 are secured in the RAM 13. That is, the RAM 13 includes a reception buffer area 131, a work area 132, a page memory area 133, and a registration buffer area 134.

受信バッファ領域131は、PC9から受信される第1データを記憶する。第1データは、PC9によって生成されたデータである。本実施形態では、第1データは、PCL(登録商標)、Postscript(登録商標)、LIPS(登録商標)、PDF(Portable Document Format)等のページ記述言語(PDL:Page Description Language)で記述されたデータである。第1データが受信される毎に、受信された第1データが受信バッファ領域131に記憶される。 The reception buffer area 131 stores first data received from the PC 9. The first data is data generated by the PC9. In this embodiment, the first data is written in a page description language (PDL) such as PCL (registered trademark), Postscript (registered trademark), LIPS (registered trademark), or PDF (Portable Document Format). It is data. Each time the first data is received, the received first data is stored in the reception buffer area 131.

ワーク領域132は、後述するRIP処理においてワーク領域として用いられる領域である。ページメモリ領域133は、RIP処理により生成されるラスターデータを記憶する領域である。登録バッファ領域134には、印刷部14が記録媒体に画像を印刷する際に用いる画像データ(以下「印刷データ」という)が記憶される。登録バッファ領域134に記憶される印刷データは、例えば、ページメモリ領域133に記憶されたラスターデータに対し色変換処理が行われたラスターデータである。また、印刷データは例えば、第2データから得られる、読取部15により読み取られた原稿の画像を表す画像データである。 The work area 132 is an area used as a work area in RIP processing, which will be described later. The page memory area 133 is an area for storing raster data generated by RIP processing. The registration buffer area 134 stores image data (hereinafter referred to as "print data") used when the printing unit 14 prints an image on a recording medium. The print data stored in the registration buffer area 134 is, for example, raster data obtained by performing color conversion processing on the raster data stored in the page memory area 133. Further, the print data is, for example, image data representing an image of the document read by the reading unit 15, which is obtained from the second data.

(印刷部14)
印刷部14は、本発明における印刷部の一例である。印刷部14は、RAM13の登録バッファ領域134に記憶された印刷データの表す画像を記録媒体に印刷する印刷機構である。印刷部14は、搬送経路を搬送される記録媒体の印刷面に画像を印刷する。印刷の方式は、電子写真方式であってもよいし、インクジェット方式であってもよいし、サーマル方式であってもよい。印刷部14は、両面印刷可能であってもよいし、片面印刷専用であってもよい。
(Printing section 14)
The printing section 14 is an example of a printing section in the present invention. The printing unit 14 is a printing mechanism that prints an image represented by the print data stored in the registration buffer area 134 of the RAM 13 onto a recording medium. The printing unit 14 prints an image on the printing surface of the recording medium that is conveyed along the conveyance path. The printing method may be an electrophotographic method, an inkjet method, or a thermal method. The printing unit 14 may be capable of double-sided printing or may be dedicated to single-sided printing.

(読取部15)
読取部15は、本発明における画像読取部の一例である。読取部15は、操作パネル17による入力に応じて原稿の画像を読み取り、読み取った画像を表す第2データを生成する。第2データは、例えば、ビットマップデータである。読取部15は、載置台に載置された原稿からの反射光を、イメージセンサを用いて検出することにより、原稿に記録された情報を示す第2データを生成する。読取部15は、第2データを読取バッファ(図示せず)に記憶する。
(Reading unit 15)
The reading unit 15 is an example of an image reading unit in the present invention. The reading unit 15 reads the image of the document in response to input from the operation panel 17, and generates second data representing the read image. The second data is, for example, bitmap data. The reading unit 15 generates second data indicating information recorded on the original by detecting reflected light from the original placed on the mounting table using an image sensor. The reading unit 15 stores the second data in a reading buffer (not shown).

(通信インタフェース16)
通信インタフェース16は、本発明における通信部の一例である。通信インタフェース16は、PC9から第1データを受信する。PC9は、本発明における外部端末の一例である。通信インタフェース16は、受信した第1データを受信バッファ領域131に記憶する。例えば、通信インタフェース16は、有線又は無線LAN(Local Area Network)、USB(Universal Serial Bus)インタフェース、RS-232Cなどのシリアル通信インタフェース、赤外線、Bluetooth(登録商標)等の近距離通信インタフェース、又はこれらの組み合わせにより構成される。
(Communication interface 16)
The communication interface 16 is an example of a communication unit in the present invention. Communication interface 16 receives first data from PC9. The PC 9 is an example of an external terminal in the present invention. The communication interface 16 stores the received first data in the reception buffer area 131. For example, the communication interface 16 may be a wired or wireless LAN (Local Area Network), a USB (Universal Serial Bus) interface, a serial communication interface such as RS-232C, an infrared ray, a short-range communication interface such as Bluetooth (registered trademark), or any of these. It is composed of a combination of

(操作パネル17)
操作パネル17は、本発明における操作パネルの一例である。操作パネル17は、ユーザの操作を受け付ける。例えば、操作パネル17は、タッチパッド及びディスプレイが一体として形成されたタッチパネルを含む。例えば、操作パネル17は、操作領域を含むユーザインタフェース画面をタッチパネルに表示するとともに、操作領域に対するユーザの接触操作を検出する。
(Operation panel 17)
The operation panel 17 is an example of an operation panel in the present invention. The operation panel 17 accepts user operations. For example, the operation panel 17 includes a touch panel in which a touch pad and a display are integrally formed. For example, the operation panel 17 displays a user interface screen including an operation area on a touch panel, and detects a user's touch operation on the operation area.

<印刷装置1の機能構成>
図3は、印刷装置1の機能構成を例示するブロック図である。図3において、RIP処理部101、第1印刷処理部102、第2印刷処理部103、割込受付部104、及びRIP継続処理部105は、制御部111がROM12に記憶された制御プログラムを読み出して実行することにより印刷装置1に実装される。RIP処理部101、第1印刷処理部102、第2印刷処理部103、割込受付部104、及びRIP継続処理部105は、マルチタスクOS(オペレーションシステム)により別タスクとして実装される。これら複数のタスクは、OSの制御の下、並行して処理を実行可能である。
<Functional configuration of printing device 1>
FIG. 3 is a block diagram illustrating the functional configuration of the printing apparatus 1. As shown in FIG. In FIG. 3, a RIP processing section 101, a first print processing section 102, a second print processing section 103, an interrupt reception section 104, and a RIP continuation processing section 105 are configured so that a control section 111 reads out a control program stored in a ROM 12. The program is implemented in the printing device 1 by executing the program. The RIP processing unit 101, first print processing unit 102, second print processing unit 103, interrupt acceptance unit 104, and RIP continuation processing unit 105 are implemented as separate tasks by a multitasking OS (operation system). These multiple tasks can be executed in parallel under the control of the OS.

RIP処理部101は、受信バッファ領域131に記憶されている第1データを解析し、ワーク領域132を作業領域として用いながらラスターデータを生成するRIP処理を実行する。この実施形態では、RIP処理部101は、第1データを第1データに含まれるオブジェクト毎に展開してオブジェクト毎の中間データを生成し、生成した中間データからページ毎のラスターデータを生成する。RIP処理においては、ワーク領域132が作業領域として用いられ、中間データはワーク領域132に記憶される。 The RIP processing unit 101 analyzes the first data stored in the reception buffer area 131, and executes RIP processing to generate raster data while using the work area 132 as a work area. In this embodiment, the RIP processing unit 101 develops the first data for each object included in the first data, generates intermediate data for each object, and generates raster data for each page from the generated intermediate data. In the RIP process, the work area 132 is used as a work area, and intermediate data is stored in the work area 132.

図4は、RIP処理の内容を説明する模式図である。図4に示すように、第1データP1は、テキスト、形状、ビットマップなどをそれぞれ示すオブジェクトOBJ1~OBJ3の記述を含む。RIP処理部101は、各オブジェクトの記述をそれぞれ解析することにより、オブジェクト毎に中間データを生成し、生成した中間データをワーク領域132に記憶する。図4の例では、中間データD1は、オブジェクトOBJ1の記述を解析することにより生成されたものである。中間データD2は、オブジェクトOBJ2の記述を解析することにより生成されたものである。中間データD3は、オブジェクトOBJ3の記述を解析することにより生成されたものである。RIP処理部101は、第1データの解析がRIP処理の処理単位(以下「ページ単位」という)で終了すると、中間データD1~D3を参照してラスターデータLASを生成する。 FIG. 4 is a schematic diagram illustrating the contents of RIP processing. As shown in FIG. 4, the first data P1 includes descriptions of objects OBJ1 to OBJ3 indicating text, shapes, bitmaps, etc., respectively. The RIP processing unit 101 generates intermediate data for each object by analyzing the description of each object, and stores the generated intermediate data in the work area 132. In the example of FIG. 4, intermediate data D1 is generated by analyzing the description of object OBJ1. Intermediate data D2 is generated by analyzing the description of object OBJ2. Intermediate data D3 is generated by analyzing the description of object OBJ3. When the analysis of the first data is completed in a processing unit of RIP processing (hereinafter referred to as "page unit"), the RIP processing unit 101 generates raster data LAS with reference to intermediate data D1 to D3.

また、RIP処理部101は、ページ単位での第1データのラスターデータへの展開が完了すると、受信バッファ領域131から当該第1データを削除する。また、RIP処理部101は、ページ単位で第1データのラスターデータへの展開が完了すると、当該第1データを展開する過程でワーク領域132に記憶した中間データを、ワーク領域132から削除する。 Further, when the RIP processing unit 101 completes development of the first data into raster data in page units, the RIP processing unit 101 deletes the first data from the reception buffer area 131. Furthermore, when the RIP processing unit 101 completes the raster data development of the first data in units of pages, the RIP processing unit 101 deletes from the work area 132 the intermediate data stored in the work area 132 during the process of rasterizing the first data.

図3の説明に戻る。第1印刷処理部102は、RIP処理により生成されたラスターデータの表す画像を、印刷部14を用いて印刷する第1印刷処理を実行する。この実施形態では、第1印刷処理部102は、ページメモリ領域133に記憶されたラスターデータ(すなわちRIP処理により生成されたラスターデータ)に対し色変換処理を実行し、色変換処理が行われたラスターデータを登録バッファ領域134に記憶する。登録バッファ領域134に記憶されたラスターデータは、印刷部14が記録媒体に画像を印刷する際に用いられる。以下の説明では、説明の便宜上、ページメモリ領域133に記憶された、色変換処理が行われる前のラスターデータを「色変換前ラスターデータ」と称する。なお、第1印刷処理部102は、色変換処理を実行することなく、ページメモリ領域133に記憶されたラスターデータをそのまま登録バッファ領域134に記憶してもよい。 Returning to the explanation of FIG. 3. The first print processing unit 102 executes a first print process in which the printing unit 14 prints an image represented by raster data generated by RIP processing. In this embodiment, the first print processing unit 102 executes color conversion processing on the raster data stored in the page memory area 133 (i.e. raster data generated by RIP processing), and the color conversion processing is performed. The raster data is stored in the registration buffer area 134. The raster data stored in the registration buffer area 134 is used when the printing unit 14 prints an image on a recording medium. In the following description, for convenience of explanation, the raster data stored in the page memory area 133 and before color conversion processing is performed will be referred to as "raster data before color conversion." Note that the first print processing unit 102 may store the raster data stored in the page memory area 133 as is in the registration buffer area 134 without performing color conversion processing.

第2印刷処理部103は、読取部15によって読み取られた原稿の画像である第2データを、印刷部14を用いて印刷する第2印刷処理を実行する。本実施形態において、第2印刷処理はコピー処理である。割込受付部104は、第1印刷処理の実行中に、第2印刷処理を実行する割込印刷の指示を、操作パネル17により受け付ける割込受付処理を実行する。例えば、操作パネル17に表示されたユーザインタフェース画面に、コピーを指示するコピーボタン領域が含まれているとする。この場合、第1印刷処理を実行中にコピーボタン領域に対するユーザの接触操作が検出されると、制御部111は、第2印刷処理の指示が受け付けられたと判断する。 The second print processing unit 103 executes a second print process of printing second data, which is an image of the document read by the reading unit 15, using the printing unit 14. In this embodiment, the second print process is a copy process. The interrupt accepting unit 104 executes an interrupt accepting process in which the operation panel 17 accepts an interrupt printing instruction to execute the second printing process while the first printing process is being executed. For example, assume that the user interface screen displayed on the operation panel 17 includes a copy button area for instructing copying. In this case, if a user's touch operation on the copy button area is detected during execution of the first print process, the control unit 111 determines that the instruction for the second print process has been accepted.

RIP継続処理部105は、割込受付処理により割込印刷の指示が受け付けられると、第1印刷処理を停止させるとともに、RIP処理を継続する、RIP継続処理を実行する。RIP継続処理において、RIP継続処理部105は、ページメモリ領域133をワーク領域132に拡張し、継続されるRIP処理により生成される色変換前ラスターデータを、拡張されたページメモリ領域133に記憶していく。 When the interrupt printing instruction is accepted by the interrupt acceptance process, the RIP continuation processing unit 105 executes the RIP continuation process in which the first printing process is stopped and the RIP process is continued. In the RIP continuation process, the RIP continuation processing unit 105 expands the page memory area 133 to the work area 132 and stores the pre-color conversion raster data generated by the continued RIP process in the expanded page memory area 133. To go.

図5は、ページメモリ領域133を拡張する処理(以下「拡張処理」という)を説明するための図である。図において、記憶部130Aは、拡張処理が行われる前における各領域(受信バッファ領域131、ワーク領域132、ページメモリ領域133、及び登録バッファ領域134)を例示したものである。記憶部130Bは、拡張処理が行われた後の各領域(受信バッファ領域131、ワーク領域132、ページメモリ領域133、及び登録バッファ領域134)を例示したものである。記憶部130A及び記憶部130BはRAM13の一部である。 FIG. 5 is a diagram for explaining the process of expanding the page memory area 133 (hereinafter referred to as "expansion process"). In the figure, the storage unit 130A is an example of each area (reception buffer area 131, work area 132, page memory area 133, and registration buffer area 134) before expansion processing is performed. The storage unit 130B is an example of each area (reception buffer area 131, work area 132, page memory area 133, and registration buffer area 134) after the expansion process is performed. The storage unit 130A and the storage unit 130B are part of the RAM 13.

RIP継続処理部105は、ワーク領域132の一部の領域132aをページメモリ領域133に加えることにより、ページメモリ領域133を拡張する。図5の例では、記憶部130Aにおいて1ページ分のページメモリ領域133が確保されている。それに対し記憶部130Bでは、3ページ分のページメモリ領域133が確保されている。すなわち、ワーク領域132のうち、2ページ分の色変換前ラスターデータが記憶可能な領域132aが拡張領域としてページメモリ領域133に加えられている。 The RIP continuation processing unit 105 expands the page memory area 133 by adding a part of the area 132a of the work area 132 to the page memory area 133. In the example of FIG. 5, a page memory area 133 for one page is secured in the storage unit 130A. In contrast, in the storage unit 130B, a page memory area 133 for three pages is secured. That is, in the work area 132, an area 132a that can store two pages of pre-color conversion raster data is added to the page memory area 133 as an expansion area.

<動作>
(動作例1)
図6は、制御部111が実行するPCプリント処理の流れを例示するフローチャートである。図6に示すフローチャートは、制御部111が、受信バッファ領域131に記憶された第1データをラスターデータに変換して登録バッファ領域134に登録するまでの処理の流れを示す。なお、図6に示すフローチャートは、割込印刷を考慮しない場合の制御部111の動作の流れを例示したものである。図6に示す処理は、受信バッファ領域131に記憶された第1データ毎に実行される。なお、一部のステップは並行して、又は、順序を替えて実行してもよい。
<Operation>
(Operation example 1)
FIG. 6 is a flowchart illustrating the flow of PC print processing executed by the control unit 111. The flowchart shown in FIG. 6 shows the flow of processing until the control unit 111 converts the first data stored in the reception buffer area 131 into raster data and registers it in the registration buffer area 134. Note that the flowchart shown in FIG. 6 is an example of the flow of the operation of the control unit 111 when interrupt printing is not taken into account. The process shown in FIG. 6 is executed for each first data stored in the reception buffer area 131. Note that some steps may be executed in parallel or in a different order.

ステップS101において、制御部111は、RAM13においてページメモリ領域133を取得する。ステップS101において取得されるページメモリ領域133は、1ページ分の色変換前ラスターデータを記憶可能なサイズの記憶領域である。この例で、第1データのページとは、第1データにより画像が印刷される記録媒体の印刷面をいう。 In step S101, the control unit 111 acquires the page memory area 133 in the RAM 13. The page memory area 133 acquired in step S101 is a storage area of a size that can store one page of raster data before color conversion. In this example, the first data page refers to the print surface of the recording medium on which an image is printed based on the first data.

ステップS102において、制御部111は、処理対象である第1データのRIP処理を開始する。RIP処理においては、上述したように、ワーク領域132が作業領域として用いられて第1データがページ単位で解析される。RIP処理において生成される中間データはワーク領域132に記憶される。 In step S102, the control unit 111 starts RIP processing of the first data to be processed. In the RIP process, as described above, the work area 132 is used as a work area and the first data is analyzed page by page. Intermediate data generated in the RIP process is stored in the work area 132.

ステップS103において、制御部111は、1ページ分のRIP処理が完了したかを判定する。1ページ分のRIP処理が完了した場合(ステップS103;YES)、制御部111はステップS104の処理に進む。一方、1ページ分のRIP処理が完了していない場合(ステップS103;NO)、制御部111は、1ページ分のRIP処理が完了するまで待機する。 In step S103, the control unit 111 determines whether RIP processing for one page is completed. If the RIP process for one page is completed (step S103; YES), the control unit 111 proceeds to the process of step S104. On the other hand, if the RIP processing for one page is not completed (step S103; NO), the control unit 111 waits until the RIP processing for one page is completed.

ステップS104において、制御部111は、1ページ分の色変換前ラスターデータをページメモリ領域133に登録する。このとき、その色変換前ラスターデータの生成のために用いられた中間データは、ワーク領域132から削除される。 In step S104, the control unit 111 registers one page's worth of pre-color conversion raster data in the page memory area 133. At this time, the intermediate data used to generate the raster data before color conversion is deleted from the work area 132.

ステップS105において、制御部111は、色変換前ラスターデータに対し色変換処理を実行し、色変換処理が行われたラスターデータを登録バッファ領域134に登録する。登録バッファ領域134にラスターデータが登録されると、ページメモリ領域133から色変換前ラスターデータは削除される。また、ステップS105において、制御部111は、登録バッファ領域134に登録されたラスターデータを用いた印刷を印刷部14に行わせる。印刷部14は、登録バッファ領域134に登録されたラスターデータを用いて記録媒体に画像を印刷する。印刷部14による印刷が完了すると、印刷が完了した画像のラスターデータは登録バッファ領域134から削除される。 In step S<b>105 , the control unit 111 executes color conversion processing on the raster data before color conversion, and registers the raster data on which the color conversion processing has been performed in the registration buffer area 134 . When the raster data is registered in the registration buffer area 134, the raster data before color conversion is deleted from the page memory area 133. Further, in step S105, the control unit 111 causes the printing unit 14 to perform printing using the raster data registered in the registration buffer area 134. The printing unit 14 prints an image on a recording medium using the raster data registered in the registration buffer area 134. When printing by the printing unit 14 is completed, the raster data of the image that has been printed is deleted from the registration buffer area 134.

ステップS106において、制御部111は、処理対象である第1データに次のページのデータが含まれるか(次ページのデータが有るか)を判定する。次のページのデータが有る場合(ステップS106;YES)、制御部111は、ステップS103の処理に戻り、次のページの第1データについてのRIP処理の完了を待機する。一方、次のページのデータがない場合(ステップS106;NO)、制御部111は処理を終了する。 In step S106, the control unit 111 determines whether the first data to be processed includes data of the next page (whether there is data of the next page). If there is data for the next page (step S106; YES), the control unit 111 returns to the process of step S103 and waits for completion of the RIP process for the first data of the next page. On the other hand, if there is no data for the next page (step S106; NO), the control unit 111 ends the process.

すなわち、この動作例では、制御部111は、PC9から受信された第1データに対しページ単位でRIP処理を実行し、RIP処理により生成された色変換前ラスターデータをページメモリ領域133に記憶する。色変換前ラスターデータがページメモリ領域133に記憶されると、その色変換前ラスターデータに対応する第1データは受信バッファ領域131から削除される。 That is, in this operation example, the control unit 111 performs RIP processing on the first data received from the PC 9 on a page-by-page basis, and stores the raster data before color conversion generated by the RIP processing in the page memory area 133. . When the raster data before color conversion is stored in the page memory area 133, the first data corresponding to the raster data before color conversion is deleted from the reception buffer area 131.

また、制御部111は、ページメモリ領域133に記憶した色変換前ラスターデータに対し色変換処理を行い、色変換処理を行ったラスターデータを登録バッファ領域134に記憶する。登録バッファ領域134にラスターデータが記憶されると、そのラスターデータに対応する色変換前ラスターデータはページメモリ領域133から削除される。ページメモリ領域133から色変換前ラスターデータが削除されると、制御部111は、次のページについてのRIP処理を開始する。そのため、ページメモリ領域133は、1ページ分のラスターデータを記憶可能な記憶領域を有していればよい。 Further, the control unit 111 performs color conversion processing on the pre-color conversion raster data stored in the page memory area 133 and stores the raster data subjected to the color conversion process in the registration buffer area 134. When raster data is stored in the registration buffer area 134, the raster data before color conversion corresponding to the raster data is deleted from the page memory area 133. When the raster data before color conversion is deleted from the page memory area 133, the control unit 111 starts RIP processing for the next page. Therefore, the page memory area 133 only needs to have a storage area capable of storing one page of raster data.

また、印刷部14は、登録バッファ領域134に記憶されたラスターデータを用いて記録媒体に画像を印刷する。印刷部14による記録媒体への画像の印刷が完了すると、その画像のラスターデータは登録バッファ領域134から削除される。このように、この動作例では、色変換処理が完了する毎に、ラスターデータが登録バッファ領域134に記憶されるとともに、ページメモリ領域133から色変換前ラスターデータが削除される。 Further, the printing unit 14 prints an image on a recording medium using the raster data stored in the registration buffer area 134. When printing of the image onto the recording medium by the printing unit 14 is completed, the raster data of the image is deleted from the registration buffer area 134. In this manner, in this operation example, each time the color conversion process is completed, raster data is stored in the registration buffer area 134, and raster data before color conversion is deleted from the page memory area 133.

(動作例2)
図7は、制御部111が実行するPCプリント処理及び割込印刷処理(制御方法)の流れを例示するフローチャートである。図7に示すフローチャートは、制御部111が、受信バッファ領域131に記憶された第1データをラスターデータに変換して登録バッファ領域134に登録するまでの処理の流れを示す。また、図7に示すフローチャートは、PCプリント処理の実行中に発生し得るコピー処理等の割込処理の指示を考慮した動作を例示したものである。図7に示す処理は、受信バッファ領域131に記憶された第1データ毎に実行される。なお、一部のステップは並行して、又は、順序を替えて実行してもよい。
(Operation example 2)
FIG. 7 is a flowchart illustrating the flow of PC print processing and interrupt print processing (control method) executed by the control unit 111. The flowchart shown in FIG. 7 shows the flow of processing until the control unit 111 converts the first data stored in the reception buffer area 131 into raster data and registers it in the registration buffer area 134. Further, the flowchart shown in FIG. 7 is an example of an operation that takes into account instructions for interrupt processing such as copy processing that may occur during execution of PC print processing. The process shown in FIG. 7 is executed for each first data stored in the reception buffer area 131. Note that some steps may be executed in parallel or in a different order.

ステップS201において、制御部111は、まず、変数Nの値を1とし、1番目のページメモリ領域133をRAM13において取得する。ステップS201において取得されるページメモリ領域133は、1ページ分のラスターデータを記憶可能なサイズの記憶領域である。 In step S201, the control unit 111 first sets the value of the variable N to 1 and acquires the first page memory area 133 in the RAM 13. The page memory area 133 acquired in step S201 is a storage area of a size that can store one page of raster data.

ステップS202において、制御部111は、処理対象である第1データのRIP処理を開始する。本ステップS202における処理はRIP処理工程の一例である。RIP処理においては、上述したように、ワーク領域132が作業領域として用いられて第1データがページ単位で解析される。RIP処理において生成される中間データはワーク領域132に記憶される。 In step S202, the control unit 111 starts RIP processing of the first data to be processed. The process in step S202 is an example of a RIP process. In the RIP process, as described above, the work area 132 is used as a work area and the first data is analyzed page by page. Intermediate data generated in the RIP process is stored in the work area 132.

ステップS203において、制御部111は、1ページ分のRIP処理が完了したかを判定する。1ページ分のRIP処理が完了した場合(ステップS203;YES)、制御部111はステップS204の処理に進む。一方、1ページ分のRIP処理が完了していない場合(ステップS203;NO)、制御部111はステップS203の処理に戻り、1ページ分のRIP処理が完了するまで待機する。 In step S203, the control unit 111 determines whether RIP processing for one page has been completed. If the RIP process for one page is completed (step S203; YES), the control unit 111 proceeds to the process of step S204. On the other hand, if the RIP process for one page is not completed (step S203; NO), the control unit 111 returns to the process in step S203 and waits until the RIP process for one page is completed.

ステップS204において、制御部111は、RIPにより生成された色変換前ラスターデータをページメモリ領域133に登録する。このとき、その色変換前ラスターデータの生成のために用いられた中間データは、ワーク領域132から削除される。 In step S204, the control unit 111 registers the pre-color conversion raster data generated by RIP in the page memory area 133. At this time, the intermediate data used to generate the raster data before color conversion is deleted from the work area 132.

ステップS205において、制御部111は、割込みコピー命令(割込印刷の指示)を受けたかを判定する。割込みコピー命令を受けた場合(ステップS205;YES)、制御部111は、ステップS206の処理に進む。一方、割込みコピー命令を受けていない場合(ステップS205;NO)、制御部111は、ステップS207の処理に進む。 In step S205, the control unit 111 determines whether an interrupt copy command (interrupt print instruction) has been received. If an interrupt copy command is received (step S205; YES), the control unit 111 proceeds to the process of step S206. On the other hand, if the interrupt copy command has not been received (step S205; NO), the control unit 111 proceeds to the process of step S207.

この実施形態において、制御部111は、PCコピー処理の実行中に割込印刷の指示を操作パネル17により受け付ける割込受付処理を実行する。本処理は割込受付処理工程の一例である。割込印刷の指示は例えば、印刷装置1がPCプリント処理を実行中に、ユーザが、操作パネル17で割込みコピーキーを押下することにより行われる。この場合、制御部111は、実行中のPCプリント処理を中断可能かを判定し、中断可能である場合に、操作パネル17に「OK」キーを表示させる。ユーザが「OK」キーを押下することにより、印刷装置1は割込み指示を受け付ける。 In this embodiment, the control unit 111 executes an interrupt acceptance process in which an instruction for interrupt printing is accepted through the operation panel 17 during execution of the PC copy process. This process is an example of an interrupt reception process. The interrupt printing instruction is issued, for example, by the user pressing an interrupt copy key on the operation panel 17 while the printing apparatus 1 is executing PC print processing. In this case, the control unit 111 determines whether the PC printing process being executed can be interrupted, and if it is possible to interrupt it, displays an "OK" key on the operation panel 17. When the user presses the "OK" key, the printing apparatus 1 accepts the interrupt instruction.

ステップS205において、割込みコピー命令を受けていない場合(ステップS205;NO)、ステップS207において、制御部111は、色変換前ラスターデータに対し色変換処理を実行し、処理が行われたラスターデータを登録バッファ領域134に登録する。登録バッファ領域134にラスターデータが登録されると、ページメモリ領域133から色変換前ラスターデータは削除される。ラスターデータが登録バッファ領域134に登録されることにより、ラスターデータを用いた印刷が印刷部14により行われる。すなわち、制御部111は、RIP処理により生成されたラスターデータの表す画像を、印刷部14を用いて印刷する第1印刷処理を実行する。本処理は第1印刷処理工程の一例である。印刷部14による印刷が完了すると、印刷が完了した画像のラスターデータは登録バッファ領域134から削除される。 In step S205, if an interrupt copy command has not been received (step S205; NO), in step S207, the control unit 111 executes color conversion processing on the raster data before color conversion, and converts the processed raster data into It is registered in the registration buffer area 134. When the raster data is registered in the registration buffer area 134, the raster data before color conversion is deleted from the page memory area 133. By registering the raster data in the registration buffer area 134, printing using the raster data is performed by the printing unit 14. That is, the control unit 111 executes a first printing process in which the printing unit 14 prints an image represented by raster data generated by RIP processing. This process is an example of the first printing process. When printing by the printing unit 14 is completed, the raster data of the image that has been printed is deleted from the registration buffer area 134.

ステップS208において、制御部111は、処理対象である第1データに次のページのデータが有るかを判定する。次のページのデータが有る場合(ステップS208;YES)、制御部111はステップS203の処理に進み、次のページのデータに対するRIP処理の完了を待機する。一方、次のページのデータがない場合(ステップS208;NO)、制御部111は処理を終了する。 In step S208, the control unit 111 determines whether the first data to be processed includes data of the next page. If there is data for the next page (step S208; YES), the control unit 111 advances to step S203 and waits for completion of the RIP process for the data for the next page. On the other hand, if there is no data for the next page (step S208; NO), the control unit 111 ends the process.

ステップS206において、制御部111は、指示された割込印刷の実行を開始する。すなわち、制御部111は、読取部15によって読み取られた原稿の画像を表す第2データを用いて、原稿の表す画像を印刷部14を用いて印刷する第2印刷処理を実行する。本処理は第2印刷処理工程の一例である。印刷部14による印刷は、指示された割込印刷が完了するまで継続される。 In step S206, the control unit 111 starts executing the instructed interrupt printing. That is, the control unit 111 uses the second data representing the image of the original read by the reading unit 15 to execute a second printing process in which the printing unit 14 prints the image represented by the original. This process is an example of the second printing process. Printing by the printing unit 14 continues until the instructed interruption printing is completed.

ステップS209において、制御部111は、処理対象である第1データに次のページのデータが有るかを判定する。次のページのデータがある場合(ステップS209;YES)、制御部111はステップS210の処理に進む。一方、次のページのデータがない場合(ステップS209;NO)、制御部111は、ステップS210~S214の処理をスキップし、ステップS215の処理に進む。 In step S209, the control unit 111 determines whether the first data to be processed includes data of the next page. If there is data for the next page (step S209; YES), the control unit 111 advances to step S210. On the other hand, if there is no data for the next page (step S209; NO), the control unit 111 skips the processes of steps S210 to S214 and proceeds to the process of step S215.

ステップS210において、制御部111は、ワーク領域132において、次のページのページメモリを取得可能であるかを判定する。この判定は例えば、ワーク領域132の空き領域が閾値以上であるかを判定することによって行われる。この場合、空き領域が閾値以上である場合、次のページ分のページメモリを取得可能(拡張可能)であると判定される。一方、空き領域が閾値未満である場合、次のページ分のページメモリが取得できないと判定される。取得可能である場合(ステップS210;YES)、制御部111はステップS211の処理に進む。一方、取得できない場合(ステップS210;NO)、制御部111は、ステップS211~S214の処理をスキップし、ステップS215の処理に進む。 In step S210, the control unit 111 determines whether the page memory of the next page can be acquired in the work area 132. This determination is made, for example, by determining whether the free space in the work area 132 is greater than or equal to a threshold value. In this case, if the free space is equal to or greater than the threshold value, it is determined that the page memory for the next page can be acquired (expandable). On the other hand, if the free space is less than the threshold, it is determined that page memory for the next page cannot be acquired. If it can be obtained (step S210; YES), the control unit 111 proceeds to the process of step S211. On the other hand, if the information cannot be obtained (step S210; NO), the control unit 111 skips steps S211 to S214 and proceeds to step S215.

ステップS211において、制御部111は、変数Nの値をインクリメントし、N番目のページのラスターデータを格納するためのページメモリ領域(以下「ページメモリ領域133N」とする)をワーク領域132から取得する。すなわち、制御部111は、PCプリント処理の実行中に、コピー処理の実行の指示を受け付けた場合、ワーク領域132の一部を拡張領域としてページメモリ領域133に加えることにより、ページメモリ領域133を拡張する拡張処理を実行する。また、この拡張処理において、制御部111は、ページ単位でのRIP処理を開始する毎に、1ページ分のラスターデータを記憶可能な記憶領域を拡張領域としてページメモリ領域133に加える。 In step S211, the control unit 111 increments the value of the variable N and acquires a page memory area (hereinafter referred to as "page memory area 133N") for storing the raster data of the Nth page from the work area 132. . That is, when the control unit 111 receives an instruction to execute a copy process while executing a PC print process, the control unit 111 expands the page memory area 133 by adding a part of the work area 132 to the page memory area 133 as an expansion area. Execute the expansion process to expand. In addition, in this expansion process, the control unit 111 adds a storage area capable of storing one page of raster data to the page memory area 133 as an expansion area every time the RIP process is started for each page.

ステップS212において、制御部111は、RIP処理を続行する。本ステップS212における処理は、RIP継続処理工程の一例である。ステップS213において、制御部111は、1ページ分のRIP処理が完了したかを判定する。完了した場合(ステップS213;YES)、制御部111は、ステップS214の処理に進む。一方、まだ完了していない場合(ステップS213;NO)、制御部111は、ステップS213の処理に戻り、1ページ分のRIP処理が完了するまで待機する。 In step S212, the control unit 111 continues the RIP process. The process in step S212 is an example of the RIP continuation process. In step S213, the control unit 111 determines whether RIP processing for one page is completed. If completed (step S213; YES), the control unit 111 proceeds to the process of step S214. On the other hand, if the RIP process has not been completed yet (step S213; NO), the control unit 111 returns to the process of step S213 and waits until the RIP process for one page is completed.

ステップS214において、制御部111は、RIP処理により生成されたラスターデータをN番目のページメモリ領域133Nに登録する。以下の説明では、ページメモリ領域133に登録される、色変換処理が行われる前のラスターデータを「色変換前ラスターデータ」と称する。 In step S214, the control unit 111 registers the raster data generated by the RIP process in the Nth page memory area 133N. In the following description, the raster data registered in the page memory area 133 before color conversion processing is referred to as "raster data before color conversion."

ステップS215において、制御部111は、割込みコピーの終了命令を受けたかを判定する。この終了命令は、割込みで実行されていたコピー処理が完了した場合に、コピー処理を実行していたタスクにより発行される。終了命令を受けた場合(ステップS215;YES)、制御部111は、ステップS216の処理に進む。一方、終了命令を受けていない場合(ステップS215;NO)、制御部111は、ステップS209の処理に戻り、次のページについてのRIP処理を継続する。 In step S215, the control unit 111 determines whether an interrupt copy end command has been received. This end instruction is issued by the task that was executing the copy process when the copy process that was executed due to an interrupt is completed. If the termination command is received (step S215; YES), the control unit 111 proceeds to the process of step S216. On the other hand, if the end command has not been received (step S215; NO), the control unit 111 returns to the process of step S209 and continues the RIP process for the next page.

図5の例では、ページメモリ領域133の拡張処理が行われる前のタイミングにおいては、記憶部130Aに示されるように、登録バッファ領域134には、PCプリント処理の1~4ページのラスターデータR1~R4が記憶されている。その後、割込印刷の指示を受け付けると、制御部111は、ワーク領域132の一部の領域132aを拡張領域としてページメモリ領域133を拡張し、この拡張領域に、割込印刷の指示を受け付けてから生成した色変換前ラスターデータを格納する。図5の例では、拡張領域である領域132aには、PCプリント処理の5~6ページの色変換前ラスターデータR5~R6が記憶さる。 In the example of FIG. 5, before the expansion process of the page memory area 133 is performed, as shown in the storage unit 130A, the raster data R1 of pages 1 to 4 of the PC print process is stored in the registration buffer area 134. ~R4 is stored. Thereafter, upon receiving the interrupt printing instruction, the control unit 111 expands the page memory area 133 by using a part of the area 132a of the work area 132 as an expanded area, and receives the interrupt printing instruction in this expanded area. Stores the raster data before color conversion generated from . In the example of FIG. 5, the area 132a, which is an expanded area, stores pre-color conversion raster data R5 to R6 of pages 5 to 6 of PC print processing.

また、割込印刷の指示が受け付けられた場合、PCプリント処理に係る印刷処理は中断されるため、登録バッファ領域134に記憶されていたPCプリント処理の1~4ページのラスターデータR1~R4は、登録バッファ領域134から読み出されることなく、登録されたままとなる。一方、このとき、割込印刷は実行されるため、コピー処理の処理対象である、原稿の読取画像を表す画像データR11~R12が、登録バッファ領域134に登録される。登録バッファ領域134に登録された画像データR11~R12を用いて、印刷部14による印刷が行われる。 Furthermore, when an interrupt printing instruction is accepted, the print processing related to the PC print processing is interrupted, so the raster data R1 to R4 of pages 1 to 4 of the PC print processing stored in the registration buffer area 134 are , it remains registered without being read out from the registration buffer area 134. On the other hand, since interrupt printing is executed at this time, image data R11 to R12 representing the scanned image of the original, which is the object of copy processing, is registered in the registration buffer area 134. The printing unit 14 performs printing using the image data R11 to R12 registered in the registration buffer area 134.

以上説明したように、この動作例では、制御部111は、PCプリント処理のRIP処理と、指示された割込印刷処理とを別タスクにより並行して実行する。このとき、割込印刷の指示を受け付けた後は(ステップS205;YES)、制御部111は、PCプリント処理に係るRIP処理を継続する(ステップS209~S215)一方、RIP処理により生成されたラスターデータに対する色変換処理及び登録バッファ領域134への登録処理を中断する。すなわち、受け付けられた割込印刷が完了するまで、(割り込まれた側の)PCプリント処理についての印刷部14による印刷はサスペンドされる。すなわち、印刷装置1が割込印刷の指示を受け付けた場合、印刷部14のハードウェアリソースは割込印刷により占用される。 As described above, in this operation example, the control unit 111 executes the RIP process of the PC print process and the instructed interrupt print process in parallel using separate tasks. At this time, after receiving the interrupt printing instruction (step S205; YES), the control unit 111 continues the RIP processing related to the PC print processing (steps S209 to S215), while printing the raster image generated by the RIP processing. The color conversion process for the data and the registration process in the registration buffer area 134 are interrupted. That is, printing by the printing unit 14 regarding the PC print processing (on the interrupted side) is suspended until the accepted interruption printing is completed. That is, when the printing device 1 receives an instruction for interrupt printing, the hardware resources of the printing unit 14 are occupied by the interrupt printing.

ステップS216において、制御部111は、割込印刷からの復帰処理を実行する。この復帰処理により、PCプリント処理の処理対象であるラスターデータの色変換処理、及び、登録バッファ領域134へのラスターデータの登録処理が再開される。ステップS216の処理を終えると、制御部111は、ステップS208の処理に戻り、処理対象である第1データに次のページのデータが含まれるかを判定する。 In step S216, the control unit 111 executes a return process from interrupt printing. With this return process, the color conversion process of the raster data that is the processing target of the PC print process and the process of registering the raster data in the registration buffer area 134 are restarted. After completing the process in step S216, the control unit 111 returns to the process in step S208 and determines whether the first data to be processed includes data of the next page.

図8は、印刷装置1が行う、割込印刷からの復帰処理の流れを例示するフローチャートである。なお、一部のステップは並行して、又は、順序を替えて実行してもよい。 FIG. 8 is a flowchart illustrating the flow of a return process from interrupt printing performed by the printing apparatus 1. Note that some steps may be executed in parallel or in a different order.

ステップS301において、制御部111は、変数Xの値をゼロとする。ステップS302において、制御部111は、変数Xをインクリメントする。ステップS303において、制御部111は、変数Xの値が変数N以下であるかを判定する。変数Xの値が変数N以下である場合(ステップS303;YES)、制御部111は、ステップS304の処理に進む。一方、変数Xの値が変数Nより大きい場合(ステップS303;NO)、制御部111はステップS308の処理に進む。 In step S301, the control unit 111 sets the value of the variable X to zero. In step S302, the control unit 111 increments the variable X. In step S303, the control unit 111 determines whether the value of variable X is equal to or less than variable N. If the value of the variable X is less than or equal to the variable N (step S303; YES), the control unit 111 proceeds to the process of step S304. On the other hand, if the value of the variable X is larger than the variable N (step S303; NO), the control unit 111 proceeds to the process of step S308.

ステップS304において、制御部111は、X番目に拡張領域としてページメモリ領域133に追加された領域(以下「ページメモリ領域133X」という)に記憶されている色変換前ラスターデータに対し色変換処理を行い、処理を行ったラスターデータを登録バッファ領域134に登録する。登録バッファ領域134へのラスターデータの登録が再開されることにより、印刷部14によるPCプリント処理に係る印刷が再開される。印刷部14は、登録バッファ領域134に登録されたラスターデータを用いて記録媒体に画像を印刷する。印刷部14による印刷が完了すると、印刷が完了した画像のラスターデータは登録バッファ領域134から削除される。 In step S304, the control unit 111 performs a color conversion process on the pre-color conversion raster data stored in the area added to the page memory area 133 as the Xth expansion area (hereinafter referred to as "page memory area 133X"). The processed raster data is registered in the registration buffer area 134. By restarting the registration of raster data in the registration buffer area 134, printing related to the PC print process by the printing unit 14 is restarted. The printing unit 14 prints an image on a recording medium using the raster data registered in the registration buffer area 134. When printing by the printing unit 14 is completed, the raster data of the image that has been printed is deleted from the registration buffer area 134.

ステップS306において、制御部111は、変数Xが1より大きいかを判定する。変数Xが1より大きい場合(すなわち2以上である場合)(ステップS306;YES)、制御部111はステップS307の処理に進む。一方、変数Xが1以下である場合(ステップS306;NO)、制御部111はステップS302の処理に戻る。 In step S306, the control unit 111 determines whether the variable X is greater than 1. If the variable X is larger than 1 (that is, 2 or more) (step S306; YES), the control unit 111 proceeds to the process of step S307. On the other hand, if the variable X is less than or equal to 1 (step S306; NO), the control unit 111 returns to the process of step S302.

ステップS307において、制御部111は、X番目のページメモリ領域であるページメモリ領域133Xを解放する。すなわち、制御部111は、割込印刷が完了した後(図6のステップS215;YES)、PCプリント処理に係る印刷部14による印刷を再開するとともに、ページメモリ領域133として拡張した拡張領域を、1ページ分ずつ解放する処理を実行する(図8のステップS304~S307)。ステップS307の処理を終えると、制御部111は、ステップS302の処理に戻る。 In step S307, the control unit 111 releases the page memory area 133X, which is the Xth page memory area. That is, after the interrupt printing is completed (step S215 in FIG. 6; YES), the control unit 111 restarts printing by the printing unit 14 related to the PC print process, and also uses the extended area expanded as the page memory area 133. A process of releasing one page at a time is executed (steps S304 to S307 in FIG. 8). After completing the process in step S307, the control unit 111 returns to the process in step S302.

ステップS308において、制御部111は、変数Nの値を初期値(1)に戻す。ステップS308の処理を終えると、制御部111は割込印刷からの復帰処理を終了する。 In step S308, the control unit 111 returns the value of the variable N to the initial value (1). After completing the process in step S308, the control unit 111 ends the process for returning from interrupt printing.

本実施形態では、割込印刷の指示を受け付けた場合、実行中であった(割り込まれた側の)第1印刷処理は停止するが、RIP処理は継続して実行される。このとき、RIP処理で用いられるワーク領域132が減らされ、RIP処理後のラスターデータ(色変換前ラスターデータ)は、ワーク領域132の一部であった領域に記憶される。このように、ワーク領域132の一部がページメモリ領域133として用いられることで、印刷装置1は、RIP処理を中断することなく、継続することができる。そのため、先にPCプリント処理が実行されている際に割込印刷処理が実行された場合でも、実行されていた印刷処理の完了が割込印刷処理が実行されなかった場合と比較して遅くなってしまうことを低減させることができる。 In this embodiment, when an interrupt printing instruction is accepted, the first printing process that is being executed (on the side that is interrupted) is stopped, but the RIP process continues to be executed. At this time, the work area 132 used in the RIP process is reduced, and the raster data after the RIP process (raster data before color conversion) is stored in the area that was part of the work area 132. In this way, by using a part of the work area 132 as the page memory area 133, the printing apparatus 1 can continue the RIP process without interrupting it. Therefore, even if the interrupt print process is executed while the PC print process is being executed first, the print process that was being executed will complete later than if the interrupt print process had not been executed. It is possible to reduce the occurrence of

また、本実施形態では、ページ単位でのRIP処理が開始される毎に、1ページ分のラスターデータを記憶可能な領域の分、ページメモリ領域133が拡張される。これにより、ワーク領域132が不要に小さくなってしまうことが防止される。 Furthermore, in this embodiment, each time RIP processing is started in units of pages, the page memory area 133 is expanded by an area that can store raster data for one page. This prevents the work area 132 from becoming unnecessarily small.

また、本実施形態では、割込印刷が完了した後、制御部111が拡張領域を解放する。これにより、割込印刷終了後、ワーク領域132全体を本来の用途に用いることができる。 Further, in this embodiment, the control unit 111 releases the expansion area after the interrupt printing is completed. This allows the entire work area 132 to be used for its intended purpose after the interrupt printing is completed.

また、本実施形態では、制御部111は、ページメモリ領域133の拡張処理において、ワーク領域132の空き領域が閾値以上である場合、空き領域の一部を拡張領域としてページメモリ領域133を拡張する。これにより、RIP処理において用いられるワーク領域132が不足してしまうことが防止される。 Furthermore, in the present embodiment, in the process of expanding the page memory area 133, if the free space of the work area 132 is equal to or greater than the threshold, the control unit 111 expands the page memory area 133 by using a part of the free space as an expansion area. . This prevents the work area 132 used in RIP processing from running out.

〔実施形態2〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態1にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。
[Embodiment 2]
Other embodiments of the invention will be described below. For convenience of explanation, members having the same functions as those described in Embodiment 1 will be denoted by the same reference numerals, and the description thereof will not be repeated.

本実施形態が上述した実施形態1と異なる点は、印刷装置1の制御部111が行うRIP継続処理の内容である。本実施形態では、制御部111は、RIP継続処理において、RIP処理のタスク優先順位を第2印刷処理のタスク優先順位よりも下げる処理を実行する。 The difference between this embodiment and the first embodiment described above is the content of the RIP continuation process performed by the control unit 111 of the printing apparatus 1. In this embodiment, the control unit 111 executes processing to lower the task priority of the RIP process to the task priority of the second print process in the RIP continuation process.

図9は、印刷装置1が行う処理の流れを例示するフローチャートである。図9に示す処理は、上述の実施形態1における図7の処理に対応するものである。図9に示す処理が、図7に示す処理と異なる点は、制御部111が、ステップS206の後にステップ251の処理を実行する点、及び、ステップS215の後にステップS252の処理を実行する点である。 FIG. 9 is a flowchart illustrating the flow of processing performed by the printing apparatus 1. The process shown in FIG. 9 corresponds to the process shown in FIG. 7 in the first embodiment described above. The process shown in FIG. 9 differs from the process shown in FIG. 7 in that the control unit 111 executes the process of step 251 after step S206, and that the process of step S252 is executed after step S215. be.

ステップ251において、制御部111は、RIP処理を実行するタスクの優先順位を、第2印刷処理を実行するタスクの優先順位よりも下げる処理を行う。このとき、RIP処理部101の優先順位が第2印刷処理部103の優先順位よりも既に低かった場合は、制御部111は、RIP処理部101の優先順位を更に下げる制御を行ってもよい。このように、この実施形態では、割込印刷が指示された場合、割込印刷処理がRIP処理よりも優先的に実行される。 In step 251, the control unit 111 lowers the priority of the task that executes the RIP process below the priority of the task that executes the second print process. At this time, if the priority of the RIP processing section 101 is already lower than the priority of the second print processing section 103, the control section 111 may perform control to further lower the priority of the RIP processing section 101. In this manner, in this embodiment, when interrupt printing is instructed, interrupt printing processing is executed with priority over RIP processing.

ステップS252において、制御部111は、RIP処理のタスク優先順位を元に戻す処理を実行する。すなわち、制御部111は、割込印刷処理が完了した後、RIP処理のタスク優先順位を元に戻す。ステップS252の処理を終えると、制御部111は、ステップS216の処理に進む。 In step S252, the control unit 111 executes processing to restore the task priority order of the RIP process. That is, after the interrupt printing process is completed, the control unit 111 restores the task priority order of the RIP process. After completing the process in step S252, the control unit 111 proceeds to the process in step S216.

この実施形態では、印刷装置1が割込印刷の指示を受け付けた場合、割込印刷処理はRIP処理よりも優先して実行される。これにより、PCプリント処理の完了が割込印刷処理が実行されない場合と比較して遅くなってしまうことを防ぎつつ、割込印刷処理の完了がRIP処理が継続して実行されない場合と比較して遅くなってしまうことを低減することができる。 In this embodiment, when the printing device 1 receives an instruction for interrupt printing, the interrupt printing process is executed with priority over the RIP process. This prevents the completion of the PC print process from being delayed compared to the case where the interrupt print process is not executed, and also prevents the completion of the interrupt print process from being delayed compared to the case where the RIP process is not continuously executed. This can reduce delays.

また、本実施形態では、割込印刷処理が完了した後、元の優先順位でRIP処理が実行される。これにより、PCプリント処理の完了が、タスクの優先順位が元に戻されない場合と比較して遅くなってしまうことを低減することができる。 Furthermore, in this embodiment, after the interrupt printing process is completed, the RIP process is executed with the original priority order. Thereby, it is possible to reduce the delay in completing the PC print process compared to the case where the priority order of the task is not restored to its original state.

〔実施形態3〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態1にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。
[Embodiment 3]
Other embodiments of the invention will be described below. For convenience of explanation, members having the same functions as those described in Embodiment 1 will be denoted by the same reference numerals, and the description thereof will not be repeated.

本実施形態が上述の実施形態1と異なる点は、印刷装置1の制御部111が行う割込印刷処理の内容が異なる点である。本実施形態では、制御部111は、第2印刷処理を開始してから完了するまでの一部の期間において、RIP処理のタスクをスリープさせるスリープ制御処理を実行する。 This embodiment differs from the first embodiment described above in that the contents of the interrupt printing process performed by the control unit 111 of the printing apparatus 1 are different. In the present embodiment, the control unit 111 executes sleep control processing to put the RIP processing task to sleep during a part of the period from the start to the completion of the second print processing.

図10は、印刷装置1が行うスリープ制御処理の流れを例示するフローチャートである。なお、一部のステップは並行して、又は、順序を替えて実行してもよい。図10に示す処理は例えば、RIP処理の実行中において、割込印刷の指示を受け付けたことをトリガとして開始される。また、図10に示す処理は例えば、割込印刷処理が完了した場合に終了される。 FIG. 10 is a flowchart illustrating the flow of sleep control processing performed by the printing apparatus 1. Note that some steps may be executed in parallel or in a different order. The process shown in FIG. 10 is started, for example, when an interrupt printing instruction is received during execution of the RIP process. Further, the process shown in FIG. 10 is ended, for example, when the interrupt printing process is completed.

ステップS401において、制御部111は、1つの中間データの作成が完了したかを判定する。1つの中間データの作成を完了した場合(ステップS401;YES)、制御部111はステップS402の処理に進む。一方、1つの中間データの作成が完了していない場合(ステップS401;NO)、制御部111は、中間データの作成が完了するまで待機する。すなわち、ステップS402の処理は、中間データの作成が完了する毎に実行される。 In step S401, the control unit 111 determines whether creation of one piece of intermediate data is completed. When the creation of one piece of intermediate data is completed (step S401; YES), the control unit 111 proceeds to the process of step S402. On the other hand, if the creation of one piece of intermediate data is not completed (step S401; NO), the control unit 111 waits until the creation of the intermediate data is completed. That is, the process of step S402 is executed every time the creation of intermediate data is completed.

ステップS402において、制御部111は、RIP処理を実行するタスク(RIP処理部101)をスリープさせる処理を行う。ステップS403において、制御部111は、1ページ分のRIP処理が完了したかを判定する。1ページ分のRIP処理が完了した場合(ステップS403;YES)、制御部111は処理を終了する。一方、1ページ分のRIP処理が完了していない場合(ステップS403;NO)、制御部111はステップS401の処理に戻り、次の中間データが完成するまで待機する。 In step S402, the control unit 111 performs a process of putting the task (RIP processing unit 101) that executes RIP processing to sleep. In step S403, the control unit 111 determines whether RIP processing for one page is completed. When the RIP process for one page is completed (step S403; YES), the control unit 111 ends the process. On the other hand, if the RIP process for one page is not completed (step S403; NO), the control unit 111 returns to the process of step S401 and waits until the next intermediate data is completed.

本実施形態では、印刷装置1が割込印刷の指示を受け付けた場合、割込印刷処理が完了するまで、RIP処理においてタスクスリープ処理が行われる。これにより、PCプリント処理の完了が割込印刷が発生しない場合と比較して遅くなってしまうことを防ぎつつ、割込印刷処理の完了がRIP処理が継続して実行されない場合と比較して遅くなってしまうことを低減することができる。 In this embodiment, when the printing device 1 receives an instruction for interrupt printing, task sleep processing is performed in the RIP processing until the interrupt printing processing is completed. This prevents the completion of PC print processing from being delayed compared to when interrupt printing does not occur, and also prevents the completion of interrupt printing processing from being delayed compared to when RIP processing is not continuously executed. It is possible to reduce the occurrence of

(変形例)
上述の各実施形態では、印刷装置1がPCプリント処理を実行中に、割込印刷としてコピー処理が指示される場合の動作を説明した。印刷装置1が実行する処理は上述した実施形態で示したものに限られない。例えば、印刷装置1が実行する処理(第1印刷処理に係る処理)は、ストレージサーバに保存されたデータをユーザが印刷装置1の操作パネル17を操作することにより指定し、指定したデータの表す画像を印刷する処理、いわゆるプルプリント処理であってもよい。
(Modified example)
In each of the above-described embodiments, the operation has been described when the printing apparatus 1 is instructed to perform copy processing as interrupt printing while executing PC print processing. The processing executed by the printing apparatus 1 is not limited to that shown in the embodiment described above. For example, the process executed by the printing device 1 (processing related to the first printing process) is such that the user specifies data stored in the storage server by operating the operation panel 17 of the printing device 1, and It may also be a process of printing an image, a so-called pull print process.

上述の実施形態1では、ワーク領域132の空き領域が閾値以上である場合、制御部111が、ワーク領域132の一部を拡張領域としてページメモリ領域133を拡張する処理を実行した。ページメモリ領域133を拡張するかどうかの判定方法は、上述した実施形態で示したものに限られない。例えば、制御部111は、ワーク領域132の空き領域の全体に対する割合が閾値以上である場合に、ページメモリ領域133を拡張すると判定してもよい。 In the first embodiment described above, when the free space of the work area 132 is equal to or greater than the threshold value, the control unit 111 executes the process of expanding the page memory area 133 by using a part of the work area 132 as an expansion area. The method for determining whether or not to expand the page memory area 133 is not limited to that shown in the embodiment described above. For example, the control unit 111 may determine to expand the page memory area 133 when the ratio of the free area of the work area 132 to the whole is equal to or greater than a threshold value.

上述の実施形態1では、登録バッファ領域134にラスターデータをページ単位で登録する毎に、そのラスターデータに対応するページメモリ領域133の拡張領域を解放する処理をページ単位で実行した(図8のステップS304~S307)。拡張領域を解放するタイミングは上述した実施形態で示したものに限られない。例えば、ページメモリ領域133に記憶された全ての色変換前ラスターデータに対する色変換処理が完了した後に、拡張領域が解放されてもよい。 In the first embodiment described above, each time raster data is registered in the registration buffer area 134 in units of pages, the process of releasing the extended area of the page memory area 133 corresponding to the raster data is executed in units of pages (see FIG. 8). Steps S304 to S307). The timing of releasing the expansion area is not limited to that shown in the embodiment described above. For example, the expansion area may be released after the color conversion process for all of the pre-color conversion raster data stored in the page memory area 133 is completed.

〔ソフトウェアによる実現例〕
印刷装置1の制御ブロック(特にRIP処理部101、第1印刷処理部102、第2印刷処理部103、割込受付部104、及びRIP継続処理部105)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Example of implementation using software]
The control blocks of the printing apparatus 1 (particularly the RIP processing unit 101, first print processing unit 102, second print processing unit 103, interrupt reception unit 104, and RIP continuation processing unit 105) are integrated circuits (IC chips), etc. It may be realized by a formed logic circuit (hardware) or may be realized by software.

後者の場合、印刷装置1は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、前記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、前記コンピュータにおいて、前記プロセッサが前記プログラムを前記記録媒体から読み取って実行することにより、本発明の目的が達成される。前記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。前記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、前記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、前記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して前記コンピュータに供給されてもよい。なお、本発明の一態様は、前記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。 In the latter case, the printing device 1 includes a computer that executes instructions of a program that is software that implements each function. This computer includes, for example, one or more processors and a computer-readable recording medium storing the program. Then, in the computer, the processor reads the program from the recording medium and executes it, thereby achieving the object of the present invention. As the processor, for example, a CPU (Central Processing Unit) can be used. As the recording medium, in addition to "non-temporary tangible media" such as ROM (Read Only Memory), tapes, disks, cards, semiconductor memories, programmable logic circuits, etc. can be used. Further, the computer may further include a RAM (Random Access Memory) for expanding the program. Further, the program may be supplied to the computer via any transmission medium (communication network, broadcast wave, etc.) that can transmit the program. Note that one aspect of the present invention can also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the embodiments described above, and various modifications can be made within the scope of the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. are also included within the technical scope of the present invention.

1 印刷装置
9 PC
11 ASIC
111 制御部
12 ROM
13 RAM
14 印刷部
15 読取部
16 通信インタフェース
17 操作パネル
100 印刷システム
101 RIP処理部
102 第1印刷処理部
103 第2印刷処理部
104 割込受付部
105 RIP継続処理部
131 受信バッファ領域
132 ワーク領域
133 ページメモリ領域
134 登録バッファ領域
1 Printing device 9 PC
11 ASIC
111 Control unit 12 ROM
13 RAM
14 Printing section 15 Reading section 16 Communication interface 17 Operation panel 100 Printing system 101 RIP processing section 102 First print processing section 103 Second print processing section 104 Interrupt reception section 105 RIP continuation processing section 131 Reception buffer area 132 Work area 133 Page Memory area 134 Registration buffer area

Claims (9)

画像を記録媒体に印刷する印刷部と、
外部端末から、ページ記述言語で記述された第1データを受信する通信部と、
ユーザの操作を受け付ける操作パネルと、
前記操作パネルによる入力に応じて原稿の画像を読み取る画像読取部と、
記憶部と、
制御部と、
を備え、
前記記憶部には、前記通信部により受信される第1データを記憶する受信バッファ領域、RIP処理において用いられるワーク領域、及び、前記RIP処理により生成されるラスターデータを記憶するページメモリ領域が設けられ、
前記制御部は、
前記受信バッファ領域に記憶されている前記第1データを解析し、前記ワーク領域を用いてラスターデータを生成するRIP処理と、
前記RIP処理により生成された前記ラスターデータに基づく画像を、前記印刷部を用いて印刷する第1印刷処理と、
前記画像読取部によって読み取られた原稿の画像である第2データを、前記印刷部を用いて印刷する第2印刷処理と、
前記第1印刷処理の実行中に、前記第2印刷処理を実行する割込印刷の指示を前記操作パネルにより受け付ける割込受付処理と、
前記割込受付処理により前記割込印刷の指示が受け付けられると、前記ページメモリ領域を前記ワーク領域に拡張し、前記第1印刷処理を停止させるとともに、前記RIP処理を継続し、継続される前記RIP処理により生成される前記ラスターデータを、拡張された前記ページメモリ領域に記憶していく、RIP継続処理と、
を実行する、
ことを特徴とする印刷装置。
a printing section that prints images on a recording medium;
a communication unit that receives first data written in a page description language from an external terminal;
an operation panel that accepts user operations;
an image reading unit that reads an image of a document in accordance with input from the operation panel;
storage section and
a control unit;
Equipped with
The storage unit includes a reception buffer area for storing first data received by the communication unit, a work area used in RIP processing, and a page memory area for storing raster data generated by the RIP processing. is,
The control unit includes:
RIP processing that analyzes the first data stored in the reception buffer area and generates raster data using the work area;
a first printing process of printing an image based on the raster data generated by the RIP process using the printing unit;
a second printing process of printing second data, which is an image of the document read by the image reading unit, using the printing unit;
an interrupt acceptance process of accepting an interrupt printing instruction to execute the second print process using the operation panel while the first print process is being executed;
When the interrupt printing instruction is accepted by the interrupt acceptance process, the page memory area is expanded to the work area, the first print process is stopped, and the RIP process is continued. RIP continuation processing for storing the raster data generated by the RIP processing in the expanded page memory area;
execute,
A printing device characterized by:
前記制御部は、
前記RIP継続処理において、前記RIP処理のタスク優先順位を前記第2印刷処理のタスク優先順位よりも下げる処理を実行する、
ことを特徴とする請求項1に記載の印刷装置。
The control unit includes:
in the RIP continuation process, executing a process that lowers the task priority of the RIP process below the task priority of the second print process;
The printing device according to claim 1, characterized in that:
前記制御部は、
前記第2印刷処理が完了した後、前記RIP処理のタスク優先順位を元に戻す処理を実行する、
ことを特徴とする請求項2に記載の印刷装置。
The control unit includes:
After the second printing process is completed, performing a process of restoring the task priority of the RIP process to its original state;
The printing device according to claim 2, characterized in that:
前記制御部は、
前記第2印刷処理を開始してから完了するまでの一部の期間において、前記RIP処理のタスクをスリープさせる処理を実行する、
請求項1~3のいずれか1項に記載の印刷装置。
The control unit includes:
executing a process of putting the RIP process task to sleep during a part of the period from the start of the second print process to the completion of the second print process;
The printing device according to any one of claims 1 to 3.
前記制御部は、
前記RIP継続処理において、ページ単位での前記RIP処理が開始される毎に、1ページ分のラスターデータを記憶可能な領域を拡張領域として前記ページメモリ領域に加える、
ことを特徴とする請求項1~4のいずれか1項に記載の印刷装置。
The control unit includes:
In the RIP continuation process, each time the RIP process is started in page units, an area capable of storing one page of raster data is added to the page memory area as an expansion area.
The printing device according to any one of claims 1 to 4, characterized in that:
前記制御部は、
前記第2印刷処理が完了した後、前記第1印刷処理を再開し、前記ワーク領域において前記ページメモリ領域として拡張された領域を解放する処理を実行する、
ことを特徴とする請求項1~5のいずれか1項に記載の印刷装置。
The control unit includes:
After the second printing process is completed, restarting the first printing process and performing a process of releasing an area expanded as the page memory area in the work area.
The printing device according to any one of claims 1 to 5, characterized in that:
前記制御部は、
前記RIP継続処理において、前記ワーク領域の空き領域が閾値以上である場合に、当該空き領域の一部を拡張領域として前記ページメモリ領域を拡張する、
ことを特徴とする請求項1~6のいずれか1項に記載の印刷装置。
The control unit includes:
In the RIP continuation process, when the free space in the work area is equal to or greater than a threshold, expanding the page memory area by using a part of the free space as an expansion area;
The printing device according to any one of claims 1 to 6, characterized in that:
画像を記録媒体に印刷する印刷部と、
外部端末から、ページ記述言語で記述された第1データを受信する通信部と、
ユーザの操作を受け付ける操作パネルと、前記操作パネルによる入力に応じて原稿の画像を読み取る画像読取部と、
記憶部と、
を備えた印刷装置を制御する制御方法であって、
前記記憶部には、前記通信部により受信される第1データを記憶する受信バッファ領域、RIP処理工程において用いられるワーク領域、及び、前記RIP処理工程により生成されるラスターデータを記憶するページメモリ領域が設けられ、
前記受信バッファ領域に記憶されている前記第1データを解析し、前記ワーク領域を用いてラスターデータを生成するRIP処理工程と、
前記RIP処理工程により生成された前記ラスターデータに基づく画像を、前記印刷部を用いて印刷する第1印刷処理工程と、
前記画像読取部によって読み取られた原稿の画像である第2データを、前記印刷部を用いて印刷する第2印刷処理工程と、
前記第1印刷処理工程の実行中に、前記第2印刷処理工程を実行する割込印刷の指示を前記操作パネルにより受け付ける割込受付処理工程と、
前記割込受付処理工程により前記割込印刷の指示が受け付けられると、前記ページメモリ領域を前記ワーク領域に拡張し、前記第1印刷処理工程を停止させるとともに、前記RIP処理工程を継続し、継続される前記RIP処理工程により生成される前記ラスターデータを、拡張された前記ページメモリ領域に記憶していく、RIP継続処理工程と、
を実行する、
ことを特徴とする制御方法。
a printing section that prints images on a recording medium;
a communication unit that receives first data written in a page description language from an external terminal;
an operation panel that accepts user operations; an image reading unit that reads an image of a document in accordance with input from the operation panel;
storage section and
A control method for controlling a printing device comprising:
The storage unit includes a reception buffer area for storing first data received by the communication unit, a work area used in the RIP process, and a page memory area for storing raster data generated by the RIP process. is established,
a RIP processing step of analyzing the first data stored in the reception buffer area and generating raster data using the work area;
a first print processing step of printing an image based on the raster data generated by the RIP processing step using the printing unit;
a second printing process step of printing second data, which is an image of the document read by the image reading unit, using the printing unit;
an interrupt reception processing step of accepting an interrupt printing instruction for executing the second print processing step through the operation panel during execution of the first print processing step;
When the interrupt printing instruction is accepted by the interrupt reception processing step, the page memory area is expanded to the work area, the first print processing step is stopped, and the RIP processing step is continued. a RIP continuation processing step of storing the raster data generated by the RIP processing step in the expanded page memory area;
execute,
A control method characterized by:
請求項1に記載の印刷装置における制御部としてコンピュータを機能させるための制御プログラム。 A control program for causing a computer to function as a control unit in the printing apparatus according to claim 1.
JP2019238691A 2019-12-27 2019-12-27 Printing device, control method, and control program Active JP7384032B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019238691A JP7384032B2 (en) 2019-12-27 2019-12-27 Printing device, control method, and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019238691A JP7384032B2 (en) 2019-12-27 2019-12-27 Printing device, control method, and control program

Publications (2)

Publication Number Publication Date
JP2021108418A JP2021108418A (en) 2021-07-29
JP7384032B2 true JP7384032B2 (en) 2023-11-21

Family

ID=76968296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019238691A Active JP7384032B2 (en) 2019-12-27 2019-12-27 Printing device, control method, and control program

Country Status (1)

Country Link
JP (1) JP7384032B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004106282A (en) 2002-09-17 2004-04-08 Seiko Epson Corp Printer and copy system
JP2016163108A (en) 2015-02-27 2016-09-05 ブラザー工業株式会社 Facsimile apparatus and printing method for facsimile apparatus
JP2016196111A (en) 2015-04-02 2016-11-24 キヤノン株式会社 Image processing apparatus, and control method and control program thereof
JP2018185652A (en) 2017-04-26 2018-11-22 ブラザー工業株式会社 Printer driver

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004106282A (en) 2002-09-17 2004-04-08 Seiko Epson Corp Printer and copy system
JP2016163108A (en) 2015-02-27 2016-09-05 ブラザー工業株式会社 Facsimile apparatus and printing method for facsimile apparatus
JP2016196111A (en) 2015-04-02 2016-11-24 キヤノン株式会社 Image processing apparatus, and control method and control program thereof
JP2018185652A (en) 2017-04-26 2018-11-22 ブラザー工業株式会社 Printer driver

Also Published As

Publication number Publication date
JP2021108418A (en) 2021-07-29

Similar Documents

Publication Publication Date Title
JP2007257592A (en) Printing system, information processor, and printer
JP2001158159A (en) Printing control method and device, and printing system
US8767247B2 (en) Print data generation device, print data generation method and computer-readable medium for controlling rasterization processing
US20180321886A1 (en) Image processing apparatus capable of obtaining prediction value of time relating to printing, image processing method, and storage medium
US8085424B2 (en) Multiple-port print device
JP7384031B2 (en) Printing device, control method, and control program
JP7384032B2 (en) Printing device, control method, and control program
US20180129508A1 (en) Information processing apparatus, activation method of information processing apparatus, and storage medium
US9875073B2 (en) Printing apparatus and control method therefor
US8582153B2 (en) Image forming apparatus and method
JP2001180085A (en) Imaging apparatus
JP2017111607A (en) Information processor, control method, and program
US11144803B1 (en) Image processing apparatus, image forming apparatus, and image processing method for temporarily deleting page area of ring buffer
JP2004062431A (en) Information processing device and method, and print control program
US20200401071A1 (en) Image forming apparatus, control method therefor, and program
JP2010098426A (en) Controller, image forming apparatus, and program
JP6545144B2 (en) Image processing apparatus for obtaining predicted value of time required for printing, image processing method and program thereof
JP2007230020A (en) Image-forming apparatus and control program
JP2021009641A (en) Information processing device, program and printing system
JP4150850B2 (en) Image processing apparatus, image processing method, and program
JP2002370409A (en) Print system, print control method, program and storage medium
JP2020144604A (en) Image formation system, information processor, and information processing method
JP5701234B2 (en) Image forming apparatus and character drawing program
JP2012190238A (en) Information processing device and program
JP2006056170A (en) Image forming device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221223

RD07 Notification of extinguishment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7427

Effective date: 20230404

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20230622

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20230622

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230912

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231023

R150 Certificate of patent or registration of utility model

Ref document number: 7384032

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150