JP2021104650A - Printer - Google Patents
Printer Download PDFInfo
- Publication number
- JP2021104650A JP2021104650A JP2019237685A JP2019237685A JP2021104650A JP 2021104650 A JP2021104650 A JP 2021104650A JP 2019237685 A JP2019237685 A JP 2019237685A JP 2019237685 A JP2019237685 A JP 2019237685A JP 2021104650 A JP2021104650 A JP 2021104650A
- Authority
- JP
- Japan
- Prior art keywords
- data
- cpu
- resource
- read
- command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007639 printing Methods 0.000 claims abstract description 55
- 238000012545 processing Methods 0.000 claims abstract description 31
- 230000015654 memory Effects 0.000 claims abstract description 23
- 238000000034 method Methods 0.000 claims description 103
- 238000004891 communication Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 description 8
- 238000012546 transfer Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Facsimiles In General (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Description
本発明は、画像を記録媒体に印刷する印刷装置に関する。 The present invention relates to a printing apparatus that prints an image on a recording medium.
従来、印刷装置として、ページ記述言語によって記述された印刷データを受信し、受信した印刷データをラスタ形式に変換して画像化するRIP処理を実行するものが知られている(特許文献1参照)。具体的に、この技術では、受信した印刷データから文字コード列を抽出した後、文字コード列を解析し、解析の結果、使用するフォントデータが圧縮フォントデータである場合には、圧縮フォントデータをROMからRAMにコピーした後、RIP処理を実行する。 Conventionally, as a printing device, a device that receives print data described in a page description language, converts the received print data into a raster format, and executes an RIP process for imaging (see Patent Document 1). .. Specifically, in this technology, after extracting the character code string from the received print data, the character code string is analyzed, and as a result of the analysis, if the font data to be used is the compressed font data, the compressed font data is used. After copying from ROM to RAM, RIP processing is executed.
しかしながら、従来技術では、フォントデータをROMからRAMにコピーする時間の間、RIP処理を実行することができないため、印刷が完了するまでに時間がかかる問題がある。 However, in the prior art, there is a problem that it takes time to complete printing because the RIP process cannot be executed during the time for copying the font data from the ROM to the RAM.
そこで、本発明は、RIP処理を実行する印刷装置において、印刷完了までにかかる時間を短縮することを目的とする。 Therefore, an object of the present invention is to reduce the time required to complete printing in a printing apparatus that executes RIP processing.
前記課題を解決するため、本発明に係る印刷装置は、画像を記録媒体に印刷する印刷部と、ページ記述言語によって記述された複数のコマンドによって構成される印刷データを受信する通信部と、印刷データをラスターデータに展開するRIP処理の実行に必要なリソースデータが記憶された、不揮発性メモリからなる第1記憶部に、アクセス可能な第1制御部と、前記第1制御部とは独立して動作可能な第2制御部と、揮発性メモリであって、バッファ領域と、リソース読出領域と、ページメモリ領域と、を有する第2記憶部と、を備える。
前記第1制御部は、印刷データを前記通信部で受信すると、受信した印刷データを前記バッファ領域に一時的に蓄積する蓄積処理と、前記バッファ領域に蓄積された印刷データの中に、リソース読出コマンドがある場合に、前記第1記憶部内のリソースデータを前記リソース読出領域に読み出すリソース読出処理と、前記ページメモリ領域に記憶されるラスターデータに基づく画像を、前記印刷部を用いて前記記録媒体に印刷する印刷処理と、を実行可能である。
前記第2制御部は、前記バッファ領域から所定領域ごとに印刷データを読み出し、読み出した印刷データと、前記リソース読出領域に記憶されたリソースデータとに基づいて、ラスターデータを作成し、作成したラスターデータを前記ページメモリ領域に記憶させるRIP処理を実行可能である。
前記第1制御部は、前記第2制御部による前記RIP処理中に、前記リソース読出処理を実行可能である。
In order to solve the above problems, the printing apparatus according to the present invention includes a printing unit that prints an image on a recording medium, a communication unit that receives print data composed of a plurality of commands described in a page description language, and printing. The first control unit that can access the first storage unit made of non-volatile memory, which stores the resource data required to execute the RIP process that expands the data into raster data, and the first control unit are independent of each other. It includes a second control unit that can operate, and a second storage unit that is a volatile memory and has a buffer area, a resource read area, and a page memory area.
When the communication unit receives the print data, the first control unit temporarily stores the received print data in the buffer area, and reads resources into the print data stored in the buffer area. When there is a command, the resource read process for reading the resource data in the first storage unit to the resource read area and the image based on the raster data stored in the page memory area are recorded on the recording medium using the print unit. It is possible to execute the printing process of printing to.
The second control unit reads print data from the buffer area for each predetermined area, creates raster data based on the read print data, and resource data stored in the resource read area, and creates the created raster. RIP processing for storing data in the page memory area can be executed.
The first control unit can execute the resource read process during the RIP process by the second control unit.
この構成によれば、RIP処理中にリソース読出処理を実行することができるので、印刷完了までにかかる時間を短縮することができる。 According to this configuration, the resource read process can be executed during the RIP process, so that the time required to complete printing can be shortened.
また、前記印刷装置は、受信した印刷データを蓄積する受信バッファを備え、前記第2制御部は、前記RIP処理において、前記バッファ領域から読み出した印刷データを解析して、前記ラスターデータを作成するためのオブジェクトデータを作成するコマンド解析処理を実行可能であり、前記第1制御部は、前記コマンド解析処理の完了後に、前記コマンド解析処理の対象であった印刷データを前記バッファ領域から削除した後、前記バッファ領域の空き容量分だけ前記受信バッファから前記バッファ領域に印刷データを移動させてもよい。 Further, the printing device includes a reception buffer for accumulating received print data, and the second control unit analyzes the print data read from the buffer area in the RIP process to create the raster data. It is possible to execute a command analysis process for creating object data for the purpose, and the first control unit deletes the print data that was the target of the command analysis process from the buffer area after the command analysis process is completed. , Print data may be moved from the receive buffer to the buffer area by the amount of free space in the buffer area.
これによれば、バッファ領域に割り当てる領域を小さくすることができるので、第2記憶部のその他の記憶領域を大きくすることができる。 According to this, since the area allocated to the buffer area can be reduced, the other storage areas of the second storage unit can be increased.
また、前記リソースデータは、フォントデータであってもよい。 Further, the resource data may be font data.
また、前記リソースデータは、所定の画像に対応したマクロデータであってもよい。 Further, the resource data may be macro data corresponding to a predetermined image.
また、前記印刷装置は、前記第1記憶部を備えていてもよい。 Further, the printing device may include the first storage unit.
本発明によれば、RIP処理を実行する印刷装置において、印刷完了までにかかる時間を短縮することができる。 According to the present invention, in a printing apparatus that executes RIP processing, the time required to complete printing can be shortened.
次に、本発明の実施形態について、適宜図面を参照しながら詳細に説明する。
図1に示すように、印刷装置1は、用紙などの記録媒体に画像を印刷する装置である。印刷装置1は、端末PCから送信されてくるPDLデータを印刷用のラスターデータに展開するRIP処理を実行可能に構成されている。ここで、PDLデータは、ページ記述言語によって記述された複数のコマンドによって構成される印刷データである。また、端末PCは、コンピュータやタブレット型の携帯端末などである。
Next, an embodiment of the present invention will be described in detail with reference to the drawings as appropriate.
As shown in FIG. 1, the
図2に示すように、印刷装置1は、印刷部11と、通信部12と、第1記憶部の一例としてのROM13およびフラッシュROM14と、第2記憶部の一例としてのRAM15と、ASIC16とを備えている。
As shown in FIG. 2, the
印刷部11は、記録媒体に画像を印刷する機能を有している。印刷部11は、感光体、帯電器、露光器、現像器、転写器、定着器などを備えている。帯電器は、感光体を帯電させる機能を有する。露光器は、感光体を露光して感光体上に静電潜像を形成する機能を有する。現像器は、感光体の静電潜像にトナーを供給して感光体上にトナー像を形成する機能を有する。転写器は、感光体上のトナー像を記録媒体に転写する機能を有する。定着器は、記録媒体にトナー像を定着させる機能を有する。
The
通信部12は、端末PCから送信されてくるPDLデータを受信する機能を有している。なお、通信部12は、PDLデータを受信するためのLANインターフェースや、電話回線が接続されてFAXを送受信するモデムなどであってもよい。通信部12は、受信したPDLデータを蓄積する受信バッファ12Aを有している。
The
ROM13およびフラッシュROM14は、不揮発性メモリである。ROM13およびフラッシュROM14には、RIP処理の実行に必要なリソースデータが記憶されている。
The
詳しくは、ROM13には、リソースデータの一例としての内蔵フォントが記憶されている。内蔵フォントは、ROM13に予め記憶された標準のフォントデータである。内蔵フォントとしては、例えばArialやゴシックなどの複数種類のフォントデータが挙げられる。
Specifically, the
フラッシュROM14には、リソースデータの一例としてのダウンロードフォントおよびマクロデータが記憶されている。ダウンロードフォントは、印刷装置1をユーザが操作することによって、インターネットなどを介してフラッシュROM14にダウンロードされるフォントデータである。ダウンロードフォントとしては、内蔵フォントにはない種類のフォントデータが挙げられる。
The
マクロデータは、企業のロゴなどの所定の画像、テキストなどに対応したデータである。マクロデータとしては、例えば所定の画像に対応したビットマップデータが挙げられる。マクロデータは、例えばインターネットなどを介してフラッシュROM14にダウンロードされる。
Macro data is data corresponding to a predetermined image such as a company logo, text, or the like. Examples of macro data include bitmap data corresponding to a predetermined image. The macro data is downloaded to the
RAM15は、揮発性メモリである。RAM15は、バッファ領域の一例としてのリングバッファ15Aと、リソース読出領域の一例としてのフォントデータ読出領域15Bおよびマクロデータ読出領域15Cと、ワーク領域15Dと、ページメモリ領域15Eとを有する。
The
図3に示すように、リングバッファ15Aは、受信バッファ12Aに蓄積されているPDLデータ(複数のコマンド)の一部を一時的に記憶させておくための記憶領域である。フォントデータ読出領域15Bは、ROM13またはフラッシュROM14に記憶されている複数種類のフォントデータ(内蔵フォントまたはダウンロードフォント)の一部を一時的に記憶させておくための記憶領域である。
As shown in FIG. 3, the
マクロデータ読出領域15Cは、フラッシュROM14に記憶されている複数種類のマクロデータの一部を一時的に記憶させておくための記憶領域である。ワーク領域15Dは、コマンドやフォントデータなどに基づいて作成するオブジェクトデータと、オブジェクトデータの位置を示す座標情報と、オブジェクトデータのサイズなどを示すその他の情報を一時的に記憶させておくための記憶領域である。ページメモリ領域15Eは、オブジェクトデータや座標情報などに基づいて、1ページ分のラスターデータを一時的に記憶させておくための記憶領域である。
The macro data read
図2に戻って、ASIC16は、第1制御部の一例としての第1CPU16Aと、第2制御部の一例としての第2CPU16Bとを有している。
Returning to FIG. 2, the
第1CPU16Aは、ROM13、フラッシュROM14およびRAM15にアクセス可能となっている。第2CPU16Bは、第1CPU16Aとは独立して動作可能なCPUであり、RAM15にアクセス可能となっている。
The
第1CPU16Aは、蓄積処理と、リソース読出処理と、印刷処理とを実行可能となっている。蓄積処理は、通信部12で受信したPDLデータの一部をリングバッファ15Aに一時的に蓄積させる処理である。第1CPU16Aは、PDLデータを通信部12で受信すると、蓄積処理を実行する。詳しくは、図3に示すように、第1CPU16Aは、PDLデータを通信部12で受信すると、まず、PDLデータを受信バッファ12Aに記憶させる。その後、第1CPU16Aは、受信バッファ12A内のPDLデータの一部を読み出して、リングバッファ15Aの空き領域に書き込む。なお、図3において、太線の矢印は、第1CPU16Aによる処理を示し、細線の矢印は、第2CPU16Bによる処理を示す。
The
リソース読出処理は、リングバッファ15Aに蓄積されたPDLデータの中に、リソース読出コマンドがある場合に、ROM13またはフラッシュROM14内のリソースデータ(フォントデータまたはマクロデータ)をリソース読出領域(フォントデータ読出領域15Bまたはマクロデータ読出領域15C)に読み出す処理である。詳しくは、第1CPU16Aは、蓄積処理の後、リングバッファ15Aに蓄積されたPDLデータの中に、リソース読出コマンドの一例としてのフォントロードコマンドまたはマクロロードコマンドがあるか否かを判定する先行解析処理を実行する。
In the resource read process, when there is a resource read command in the PDL data stored in the
リングバッファ15A内にフォントロードコマンドがある場合には、第1CPU16Aは、そのフォントロードコマンドで指示されている所定種類のフォントデータを、ROM13またはフラッシュROM14から読み出し、所定種類のフォントデータをRAM15のフォントデータ読出領域15Bに書き込む。
When there is a font load command in the
リングバッファ15A内にマクロロードコマンドがある場合には、第1CPU16Aは、そのマクロロードコマンドで指示されている所定種類のマクロデータを、フラッシュROM14から読み出し、所定種類のマクロデータをRAM15のマクロデータ読出領域15Cに書き込む。
When there is a macro load command in the
第1CPU16Aは、このようなリソース読出処理を、後述する第2CPU16BによるRIP処理中に実行可能となっている。
The
印刷処理は、ページメモリ領域15Eに記憶されるラスターデータに基づく画像を、印刷部11を用いて記録媒体に印刷する処理である。詳しくは、第1CPU16Aは、印刷処理において、ラスターデータに基づいて感光体を露光することで、ラスターデータに基づく画像を記録媒体に印刷する。
The printing process is a process of printing an image based on raster data stored in the
第2CPU16Bは、RIP処理を実行可能となっている。第2CPU16Bは、RIP処理において、リングバッファ15Aから所定領域ごとにPDLデータを読み出し、読み出したPDLデータと、フォントデータ読出領域15Bまたはマクロデータ読出領域15Cに記憶されたリソースデータとに基づいて、ラスターデータを作成し、作成したラスターデータをページメモリ領域15Eに記憶させる。
The
詳しくは、第2CPU16Bは、RIP処理において、リングバッファ15Aから読み出したPDLデータ(コマンド)を解析して、ラスターデータを作成するためのオブジェクトデータを作成するコマンド解析処理を実行可能となっている。第2CPU16Bは、コマンド解析処理によって作成したオブジェクトデータをワーク領域15Dに登録する。そして、第2CPU16Bは、ワーク領域15Dに1ページ分のオブジェクトデータを登録すると、ワーク領域15D内のデータに基づいてラスターデータをページメモリ領域15Eに作成する。
Specifically, in the RIP process, the
なお、ワーク領域15Dに1ページ分のオブジェクトデータを登録したか否かは、第2CPU16Bが、リングバッファ15Aから終了コマンドを読み出したか否かで判定している。ここで、終了コマンドは、1ページ分の複数のコマンドの最後に付されるコマンドである。
Whether or not one page of object data is registered in the
第1CPU16Aは、コマンド解析処理の完了後に、コマンド解析処理の対象であったコマンドをリングバッファ15Aから削除した後、リングバッファ15Aの空き容量分だけ受信バッファ12Aからリングバッファ15AにPDLデータの一部(コマンド)を移動させる機能を有している。ここで、リングバッファ15A内における処理済みのコマンドの削除・新たなコマンドの移動(書き込み)は、処理済みのコマンドを新たなコマンドで上書きすることも含む。
After the command analysis process is completed, the
以下に、図4を参照して、リングバッファ15A内におけるコマンドの削除・書き込みと、前述した先行解析処理・リソース読出処理について、簡単に説明する。
第1CPU16Aは、受信バッファ12Aからリングバッファ15Aへのコマンドの移動を、PDLデータを通信部12で受信してから最初に実行する場合には、図4(a)に示すように、リングバッファ15Aのすべての領域に複数のコマンドを書き込む。
Hereinafter, with reference to FIG. 4, the deletion / writing of commands in the
When the
その後、第1CPU16Aによる先行解析処理と、第2CPU16Bによるコマンド解析処理が略同時に開始される。第1CPU16Aは、先行解析処理において、リングバッファ15A内にフォントロードコマンドまたはマクロロードコマンドがあるか否かを判定する。リングバッファ15A内にフォントロードコマンドがある場合には、第1CPU16Aは、そのフォントロードコマンドで指示されている所定種類のフォントデータを、ROM13またはフラッシュROM14から読み出すリソース読出処理を開始する。
After that, the preceding analysis process by the
第2CPU16Bは、リングバッファ15A内の所定数のコマンドを第2CPU16Bが順次読み出し、各コマンドに対応するコマンド解析処理を実行する。所定数のコマンドに対応したコマンド解析処理が完了すると、図4(b)に示すように、第1CPU16Aは、コマンド解析処理済みのコマンドをリングバッファ15Aから削除する。これにより、図4(c)に示すような空き領域(ブランク)が、リングバッファ15Aに生じる。
The
その後、第1CPU16Aは、受信バッファ12Aからリングバッファ15Aの空き領域分のコマンドを読み出し、図4(d)に示すように、読み出したコマンドをリングバッファ15Aの空き領域に書き込む。
After that, the
次に、第1CPU16Aおよび第2CPU16Bの処理の一例について詳細に説明する。第1CPU16Aは、図5に示す処理を繰り返し実行している。
Next, an example of processing of the
図5に示す処理において、第1CPU16Aは、まず、通信部12がPDLデータの受信を開始したか否かを判定する(S1)。ステップS1においてPDLデータの受信が開始されたと判定した場合には(Yes)、第1CPU16Aは、先行解析処理を実行する(S2)。なお、先行解析処理については、後で詳述する。
In the process shown in FIG. 5, the
ステップS2の後、第1CPU16Aは、第2CPU16Bによる1ページ分のRIP処理が完了したことを示すRIP完了通知が第2CPU16Bから出力されたか否かを判定する(S3)。ステップS3においてRIP完了通知が出力されたと判定した場合には(Yes)、第1CPU16Aは、印刷処理を実行する(S4)。
After step S2, the
ステップS4の後、第1CPU16Aは、PDLデータで指定されているページ数分の印刷が終了したか否かを判定する(S5)。ステップS5において印刷が終了していないと判定した場合には(No)、第1CPU16Aは、ステップS3の処理に戻る。ステップS5において印刷が終了したと判定した場合には(Yes)、第1CPU16Aは、本処理を終了する。
After step S4, the
図6に示すように、先行解析処理において、第1CPU16Aは、まず、リングバッファ15Aの空き容量分だけ、受信バッファ12Aからリングバッファ15AにPDLデータを移動する(S11)。ステップS11の後、第1CPU16Aは、リングバッファ15Aにフォントロードコマンドが存在するか否かを判定する(S12)。
As shown in FIG. 6, in the advance analysis process, the
ステップS12においてフォントロードコマンドが存在すると判定した場合には(Yes)、第1CPU16Aは、そのフォントロードコマンドで指示されている所定種類のフォントデータを、ROM13またはフラッシュROM14からRAM15のフォントデータ読出領域15Bに読み出すリソース読出処理を開始する(S13)。
If it is determined in step S12 that the font load command exists (Yes), the
ステップS12においてフォントロードコマンドが存在しないと判定した場合には(No)、第1CPU16Aは、リングバッファ15Aにマクロロードコマンドが存在するか否かを判定する(S14)。ステップS14においてマクロロードコマンドが存在すると判定した場合には(Yes)、第1CPU16Aは、そのマクロロードコマンドで指示されている所定種類のマクロデータを、フラッシュROM14からRAM15のマクロデータ読出領域15Cに読み出すリソース読出処理を開始する(S15)。
If it is determined in step S12 that the font load command does not exist (No), the
ステップS13,S15の後、または、ステップS14でNoと判定した後、第1CPU16Aは、第2CPU16Bによるコマンド解析処理が終了したことを示す解析終了通知が第2CPU16Bから出力されたか否かを判定する(S16)。ステップS16において解析終了通知が出力されたと判定した場合には(Yes)、第1CPU16Aは、リングバッファ15Aからコマンド解析処理済みのコマンドを削除する(S17)。
After determining No in steps S13 and S15, or after determining No in step S14, the
ステップS17の後、第1CPU16Aは、全てのPDLデータを受信バッファ12Aからリングバッファ15Aに移動したか否かを判定する(S18)。ステップS18において全てのPDLデータの移動が完了していないと判定した場合には(No)、第1CPU16Aは、ステップS11の処理に戻る。ステップS18において全てのPDLデータの移動が完了したと判定した場合には(Yes)、第1CPU16Aは、本処理を終了する。
After step S17, the
第2CPU16Bは、第1CPU16Aが通信部12を介してPDLデータの受信を開始した場合に、図7に示す処理を開始する。図7に示す処理において、第2CPU16Bは、まず、リングバッファ15Aから所定バイト分の複数のコマンドを読み出す(S31)。なお、以下の説明では、読み出したコマンドを、読出コマンドとも称する。
The
ステップS31の後、第2CPU16Bは、読出コマンドが、図形やイメージなどのオブジェクトデータを作成するための描画コマンドであるか否かを判定する(S32)。ステップS32において読出コマンドが描画コマンドであると判定した場合には(Yes)、第2CPU16Bは、描画コマンドを解析し(S33)、解析によって得られた図形やイメージなどのオブジェクトデータおよび座標情報等を、ワーク領域15Dに登録する(S34)。
After step S31, the
ステップS32において読出コマンドが描画コマンドでないと判定した場合には(No)、第2CPU16Bは、読出コマンドがフォントロードコマンドであるか否かを判定する(S35)。ステップS35において読出コマンドがフォントロードコマンドであると判定した場合には(Yes)、第2CPU16Bは、RAM15のフォントデータ読出領域15Bから第2CPU16Bのバッファメモリにフォントデータを読み出す(S36)。
If it is determined in step S32 that the read command is not a drawing command (No), the
ステップS35において読出コマンドがフォントロードコマンドでないと判定した場合には(No)、第2CPU16Bは、読出コマンドが、テキストのオブジェクトデータを作成するためのテキストコマンドであるか否かを判定する(S37)。ステップS37において読出コマンドがテキストコマンドであると判定した場合には(Yes)、第2CPU16Bは、テキストコマンドを解析してテキストの文字種および座標情報等を得た後、テキストの文字種とステップS36で読み出したフォントデータとに基づいてテキストのオブジェクトデータを作成し、テキストのオブジェクトデータおよび座標情報等をワーク領域15Dに登録する(S38)。
If it is determined in step S35 that the read command is not a font load command (No), the
ステップS37において読出コマンドがテキストコマンドでないと判定した場合には(No)、第2CPU16Bは、読出コマンドがマクロロードコマンドであるか否かを判定する(S39)。ステップS39において読出コマンドがマクロロードコマンドであると判定した場合には(Yes)、第2CPU16Bは、マクロロードコマンドを解析してマクロデータの種類および座標情報等を得た後、マクロデータの種類に対応したマクロデータを、RAM15のマクロデータ読出領域15Cから読み出す。その後、第2CPU16Bは、読み出したマクロデータをオブジェクトデータとしてワーク領域15Dに座標情報等とともに登録する(S40)。
If it is determined in step S37 that the read command is not a text command (No), the
ステップS39において読出コマンドがマクロロードコマンドでないと判定した場合には(No)、読出コマンドが終了コマンドであるため、第2CPU16Bは、ワーク領域15Dに登録されたオブジェクトデータをページメモリ領域15Eに書き出す(S41)。詳しくは、ステップS41において、第2CPU16Bは、ワーク領域15Dに登録されたオブジェクトデータおよび座標情報等に基づいて、1ページ分のラスターデータを、ページメモリ領域15Eに作成する。
If it is determined in step S39 that the read command is not a macro load command (No), the
ステップS41の後、第2CPU16Bは、1ページ分のRIP処理が完了したことを示すRIP完了通知を第1CPU16Aに出力する(S42)。ステップS34、ステップS36、ステップS38、ステップS40またはステップS42の後、第2CPU16Bは、リングバッファ15Aから読み出した所定バイト分の複数のコマンドの解析が終了したか否かを判定する(S43)。
After step S41, the
ステップS43において所定バイト分の複数のコマンドの解析が終了していないと判定した場合には(No)、第2CPU16Bは、複数のコマンドのうち解析が終了したコマンドの次のコマンドをコマンド解析処理の対象に設定して(S44)、ステップS32〜S42のコマンド解析処理に戻る。ステップS43において所定バイト分の複数のコマンドの解析が終了したと判定した場合には(Yes)、第2CPU16Bは、所定バイト分のコマンド解析処理が終了したことを示す解析終了通知を第1CPU16Aに出力する(S45)。
If it is determined in step S43 that the analysis of the plurality of commands for a predetermined byte has not been completed (No), the
ステップS45の後、第2CPU16Bは、リングバッファ15A内のすべてのコマンドについてコマンド解析処理が終了したか否かを判定する(S46)。詳しくは、ステップS46において、第2CPU16Bは、リングバッファ15A内にコマンド解析処理を実行していないコマンドが残っているか否かを判定する。
After step S45, the
ステップS46においてリングバッファ15A内のすべてのコマンドについてコマンド解析処理が終了していないと判定した場合には(No)、第2CPU16Bは、ステップS31の処理に戻る。ステップS46においてリングバッファ15A内のすべてのコマンドについてコマンド解析処理が終了したと判定した場合には(Yes)、第2CPU16Bは、本処理を終了する。
If it is determined in step S46 that the command analysis processing has not been completed for all the commands in the
次に、第1CPU16Aおよび第2CPU16Bの動作の一例について、図8を参照して説明する。
図8(a)に示すように、通信部12がPDLデータの受信を開始すると(時刻t1)、第1CPU16Aは、受信バッファ12A内のPDLデータの一部を読み出し、当該PDLデータの一部をリングバッファ15Aに書き出す(時刻t2)。その後、第1CPU16Aは、リングバッファ15Aからフォントロードコマンドまたはマクロロードコマンドを検索する先行解析処理を開始する(時刻t3)。また、この際、第2CPU16Bは、第1CPU16Aによる先行解析処理と略同時に、所定バイト分のコマンドを読み出す(時刻t3)。
Next, an example of the operation of the
As shown in FIG. 8A, when the
先行解析処理の結果、ダウンロードフォントを指定するフォントロードコマンドがリングバッファ15A内に存在した場合には、第1CPU16Aは、フラッシュROM14からダウンロードフォントを読み出し、当該ダウンロードフォントをフォントデータ読出領域15Bに書き出すリソース読出処理を開始する(時刻t4)。また、この際、第2CPU16Bは、第1CPU16Aによるリソース読出処理の開始と略同時に、RIP処理を開始する(時刻t4)。
As a result of the preliminary analysis processing, when a font load command for specifying the download font exists in the
RIP処理において、第2CPU16Bは、コマンドに応じたコマンド解析処理を順次実行する。第1CPU16Aによるリソース読出処理の実行中において、解析するコマンドが描画コマンドである場合には、第2CPU16Bは、リソース読出処理と並行してコマンド解析処理を実行する。
In the RIP process, the
第1CPU16Aによるリソース読出処理が完了した後に(時刻t5)、コマンド解析処理の対象がフォントロードコマンドであった場合には(時刻t6)、第2CPU16Bは、図8(b)に示すように、フォントデータ読出領域15Bに記憶されているダウンロードフォントを読み出す(時刻t7)。所定バイト分のコマンド解析処理が終了すると(時刻t8)、第2CPU16Bは、解析終了通知を第1CPU16Aに出力する。
After the resource read processing by the
第1CPU16Aは、第2CPU16Bから解析終了通知を受信すると(時刻t9)、リングバッファ15Aから解析済みのコマンドを削除する(時刻t10)。その後、第1CPU16Aは、受信バッファ12AからPDLデータの一部を読み出し、リングバッファ15Aの空き領域に書き込む(時刻t11)。
When the
その後、第1CPU16Aは、リングバッファ15Aの空き領域に書き込んだコマンドを対象にして先行解析処理を実行する(時刻t12)。また、第2CPU16Bは、第1CPU16Aによる先行解析処理と並行して、所定バイト分のコマンドを読み出す(時刻t12)。
After that, the
先行解析処理においてフォントロードコマンドまたはマクロロードコマンドがない場合には、第1CPU16Aは、第2CPU16Bからの指示待ちの状態となる(時刻t13〜t17)。第2CPU16Bは、コマンドに応じたコマンド解析処理を1ページ分実行した後、終了コマンドを検出すると(時刻t14)、オブジェクトデータをラスターデータにしてページメモリ領域15Eに書き込む(時刻t15)。
If there is no font load command or macro load command in the preceding analysis process, the
その後、第2CPU16Bは、RIP処理完了通知を第1CPU16Aに出力した後(時刻t16)、解析終了通知を第1CPU16Aに出力する(時刻t17)。第1CPU16Aは、第2CPU16BからRIP処理完了通知を受信すると、1ページ分の印刷処理を開始する(時刻t17)。また、第1CPU16Aは、第2CPU16Bから解析終了通知を受信すると、リングバッファ15Aから解析済みのコマンドを削除する(時刻t18)。
After that, the
このような処理を、PDLデータで指定されているページ数分、各CPU16A,16Bが実行する。これにより、全ページの印刷を実行している期間における一部の期間において、第1CPU16Aによるリソース読出処理と、第2CPU16BによるRIP処理とが並行して行われるので、印刷完了までにかかる時間が短縮される。なお、図8の例では、リソース読出処理においてフォントデータを読み出したが、リソース読出処理においてマクロデータを読み出すときも、リソース読出処理とRIP処理を並行して行うことができる。
Each
以上によれば、本実施形態において以下のような効果を得ることができる。
RIP処理中にリソース読出処理を実行することができるので、印刷完了までにかかる時間を短縮することができる。
Based on the above, the following effects can be obtained in the present embodiment.
Since the resource read process can be executed during the RIP process, the time required to complete printing can be shortened.
第1CPU16Aが、コマンド解析処理の完了後に、コマンド解析処理の対象であったコマンドをリングバッファ15Aから削除した後、リングバッファ15Aの空き容量分だけ受信バッファ12Aからリングバッファ15Aにコマンドを移動させるので、リングバッファ15Aに割り当てる領域を小さくすることができ、RAM15のその他の記憶領域を大きくすることができる。
After the command analysis process is completed, the
なお、本発明は前記実施形態に限定されることなく、以下に例示するように様々な形態で利用できる。 The present invention is not limited to the above embodiment, and can be used in various forms as illustrated below.
前記実施形態では、第1記憶部としてのROM13およびフラッシュROM14を印刷装置1に設けたが、本発明はこれに限定されず、第1記憶部は、印刷装置とは別の装置、例えばクラウドサーバに設けられていてもよい。
In the above embodiment, the
前記実施形態では、第1制御部および第2制御部(16A,16B)を1つの部品(ASIC16)として構成したが、本発明はこれに限定されず、第1制御部と第2制御部とをそれぞれ別部品として構成してもよい。 In the above embodiment, the first control unit and the second control unit (16A, 16B) are configured as one component (ASIC16), but the present invention is not limited to this, and the first control unit and the second control unit May be configured as separate parts.
前記実施形態では、リソースデータとして、フォントデータとマクロデータの両方を例示したが、本発明はこれに限定されず、フォントデータとマクロデータのいずれか一方をリソースデータとしてもよい。 In the above embodiment, both font data and macro data have been exemplified as resource data, but the present invention is not limited to this, and either font data or macro data may be used as resource data.
前記した実施形態および変形例で説明した各要素を、任意に組み合わせて実施してもよい。 Each element described in the above-described embodiment and modification may be arbitrarily combined and implemented.
1 印刷装置
11 印刷部
12 通信部
13 ROM
14 フラッシュROM
15 RAM
15A リングバッファ
15B フォントデータ読出領域
15C マクロデータ読出領域
15E ページメモリ領域
16A 第1CPU
16B 第2CPU
1
14 flash ROM
15 RAM
16B 2nd CPU
Claims (5)
ページ記述言語によって記述された複数のコマンドによって構成される印刷データを受信する通信部と、
印刷データをラスターデータに展開するRIP処理の実行に必要なリソースデータが記憶された、不揮発性メモリからなる第1記憶部に、アクセス可能な第1制御部と、
前記第1制御部とは独立して動作可能な第2制御部と、
揮発性メモリであって、バッファ領域と、リソース読出領域と、ページメモリ領域と、を有する第2記憶部と、を備え、
前記第1制御部は、
印刷データを前記通信部で受信すると、受信した印刷データを前記バッファ領域に一時的に蓄積する蓄積処理と、
前記バッファ領域に蓄積された印刷データの中に、リソース読出コマンドがある場合に、前記第1記憶部内のリソースデータを前記リソース読出領域に読み出すリソース読出処理と、
前記ページメモリ領域に記憶されるラスターデータに基づく画像を、前記印刷部を用いて前記記録媒体に印刷する印刷処理と、を実行可能であり、
前記第2制御部は、
前記バッファ領域から所定領域ごとに印刷データを読み出し、読み出した印刷データと、前記リソース読出領域に記憶されたリソースデータとに基づいて、ラスターデータを作成し、作成したラスターデータを前記ページメモリ領域に記憶させるRIP処理を実行可能であり、
前記第1制御部は、前記第2制御部による前記RIP処理中に、前記リソース読出処理を実行可能であることを特徴とする印刷装置。 A printing unit that prints images on a recording medium,
A communication unit that receives print data composed of multiple commands written in the page description language,
A first control unit that can access the first storage unit consisting of a non-volatile memory that stores the resource data required to execute the RIP process that expands the print data into raster data.
A second control unit that can operate independently of the first control unit,
It is a volatile memory and includes a second storage unit having a buffer area, a resource read area, and a page memory area.
The first control unit
When the print data is received by the communication unit, the storage process of temporarily storing the received print data in the buffer area and the storage process
When there is a resource read command in the print data stored in the buffer area, a resource read process for reading the resource data in the first storage unit into the resource read area, and a resource read process.
It is possible to execute a printing process of printing an image based on raster data stored in the page memory area on the recording medium using the printing unit.
The second control unit
Print data is read from the buffer area for each predetermined area, raster data is created based on the read print data and the resource data stored in the resource read area, and the created raster data is stored in the page memory area. RIP processing to be stored can be executed,
The first control unit is a printing apparatus capable of executing the resource read process during the RIP process by the second control unit.
前記第2制御部は、
前記RIP処理において、前記バッファ領域から読み出した印刷データを解析して、前記ラスターデータを作成するためのオブジェクトデータを作成するコマンド解析処理を実行可能であり、
前記第1制御部は、
前記コマンド解析処理の完了後に、前記コマンド解析処理の対象であった印刷データを前記バッファ領域から削除した後、前記バッファ領域の空き容量分だけ前記受信バッファから前記バッファ領域に印刷データを移動させることを特徴とする請求項1に記載の印刷装置。 Equipped with a receive buffer to store received print data
The second control unit
In the RIP process, it is possible to execute a command analysis process that analyzes the print data read from the buffer area and creates object data for creating the raster data.
The first control unit
After the command analysis process is completed, the print data that was the target of the command analysis process is deleted from the buffer area, and then the print data is moved from the receive buffer to the buffer area by the amount of free space in the buffer area. The printing apparatus according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019237685A JP7363473B2 (en) | 2019-12-27 | 2019-12-27 | printing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019237685A JP7363473B2 (en) | 2019-12-27 | 2019-12-27 | printing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021104650A true JP2021104650A (en) | 2021-07-26 |
JP7363473B2 JP7363473B2 (en) | 2023-10-18 |
Family
ID=76918413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019237685A Active JP7363473B2 (en) | 2019-12-27 | 2019-12-27 | printing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7363473B2 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0546149A (en) * | 1991-08-20 | 1993-02-26 | Oki Electric Ind Co Ltd | Drawing processing method |
JPH07164677A (en) * | 1993-12-16 | 1995-06-27 | Fuji Xerox Co Ltd | Character generator |
JPH11272439A (en) * | 1998-03-19 | 1999-10-08 | Ricoh Co Ltd | Printer device |
JPH11305962A (en) * | 1998-04-20 | 1999-11-05 | Canon Inc | Printing processor, data processing method therefor and medium for storing computer readable program |
JP2019029020A (en) * | 2017-07-31 | 2019-02-21 | 京セラドキュメントソリューションズ株式会社 | Data processing method, data processing device, and program for executing font processing by efficiently using multiple cores of processor |
-
2019
- 2019-12-27 JP JP2019237685A patent/JP7363473B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0546149A (en) * | 1991-08-20 | 1993-02-26 | Oki Electric Ind Co Ltd | Drawing processing method |
JPH07164677A (en) * | 1993-12-16 | 1995-06-27 | Fuji Xerox Co Ltd | Character generator |
JPH11272439A (en) * | 1998-03-19 | 1999-10-08 | Ricoh Co Ltd | Printer device |
JPH11305962A (en) * | 1998-04-20 | 1999-11-05 | Canon Inc | Printing processor, data processing method therefor and medium for storing computer readable program |
JP2019029020A (en) * | 2017-07-31 | 2019-02-21 | 京セラドキュメントソリューションズ株式会社 | Data processing method, data processing device, and program for executing font processing by efficiently using multiple cores of processor |
Also Published As
Publication number | Publication date |
---|---|
JP7363473B2 (en) | 2023-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9280732B2 (en) | Printing device, printing control method and recording medium capable of interruption printing with high security | |
US8687009B2 (en) | Image processing apparatus and controlling method therefor | |
JP2004310215A (en) | Print job management device, program to be used therefor, and print job management method | |
JP4337885B2 (en) | Image forming apparatus and image forming method | |
JP2002211082A (en) | Image processor and its data processing method | |
US7952742B2 (en) | Information processing apparatus for processing print data, method thereof and media in storage of control program of executing such method | |
JPH10222319A (en) | Printing device and printing control method | |
JP2013154606A (en) | Printing apparatus and method of controlling the same | |
JP7363473B2 (en) | printing device | |
JP2019086987A (en) | Image forming device, control method thereof, and program | |
JP2000203104A (en) | Printer and printer controller | |
JP2011142614A (en) | Image processing apparatus, and control method therefor | |
JP4712070B2 (en) | Printing system and printing apparatus | |
JP4762865B2 (en) | Image processing apparatus and image processing program | |
JP3583879B2 (en) | Printer control device | |
JP2006236006A (en) | Printer, program and recording medium | |
EP2284689A2 (en) | PDL data processing device | |
US8756491B2 (en) | PDL data processing device | |
JPH10171617A (en) | Printing controller, data processing method therefor and storage medium storing computer readable program | |
JP3827966B2 (en) | Image forming apparatus | |
JP2008262439A (en) | Information processor, print document adjustment processing program and storage medium | |
JP3555241B2 (en) | Printer | |
JP4401661B2 (en) | Image forming apparatus, image forming method, and image forming program | |
JP4307110B2 (en) | Image forming apparatus, image forming method, and image forming program | |
JP2022157948A (en) | printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20221223 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230822 |
|
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: 20230905 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230918 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7363473 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |