JP2008049503A - Printing apparatus and thermal head apparatus - Google Patents

Printing apparatus and thermal head apparatus Download PDF

Info

Publication number
JP2008049503A
JP2008049503A JP2006225790A JP2006225790A JP2008049503A JP 2008049503 A JP2008049503 A JP 2008049503A JP 2006225790 A JP2006225790 A JP 2006225790A JP 2006225790 A JP2006225790 A JP 2006225790A JP 2008049503 A JP2008049503 A JP 2008049503A
Authority
JP
Japan
Prior art keywords
data
storage unit
print data
unit
printing
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.)
Pending
Application number
JP2006225790A
Other languages
Japanese (ja)
Inventor
Masafumi Chiba
雅史 千葉
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.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component 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 Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2006225790A priority Critical patent/JP2008049503A/en
Publication of JP2008049503A publication Critical patent/JP2008049503A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To suppress a delay of transmitting speed even when a data size of compression data becomes large. <P>SOLUTION: A printing apparatus and a thermal head apparatus are characterized by being equipped with: a printing part (30) having a plurality of heat emitting elements arranged in a line; a first storing part (38) for storing printing data for a line for printing at the printing part; a controlling part (52) for selecting either that the printing data are transmitted to the first storing part as transmitting data or that compression data which keeps the printing data compressed are transmitted to the first storing part as the transmitting data when the printing data are printed in the printing part; and a selecting part (40) which directly stores the transmitting data in the first storing part or restores the transmitting data to the printing data and then, or stores them in the first storing part, based on selection information indicating that the controlling part selects either the printing data or the compression data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、プリント装置およびサーマルヘッド装置に関し、特にライン状に配列された複数の発熱素子を有するプリント装置およびサーマルヘッド装置に関する。   The present invention relates to a printing apparatus and a thermal head apparatus, and more particularly to a printing apparatus and a thermal head apparatus having a plurality of heating elements arranged in a line.

プリンタ(プリント装置)として、ライン状に配列された複数の発熱素子を発熱することにより、プリント用紙にデータを印刷するサーマルプリンタがある。特許文献1には、サーマルヘッドを制御する制御装置において、1ライン分の画像情報の圧縮データを復元するデコーダを有する技術が開示されている。特許文献1によれば、1ライン分のデータを制御装置に送信する際、圧縮データで送信することができるため、簡単な構成でデータ送信速度の高速化を図ることができる。
特開昭61−30173号公報
As a printer (printing apparatus), there is a thermal printer that prints data on printing paper by generating heat from a plurality of heating elements arranged in a line. Japanese Patent Application Laid-Open No. H10-228561 discloses a technique having a decoder that restores compressed data of image information for one line in a control device that controls a thermal head. According to Patent Document 1, when data for one line is transmitted to the control device, it can be transmitted as compressed data, so that the data transmission speed can be increased with a simple configuration.
JP 61-30173 A

しかしながら、印刷するためデータである印刷データの内容によっては、印刷データを圧縮した圧縮データが元の印刷データよりデータサイズが大きくなってしまう場合がある。この場合は印刷データを圧縮することにより送信速度が遅くなってしまう。本発明は、圧縮データのデータサイズが大きくなった場合も送信速度が遅くなることを抑制することを目的とする。   However, depending on the content of the print data that is data to be printed, the compressed data obtained by compressing the print data may have a larger data size than the original print data. In this case, the transmission speed is reduced by compressing the print data. An object of the present invention is to suppress a decrease in transmission speed even when the data size of compressed data increases.

本発明は、ライン状に配列された複数の発熱素子を有する印刷部と、前記印刷部で印刷するための1ライン分の印刷データを格納する第1記憶部と、前記印刷データを前記印刷部で印刷する際に、前記印刷データを送信データとして前記第1記憶部に送信するか、前記印刷データを圧縮した圧縮データを前記送信データとして前記第1記憶部に送信するかを選択する制御部と、前記制御部が前記印刷データおよび前記圧縮データのいずれかを選択したかの選択情報に基づき、前記送信データを前記第1記憶部に直接格納するか、前記送信データを前記印刷データに復元し前記第1記憶部に格納する選択部と、を具備することを特徴とするプリント装置である。本発明によれば、制御部は、送信データの送信速度等を考慮し印刷データを圧縮して送信するか、圧縮せずに送信するかを選択することができる。   The present invention includes a printing unit having a plurality of heating elements arranged in a line, a first storage unit for storing print data for one line for printing by the printing unit, and the printing data to the printing unit A control unit that selects whether to transmit the print data as transmission data to the first storage unit or to transmit compressed data obtained by compressing the print data to the first storage unit as the transmission data when printing with And based on the selection information as to whether the control unit has selected either the print data or the compressed data, the transmission data is stored directly in the first storage unit, or the transmission data is restored to the print data. And a selection unit stored in the first storage unit. According to the present invention, the control unit can select whether the print data is compressed and transmitted in consideration of the transmission speed of the transmission data or the like, and transmitted without being compressed.

上記構成において、前記制御部は、前記圧縮データのデータサイズと前記印刷データのデータサイズとを比較し、比較結果に応じ、前記印刷データを送信データとして前記第1記憶部に送信するか、前記印刷データを圧縮した圧縮データを前記送信データとして前記第1記憶部に送信するかを選択する構成とすることができる。この構成によれば、送信データを制御部から送信する際、送信速度が速くなるように圧縮するか否かを判断できる。   In the above configuration, the control unit compares the data size of the compressed data and the data size of the print data, and transmits the print data as transmission data to the first storage unit according to a comparison result, The compressed data obtained by compressing the print data can be selected to be transmitted as the transmission data to the first storage unit. According to this configuration, when transmission data is transmitted from the control unit, it can be determined whether or not to compress the transmission data so as to increase the transmission speed.

