JP2014050998A - Recorder, method for controlling recorder, and program - Google Patents

Recorder, method for controlling recorder, and program Download PDF

Info

Publication number
JP2014050998A
JP2014050998A JP2012195812A JP2012195812A JP2014050998A JP 2014050998 A JP2014050998 A JP 2014050998A JP 2012195812 A JP2012195812 A JP 2012195812A JP 2012195812 A JP2012195812 A JP 2012195812A JP 2014050998 A JP2014050998 A JP 2014050998A
Authority
JP
Japan
Prior art keywords
recording
line
parts
character
control
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
JP2012195812A
Other languages
Japanese (ja)
Inventor
雄史 ▲高▼見澤
Yuji Takamizawa
Eku Kobayashi
恵久 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2012195812A priority Critical patent/JP2014050998A/en
Publication of JP2014050998A publication Critical patent/JP2014050998A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To efficiently perform recording by using characteristics of a combined character.SOLUTION: A printer 11 includes: a serial head 25 which can record a combined character obtained by forming one character with a combination of parts of a plurality of portions, the respective portions being divided from one character, and records the combined character while performing scanning in a predetermined direction; and a recording control part 26a which receives from a host computer 10 control data for instructing recording of a part for one line in each portion, develops image data of combined characters for one line to a buffer 40 on the basis of the received control data in each portion, and performs recording by driving the serial head 25.

Description

本発明は、制御装置に接続可能な記録装置、当該記録装置の制御方法、及び、当該記録装置を制御するためのプログラムに関する。   The present invention relates to a recording apparatus connectable to a control apparatus, a control method for the recording apparatus, and a program for controlling the recording apparatus.

従来、タイ語に係る文字等の、1つの文字が、複数の部位に分かれており、部位ごとに文字パーツを組み合わせて1つの文字が形成される結合文字を記録可能な記録装置(タイ語ラベルプリンター)が知られている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, a recording device (Thai label) in which a single character, such as a character related to Thai, is divided into a plurality of parts, and a combined character in which one part is formed by combining character parts for each part Printers) are known (see, for example, Patent Document 1).

特開2005−212375号公報JP 2005-212375 A

上述した記録装置のように、結合文字を記録するものでは、結合文字の特性を利用して、効率的な記録を実現したいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、結合文字の特性を利用して、効率的に記録できるようにすることを目的とする。
As in the recording apparatus described above, there is a need to realize efficient recording by utilizing the characteristics of the combined character in the case of recording the combined character.
The present invention has been made in view of the above-described circumstances, and an object of the present invention is to enable efficient recording using the characteristics of combined characters.

上記目的を達成するために、本発明は、制御装置に接続可能に構成され、1つの文字が複数の部位に分かれ、各部位のパーツの組合せによって1つの文字が構成されている結合文字を記録可能な記録装置であって、所定方向に走査しつつ記録を行うシリアルヘッドと、前記制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信し、受信した部位に係る1ラインごとの前記制御データに基づいて、1行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行う記録制御部と、を備えることを特徴とする。
ここで、従来の記録装置は、制御装置から、部位ごとに、1ライン分の部位の記録を指示する制御データを受信した場合、1ライン分の部位ごとに、シリアルヘッドを走査させて、記録を実行していた。一方で、上記構成によれば、記録装置は、制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信した場合、1ライン分の部位ごとに記録を行うのではなく、受信した部位に係る1ラインごとの制御データに基づいて、1行分の文字の画像データをバッファーに展開し、バッファーに展開した1行分の文字の画像データに基づいて、シリアルヘッドを駆動させて記録を行う。このため、部位単位ではなく、文字単位でシリアルヘッドを走査させて記録を行うことが可能となり、シリアルヘッドの走査回数を低減でき、効率的な記録を実現できる。
In order to achieve the above object, the present invention is configured to be connectable to a control device, wherein one character is divided into a plurality of parts, and a combined character in which one character is constituted by a combination of parts of each part is recorded. A recording apparatus capable of recording while scanning in a predetermined direction, and receiving control data for instructing recording of parts for one line relating to each part from the control unit; Based on the control data for each line, recording is performed by developing image data of combined characters for one line in a buffer, and driving the serial head based on the image data expanded in the buffer. And a control unit.
Here, when the conventional recording apparatus receives control data for instructing recording of a part for one line for each part from the control apparatus, the recording is performed by scanning the serial head for each part for one line. Was running. On the other hand, according to the above configuration, when the recording apparatus receives control data for instructing recording of parts for one line related to each part from the control apparatus, the recording apparatus does not perform recording for each part for one line. Rather, based on the control data for each line related to the received part, the character image data for one line is expanded in the buffer, and the serial head is connected based on the character image data for one line expanded in the buffer. Drive to record. For this reason, it is possible to perform recording by scanning the serial head in character units, not in site units, thereby reducing the number of scans of the serial head and realizing efficient recording.

また、本発明は、前記パーツのフォントデータを記憶する記憶部をさらに備え、前記記録制御部は、前記制御装置から、各部位に係る1ライン分のパーツのフォントデータを指定する情報を含む前記制御データを受信し、受信した部位ごとの前記制御データに基づいて、全ての部位のパーツのフォントデータを前記バッファーに展開することにより、1行分の文字の前記画像データを前記バッファーに展開することを特徴とする。
この構成によれば、記録装置は、受信した部位ごとの制御データに基づいて、バッファーに、1行分の文字の画像データを不足なく展開することが可能である。
In addition, the present invention further includes a storage unit that stores font data of the parts, and the recording control unit includes information specifying font data of parts for one line related to each part from the control device. The control data is received, and based on the received control data for each part, the font data of the parts of all parts is developed in the buffer, thereby developing the image data of characters for one line in the buffer. It is characterized by that.
According to this configuration, the recording apparatus can expand the image data of one line of characters into the buffer without being insufficient based on the received control data for each part.

また、本発明は、前記1つの文字は、少なくとも上部の部位および下部の部位に分かれ、前記上部の部位に係る1ライン分のパーツの記録を指示する前記制御データ、及び、前記下部の部位に係る1ライン分のパーツの記録を指示する前記制御データは、改行を指示する改行コマンドを含み、前記制御部は、前記上部の部位に係る1ライン分のパーツの記録を指示する前記制御データの前記改行コマンドをトリガーとして、次の部位に係る1ライン分のパーツの記録を指示する制御データの読み出しを行い、前記下部の部位に係る1ライン分のパーツの記録を指示する前記制御データの前記改行コマンドをトリガーとして、前記バッファーに展開した前記画像データに基づいて記録を行うことを特徴とする。
この構成によれば、各部位に係る制御データに含まれる改行コマンドを利用して、適切に、1行分の結合文字の画像データをバッファーに展開後、1行分の結合文字の記録を実行できる。
Further, according to the present invention, the one character is divided into at least an upper part and a lower part, and the control data for instructing recording of parts for one line related to the upper part, and the lower part The control data for instructing the recording of parts for one line includes a line feed command for instructing a line feed, and the control unit includes the control data for instructing the recording of parts for one line related to the upper part. Using the line feed command as a trigger, the control data for instructing the recording of parts for one line related to the next part is read, and the control data for instructing the recording of parts for one line related to the lower part Recording is performed based on the image data developed in the buffer with a line feed command as a trigger.
According to this configuration, by using the line feed command included in the control data related to each part, the combined character image data for one line is appropriately expanded in the buffer, and then the combined character for one line is recorded. it can.

