JP2014050998A - Recorder, method for controlling recorder, and program - Google Patents
Recorder, method for controlling recorder, and program Download PDFInfo
- 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
Links
Images
Abstract
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).
上述した記録装置のように、結合文字を記録するものでは、結合文字の特性を利用して、効率的な記録を実現したいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、結合文字の特性を利用して、効率的に記録できるようにすることを目的とする。
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.
以下、図面を参照して本発明の実施形態について説明する。
図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
The
As shown in FIG. 1, the
The host-
プリンター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
As illustrated in FIG. 1, the
The
The
Further, the
The
The
さて、本実施形態に係るプリンター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
FIG. 2 is a diagram illustrating an example of two lines of Thai characters recorded on a recording medium by the
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
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
<Mode A>
First, the operation of the
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
FIG. 3 is a diagram schematically showing the data structure of control data transmitted from the
As shown in FIG. 3, the control data transmitted from the
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
In mode A, when the control data shown in FIG. 3 is received, the
That is, first, the recording control unit 26a of the
More specifically, the
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
After recording the middle part part for one line, the recording control unit 26a rotates the
Thus, in mode A, the
<モード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
When recording by the
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
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
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
FIG. 5 is a diagram schematically illustrating the state of the
図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
The recording control unit 26a performs recording based on the image data (FIG. 5) developed in the
More specifically, as described above, the
After recording an image based on the image data corresponding to the area A1 in this way, the recording control unit 26a rotates the
As described above, in mode B, the
That is, in the mode B, the Thai characters are divided into the upper part, the middle part, and the lower part, and the
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
図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
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
以上説明したように、本実施形態に係るプリンター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
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
また、本実施形態に係るプリンター11は、各パーツのフォントデータを集合的に記憶する上部位パーツコードページ37a、中部位パーツコードページ37b、下部位パーツコードページ37cが記憶された記憶部37を備えている。そして、記録制御部26aは、ホストコンピューター10から、部位ごとに、1ライン分のパーツのフォントデータを指定する情報(上部位パーツ指定部P1、中部位パーツ指定部P2、及び、下部位パーツ指定部P3)を含む制御データを受信し、受信した部位ごとの制御データに基づいて、全ての部位のパーツのフォントデータをバッファー40に展開することにより、1行分のタイ文字の画像データをバッファー40に展開する。
この構成によれば、プリンター11は、受信した部位ごとの制御データに基づいて、バッファー40に、1行分のタイ文字の画像データを不足なく展開することが可能である。
Further, the
According to this configuration, the
なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
上述した実施形態では、結合文字の一例としてタイ文字を挙げたが、結合文字は、これに限らず、インドに係る文字等、パーツを組み合わせて構成される文字の全てを含む概念である。
また、上述した実施形態では、シリアルヘッド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
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
1…記録システム、10…ホストコンピューター(制御装置)、11…プリンター(記録装置)、25…シリアルヘッド、26…制御部、26a…記録制御部、37…記憶部、37a…上部位パーツコードページ、37b…中部位パーツコードページ、37c…下部位パーツコードページ、40…バッファー。
DESCRIPTION OF
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又は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行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行うことを特徴とする記録装置の制御方法。 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行分の結合文字の画像データをバッファーに展開し、前記バッファーに展開した前記画像データに基づいて、前記シリアルヘッドを駆動させて記録を行う記録制御部として機能させることを特徴とするプログラム。 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.
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) |
-
2012
- 2012-09-06 JP JP2012195812A patent/JP2014050998A/en active Pending
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 |