上記構成において、前記送信データを格納する第2記憶部を具備し、前記選択部は、前記選択情報に基づき、前記第2記憶部に格納された前記送信データを直接前記第1記憶部に格納するか、前記第2記憶部に格納された前記送信データをデコーダを介し前記印刷データに復元し、前記印刷データを前記第1記憶部に格納する構成とすることができる。この構成によれば、送信データが圧縮されたデータか否かにより確実に送信データを復元または復元せずに印刷データとして第1記憶部に格納することができる。   In the above-described configuration, a second storage unit that stores the transmission data is provided, and the selection unit stores the transmission data stored in the second storage unit directly in the first storage unit based on the selection information. Alternatively, the transmission data stored in the second storage unit can be restored to the print data via a decoder, and the print data can be stored in the first storage unit. According to this configuration, the transmission data can be reliably stored in the first storage unit as the print data without being restored or restored depending on whether or not the transmission data is compressed data.

上記構成において、前記選択部は、復元した前記印刷データを第1記憶部に格納し、前記送信データの復元が完了したことを示す展開完了信号を前記制御部に送信し、前記制御部は、前記展開完了信号に基づき、前記印刷部に前記印刷データを印刷させる構成とすることができる。この構成によれば、送信データの復元が確実に完了した後に、印刷データを印刷することができる。   In the above configuration, the selection unit stores the restored print data in a first storage unit, and transmits a development completion signal indicating that the restoration of the transmission data is completed to the control unit. Based on the development completion signal, the print unit can be configured to print the print data. According to this configuration, the print data can be printed after the transmission data is reliably restored.

上記構成において、前記制御部は、複数の圧縮方式から1つを選択し前記印刷データを圧縮し前記送信データとし送信し、前記選択情報は、前記複数の圧縮方式からいずれを選択したかの情報を含み、前記選択部は、前記選択情報に基づき、前記送信データを前記印刷データに復元する構成とすることができる。この構成によれば、印刷データの種類により送信速度のより速い圧縮方式を選択することができる。   In the above configuration, the control unit selects one of a plurality of compression methods, compresses the print data, and transmits it as the transmission data, and the selection information is information indicating which one of the plurality of compression methods is selected. The selection unit can restore the transmission data to the print data based on the selection information. According to this configuration, it is possible to select a compression method with a higher transmission speed depending on the type of print data.

本発明は、ライン状に配列された複数の発熱素子を有する印刷部と、前記印刷部で印刷するための1ライン分の印刷データを格納する第1記憶部と、前記印刷データを前記印刷部で印刷する際に、前記印刷データを送信データとして前記第1記憶部に送信するか、前記印刷データを圧縮した圧縮データを前記送信データとして前記第1記憶部に送信するかを選択した選択情報に基づき、前記送信データを前記第1記憶部に直接格納するか、前記送信データを復元し前記第1記憶部に格納する選択部と、を具備することを特徴とするサーマルヘッド装置である。本発明によれば、送信データが送信速度等を考慮し印刷データを圧縮して送信するか、圧縮せずに送信するかを選択されている場合も、選択情報に基づき送信データを印刷データに復元することができる。   The present invention includes a printing unit having a plurality of heating elements arranged in a line, a first storage unit for storing print data for one line for printing by the printing unit, and the printing data to the printing unit Selection information for selecting whether to transmit the print data as transmission data to the first storage unit or to transmit compressed data obtained by compressing the print data as the transmission data to the first storage unit And a selection unit that stores the transmission data directly in the first storage unit or restores the transmission data and stores it in the first storage unit. According to the present invention, the transmission data is converted into the print data based on the selection information even when the transmission data is selected in consideration of the transmission speed or the like to transmit the print data with or without being compressed. Can be restored.

本発明によれば、本発明は、圧縮データのデータサイズが大きくなった場合も送信速度が遅くなることを抑制することができる。   According to the present invention, the present invention can suppress a decrease in transmission speed even when the data size of compressed data increases.

以下、図面を用い本発明の実施例を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は実施例1に係るプリント装置のブロック図である。プリント装置10は、サーマルヘッド部20(サーマルヘッド装置)と制御機器部50とからなる。サーマルヘッド部20はプリント用紙に印刷データを印刷する機能を有し、印刷部30、選択部40、用紙搬送部22、デコーダ24および第2記憶部26を有している。   FIG. 1 is a block diagram of the printing apparatus according to the first embodiment. The printing apparatus 10 includes a thermal head unit 20 (thermal head device) and a control device unit 50. The thermal head unit 20 has a function of printing print data on print paper, and includes a printing unit 30, a selection unit 40, a paper transport unit 22, a decoder 24, and a second storage unit 26.

印刷部30は、発熱することによりプリント用紙にドット印刷するための発熱素子32がライン状に複数配置されている。第1記憶部38は、例えばSRAM等の揮発性メモリであり、1ライン分の発熱素子32に対応した印刷データを格納することができる。印刷データは発熱素子32が発熱しプリント用紙に黒色を印刷するドットに対応するビットは“0”、発熱素子32が発熱せず黒ドットを印刷しない(白色のまま)のドットに対応するビットは“1”であるデータである。複数の発熱素子32は一度に通電する複数のブロックに分かれている。   The printing unit 30 includes a plurality of heating elements 32 arranged in a line for dot printing on a printing paper by generating heat. The first storage unit 38 is a volatile memory such as SRAM, for example, and can store print data corresponding to the heating elements 32 for one line. In the print data, the bit corresponding to the dot corresponding to the dot that prints black on the print paper by the heat generating element 32 is “0”, and the bit corresponding to the dot that the heat generating element 32 does not generate heat and does not print the black dot (still white) The data is “1”. The plurality of heating elements 32 are divided into a plurality of blocks that are energized at once.

NAND回路36には第1記憶部38の信号とMCU52からのブロック選択信号が入力する。ブロック選択信号が“1”のときNAND回路36は“1”を出力し、ブロック選択信号が“0”のときNAND回路36は第1記憶部38の印刷データを出力する。ドライバ34はNAND回路36の出力が“0”のとき発熱素子32に電流を供給し、“0”のときは電流を供給しない。1ラインは例えば4ブロックに分割されている。MCU52のブロック選択信号によりブロックに相当する第1記憶部38に保持された印刷データを選択的に印刷することができる。ブロック毎に印刷することにより、1度に発熱素子32に通電される電流を制限することができる。   The NAND circuit 36 receives a signal from the first storage unit 38 and a block selection signal from the MCU 52. When the block selection signal is “1”, the NAND circuit 36 outputs “1”, and when the block selection signal is “0”, the NAND circuit 36 outputs the print data in the first storage unit 38. The driver 34 supplies current to the heat generating element 32 when the output of the NAND circuit 36 is “0”, and does not supply current when the output is “0”. One line is divided into, for example, four blocks. The print data held in the first storage unit 38 corresponding to the block can be selectively printed by the block selection signal of the MCU 52. By printing for each block, the current supplied to the heating element 32 at a time can be limited.