また、上記目的を達成するために、本発明は、制御装置に接続可能に構成され、所定方向に走査しつつ記録を行うシリアルヘッドを備え、1つの文字が複数の部位に分かれ、各部位のパーツの組合せによって1つの文字が構成されている結合文字を記録可能な記録装置の制御方法であって、前記制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信し、受信した部位に係る1ラインごとの前記制御データに基づいて、1行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行うことを特徴とする。
この制御方法によれば、記録装置は、制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信した場合、1ライン分の部位ごとに記録を行うのではなく、受信した部位ごとの制御データに基づいて、1行分の文字の画像データをバッファーに展開し、バッファーに展開した1行分の文字の画像データに基づいて、シリアルヘッドを駆動させて記録を行う。このため、部位単位ではなく、文字単位でシリアルヘッドを走査させて記録を行うことが可能となり、シリアルヘッドの走査回数を低減でき、効率的な記録を実現できる。
In order to achieve the above object, the present invention is configured to be connectable to a control device, and includes a serial head that performs recording while scanning in a predetermined direction. One character is divided into a plurality of parts, and A control method for a recording apparatus capable of recording a combined character in which one character is constituted by a combination of parts, and receiving control data for instructing recording of parts for one line relating to each part from the control apparatus Then, based on the control data for each line relating to the received part, the image data of the combined characters for one line is expanded in a buffer, and the serial head is driven based on the image data expanded in the buffer And recording is performed.
According to this control method, when the recording apparatus receives control data instructing recording of parts for one line related to each part from the control apparatus, the recording apparatus does not perform recording for each part for one line, Based on the received control data for each part, character image data for one line is developed in a buffer, and recording is performed by driving a serial head based on the character image data for one line developed in the buffer. . For this reason, it is possible to perform recording by scanning the serial head in character units, not in site units, thereby reducing the number of scans of the serial head and realizing efficient recording.

また、上記目的を達成するために、本発明は、制御装置に接続可能に構成され、所定方向に走査しつつ記録を行うシリアルヘッドを備え、1つの文字が複数の部位に分かれ、各部位のパーツの組合せによって1つの文字が構成されている結合文字を記録可能な記録装置を制御する制御部により実行されるプログラムであって、前記制御部を、前記制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信し、受信した部位に係る1ラインごとの前記制御データに基づいて、1行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行う記録制御部として機能させることを特徴とする。
このプログラムによれば、記録装置は、制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信した場合、1ライン分の部位ごとに記録を行うのではなく、受信した部位ごとの制御データに基づいて、1行分の文字の画像データをバッファーに展開し、バッファーに展開した1行分の文字の画像データに基づいて、シリアルヘッドを駆動させて記録を行う。このため、部位単位ではなく、文字単位でシリアルヘッドを走査させて記録を行うことが可能となり、シリアルヘッドの走査回数を低減でき、効率的な記録を実現できる。
In order to achieve the above object, the present invention is configured to be connectable to a control device, and includes a serial head that performs recording while scanning in a predetermined direction. One character is divided into a plurality of parts, and A program executed by a control unit that controls a recording device capable of recording a combined character in which one character is configured by a combination of parts, wherein the control unit is connected to the control device from the control device by one line for each part. Control data for instructing the recording of parts per minute is received, and based on the control data for each line relating to the received part, image data of combined characters for one line is developed in a buffer and developed in the buffer Based on the image data, the serial head is driven to function as a recording control unit that performs recording.
According to this program, when the recording apparatus receives control data instructing recording of parts for one line related to each part from the control apparatus, the recording apparatus does not perform recording for each part for one line, but receives the control data. Based on the control data for each part, character image data for one line is developed in a buffer, and recording is performed by driving a serial head based on the character image data for one line developed in the buffer. For this reason, it is possible to perform recording by scanning the serial head in character units, not in site units, thereby reducing the number of scans of the serial head and realizing efficient recording.

本発明によれば、結合文字の特性を利用して、効率的に記録できる。   According to the present invention, it is possible to record efficiently using the characteristics of the combined characters.

本実施形態に係る記録システムの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the recording system which concerns on this embodiment. 記録媒体に記録されたタイ文字の一例を模式的に示す図である。It is a figure which shows typically an example of the Thai character recorded on the recording medium. ホストコンピューターが送信する制御データを模式的に示す図である。It is a figure which shows typically the control data which a host computer transmits. タイ文字を記録する際のプリンターの動作を示す図である。It is a figure which shows operation | movement of the printer at the time of recording a Thai character. バッファーに展開された画像データを模式的に示す図である。It is a figure which shows typically the image data expand | deployed by the buffer. プリンターの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a printer.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る記録システム1の機能的構成を示すブロック図である。
記録システム1は、ホストコンピューター10(制御装置)と、プリンター11(記録装置)とを備え、ホストコンピューター10の制御の下、プリンター11によって記録媒体に記録するシステムである。
図1に示すように、ホストコンピューター10は、ホスト側制御部15と、ホスト側表示部16と、ホスト側入力部17と、ホスト側インターフェイス(I/F)部18と、ホスト側記憶部19と、を備えている。
ホスト側制御部15は、ホストコンピューター10の各部を中枢的に制御するものであり、CPUや、ROM、RAM、その他の周辺回路等を備えている。ホスト側表示部16は、液晶ディスプレーパネル等の表示パネルを備え、ホスト側制御部15の制御の下、表示パネルに各種情報を表示する。ホスト側入力部17は、各種入力デバイスに接続され、これら入力デバイスに対する操作を検出し、ホスト側制御部15に出力する。ホスト側インターフェイス部18は、ホスト側制御部15の制御の下、プリンター11との間で通信規格に準拠した通信を行う。ホスト側記憶部19は、ハードディスクや、EEPROM等の記憶装置を備え、各種データを書き換え可能に記憶する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a functional configuration of a recording system 1 according to the present embodiment.
The recording system 1 includes a host computer 10 (control device) and a printer 11 (recording device), and records on a recording medium by the printer 11 under the control of the host computer 10.
As shown in FIG. 1, the host computer 10 includes a host-side control unit 15, a host-side display unit 16, a host-side input unit 17, a host-side interface (I / F) unit 18, and a host-side storage unit 19. And.
The host-side control unit 15 centrally controls each unit of the host computer 10 and includes a CPU, a ROM, a RAM, and other peripheral circuits. The host-side display unit 16 includes a display panel such as a liquid crystal display panel, and displays various types of information on the display panel under the control of the host-side control unit 15. The host side input unit 17 is connected to various input devices, detects operations on these input devices, and outputs them to the host side control unit 15. The host side interface unit 18 performs communication based on the communication standard with the printer 11 under the control of the host side control unit 15. The host-side storage unit 19 includes a storage device such as a hard disk or an EEPROM, and stores various data in a rewritable manner.

プリンター11は、インクリボンに記録ワイヤを打ち当ててインクリボンのインクを記録媒体に付着させるシリアル・インパクト・ドット・マトリクス式のシリアルヘッド25を備え、このシリアルヘッド25により画像を記録する、いわゆるドットインパクト方式の記録装置である。
図1に示すように、プリンター11は、CPUや、ROM、RAM、その他の周辺回路等を有し、プリンター11の各部を中枢的に制御する制御部26を備えている。制御部26は、記録制御部26aを備えているが、これについては後述する。
制御部26は、ヘッド駆動回路27を介してシリアルヘッド25を駆動して、記録媒体への記録を実行する。
なお、シリアルヘッド25には、記録媒体を搬送するときの搬送方向YJ1(図2参照)に24ドット分の記録ワイヤが設けられている。従って、シリアルヘッド25の1回の搬送で、搬送方向YJ1に24ドット分の画像を記録可能である。
また、制御部26は、モーター駆動回路28を介して、キャリッジ駆動モーター29を駆動して、キャリッジ30を所定方向に走査させることにより、このキャリッジ30に搭載されたシリアルヘッド25を所定方向に走査させる。また、制御部26は、モーター駆動回路28、及び、紙送りモーター31を介して、記録媒体の搬送路上に設けられた搬送ローラー32を回転させて、記録媒体を所定方向に搬送する。
表示部33は、各種表示パネルや、LED等を備え、各種情報を報知する。入力部34は、プリンター11に設けられた操作スイッチに接続され、操作スイッチに対する操作を検出し、制御部26に出力する。インターフェイス(I/F)部38は、制御部26の制御の下、ホストコンピューター10との間で通信規格に準拠した通信を行う。記憶部37は、各種データを書き換え可能に、不揮発的に記憶する。記憶部37に記憶された上部位パーツコードページ37a、中部位パーツコードページ37bおよび下部位パーツコードページ37c等のデータについては後述する。インターフェイス部38は、制御部26の制御の下、ホストコンピューター10との間で通信規格に準拠した通信を行う。
バッファー40は、RAM等の所定の記憶領域に形成された画像バッファーであり、記録媒体への記録の際は、バッファー40に画像データが展開され、展開された画像データに基づいてヘッド駆動回路27が駆動して、画像の記録が行われる。
The printer 11 includes a serial impact dot matrix type serial head 25 that applies a recording wire to an ink ribbon and attaches ink of the ink ribbon to a recording medium. The serial head 25 records an image, so-called dot. This is an impact recording device.
As illustrated in FIG. 1, the printer 11 includes a CPU, a ROM, a RAM, other peripheral circuits, and the like, and includes a control unit 26 that centrally controls each unit of the printer 11. The control unit 26 includes a recording control unit 26a, which will be described later.
The control unit 26 drives the serial head 25 via the head drive circuit 27 and executes recording on the recording medium.
The serial head 25 is provided with a recording wire for 24 dots in the transport direction YJ1 (see FIG. 2) when transporting the recording medium. Therefore, an image of 24 dots can be recorded in the transport direction YJ1 by one transport of the serial head 25.
Further, the controller 26 drives the carriage drive motor 29 via the motor drive circuit 28 to scan the carriage 30 in a predetermined direction, thereby scanning the serial head 25 mounted on the carriage 30 in a predetermined direction. Let Further, the control unit 26 rotates the transport roller 32 provided on the transport path of the recording medium via the motor drive circuit 28 and the paper feed motor 31 to transport the recording medium in a predetermined direction.
The display unit 33 includes various display panels, LEDs, and the like, and notifies various information. The input unit 34 is connected to an operation switch provided in the printer 11, detects an operation on the operation switch, and outputs it to the control unit 26. The interface (I / F) unit 38 performs communication based on the communication standard with the host computer 10 under the control of the control unit 26. The storage unit 37 stores various data in a rewritable manner. The data of the upper part part code page 37a, the middle part part code page 37b, the lower part part code page 37c and the like stored in the storage unit 37 will be described later. The interface unit 38 performs communication based on the communication standard with the host computer 10 under the control of the control unit 26.
The buffer 40 is an image buffer formed in a predetermined storage area such as a RAM. When recording on a recording medium, the image data is developed in the buffer 40, and the head drive circuit 27 is based on the developed image data. Is driven to record an image.

さて、本実施形態に係るプリンター11は、タイ文字(結合文字)を記録可能である。
図2は、本実施形態に係るプリンター11によって記録媒体に記録された2行分のタイ文字の一例を表わす図である。図2において、搬送方向YJ1は、タイ文字の記録に際し、記録媒体が搬送される方向を示し、主走査正方向YJ2、及び、主走査逆方向YJ3は、それぞれ、シリアルヘッド25が走査する方向を表わしている。
1つのタイ文字は、複数のパーツ(要素)からなり、図2に示す例のように、上部(上部位)、中間(中部位)、及び、下部(下部位)の3つの部位に分かれている。そして、1つのタイ文字は、上部位の上部位パーツ、中部位の中部位パーツ、及び、下部位の下部位パーツの組合せによって構成されている。なお、本実施形態では、パーツの概念に、スペースも含まれている。例えば、図2の1行目の1文字目の上部位には、スペースに係るパーツが格納されている。また、文字には罫線等も含まれる。
図2に示すように、「1行」は、「1ライン」分の上部位、「1ライン」分の中部位、及び、「1ライン」分の下部位により構成されている。このように、本実施形態では、「1行」は、タイ文字に対応した行を表わし、「1ライン」は、部位に対応したラインを表わすものとし、これらを明確に区別する。上部位に係る1ラインの搬送方向YJ1の長さは15ドットであり、中部位に係る1ラインの搬送方向YJ1の長さは24ドットであり、下部位に係る1ラインの搬送方向YJ1の長さは7ドットであり、1行の搬送方向YJ1の長さは46ドットである。
Now, the printer 11 according to the present embodiment can record Thai characters (combined characters).
FIG. 2 is a diagram illustrating an example of two lines of Thai characters recorded on a recording medium by the printer 11 according to the present embodiment. In FIG. 2, the transport direction YJ1 indicates the direction in which the recording medium is transported when recording Thai characters, and the main scanning forward direction YJ2 and the main scanning reverse direction YJ3 are the scanning directions of the serial head 25, respectively. It represents.
One Thai character consists of multiple parts (elements), and is divided into three parts, upper part (upper part), middle part (middle part), and lower part (lower part) as shown in the example shown in FIG. Yes. One tie character is composed of a combination of an upper part part in the upper part, a middle part part in the middle part, and a lower part part in the lower part. In the present embodiment, the concept of parts includes a space. For example, a part related to a space is stored in the upper part of the first character in the first line in FIG. The characters include ruled lines and the like.
As shown in FIG. 2, “1 line” is composed of an upper part for “1 line”, a middle part for “1 line”, and a lower part for “1 line”. Thus, in the present embodiment, “1 line” represents a line corresponding to a Thai character, and “1 line” represents a line corresponding to a part, and these are clearly distinguished. The length of the conveyance direction YJ1 of one line related to the upper part is 15 dots, the length of the conveyance direction YJ1 of one line related to the middle part is 24 dots, and the length of the conveyance direction YJ1 of one line related to the lower part The length is 7 dots, and the length of one line in the carrying direction YJ1 is 46 dots.