選択部40は、MCU52から受信した送信データが印刷データか印刷データを圧縮した圧縮データかにより、送信データをそのまま第1記憶部38に格納するか、送信データをデコーダ24を介し印刷データに戻して第1記憶部38に格納するかを選択する回路である。選択部40は、データ受信回路42、データ確定判定回路44、選択回路46および展開完了信号出力回路48を有している。各回路の機能は図2および図3のフローチャートを説明する際に説明する。用紙搬送部22はプリント用紙を搬送する機能を有している。デコーダ24は圧縮データを復元する機能を有している。第2記憶部26は例えばSRAM等の揮発性メモリであり、MCU52から受信した送信データを記憶する。   The selection unit 40 stores the transmission data as it is in the first storage unit 38 or returns the transmission data to the print data via the decoder 24 depending on whether the transmission data received from the MCU 52 is print data or compressed data obtained by compressing the print data. This is a circuit for selecting whether to store in the first storage unit 38. The selection unit 40 includes a data reception circuit 42, a data confirmation determination circuit 44, a selection circuit 46, and a development completion signal output circuit 48. The function of each circuit will be described when the flowcharts of FIGS. 2 and 3 are described. The paper transport unit 22 has a function of transporting print paper. The decoder 24 has a function of restoring compressed data. The second storage unit 26 is a volatile memory such as an SRAM, for example, and stores transmission data received from the MCU 52.

制御機器部50は外部の例えばホストPC(Personal Computer)70からの画像データをサーマルヘッド部20が印刷可能な印刷データに変換し、印刷データまたは印刷データを圧縮した圧縮データを送信データとしてとして出力する。また、サーマルヘッド部20を制御する機能を有している。制御機器部50は、MCU(Micro Controller Unit)52(制御部)、揮発性メモリ54、不揮発性メモリ56、インターフェース回路58、用紙搬送部駆動回路60を有する。   The control device unit 50 converts image data from an external host PC (Personal Computer) 70 into print data that can be printed by the thermal head unit 20, and outputs the print data or compressed data obtained by compressing the print data as transmission data. To do. Further, it has a function of controlling the thermal head unit 20. The control device unit 50 includes an MCU (Micro Controller Unit) 52 (control unit), a volatile memory 54, a non-volatile memory 56, an interface circuit 58, and a paper transport unit drive circuit 60.

MCU52は、不揮発性メモリ56に格納されたプログラムに従って、プリント装置10の全体を制御する。具体的には、インターフェース回路58から入力される画像データ、各種印刷制御データを受け取って、サーマルヘッド部20の動作を制御しつつ印刷を実行する。   The MCU 52 controls the entire printing apparatus 10 according to a program stored in the nonvolatile memory 56. Specifically, image data and various print control data input from the interface circuit 58 are received, and printing is executed while controlling the operation of the thermal head unit 20.

揮発性メモリ54は、SRAM等によって構成され、MCU52の制御に必要な各種データや印字すべきデータを一時的に記憶する。不揮発性メモリ56は、EEPROM等によって構成され、印刷制御に必要な各種データを格納している。この不揮発性メモリ56に格納されたデータは、電源がオフされても消えることがなく、電源がオンされると、MCU52により読み出されて、揮発性メモリ54の所定領域に書き込まれる。用紙搬送駆動回路60は、MCU52の指示により用紙搬送部22を制御する。   The volatile memory 54 is configured by SRAM or the like, and temporarily stores various data necessary for controlling the MCU 52 and data to be printed. The nonvolatile memory 56 is composed of an EEPROM or the like, and stores various data necessary for print control. The data stored in the nonvolatile memory 56 does not disappear even when the power is turned off. When the power is turned on, the data is read by the MCU 52 and written in a predetermined area of the volatile memory 54. The paper transport drive circuit 60 controls the paper transport unit 22 according to an instruction from the MCU 52.

次に、実施例1に係るプリント装置の制御について図2および図3のフローチャートを用い説明する。図2はMCU52が行う動作を示している。図2を参照に、ホストPC70から印刷する画像データの受信があるまで待機する(ステップS10)。画像データが受信されると、画像データを、1ライン分のドットデータである印刷データに変換し、揮発性メモリ54の保存する(ステップS12)。印刷データを圧縮データに変換する(ステップS14)。圧縮データのデータサイズ(圧縮データ数)が元の印刷データのデータサイズ(印刷データ数)に比べ小さいかを判断する(ステップS16)。圧縮データのデータサイズが印刷データのデータサイズより小さい場合、圧縮データを送信データとする(ステップS22)。選択部40の選択回路46に圧縮データを送信したことを示す信号である選択情報を出力する(ステップS24)。ステップS16において、圧縮データのデータサイズが印刷データのデータサイズ以上の場合、印刷データを送信データとする(ステップS18)。選択回路46に非圧縮の印刷データを送信したことを示す信号である選択情報を出力する(ステップS20)。   Next, control of the printing apparatus according to the first embodiment will be described with reference to the flowcharts of FIGS. FIG. 2 shows operations performed by the MCU 52. Referring to FIG. 2, the process waits until image data to be printed is received from host PC 70 (step S10). When the image data is received, the image data is converted into print data that is dot data for one line and stored in the volatile memory 54 (step S12). The print data is converted into compressed data (step S14). It is determined whether the data size (the number of compressed data) of the compressed data is smaller than the data size (the number of print data) of the original print data (step S16). If the data size of the compressed data is smaller than the data size of the print data, the compressed data is used as transmission data (step S22). Selection information, which is a signal indicating that the compressed data has been transmitted, is output to the selection circuit 46 of the selection unit 40 (step S24). If the data size of the compressed data is equal to or larger than the data size of the print data in step S16, the print data is set as transmission data (step S18). Selection information, which is a signal indicating that uncompressed print data has been transmitted, is output to the selection circuit 46 (step S20).