ここで、本実施形態に係るプリンター11は、記録媒体への記録の動作モードとして、モードAと、モードBとを有している。
モードAは、従来のプリンターと同様の方法により、記録媒体への記録を行う動作モードである。一方、モードBは、本発明に係る方法により、記録媒体への記録を行う動作モードである。以下、まず、モードAにおけるプリンター11の動作ついて説明し、その後、モードBにおけるプリンター11の動作について、モードAと比較した利点と共に説明する。
<モードA>
まず、モードA時のプリンター11の動作について、図2の第1行のタイ語の文字列を記録する場合を例にして説明する。
なお、以下の説明では、図2の第1行の各パーツを、図2において付した符号を使って表現するものとする。例えば、図2の第1行の1文字目の中部位の中部位パーツは、「パーツX1」と表現し、3文字目の上部位の上部位パーツは、「パーツY3」と表現する。さらに、便宜的に、各パーツには、各パーツの符号のアルファベット部分を小文字で表わした文字コードが付与されているものとする。例えば、パーツX1には、文字コードとして「x1」が付与されており、パーツY3には、文字コードとして「y3」が付与されているものとする。また、「xx」は、スペースを表わす中部位パーツの文字コードであり、「yy」は、スペースを表わす上部位パーツの文字コードであり、「zz」は、スペースを表わす下部位パーツの文字コードであるものとする。
Here, the printer 11 according to the present embodiment has a mode A and a mode B as operation modes for recording on a recording medium.
Mode A is an operation mode in which recording on a recording medium is performed in the same manner as a conventional printer. On the other hand, mode B is an operation mode in which recording on a recording medium is performed by the method according to the present invention. Hereinafter, the operation of the printer 11 in the mode A will be described first, and then the operation of the printer 11 in the mode B will be described together with the advantages compared with the mode A.
<Mode A>
First, the operation of the printer 11 in mode A will be described by taking as an example the case of recording a Thai character string in the first line of FIG.
In the following description, each part in the first row in FIG. 2 is expressed using the reference numerals in FIG. For example, the middle part of the middle part of the first character in the first line in FIG. 2 is expressed as “part X1”, and the upper part part of the upper part of the third character is expressed as “part Y3”. Furthermore, for the sake of convenience, it is assumed that each part is given a character code representing the alphabet part of the code of each part in lower case. For example, it is assumed that “x1” is assigned as the character code to the part X1, and “y3” is assigned as the character code to the part Y3. “Xx” is the character code of the middle part representing the space, “yy” is the character code of the upper part representing the space, and “zz” is the character code of the lower part representing the space. Suppose that

プリンター11による記録に際し、まず、ホストコンピューター10から、プリンター11に対して、制御データが送信される。
図3は、ホストコンピューター10から従来のプリンター11に対して、送信される制御データのデータ構造を、説明の便宜を考慮して単純化し、模式的に表わした図である。
図3に示すように、ホストコンピューター10から、プリンター11に対して送信される制御データは、上部位制御コマンドC1(制御データ)、中部位制御コマンドC2(制御データ)、及び、下部位制御コマンドC3(制御データ)を含んで構成されている。
上部位制御コマンドC1は、上部位に係る1ライン分の上部位パーツの記録を指示する制御データである。図3に示すように、上部位制御コマンドC1は、上部位に係る1ライン分の上部位パーツの記録を指示する命令コードである上部位記録指示コードM1と、1ライン分の上部位に記録すべき上部位パーツの文字コードが記録すべき順番に並んで記述された上部位パーツ指定部P1と、改行を指示する上部位改行コマンドLF1と、を含んで構成されている。同様に、中部位制御コマンドC2は、中部位記録指示コードM2と、中部位パーツ指定部P2と、中部位改行コマンドLF2と、を含んで構成されており、下部位制御コマンドC3は、下部位記録指示コードM3と、下部位パーツ指定部P3と、下部位改行コマンドLF3と、を含んで構成されている。
When recording by the printer 11, first, control data is transmitted from the host computer 10 to the printer 11.
FIG. 3 is a diagram schematically showing the data structure of control data transmitted from the host computer 10 to the conventional printer 11 in consideration of the convenience of explanation.
As shown in FIG. 3, the control data transmitted from the host computer 10 to the printer 11 includes an upper part control command C1 (control data), a middle part control command C2 (control data), and a lower part control command. C3 (control data) is included.
The upper part control command C1 is control data for instructing recording of the upper part part for one line related to the upper part. As shown in FIG. 3, the upper part control command C1 is recorded in the upper part recording instruction code M1 which is an instruction code for instructing recording of the upper part part for one line related to the upper part and the upper part for one line. The upper part parts designation part P1 in which the character codes of the upper part parts to be written are described in the order to be recorded, and the upper part line feed command LF1 for instructing a line feed are included. Similarly, the middle part control command C2 includes a middle part recording instruction code M2, a middle part part designating part P2, and a middle part line feed command LF2. The lower part control command C3 is a lower part control command C3. It includes a recording instruction code M3, a lower part part designation part P3, and a lower part line feed command LF3.

図4(A)は、モードAにおけるプリンター11の動作の説明に利用する図である。そして、(A1)、(A2)、(A3)は、それぞれ、1ライン分の上部位パーツ、中部位パーツ、下部位パーツの記録の実行を示している。
モードAにおいて、図3に示す制御データを受信すると、プリンター11は、以下のようにして記録を実行する。
すなわち、まず、プリンター11の制御部26の記録制御部26aは、上部位制御コマンドC1に基づいて、1ライン分の上部位パーツを記録する。この記録制御部26aの機能は、制御部26のCPUがファームウェアを読み出して実行する等、ハードウェアとソフトウェアとの協働により実現される。
詳述すると、記憶部37には、上部位パーツのそれぞれのフォントデータを集合的に記憶する上部位パーツコードページ37aが記憶されており、さらに、記憶部37には、上部位パーツのそれぞれの文字コードと、上部位パーツコードページ37aにおいて対応するフォントデータが格納されている記憶領域のアドレスと、の対応関係が記述されたテーブルが記憶されている。そして、記録制御部26aは、上部位記録指示コードM1の読み出しをトリガーとして、上部位パーツ指定部P1に記述された文字コードを、順次、読み出し、上記テーブルを利用して上部位パーツコードページ37aの対応するフォントデータを特定し、特定したフォントデータを、順次、バッファー40に展開する。記録制御部26aは、このような上部位パーツのフォントデータのバッファー40への展開を、上部位改行コマンドLF1が読み出されるまで行う。これにより、記録制御部26aは、バッファー40に、上部位に係る1ライン分の全ての上部位パーツ(=上部位パーツ指定部P1に記述された全ての上部位パーツ)のフォントデータを順番通りに展開する。次いで、記録制御部26aは、上部位改行コマンドLF1の読み出しをトリガーとして、バッファー40に展開した1ライン分の上部位パーツのフォントデータ(画像データ)に基づいて、ヘッド駆動回路27、及び、モーター駆動回路28を動作させて、シリアルヘッド25を主走査正方向YJ2に搬送させつつ、シリアルヘッド25に設けられた記録ワイヤを適切なタイミングで駆動し、1ライン分の上部位パーツの記録を実行する(図4(A1)参照)。
FIG. 4A is a diagram used for explaining the operation of the printer 11 in mode A. FIG. (A1), (A2), and (A3) indicate execution of recording of the upper part part, the middle part part, and the lower part part for one line, respectively.
In mode A, when the control data shown in FIG. 3 is received, the printer 11 performs recording as follows.
That is, first, the recording control unit 26a of the control unit 26 of the printer 11 records the upper part part for one line based on the upper part control command C1. The function of the recording control unit 26a is realized by the cooperation of hardware and software, such as the CPU of the control unit 26 reading out and executing the firmware.
More specifically, the storage unit 37 stores an upper part part code page 37a for collectively storing the font data of the upper part parts, and the storage unit 37 further stores the upper part part code page 37a. A table in which the correspondence relationship between the character code and the address of the storage area where the corresponding font data is stored in the upper part part code page 37a is stored. Then, the recording control unit 26a sequentially reads out the character codes described in the upper part part designating part P1 using the reading of the upper part recording instruction code M1 as a trigger, and uses the above table to read the upper part part code page 37a. The corresponding font data is specified, and the specified font data is sequentially developed in the buffer 40. The recording control unit 26a develops the font data of the upper part part in the buffer 40 until the upper part line feed command LF1 is read. Thereby, the recording control unit 26a sequentially stores the font data of all the upper part parts for one line related to the upper part (= all the upper part parts described in the upper part part designating part P1) in the buffer 40 in order. Expand to. Next, the recording control unit 26a uses the reading of the upper part line feed command LF1 as a trigger, based on the font data (image data) of the upper part part for one line developed in the buffer 40, and the motor driving circuit 27 and the motor. The drive circuit 28 is operated to transport the serial head 25 in the main scanning positive direction YJ2, and the recording wire provided on the serial head 25 is driven at an appropriate timing to execute recording of the upper part part for one line. (See FIG. 4A1).