データが送信可能となるまで待機する(ステップS26)。データが送信可能となった後、データ受信回路42に1バイトの送信データを送信する(ステップS28)。1ライン分のデータの送信が完了したか判断する(ステップS30)。Noの場合、ステップS26に戻る。Yesの場合、データ確定判定回路に1ライン分の送信データの送信が完了したことを示す信号を出力する(ステップS32)。展開完了信号出力回路48からデータ展開完了信号が入力されるまで待機する(ステップS34)。データ展開完了信号が入力した後、印刷部30にブロック選択信号を出力する(ステップS36)。   Wait until data can be transmitted (step S26). After the data can be transmitted, 1-byte transmission data is transmitted to the data receiving circuit 42 (step S28). It is determined whether transmission of data for one line has been completed (step S30). In No, it returns to step S26. In the case of Yes, a signal indicating that transmission of transmission data for one line has been completed is output to the data determination circuit (step S32). It waits until a data expansion completion signal is input from the expansion completion signal output circuit 48 (step S34). After the data development completion signal is input, a block selection signal is output to the printing unit 30 (step S36).

図3はサーマルヘッド部20が行う動作を示したフローチャートである。データ確定判定回路44は、図2のステップS32において出力された送信完了信号を受信したか判定する(ステップS40)。Noの場合、図2のステップS28においてデータ受信回路42はMCU52が送信した送信データのうち1バイトを受信したかを判定する(ステップS42)。Noの場合、ステップS40に戻る。ステップS42においてYesの場合、第2記憶部26は受信した1バイトの送信データを保存する(ステップS44)。このようにして、1ライン分のデータを受信する。   FIG. 3 is a flowchart showing an operation performed by the thermal head unit 20. The data decision determination circuit 44 determines whether or not the transmission completion signal output in step S32 of FIG. 2 has been received (step S40). In the case of No, in step S28 of FIG. 2, the data reception circuit 42 determines whether one byte of the transmission data transmitted by the MCU 52 has been received (step S42). In No, it returns to step S40. If Yes in step S42, the second storage unit 26 stores the received 1-byte transmission data (step S44). In this way, data for one line is received.

ステップS40においてYesの場合、すなわち図2のステップS26からS30において1ライン分の送信データの送信が完了した場合、選択回路46は選択情報が圧縮データの送信を示すかを判定する(ステップS46)。Yesの場合、すなわち図2のステップS22において印刷データの圧縮データを送信データとした場合、デコーダ24は、第2記憶部26の送信データを復元し、復元した印刷データを第2記憶部26に格納する(ステップS48)。第2記憶部26は第1記憶部38に印刷データを転送する(ステップS50)。ステップS46においてNoの場合、すなわち図2のS18において印刷データを圧縮せず送信データとした場合、第2記憶部26は第1記憶部38に印刷データを転送する(ステップS50)。展開完了信号出力回路48は第1記憶部38への印刷データの展開が終了したことを示す展開完了信号をMCU52に出力する(ステップS52)。印刷部30は、図2ステップS36においてMCU52が出力したブロック選択信号により、ブロック単位で印刷データを印刷する(ステップS54)。   In the case of Yes in step S40, that is, when transmission of transmission data for one line is completed in steps S26 to S30 in FIG. 2, the selection circuit 46 determines whether the selection information indicates transmission of compressed data (step S46). . In the case of Yes, that is, when the compressed data of the print data is set as the transmission data in step S22 of FIG. 2, the decoder 24 restores the transmission data in the second storage unit 26 and stores the restored print data in the second storage unit 26. Store (step S48). The second storage unit 26 transfers the print data to the first storage unit 38 (step S50). In the case of No in step S46, that is, in the case where the print data is not compressed and transmitted data in S18 of FIG. 2, the second storage unit 26 transfers the print data to the first storage unit 38 (step S50). The development completion signal output circuit 48 outputs to the MCU 52 a development completion signal indicating that the development of the print data in the first storage unit 38 has been completed (step S52). The printing unit 30 prints the print data in units of blocks based on the block selection signal output by the MCU 52 in step S36 of FIG. 2 (step S54).

次に圧縮データの例を説明する。図4および図5は圧縮方式としてPacked Bits方式で圧縮した例であり、圧縮データのデータサイズが元の印刷データのデータサイズより小さい例(図4)および大きい例(図5)を示している。図4および図5の印刷データおよび圧縮データは16進法で記載されており1バイト(8ビット)毎に区切られている。印刷データの先頭から1バイト毎のデータをd1、d2…で示す。圧縮データは、ヘッダーS1、S2…とデータからなる。非連続のデータの場合、非連続なデータ数から1を引いた値をヘッダーとして用いる。例えば非連続のデータ数が6の場合、ヘッダーは[05]となる。連続のデータの場合、連続するデータ数から1引いた値のマイナスをヘッダーとして用いる。例えば連続の数が6の場合、ヘッダーは[FB]となる。   Next, an example of compressed data will be described. FIGS. 4 and 5 are examples of compression using the Packed Bits method as a compression method, and show an example (FIG. 4) and an example (FIG. 5) where the data size of the compressed data is smaller than the data size of the original print data. . The print data and the compressed data in FIGS. 4 and 5 are described in hexadecimal notation and are divided every byte (8 bits). Data for each byte from the top of the print data is indicated by d1, d2,. The compressed data consists of headers S1, S2,. In the case of discontinuous data, a value obtained by subtracting 1 from the number of discontinuous data is used as a header. For example, when the number of discontinuous data is 6, the header is [05]. In the case of continuous data, a minus value obtained by subtracting 1 from the number of continuous data is used as a header. For example, when the number of consecutive is 6, the header is [FB].