1ライン分の上部位パーツの記録を実行した後、記録制御部26aは、搬送ローラー32を回転させて、記録媒体を上部位に係る1ライン分(15ドット分)搬送方向YJ1に搬送する。次いで、記録制御部26aは、上部位と同様の手段により、中部位パーツコードページ37bを利用して、中部位コマンドC2に基づいて、シリアルヘッド25を主走査逆方向YJ3に搬送させて、1ライン分の中部位パーツの全てを記録する(図4(A2)参照)。
1ライン分の中部位パーツの記録を実行した後、記録制御部26aは、搬送ローラー32を回転させて、記録媒体を中部位に係る1ライン分(24ドット分)搬送方向YJ1に搬送した後、下部位パーツコードページ37cを利用して、下部位コマンドC3に基づいて、シリアルヘッド25を主走査正方向YJ2に搬送させて、1ライン分の下部位パーツの全てを記録する(図4(A3)参照)。
このように、モードAでは、プリンター11は、1行分の記録を行うために、3回、シリアルヘッド25を搬送する。
After recording the upper part parts for one line, the recording control unit 26a rotates the transport roller 32 to transport the recording medium in the transport direction YJ1 for one line (for 15 dots) related to the upper part. Next, the recording control unit 26a uses the same means as the upper part to convey the serial head 25 in the main scanning reverse direction YJ3 based on the middle part command C2 using the middle part part code page 37b. All the middle part parts for the line are recorded (see FIG. 4 (A2)).
After recording the middle part part for one line, the recording control unit 26a rotates the transport roller 32 to transport the recording medium in the transport direction YJ1 for one line (for 24 dots) related to the middle part. Using the lower part part code page 37c, based on the lower part command C3, the serial head 25 is conveyed in the main scanning positive direction YJ2 to record all the lower part parts for one line (FIG. 4 ( See A3)).
Thus, in mode A, the printer 11 conveys the serial head 25 three times in order to perform recording for one line.

<モードB>
次に、モードBにおけるプリンター11の動作について、モードAの説明と同様、図2の第1行のタイ語の文字列を記録する場合を例にして説明する。
プリンター11による記録に際し、まず、ホストコンピューター10から、プリンター11に対して、第1行の記録を指示する制御データが送信される。ここでホストコンピューター10が送信する制御データは、モードAの場合に送信する制御データと、同一の内容である。すなわち、後に明らかとなるとおり、モードBでは、モードAと比較して、より効率的に、かつ、より短時間で1行分の画像を記録できるが、このような効果を奏するために、ホストコンピューター10に対してソフト的ハード的な改変を、一切、行う必要がない。
さて、図3に示す制御データを受信すると、記録制御部26aは、上部位制御コマンドC1の上部位記録指示コードM1の読み出しをトリガーとして、上部位パーツ指定部P1に基づいて、上部位1ライン分の上部位パーツのフォントデータを、バッファー40に展開する。次いで、記録制御部26aは、上部位改行コマンドLF1の読み出しをトリガーとして、中部位制御コマンドC2を読み出す。このように、モードAにおいては、記録制御部26aは、上部位改行コマンドLF1の読み出しをトリガーとして上部位パーツの記録を開始することなく、中部位制御コマンドC2の読み出しを実行する。
次いで、記録制御部26aは、中部位制御コマンドC2の中部位記録指示コードM2の読み出しをトリガーとして、中部位パーツ指定部P2に基づいて、中部位に係る1ライン分の中部位パーツのフォントデータを、バッファー40に展開する。その際、記録制御部26aは、既に展開した上部位パーツとの関係で適切な領域(位置)に、中部位パーツのフォントデータを展開する。
次いで、記録制御部26aは、中部位改行コマンドLF2の読み出しをトリガーとして、下部位制御コマンドC3を読み出す。次いで、記録制御部26aは、下部位制御コマンドC3の下部位記録指示コードM3の読み出しをトリガーとして、下部位パーツ指定部P3に基づいて、下部位1ライン分の下部位パーツのフォントデータを、バッファー40に展開する。その際、記録制御部26aは、既に展開した上部位パーツ、及び、中部位パーツとの関係で適切な領域(位置)に下部位パーツのフォントデータを展開する。
図5は、下部位パーツのフォントデータの展開が完了した時点でのバッファー40の様子を説明に適した態様で模式的に示す図である。この図に示すように、下部位パーツに係るフォントデータの展開が完了すると、バッファー40において、基点Oを基点として、1行分のタイ文字を表わす縦方向(搬送方向YJ1に対応する方向)に46ドットのイメージデータ(画像データ)が展開された状態となる。
<Mode B>
Next, the operation of the printer 11 in mode B will be described by taking as an example the case of recording a Thai character string in the first line of FIG.
When recording by the printer 11, first, control data instructing recording of the first line is transmitted from the host computer 10 to the printer 11. Here, the control data transmitted by the host computer 10 has the same contents as the control data transmitted in the mode A. That is, as will be apparent later, mode B can record an image for one line more efficiently and in a shorter time than mode A. In order to achieve such an effect, There is no need to make any software or hardware modifications to the computer 10.
When the control data shown in FIG. 3 is received, the recording control unit 26a triggers the reading of the upper part recording instruction code M1 of the upper part control command C1 to trigger the upper part 1 line based on the upper part part designating part P1. The font data of the upper part part of the minute is developed in the buffer 40. Next, the recording control unit 26a reads the middle part control command C2 using the reading of the upper part line feed command LF1 as a trigger. As described above, in the mode A, the recording control unit 26a executes the reading of the middle part control command C2 without starting the recording of the upper part part by using the reading of the upper part line feed command LF1 as a trigger.
Next, the recording control unit 26a uses the reading of the middle part recording instruction code M2 of the middle part control command C2 as a trigger, and based on the middle part part designation part P2, the font data of the middle part parts for one line related to the middle part. Is expanded in the buffer 40. At that time, the recording control unit 26a develops the font data of the middle part in an appropriate region (position) in relation to the already developed upper part part.
Next, the recording control unit 26a reads the lower part control command C3 using the reading of the middle part line feed command LF2 as a trigger. Next, the recording control unit 26a uses the reading of the lower part recording instruction code M3 of the lower part control command C3 as a trigger, based on the lower part part designating part P3, the font data of the lower part part for the lower part one line, The buffer 40 is expanded. At that time, the recording control unit 26a develops the font data of the lower part part in an appropriate region (position) in relation to the already developed upper part part and middle part part.
FIG. 5 is a diagram schematically illustrating the state of the buffer 40 at the time when the development of the font data of the lower part part is completed, in a mode suitable for explanation. As shown in this figure, when the development of the font data relating to the lower part is completed, the buffer 40 is set in the vertical direction (the direction corresponding to the transport direction YJ1) representing one line of Thai characters with the base point O as the base point. The 46-dot image data (image data) is developed.