図4を参照に、印刷データは[55]が6個連続し、非連続なデータが6個並んでいる。この印刷データを圧縮した場合、圧縮データは、ヘッダーS1としてデータが6個連続していることを示す[FB]、連続するデータd1〜d6である[55]、ヘッダーS2として非連続なデータが6個並んでいることを示す[05]、非連続な各データであるd7〜d12が配置されている。このように、図4の場合は印刷データを圧縮することにより12バイトを9バイトに圧縮することができる。   Referring to FIG. 4, the print data includes six [55] continuous and six discontinuous data. When this print data is compressed, the compressed data includes six consecutive data as the header S1 [FB], continuous data d1 to d6 [55], and discontinuous data as the header S2. [05] indicating that 6 are arranged, d7 to d12 which are discontinuous data are arranged. Thus, in the case of FIG. 4, 12 bytes can be compressed to 9 bytes by compressing print data.

図5を参照に、印刷データは[00]が2個連続し、[01]が1個、[02]が2個、[03]が1個、[04]が2個、[05]が1個並んでいる。この印刷データを圧縮した場合、圧縮データは、ヘッダーS2として2連続であることを示す[FF]、データd1、d2である[00]、ヘッダーS2として非連続データが1個であることを示す[00]、データd3である[01]、以降、ヘッダーとデータが交互に配置されている。図5の場合は、印刷データを圧縮することにより9バイトが12バイトとなってしまう。   Referring to FIG. 5, the print data includes two [00], one [01], two [02], one [03], two [04], and [05]. One is lined up. When this print data is compressed, the compressed data is [FF] indicating that the header S2 is continuous 2 [FF], the data d1 and d2 are [00], and the header S2 is 1 discontinuous data. [00], data d3 [01], and thereafter, headers and data are alternately arranged. In the case of FIG. 5, by compressing the print data, 9 bytes become 12 bytes.

このように、印刷データを圧縮することにより、データサイズを圧縮できる場合もあるが、圧縮できずデータサイズが大きくなってしまう場合もある。   As described above, there is a case where the data size can be compressed by compressing the print data.

実施例1によれば、図2のステップS16からS24のように、MCU52(制御部)は、印刷データを印刷部30で印刷する際に、印刷データを送信データとして第1記憶部38に送信するか、印刷データを圧縮した圧縮データを送信データとして第1記憶部38に送信するかを選択する。そして、図3のステップS46からS50のように、選択部40は、MCU52が印刷データおよび圧縮データのいずれかを選択したかの選択情報に基づき、送信データを第1記憶部38に直接格納するか、送信データを印刷データに復元し第1記憶部38に格納する。これにより、MCU52は、MCU52からサーマルヘッド部20への印刷データの送信を圧縮データで行うか否かを選択できる。よって、送信データの送信速度を考慮し印刷データを圧縮して送信するか、圧縮せずに送信するかを選択することができる。   According to the first embodiment, the MCU 52 (control unit) transmits the print data as transmission data to the first storage unit 38 when the print data is printed by the printing unit 30 as in steps S16 to S24 in FIG. Or the compressed data obtained by compressing the print data is transmitted to the first storage unit 38 as transmission data. Then, as in steps S46 to S50 in FIG. 3, the selection unit 40 directly stores the transmission data in the first storage unit 38 based on selection information indicating whether the MCU 52 has selected either print data or compressed data. Alternatively, the transmission data is restored to print data and stored in the first storage unit 38. Thereby, the MCU 52 can select whether or not to transmit the print data from the MCU 52 to the thermal head unit 20 using the compressed data. Therefore, it is possible to select whether the print data is transmitted after being compressed or not compressed in consideration of the transmission speed of the transmission data.

また、MCU52は、図2のステップS16のように、圧縮データのデータサイズと印刷データのデータサイズとを比較し、比較結果に応じ、印刷データを送信データとして第1記憶部38に送信するか、圧縮データを送信データとして第1記憶部38に送信するかを選択することが好ましい。これにより、送信データをMCU52からサーマルヘッド部20に送信する際、送信速度が速くなるように圧縮するか否かを判断できる。ステップS16のように圧縮データが印刷データのデータサイズより小さいか否かで圧縮するか否かを選択することもできるが、例えば復元に必要な時間等を考慮し圧縮データのデータサイズに復元に必要な時間等に相当する量を付加し印刷データのデータサイズと比較してもよい。   Further, as in step S16 of FIG. 2, the MCU 52 compares the data size of the compressed data with the data size of the print data, and transmits the print data as transmission data to the first storage unit 38 according to the comparison result. It is preferable to select whether the compressed data is transmitted to the first storage unit 38 as transmission data. Thereby, when transmitting the transmission data from the MCU 52 to the thermal head unit 20, it is possible to determine whether or not to compress the transmission data so as to increase the transmission speed. Although it is possible to select whether or not to compress depending on whether or not the compressed data is smaller than the data size of the print data as in step S <b> 16, for example, the data size of the compressed data is restored in consideration of the time required for restoration. An amount corresponding to the necessary time may be added and compared with the data size of the print data.

さらに、選択部40は、ステップS46のように選択情報に基づき、ステップS46でNoの場合のように、第2記憶部26に格納された送信データを直接第1記憶部38に格納するか、ステップS46でYesの場合のように、第2記憶部26に格納された送信データをデコーダ24を介し印刷データに復元し、印刷データを第1記憶部38に格納する。これにより、送信データが圧縮されたデータか否かにより確実に送信データを復元または復元せずに印刷データとして第1記憶部38に格納することができる。   Furthermore, the selection unit 40 stores the transmission data stored in the second storage unit 26 directly in the first storage unit 38 based on the selection information as in step S46, as in the case of No in step S46. As in the case of Yes in step S46, the transmission data stored in the second storage unit 26 is restored to print data via the decoder 24, and the print data is stored in the first storage unit 38. Accordingly, the transmission data can be stored in the first storage unit 38 as print data without being restored or restored reliably depending on whether or not the transmission data is compressed data.

さらに、図3のステップS48およびS50のように、選択部40は、復元した印刷データを第1記憶部38に格納し、ステップS52のように、展開完了信号出力回路48は、送信データの復元が終了したことを示す展開完了信号をMCU52に送信する。そして、MCU52は、図2のステップS34のように展開完了信号に基づき、ステップS36のように印刷部30に印刷データを印刷させる。これにより、送信データの復元が確実に完了した後に、印刷データを印刷することができる。   Further, as in steps S48 and S50 of FIG. 3, the selection unit 40 stores the restored print data in the first storage unit 38, and as in step S52, the development completion signal output circuit 48 restores the transmission data. Is sent to the MCU 52. Then, the MCU 52 causes the printing unit 30 to print the print data based on the development completion signal as in step S34 in FIG. 2 as in step S36. Thus, the print data can be printed after the transmission data is completely restored.

実施例2は圧縮方式を圧縮方式Aと圧縮方式Bとで選択可能な例である。図6は、実施例2に係るプリント装置の選択部40およびデコーダ24a付近のブロック図である。実施例1に対し、デコーダ24aが選択回路46の指示で圧縮方式AおよびBのうちいずれかの復元を行うことができる。その他の構成は実施例1と同じであり説明を省略する。   The second embodiment is an example in which the compression method can be selected from the compression method A and the compression method B. FIG. 6 is a block diagram of the vicinity of the selection unit 40 and the decoder 24a of the printing apparatus according to the second embodiment. In contrast to the first embodiment, the decoder 24a can restore one of the compression methods A and B in accordance with an instruction from the selection circuit 46. Other configurations are the same as those of the first embodiment, and the description thereof is omitted.

図7は実施例2に係るプリント装置のMCU52の動作を示すフローチャートである。ホストPC70から圧縮方式選択の要求があるか判断する(ステップS60)。Yesの場合、圧縮方式AまたはBのいずれが要求されたかを示す情報を選択情報として選択回路46に出力する(ステップS62)。ステップS64に進む。ステップS60においてNoの場合、ステップS64において、ホストPC70からインターフェース回路58が画像データを受信したか判断する(ステップS64)。Noの場合、ステップS60に戻る。Yesの場合、画像データを印刷データに変換する(ステップS66)。印刷データを要求の圧縮方式AまたはBの圧縮データに変換する(ステップS68)。ステップS16以降は実施例1の図2と同じフローであり、説明を省略する。   FIG. 7 is a flowchart illustrating the operation of the MCU 52 of the printing apparatus according to the second embodiment. It is determined whether there is a request for compression method selection from the host PC 70 (step S60). In the case of Yes, information indicating which of the compression methods A or B is requested is output to the selection circuit 46 as selection information (step S62). Proceed to step S64. If No in step S60, it is determined in step S64 whether the interface circuit 58 has received image data from the host PC 70 (step S64). In No, it returns to step S60. In the case of Yes, the image data is converted into print data (step S66). The print data is converted into compressed data of the requested compression method A or B (step S68). Step S16 and subsequent steps are the same as those in FIG.

図8はサーマルヘッド部20の動作を示すフローチャートである。ステップS40において、圧縮データを受信した場合、選択回路46は図7のステップS62の選択情報に基づき復元する圧縮方式を選択する(ステップS70)。圧縮方式Aの場合、デコーダ24aは、第2記憶部26の送信データを圧縮方式Aでデコードし、第2記憶部26は復元した印刷データを格納する(ステップS74)。圧縮方式Bの場合、デコーダ24aは、第2記憶部26の送信データを圧縮方式Bでデコードし、第2記憶部26は復元した印刷データを格納する(ステップS72)。その後、第1記憶部38は第2記憶部26の印刷データを格納する(ステップS50)。その他のフローは実施例1の図3と同じであり説明を省略する。   FIG. 8 is a flowchart showing the operation of the thermal head unit 20. In step S40, when the compressed data is received, the selection circuit 46 selects a compression method to be restored based on the selection information in step S62 of FIG. 7 (step S70). In the case of the compression method A, the decoder 24a decodes the transmission data in the second storage unit 26 by the compression method A, and the second storage unit 26 stores the restored print data (step S74). In the case of the compression method B, the decoder 24a decodes the transmission data in the second storage unit 26 using the compression method B, and the second storage unit 26 stores the restored print data (step S72). Thereafter, the first storage unit 38 stores the print data of the second storage unit 26 (step S50). The other flow is the same as that of FIG.

実施例2によれば、MCU52は、図7のステップS68のように複数の圧縮方式から1つを選択し印刷データを圧縮し送信データとしデータ受信回路42に送信する。選択情報は、図7のステップS62のように複数の圧縮方式からいずれを選択したかの情報とステップS20、S24のように圧縮したか否かの情報とを含んでいる。選択部40は、図8のステップS70からS74のように、選択情報に基づき、送信データを印刷データに復元する。これにより、画像データや印刷データの種類により送信速度のより速い圧縮方式を選択することができる。例えば、画像データが文字のデータの場合と模様のデータであった場合とで、圧縮方式を選択することもできる。実施例2においては、圧縮方式の選択をホストPC70が行っているが、MCU52がインターフェース回路58に受信した画像データを認識し、圧縮方式を選択しても良い。   According to the second embodiment, the MCU 52 selects one of a plurality of compression methods as in step S68 of FIG. 7, compresses the print data, and transmits it as transmission data to the data reception circuit 42. The selection information includes information indicating which one of a plurality of compression methods has been selected as in step S62 in FIG. 7 and information indicating whether compression has been performed as in steps S20 and S24. The selection unit 40 restores the transmission data to print data based on the selection information as in steps S70 to S74 of FIG. As a result, it is possible to select a compression method with a higher transmission speed depending on the type of image data or print data. For example, the compression method can be selected depending on whether the image data is character data or pattern data. In the second embodiment, the host PC 70 selects the compression method. However, the MCU 52 may recognize the image data received by the interface circuit 58 and select the compression method.