図4(B)は、モードBにおけるプリンター11の動作の説明に利用する図であり、(B1)、(B2)は、それぞれ、図5のエリアA1、エリアA2に対応する画像の記録の実行を示している。
記録制御部26aは、下部位改行コマンドLF3の読み出しをトリガーとして、バッファー40に展開されている画像データ(図5)に基づいて記録を行う。
詳述すると、上述したとおり、本実施形態に係るシリアルヘッド25は、搬送方向YJ1に24ドット分の記録ワイヤが設けられた構成となっている。このことを踏まえ、まず、記録制御部26aは、バッファー40に展開されている画像データのうち、縦方向(搬送方向YJ1に対応する方向)に24ドット分の画像データ(図5のエリアA1に対応する画像データ)に基づいて、ヘッド駆動回路27、及び、モーター駆動回路28を動作させて、シリアルヘッド25を主走査正方向YJ2に搬送させつつ、シリアルヘッド25に設けられた記録ワイヤを適切なタイミングで駆動し、エリアA1に対応する画像データに基づく画像の記録を実行する(図4(B1)参照)。
このようにして、エリアA1に対応する画像データに基づく画像の記録を実行した後、記録制御部26aは、搬送ローラー32を回転させて、エリアA1の長さ分(24ドット分)搬送方向YJ1に搬送する。次いで、記録制御部26aは、バッファー40に展開されている画像データの残りの部分、すなわち、図5のエリアA2に対応する縦方向に22ドット分の画像データに基づいて、シリアルヘッド25を主走査逆方向YJ3に搬送させて、エリアA2に対応する画像データに基づく画像の記録を実行する(図4(B2)参照)。
このように、モードBでは、1行分のタイ文字に係る画像の記録に際し、シリアルヘッド25の搬送が、2回、で済む。
つまり、モードBでは、タイ文字が上部位、中部位、及び、下部位に分かれており、ホストコンピューター10から、必ず、それぞれの部位に係る制御データ(上部位制御コマンドC1、中部位制御コマンドC2、及び、下部位制御コマンドC3)を受信することを活用し、部位ごとに画像の記録を行うのではなく、1行分の画像データをバッファー40に展開した後に画像の記録を実行する。これにより、1行分のタイ文字の画像データを記録するときに行われるシリアルヘッド25の搬送の回数を減らすことができ、処理効率が向上すると共に、記録に要する時間を短縮化することができる。
さらに、本実施形態では、各制御データ(上部位制御コマンドC1、中部位制御コマンドC2、及び、下部位制御コマンドC3)に含まれる改行コマンドを利用して、適切に、バッファー40に1行分のタイ文字に係る画像データを展開した後、1行分のタイ文字に係る画像の記録を実行している。
FIG. 4B is a diagram used for explaining the operation of the printer 11 in the mode B. FIGS. 4B1 and 2B2 respectively execute image recording corresponding to the areas A1 and A2 in FIG. Is shown.
The recording control unit 26a performs recording based on the image data (FIG. 5) developed in the buffer 40, triggered by reading of the lower part line feed command LF3.
More specifically, as described above, the serial head 25 according to this embodiment has a configuration in which recording wires for 24 dots are provided in the transport direction YJ1. Based on this, first, the recording control unit 26a out of the image data developed in the buffer 40, image data for 24 dots in the vertical direction (direction corresponding to the transport direction YJ1) (in the area A1 in FIG. 5). Based on the corresponding image data), the head drive circuit 27 and the motor drive circuit 28 are operated to transport the serial head 25 in the main scanning forward direction YJ2, and to appropriately apply the recording wire provided on the serial head 25. The image recording is performed based on the image data corresponding to the area A1 (see FIG. 4B1).
After recording an image based on the image data corresponding to the area A1 in this way, the recording control unit 26a rotates the transport roller 32 to transport the length of the area A1 (24 dots) in the transport direction YJ1. Transport to. Next, the recording control unit 26a controls the serial head 25 based on the remaining portion of the image data developed in the buffer 40, that is, the image data of 22 dots in the vertical direction corresponding to the area A2 in FIG. An image is recorded based on the image data corresponding to the area A2 by being conveyed in the scanning reverse direction YJ3 (see FIG. 4B2).
As described above, in mode B, the serial head 25 needs to be transported only twice when recording an image related to one line of Thai characters.
That is, in the mode B, the Thai characters are divided into the upper part, the middle part, and the lower part, and the host computer 10 always sends control data (upper part control command C1, middle part control command C2) related to each part. In addition, using the reception of the lower part control command C3), the image recording is executed after the image data for one line is developed in the buffer 40, instead of recording the image for each part. As a result, the number of times the serial head 25 is conveyed when recording one line of Thai character image data can be reduced, the processing efficiency can be improved, and the time required for recording can be shortened. .
Further, in the present embodiment, the line feed command included in each control data (upper part control command C1, middle part control command C2, and lower part control command C3) is appropriately used to store one line in the buffer 40. After the image data related to the Thai character is expanded, the image recording related to the Thai character for one line is executed.