制御機器部50からサーマルヘッド部20への印刷データを送信はシリアル通信で行ってもパラレル通信で行っても良い。しかしながら、実施例1および実施例2のように制御機器部50からサーマルヘッド部20にシリアルに印刷データを送信する場合、送信時間が長くなる。よって、本発明を適用することが有効である。実施例1においては、データの圧縮方式としてPack Bits方式を例に説明したが、例えばSwiched Run Length Encoding方式、LZ77方式、LZ78方式、LZW方式、LZH方式およびZIP方式等を用いることができる。また、実施例2の圧縮方式として、例えば上記方式のうち2つを用いることができる。   Transmission of print data from the control device 50 to the thermal head unit 20 may be performed by serial communication or parallel communication. However, when printing data is serially transmitted from the control device unit 50 to the thermal head unit 20 as in the first and second embodiments, the transmission time becomes longer. Therefore, it is effective to apply the present invention. In the first embodiment, the Pack Bits method has been described as an example of the data compression method. For example, the Switched Run Length Encoding method, the LZ77 method, the LZ78 method, the LZW method, the LZH method, and the ZIP method can be used. Further, as the compression method of the second embodiment, for example, two of the above methods can be used.

以上、本発明の実施例について詳述したが、本発明は係る特定の実施例に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   Although the embodiments of the present invention have been described in detail above, the present invention is not limited to such specific embodiments, and various modifications and changes can be made within the scope of the gist of the present invention described in the claims. It can be changed.

図1は実施例1に係るプリント装置のブロック図である。FIG. 1 is a block diagram of the printing apparatus according to the first embodiment. 図2は実施例1のMCUの動作を示すフローチャートである。FIG. 2 is a flowchart illustrating the operation of the MCU according to the first embodiment. 図3は実施例1のサーマルヘッド部の動作を示すフローチャートである。FIG. 3 is a flowchart showing the operation of the thermal head unit of the first embodiment. 図4は圧縮データのデータサイズが印刷データのデータサイズより小さいデータを示す図である。FIG. 4 is a diagram showing data in which the data size of the compressed data is smaller than the data size of the print data. 図5は圧縮データのデータサイズが印刷データのデータサイズより大きいデータを示す図である。FIG. 5 is a diagram illustrating data in which the data size of the compressed data is larger than the data size of the print data. 図6は実施例2に係るプリント装置の選択部およびデコーダ付近のブロック図である。FIG. 6 is a block diagram of the vicinity of the selection unit and the decoder of the printing apparatus according to the second embodiment. 図7は実施例2のMCUの動作を示すフローチャートである。FIG. 7 is a flowchart illustrating the operation of the MCU according to the second embodiment. 図8は実施例2のサーマルヘッド部の動作を示すフローチャートである。FIG. 8 is a flowchart showing the operation of the thermal head unit of the second embodiment.

符号の説明Explanation of symbols

10 プリント装置
20 サーマルヘッド部(サーマルヘッド装置)
24、24a デコーダ
26 第2記憶部
30 印刷部
32 発熱素子
34 ドライバ
36 NAND回路
38 第1記憶部
40 選択部
42 データ受信回路
44 データ確定判定回路
46 選択回路
48 展開完了信号出力回路
50 制御機器部
52 MCU
54 揮発性メモリ
56 不揮発性メモリ
58 インターフェース回路
60 用紙搬送部駆動回路
70 ホストPC

10 Printing device 20 Thermal head (thermal head device)
24, 24a Decoder 26 Second storage unit 30 Printing unit 32 Heating element 34 Driver 36 NAND circuit 38 First storage unit 40 Selection unit 42 Data reception circuit 44 Data confirmation circuit 46 Selection circuit 48 Development completion signal output circuit 50 Control device unit 52 MCU
54 Volatile memory 56 Nonvolatile memory 58 Interface circuit 60 Paper transport unit drive circuit 70 Host PC

Claims (6)

ライン状に配列された複数の発熱素子を有する印刷部と、
前記印刷部で印刷するための1ライン分の印刷データを格納する第1記憶部と、
前記印刷データを前記印刷部で印刷する際に、前記印刷データを送信データとして前記第1記憶部に送信するか、前記印刷データを圧縮した圧縮データを前記送信データとして前記第1記憶部に送信するかを選択する制御部と、
前記制御部が前記印刷データおよび前記圧縮データのいずれかを選択したかの選択情報に基づき、前記送信データを前記第1記憶部に直接格納するか、前記送信データを前記印刷データに復元し前記第1記憶部に格納する選択部と、を具備することを特徴とするプリント装置。
A printing unit having a plurality of heating elements arranged in a line;
A first storage unit for storing print data for one line for printing by the printing unit;
When the print data is printed by the printing unit, the print data is transmitted as transmission data to the first storage unit, or compressed data obtained by compressing the print data is transmitted as the transmission data to the first storage unit. A control unit for selecting whether to
Based on the selection information indicating whether the control unit has selected the print data or the compressed data, the transmission data is stored directly in the first storage unit, or the transmission data is restored to the print data and And a selection unit stored in the first storage unit.
前記制御部は、前記圧縮データのデータサイズと前記印刷データのデータサイズとを比較し、比較結果に応じ、前記印刷データを送信データとして前記第1記憶部に送信するか、前記印刷データを圧縮した圧縮データを前記送信データとして前記第1記憶部に送信するかを選択することを特徴とする請求項1記載のプリント装置。   The control unit compares the data size of the compressed data and the data size of the print data, and transmits the print data as transmission data to the first storage unit or compresses the print data according to the comparison result. The printing apparatus according to claim 1, wherein whether to transmit the compressed data as the transmission data to the first storage unit is selected. 前記送信データを格納する第2記憶部を具備し、
前記選択部は、前記選択情報に基づき、前記第2記憶部に格納された前記送信データを直接前記第1記憶部に格納するか、前記第2記憶部に格納された前記送信データをデコーダを介し前記印刷データに復元し、前記印刷データを前記第1記憶部に格納することを特徴とする請求項1または2記載のプリント装置。
A second storage unit for storing the transmission data;
The selection unit stores the transmission data stored in the second storage unit directly in the first storage unit based on the selection information, or the decoder stores the transmission data stored in the second storage unit. The printing apparatus according to claim 1, wherein the print data is restored to the print data and the print data is stored in the first storage unit.
前記選択部は、復元した前記印刷データを第1記憶部に格納し、前記送信データの復元が完了したことを示す展開完了信号を前記制御部に送信し、
前記制御部は、前記展開完了信号に基づき、前記印刷部に前記印刷データを印刷させることを特徴とする請求項3記載のプリント装置。
The selection unit stores the restored print data in the first storage unit, and transmits a development completion signal indicating that the restoration of the transmission data is completed to the control unit,
The printing apparatus according to claim 3, wherein the control unit causes the printing unit to print the print data based on the development completion signal.
前記制御部は、複数の圧縮方式から1つを選択し前記印刷データを圧縮し前記送信データとし送信し、
前記選択情報は、前記複数の圧縮方式からいずれを選択したかの情報を含み、
前記選択部は、前記選択情報に基づき、前記送信データを前記印刷データに復元することを特徴とする請求項1記載のプリント装置。
The control unit selects one of a plurality of compression methods, compresses the print data, and transmits it as the transmission data.
The selection information includes information on which one of the plurality of compression methods is selected,
The printing apparatus according to claim 1, wherein the selection unit restores the transmission data to the print data based on the selection information.
ライン状に配列された複数の発熱素子を有する印刷部と、
前記印刷部で印刷するための1ライン分の印刷データを格納する第1記憶部と、
前記印刷データを前記印刷部で印刷する際に、前記印刷データを送信データとして前記第1記憶部に送信するか、前記印刷データを圧縮した圧縮データを前記送信データとして前記第1記憶部に送信するかを選択した選択情報に基づき、前記送信データを前記第1記憶部に直接格納するか、前記送信データを復元し前記第1記憶部に格納する選択部と、を具備することを特徴とするサーマルヘッド装置。