図6は、モードBにおけるプリンター11の動作を示すフローチャートである。
上部位制御コマンドC1、中部位制御コマンドC2、及び、下部位制御コマンドC3を受信すると(ステップSA1)、プリンター11の制御部26は、上部位記録指示コードM1を読み出し(ステップSA2)、当該コードに準じて、上部位パーツ指定部P1に記述された上部位パーツのフォントデータをバッファー40に展開する(ステップSA3)。次いで、制御部26は、上部位改行コマンドLF1の読み出し(ステップSA4)をトリガーとして、中部位記録指示コードM2を読み出し(ステップSA5)、当該コードに準じて、中部位パーツ指定部P2に記述された中部位パーツのフォントデータをバッファー40に展開する(ステップSA6)。次いで、制御部26は、中部位改行コマンドLF2の読み出し(ステップSA7)をトリガーとして、下部位記録指示コードM3を読み出し(ステップSA8)、当該コードに準じて、下部位パーツ指定部P3に記述された下部位パーツのフォントデータをバッファー40に展開する(ステップSA9)。次いで、制御部26は、下部位改行コマンドLF3の読み出し(ステップSA10)をトリガーとして、バッファー40に展開されている1行分のタイ文字に係る画像データに基づく記録を実行する(ステップSA11)。上述したとおり、ステップSA11における記録に際し、シリアルヘッド25の搬送が、2回で済み、処理効率の向上、及び、記録に要する時間の短縮化が実現される。
FIG. 6 is a flowchart showing the operation of the printer 11 in mode B.
When the upper part control command C1, the middle part control command C2, and the lower part control command C3 are received (step SA1), the control unit 26 of the printer 11 reads the upper part recording instruction code M1 (step SA2). In accordance with the above, the font data of the upper part part described in the upper part part designating part P1 is developed in the buffer 40 (step SA3). Next, the control unit 26 reads the middle part recording instruction code M2 using the reading of the upper part line feed command LF1 (step SA4) as a trigger (step SA5), and is described in the middle part part designation part P2 according to the code. Further, the font data of the middle part is developed in the buffer 40 (step SA6). Next, the control unit 26 reads the lower part recording instruction code M3 using the reading of the middle part line feed command LF2 (step SA7) as a trigger (step SA8), and is described in the lower part part designation part P3 according to the code. The font data of the lower part is developed in the buffer 40 (step SA9). Next, the control unit 26 executes recording based on the image data relating to the Thai characters for one line developed in the buffer 40 using the reading of the lower part line feed command LF3 (step SA10) as a trigger (step SA11). As described above, when recording in step SA11, the serial head 25 is transported only twice, so that the processing efficiency is improved and the time required for recording is shortened.

以上説明したように、本実施形態に係るプリンター11の記録制御部26aは、ホストコンピューター10から、部位ごとに、1ライン分のパーツの記録を指示する制御データ(上部位制御コマンドC1、中部位制御コマンドC2、及び、下部位制御コマンドC3)を受信し、受信した部位ごとの制御データに基づいて、1行分の結合文字の画像データをバッファー40に展開し、バッファー40に展開した画像データに基づいて、シリアルヘッド25を駆動させて記録を行う。
ここで、モードAでは、従来と同様、ホストコンピューター10から、部位ごとに、1ライン分の部位の記録を指示する制御データを受信した場合、1ライン分の部位ごとに、シリアルヘッド25を走査させて、記録を実行していた。一方で、上記構成によれば、プリンター11は、ホストコンピューター10から、1ライン分の部位の記録を指示する制御データを受信した場合、1ライン分の部位ごとに記録を行うのではなく、受信した部位ごとの制御データに基づいて、1行分のタイ文字の画像データをバッファー40に展開し、バッファー40に展開した1行分の文字の画像データに基づいて、シリアルヘッド25を駆動させて記録を行う。このため、部位単位ではなく、文字単位でシリアルヘッド25を走査させて記録を行うことが可能となり、シリアルヘッド25の走査回数を低減でき、効率的な記録を実現できる。
As described above, the recording control unit 26a of the printer 11 according to the present embodiment controls the control data (upper part control command C1, middle part) from the host computer 10 to instruct the recording of parts for one line for each part. The control command C2 and the lower part control command C3) are received, and based on the received control data for each part, the combined character image data for one line is developed in the buffer 40, and the image data developed in the buffer 40 is displayed. Based on the above, recording is performed by driving the serial head 25.
Here, in the mode A, as in the conventional case, when the control data instructing the recording of the part for one line is received from the host computer 10 for each part, the serial head 25 is scanned for each part for one line. Let me record. On the other hand, according to the above configuration, when the printer 11 receives control data for instructing recording of a part for one line from the host computer 10, the printer 11 does not perform recording for each part for one line. One line of Thai character image data is developed in the buffer 40 based on the control data for each part, and the serial head 25 is driven based on the one line of character image data developed in the buffer 40. Make a record. For this reason, it is possible to perform recording by scanning the serial head 25 not in units of parts but in units of characters, thereby reducing the number of scans of the serial head 25 and realizing efficient recording.

また、本実施形態に係るプリンター11は、各パーツのフォントデータを集合的に記憶する上部位パーツコードページ37a、中部位パーツコードページ37b、下部位パーツコードページ37cが記憶された記憶部37を備えている。そして、記録制御部26aは、ホストコンピューター10から、部位ごとに、1ライン分のパーツのフォントデータを指定する情報(上部位パーツ指定部P1、中部位パーツ指定部P2、及び、下部位パーツ指定部P3)を含む制御データを受信し、受信した部位ごとの制御データに基づいて、全ての部位のパーツのフォントデータをバッファー40に展開することにより、1行分のタイ文字の画像データをバッファー40に展開する。
この構成によれば、プリンター11は、受信した部位ごとの制御データに基づいて、バッファー40に、1行分のタイ文字の画像データを不足なく展開することが可能である。
Further, the printer 11 according to the present embodiment includes a storage unit 37 in which the upper part part code page 37a, the middle part part code page 37b, and the lower part part code page 37c that collectively store font data of each part are stored. I have. Then, the recording control unit 26a specifies, from the host computer 10, information for designating font data of parts for one line for each part (upper part part designation part P1, middle part part designation part P2, and lower part part designation). Part P3) is received, and based on the received control data for each part, the font data of parts of all parts is developed in the buffer 40, thereby buffering the Thai character image data for one line. Expand to 40.
According to this configuration, the printer 11 can expand one line of Thai character image data into the buffer 40 based on the received control data for each part.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
上述した実施形態では、結合文字の一例としてタイ文字を挙げたが、結合文字は、これに限らず、インドに係る文字等、パーツを組み合わせて構成される文字の全てを含む概念である。
また、上述した実施形態では、シリアルヘッド25は、シリアル・インパクト・ドット・マトリクス式の記録ヘッドであったが、例えば、インクジェット式等、記録ヘッドの形式は何であってもよい。
また例えば、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。また、プリンター11の各機能ブロックの機能を、プリンター11に外部接続される別の装置に持たせるようにしてもよい。また、プリンター11は、外部接続される記憶媒体に記憶させたプログラムを実行することにより、各種動作を実行するようにしてもよい。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
In the above-described embodiment, a Thai character is used as an example of a combined character. However, the combined character is not limited to this, and is a concept including all characters configured by combining parts such as a character related to India.
In the above-described embodiment, the serial head 25 is a serial impact dot matrix type recording head. However, the recording head may be of any type such as an ink jet type.
Further, for example, each functional block shown in FIG. 1 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration. Further, the function of each functional block of the printer 11 may be provided in another device externally connected to the printer 11. The printer 11 may execute various operations by executing a program stored in an externally connected storage medium.

1…記録システム、10…ホストコンピューター(制御装置)、11…プリンター(記録装置)、25…シリアルヘッド、26…制御部、26a…記録制御部、37…記憶部、37a…上部位パーツコードページ、37b…中部位パーツコードページ、37c…下部位パーツコードページ、40…バッファー。   DESCRIPTION OF SYMBOLS 1 ... Recording system, 10 ... Host computer (control apparatus), 11 ... Printer (recording apparatus), 25 ... Serial head, 26 ... Control part, 26a ... Recording control part, 37 ... Storage part, 37a ... Upper part part code page 37b ... middle part part code page, 37c ... lower part part code page, 40 ... buffer.

Claims (5)

制御装置に接続可能に構成され、
1つの文字が複数の部位に分かれ、各部位のパーツの組合せによって1つの文字が構成されている結合文字を記録可能な記録装置であって、
所定方向に走査しつつ記録を行うシリアルヘッドと、
前記制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信し、受信した部位に係る1ラインごとの前記制御データに基づいて、1行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行う記録制御部と、を備えることを特徴とする記録装置。
Configured to be connectable to the control unit,
A recording apparatus capable of recording a combined character in which one character is divided into a plurality of parts and one character is constituted by a combination of parts of each part,
A serial head for recording while scanning in a predetermined direction;
Control data for instructing recording of parts for one line relating to each part is received from the control device, and image data of combined characters for one line based on the control data for each line relating to the received part. And a recording control unit that performs recording by driving the serial head based on the image data expanded in the buffer.
前記パーツのフォントデータを記憶する記憶部をさらに備え、
前記記録制御部は、
前記制御装置から、各部位に係る1ライン分のパーツのフォントデータを指定する情報を含む前記制御データを受信し、
受信した部位ごとの前記制御データに基づいて、全ての部位のパーツのフォントデータを前記バッファーに展開することにより、1行分の文字の前記画像データを前記バッファーに展開することを特徴とする請求項1に記載の記録装置。
A storage unit for storing font data of the parts;
The recording control unit
From the control device, the control data including information specifying font data of parts for one line related to each part is received,
The image data of characters for one line is developed in the buffer by developing font data of parts of all parts in the buffer based on the received control data for each part. Item 2. The recording device according to Item 1.
前記1つの文字は、少なくとも上部の部位および下部の部位に分かれ、
前記上部の部位に係る1ライン分のパーツの記録を指示する前記制御データ、及び、前記下部の部位に係る1ライン分のパーツの記録を指示する前記制御データは、改行を指示する改行コマンドを含み、
前記制御部は、
前記上部の部位に係る1ライン分のパーツの記録を指示する前記制御データの前記改行コマンドをトリガーとして、次の部位に係る1ライン分のパーツの記録を指示する制御データの読み出しを行い、
前記下部の部位に係る1ライン分のパーツの記録を指示する前記制御データの前記改行コマンドをトリガーとして、前記バッファーに展開した前記画像データに基づいて記録を行うことを特徴とする請求項1又は2に記載の記録装置。
The one character is divided into at least an upper part and a lower part,
The control data for instructing recording of parts for one line relating to the upper part and the control data for instructing recording of parts for one line relating to the lower part include a line feed command for instructing a line feed. Including
The controller is
Using the line feed command of the control data to instruct the recording of parts for one line related to the upper part as a trigger, reading out the control data to instruct the recording of parts for one line related to the next part,
The recording is performed based on the image data developed in the buffer, triggered by the line feed command of the control data instructing recording of parts for one line related to the lower part. 2. The recording apparatus according to 2.
制御装置に接続可能に構成され、所定方向に走査しつつ記録を行うシリアルヘッドを備え、1つの文字が複数の部位に分かれ、各部位のパーツの組合せによって1つの文字が構成されている結合文字を記録可能な記録装置の制御方法であって、
前記制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信し、受信した部位に係る1ラインごとの前記制御データに基づいて、1行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行うことを特徴とする記録装置の制御方法。
A combined character that is configured to be connectable to a control device, includes a serial head that performs recording while scanning in a predetermined direction, one character is divided into a plurality of parts, and one character is constituted by a combination of parts of each part A recording apparatus control method capable of recording
Control data for instructing recording of parts for one line relating to each part is received from the control device, and image data of combined characters for one line based on the control data for each line relating to the received part. A recording apparatus control method, comprising: recording in a buffer, and recording by driving the serial head based on the image data expanded in the buffer.
制御装置に接続可能に構成され、所定方向に走査しつつ記録を行うシリアルヘッドを備え、1つの文字が複数の部位に分かれ、各部位のパーツの組合せによって1つの文字が構成されている結合文字を記録可能な記録装置を制御する制御部により実行されるプログラムであって、
前記制御部を、
前記制御装置から、各部位に係る1ライン分のパーツの記録を指示する制御データを受信し、受信した部位に係る1ラインごとの前記制御データに基づいて、1行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行う記録制御部として機能させることを特徴とするプログラム。
A combined character that is configured to be connectable to a control device, includes a serial head that performs recording while scanning in a predetermined direction, one character is divided into a plurality of parts, and one character is constituted by a combination of parts of each part A program executed by a control unit that controls a recording device capable of recording
The control unit
Control data for instructing recording of parts for one line relating to each part is received from the control device, and image data of combined characters for one line based on the control data for each line relating to the received part. And a function of a recording control unit that performs recording by driving the serial head based on the image data expanded in the buffer.
JP2012195812A 2012-09-06 2012-09-06 Recorder, method for controlling recorder, and program Pending JP2014050998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012195812A JP2014050998A (en) 2012-09-06 2012-09-06 Recorder, method for controlling recorder, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012195812A JP2014050998A (en) 2012-09-06 2012-09-06 Recorder, method for controlling recorder, and program

Publications (1)

Publication Number Publication Date
JP2014050998A true JP2014050998A (en) 2014-03-20

Family

ID=50609945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012195812A Pending JP2014050998A (en) 2012-09-06 2012-09-06 Recorder, method for controlling recorder, and program

Country Status (1)

Country Link
JP (1) JP2014050998A (en)

Similar Documents

Publication Publication Date Title
JP5932377B2 (en) Recording system, information processing apparatus, recording control method, and recording apparatus
JP2006346869A (en) Printer and printing system
JP2014050998A (en) Recorder, method for controlling recorder, and program
JP4918871B2 (en) Printer and control method thereof
JP2013075417A (en) Printing device and method for controlling the same
JP2011098440A (en) Recorder, control method for recorder, and program
JP5754307B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP5891610B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND IMAGE CORRECTION PROGRAM
JP6387594B2 (en) Printing apparatus, printing apparatus control method, and program
JP4507526B2 (en) Printing control method and apparatus
JP2021120208A (en) Printing control device, printing method and printing control program
US20190210377A1 (en) Printer and printer system
JP2014054817A (en) Recording device, control method for recording device, and program
JP5760705B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP5987389B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2013196119A (en) Controller, control system, control method for controller and program
JP2015016599A (en) Printer, printer control method, and program
JP2017209836A (en) Printer and control method for the same
JP2014231202A (en) Print device, method for controlling print device, and program
JP2012196886A (en) Printer, method of controlling the same, and program
JP3130910U (en) Thermal line printer
JP5978712B2 (en) CONTROL SYSTEM, CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP5728955B2 (en) Serial dot printer
JP2011251456A (en) Printing system, input device
JP2011084027A (en) Recording device, control method of recording device, and program

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150108