A printing unit having a plurality of heating elements arranged in a line;
A first storage unit for storing print data for one line for printing by the printing unit;
When the print data is printed by the printing unit, the print data is transmitted as transmission data to the first storage unit, or compressed data obtained by compressing the print data is transmitted as the transmission data to the first storage unit. A selection unit that directly stores the transmission data in the first storage unit or restores the transmission data and stores the transmission data in the first storage unit, based on selection information that is selected to be performed. Thermal head device to perform.

JP2006225790A 2006-08-22 2006-08-22 Printing apparatus and thermal head apparatus Pending JP2008049503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006225790A JP2008049503A (en) 2006-08-22 2006-08-22 Printing apparatus and thermal head apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006225790A JP2008049503A (en) 2006-08-22 2006-08-22 Printing apparatus and thermal head apparatus

Publications (1)

Publication Number Publication Date
JP2008049503A true JP2008049503A (en) 2008-03-06

Family

ID=39234009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006225790A Pending JP2008049503A (en) 2006-08-22 2006-08-22 Printing apparatus and thermal head apparatus

Country Status (1)

Country Link
JP (1) JP2008049503A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6130173A (en) * 1984-07-20 1986-02-12 Alps Electric Co Ltd Thermal print head controller
JPH07195762A (en) * 1993-12-28 1995-08-01 Fuji Xerox Co Ltd Image information recording device
JPH07264417A (en) * 1994-03-18 1995-10-13 Oki Electric Ind Co Ltd Image coding method
JP2001102935A (en) * 1999-09-29 2001-04-13 Seiko Epson Corp Data compression controller, data compression control method, printing information forming device, printing system, and recording medium storing program
JP2002307762A (en) * 2001-04-10 2002-10-23 Oki Data Corp Imaging apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6130173A (en) * 1984-07-20 1986-02-12 Alps Electric Co Ltd Thermal print head controller
JPH07195762A (en) * 1993-12-28 1995-08-01 Fuji Xerox Co Ltd Image information recording device
JPH07264417A (en) * 1994-03-18 1995-10-13 Oki Electric Ind Co Ltd Image coding method
JP2001102935A (en) * 1999-09-29 2001-04-13 Seiko Epson Corp Data compression controller, data compression control method, printing information forming device, printing system, and recording medium storing program
JP2002307762A (en) * 2001-04-10 2002-10-23 Oki Data Corp Imaging apparatus

Similar Documents

Publication Publication Date Title
US8456684B2 (en) Image processing apparatus and method
JP2004080520A (en) Image processing apparatus, image reading apparatus and image forming apparatus
US7590778B2 (en) Using operation codes to control a decoder&#39;s use of a buffer to generate data from an input data stream into an output data stream
US7369065B2 (en) Using operation codes to control a decoder to generate data from an input data stream into an output data stream
JP2008011202A (en) Film grain processing circuit
JP2008049503A (en) Printing apparatus and thermal head apparatus
JP2008146186A (en) Dma transfer device, data transfer control method, and data transfer control program
JP2006238291A (en) Coding processing method of color image information, decoding processing method and printer using the same
US8280177B2 (en) Encoding device using parallelized encoding, decoding device using parallelized decoding, and image forming device, method, and program storage medium including the same
JP2876987B2 (en) Printing system
JP7040058B2 (en) Encoding device
JP3797865B2 (en) Image data rearrangement and rearrangement device and image compression / decompression device
JP2007060261A (en) Image formation apparatus
JP2006115424A (en) Image processor, transfer control method thereof, output control method thereof, control program thereof, and recording medium with the control program recorded thereon
US6940791B2 (en) Data recording controller
US7630096B2 (en) Image processing apparatus, image processing method, image forming apparatus, image forming method, computer program and computer-readable storage medium
JP2005297333A (en) Image forming apparatus
JP4549380B2 (en) Printing apparatus, control method therefor, and control program
JP4095296B2 (en) Printing apparatus and printing control method therefor
JP2008141594A (en) Print data generation apparatus, printer, and print system
JP4037872B2 (en) Image forming apparatus
JP2020048041A (en) Image decompression device, and control method and program for the same
JP2008097142A (en) Printer and printer system
JP2007069424A (en) Printer
JP2005193569A (en) Image processor, printer, and reading method for stored data

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20090708

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Effective date: 20110318

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20110329

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Effective date: 20110421

Free format text: JAPANESE INTERMEDIATE CODE: A523

A02 Decision of refusal

Effective date: 20110607

Free format text: JAPANESE INTERMEDIATE CODE: A02