JP2013158911A - Recording device, control method for the same and program - Google Patents
Recording device, control method for the same and program Download PDFInfo
- Publication number
- JP2013158911A JP2013158911A JP2012019599A JP2012019599A JP2013158911A JP 2013158911 A JP2013158911 A JP 2013158911A JP 2012019599 A JP2012019599 A JP 2012019599A JP 2012019599 A JP2012019599 A JP 2012019599A JP 2013158911 A JP2013158911 A JP 2013158911A
- Authority
- JP
- Japan
- Prior art keywords
- image
- recording
- control command
- recorded
- 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参照)。
この種の記録装置が記録媒体に画像を記録する場合、まず、制御装置から画像の記録を指示する制御コマンドが入力される。そして、記録装置は、入力された制御コマンドを順次読み出して実行することにより、記録に係る機構を制御し、記録媒体への画像の記録を実行する。
2. Description of the Related Art Conventionally, a recording apparatus (printer) that records on a recording medium under the control of a control apparatus (host apparatus) is known (see, for example, Patent Document 1).
When this type of recording apparatus records an image on a recording medium, first, a control command instructing recording of the image is input from the control apparatus. Then, the recording apparatus sequentially reads and executes the input control commands, thereby controlling the mechanism related to recording, and recording the image on the recording medium.
ところで、制御装置は、プリンタードライバー等の制御プログラムの機能により、制御コマンドを生成し、記録装置に出力する。そして、制御プログラムの開発や、メンテナンスに際しては、作業者に対して制御コマンドに関する有益な情報を、作業者の要求に応じて提供できれば、作業者の負担を軽減することが可能となる。例えば、作業者が仕様書等を利用して制御コマンドについて調べる作業の回数を軽減できる。
本発明は、上述した事情に鑑みてなされたものであり、制御装置に接続可能な記録装置について、制御装置における制御プログラムの開発、メンテナンスにあたって、制御コマンドに関する有益な情報を出力できるようにすることを目的とする。
By the way, the control device generates a control command by a function of a control program such as a printer driver and outputs it to the recording device. In developing and maintaining a control program, if useful information regarding the control command can be provided to the worker in response to a request from the worker, the burden on the worker can be reduced. For example, it is possible to reduce the number of times that an operator checks a control command using a specification or the like.
The present invention has been made in view of the above-described circumstances, and enables recording of a recording device connectable to a control device to output useful information regarding a control command in developing and maintaining a control program in the control device. With the goal.
上記目的を達成するために、本発明は、制御装置に接続可能な記録装置であって、画像の記録を指示する制御コマンドの態様が異なる複数種類の画像について、前記制御装置から入力された制御コマンドに基づいて、記録媒体に記録可能に構成されると共に、所定の順番で、所定の種類の画像が並んで構成されたサンプル画像について、サンプル画像を構成する各画像の種類と、その順番が指定可能に構成され、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を前記記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群を前記記録媒体に記録する情報記録制御部を備えることを特徴とする。
ここで、画像の種類に応じて、画像の記録を指示する制御コマンドの態様は異なる。例えば、文字列の記録を指示する制御コマンドと、グラフィックス画像の記録を指示する制御コマンドと、バーコードの記録を指示する制御コマンドとは、それぞれ、各コマンドにおける命令コードや、各コマンドにおけるパラメーターの設定の仕方が異なっている。また、記録装置では、画像の記録に際し、予め定められた所定の種類の画像を所定の順番で記録するものがある。例えば、レシートを発行可能な記録装置では、予め決められたレイアウトに準じて、所定の種類の画像を所定の順番で記録媒体に記録することにより、レシートに画像を記録する。このような場合において、制御装置の制御プログラムの開発、メンテナンスを行う作業者が、所定の順番で、所定の種類の画像を記録装置に記録させるために制御装置が出力すべき制御コマンド群の内容を取得できるようにすれば、プログラミングの参考となり、また、制御プログラムのテストに利用できるため、作業者にとって有益な情報を提供できることとなる。
そして、上記構成によれば、記録装置は、サンプル画像を構成する各画像の種類と、その順番が指定可能に構成されており、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために制御装置が出力すべき制御コマンド群を記録媒体に記録する。これにより、記録装置は、作業者の要求に応じて、所定の順番で、所定の種類の画像が並んで構成されたサンプル画像と、当該サンプル画像を記録させるための制御コマンド群、という有益な情報を提供可能である。
In order to achieve the above object, the present invention provides a recording device that can be connected to a control device, and controls that are input from the control device for a plurality of types of images having different control command instructions for recording an image. Based on the command, it is configured to be recordable on a recording medium, and for a sample image configured with a predetermined type of images arranged in a predetermined order, the type of each image constituting the sample image and the order thereof are When the recording of the sample image is instructed, the sample image is recorded by recording the specified type of image on the recording medium in the specified order, and the recorded sample image is recorded. For this purpose, an information recording control unit for recording a control command group to be output by the control device on the recording medium is provided.
Here, depending on the type of image, the mode of the control command for instructing image recording differs. For example, a control command for instructing recording of a character string, a control command for instructing recording of a graphics image, and a control command instructing recording of a barcode are respectively an instruction code in each command and a parameter in each command. The setting method is different. Some recording apparatuses record a predetermined type of image in a predetermined order when recording an image. For example, a recording apparatus capable of issuing a receipt records an image on a receipt by recording a predetermined type of image on a recording medium in a predetermined order according to a predetermined layout. In such a case, the contents of the control command group to be output by the control device in order for the operator who develops and maintains the control program of the control device to record a predetermined type of image on the recording device in a predetermined order. Can be used as a reference for programming and used for testing a control program, so that useful information can be provided to the operator.
According to the above configuration, the recording apparatus is configured so that the type and order of each image constituting the sample image can be specified. When the recording of the sample image is instructed, the recording device is specified in the specified order. A sample image is recorded by recording the type of image on the recording medium, and a control command group to be output by the control device to record the recorded sample image is recorded on the recording medium. Thus, the recording apparatus is beneficial in that a sample image in which a predetermined type of image is arranged in a predetermined order and a control command group for recording the sample image in accordance with an operator's request. Information can be provided.
また、本発明は、前記情報記録制御部は、記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群に代えて、又は、当該制御コマンド群と共に、当該制御コマンド群を表す識別コードを前記記録媒体に記録することを特徴とする。
この構成によれば、制御プログラムの開発や、メンテナンス中は、制御装置と記録装置と、又は、開発用の端末と記録装置との間で通信が行えない状態である場合が多いが、記録装置とが通信が行えない場合であっても、制御装置や開発用の端末により識別コードを読み取ることにより、手入力といった労力を要する手段によらずに、制御コマンド群を制御装置や、開発用の端末に入力することが可能となる。制御装置に入力された制御コマンド群は、制御プログラムの開発や、制御プログラムのプログラム修正に利用することが可能である。
Further, in the present invention, the information recording control unit represents the control command group instead of or together with the control command group to be output by the control device in order to record the recorded sample image. An identification code is recorded on the recording medium.
According to this configuration, during the development or maintenance of the control program, it is often in a state where communication cannot be performed between the control device and the recording device or between the development terminal and the recording device. Even if communication cannot be performed with the control device, the control command group can be assigned to the control device or the development device by reading the identification code using the control device or the development terminal, without requiring manual input. It becomes possible to input to the terminal. The control command group input to the control device can be used for development of a control program and program correction of the control program.
また、本発明は、前記情報記録制御部は、所定の制御コマンドに関する情報の表示が指示された場合、当該制御コマンドに関する情報を前記記録媒体に記録することを特徴とする。
この構成によれば、記録装置は、作業者の指示に応じて、特定の制御コマンドの情報を記録媒体に記録する。このため、作業者の要求に応じて、所望の制御コマンドに関する情報という、制御プログラムの開発、メンテナンスにあたって有益な情報を提供可能である。また、作業者は、仕様書等を参照することなく、特定の制御コマンドの情報を取得可能である。
Further, the present invention is characterized in that the information recording control unit records information on the control command on the recording medium when an instruction to display information on a predetermined control command is given.
According to this configuration, the recording device records information on the specific control command on the recording medium in accordance with the operator's instruction. For this reason, it is possible to provide information useful for the development and maintenance of a control program, that is, information related to a desired control command, in response to an operator's request. In addition, the operator can acquire information on a specific control command without referring to a specification or the like.
また、本発明は、前記情報記録制御部は、情報の表示が指示された制御コマンドについて、さらに、当該制御コマンドを使用して記録可能な画像を前記記録媒体に記録すると共に、当該画像を記録するために前記制御装置が出力すべき制御コマンドを前記記録媒体に記録することを特徴とする。
この構成によれば、選択された制御コマンドに関する情報に加えて、当該制御コマンドを利用して記録可能な画像と、当該画像を記録するために前記制御装置が出力すべき制御コマンド群と、という有益な情報を提供可能である。
Further, according to the present invention, the information recording control unit further records a recordable image on the recording medium using the control command for the control command instructed to display information, and records the image. For this purpose, the control command to be output by the control device is recorded on the recording medium.
According to this configuration, in addition to information on the selected control command, an image that can be recorded using the control command, and a control command group that the control device should output to record the image Can provide useful information.
また、上記目的を達成するために、本発明は、制御装置に接続可能に構成されると共に、画像の記録を指示する制御コマンドの態様が異なる複数種類の画像について、前記制御装置から入力された制御コマンドに基づいて、記録媒体に記録可能に構成された記録装置の制御方法であって、所定の順番で、所定の種類の画像が並んで構成されたサンプル画像について、サンプル画像を構成する各画像の種類と、その順番が指定されると共に、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を前記記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群を前記記録媒体に記録することを特徴とする。
この制御方法によれば、記録装置は、サンプル画像を構成する各画像の種類と、その順番が指定可能に構成されており、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために制御装置が出力すべき制御コマンド群を記録媒体に記録する。これにより、記録装置は、作業者の要求に応じて、所定の順番で、所定の種類の画像が並んで構成されたサンプル画像と、当該サンプル画像を記録させるための制御コマンド群、という有益な情報を提供可能である。
In order to achieve the above object, the present invention is configured to be connectable to a control device, and is input from the control device for a plurality of types of images having different modes of control commands for instructing image recording. A control method of a recording apparatus configured to be able to record on a recording medium based on a control command, each of which constitutes a sample image with respect to a sample image configured by arranging a predetermined type of image in a predetermined order When the type of image and its order are specified and recording of the sample image is instructed, the sample type is recorded on the recording medium by recording the image of the specified type in the specified order, and A control command group to be output by the control device to record the recorded sample image is recorded on the recording medium.
According to this control method, the recording apparatus is configured so that the type and order of each image constituting the sample image can be specified. When recording of the sample image is instructed, the recording apparatus is specified in the specified order. A sample image is recorded by recording the type of image on the recording medium, and a control command group to be output by the control device to record the recorded sample image is recorded on the recording medium. Thus, the recording apparatus is beneficial in that a sample image in which a predetermined type of image is arranged in a predetermined order and a control command group for recording the sample image in accordance with an operator's request. Information can be provided.
また、上記目的を達成するために、本発明は、制御装置に接続可能に構成されると共に、画像の記録を指示する制御コマンドの態様が異なる複数種類の画像について、前記制御装置から入力された制御コマンドに基づいて、記録媒体に記録可能に構成された記録装置を制御する制御部により実行されるプログラムであって、前記制御部を、所定の順番で、所定の種類の画像が並んで構成されたサンプル画像について、サンプル画像を構成する各画像の種類と、その順番が指定されると共に、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を前記記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群を前記記録媒体に記録する情報記録制御部として機能させることを特徴とする。
このプログラムによれば、記録装置は、サンプル画像を構成する各画像の種類と、その順番が指定可能に構成されており、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために制御装置が出力すべき制御コマンド群を記録媒体に記録する。これにより、記録装置は、作業者の要求に応じて、所定の順番で、所定の種類の画像が並んで構成されたサンプル画像と、当該サンプル画像を記録させるための制御コマンド群、という有益な情報を提供可能である。
In order to achieve the above object, the present invention is configured to be connectable to a control device, and is input from the control device for a plurality of types of images having different modes of control commands for instructing image recording. A program executed by a control unit that controls a recording apparatus configured to be recordable on a recording medium based on a control command, wherein the control unit is configured by arranging predetermined types of images in a predetermined order. When the type of each image constituting the sample image and the order thereof are designated and recording of the sample image is instructed, the type of image designated in the designated order is recorded on the recording medium. In addition to recording a sample image by recording, a control command group to be output by the control device to record the recorded sample image is recorded on the recording medium. Characterized in that to function as an information recording control unit for recording.
According to this program, the recording apparatus is configured so that the type and order of each image constituting the sample image can be specified. When recording of the sample image is instructed, the recording apparatus is specified in the specified order. A sample image is recorded by recording the type of image on the recording medium, and a control command group to be output by the control device to record the recorded sample image is recorded on the recording medium. Thus, the recording apparatus is beneficial in that a sample image in which a predetermined type of image is arranged in a predetermined order and a control command group for recording the sample image in accordance with an operator's request. Information can be provided.
本発明によれば、制御装置に接続可能な記録装置について、制御装置における制御プログラムの開発、メンテナンスにあたって、制御コマンドに関する有益な情報を出力できる、という効果を奏する。 Advantageous Effects of Invention According to the present invention, there is an effect that useful information regarding control commands can be output in the development and maintenance of a control program in a control device for a recording device that can be connected to the control device.
以下、図面を参照して本発明の実施形態について説明する。
図1は、本発明を適用した実施形態に係るプリンター2(記録装置)の外観斜視図である。
プリンター2は、本体11にロール紙10(記録媒体)を収容し、ロール紙10を搬送しながら、本体11に内蔵するサーマルヘッド(図示略)によってロール紙10に画像を記録するサーマルプリンターである。特にプリンター2は、ロール紙10に所定の画像を記録し、所定の位置で切断することにより、紙片を発行可能である。
図1に示すように、プリンター2の本体11には開閉可能なカバー12が設けられ、レバー13を押し下げることでカバー12が開放される。カバー12を開くと、本体11内においてロール紙10を収容する空間が露出し、ロール紙10の補充、交換を行える。
また、プリンター2の本体11の上面には、記録後のロール紙10を排出する排紙口14が形成されている。排紙口14内にはロール紙10をカットするためのカット刃15が設けられている。
本体11には、プリンター2の電源をオン/オフさせる電源スイッチ16、紙送り動作の指示や動作モードの切り替え等の操作を行うための押下スイッチ17(操作スイッチ)、及び、プリンター2の動作状態等を表示するためのLED表示部18が設けられている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is an external perspective view of a printer 2 (recording apparatus) according to an embodiment to which the present invention is applied.
The
As shown in FIG. 1, a
A
The
このように、本実施形態に係るプリンター2は、電源スイッチ16の他は、操作スイッチとして押下スイッチ17のみを備えている。また、プリンター2は、液晶ディスプレーや等の表示ディスプレーを備えていない。
As described above, the
図2は、本実施形態に係る記録システム1の構成を示すブロック図である。
この記録システム1は、プリンター2と、ホストコンピューター4とを備え、ホストコンピューター4の制御の下、プリンター2により、ロール紙10に画像を記録し、また、ロール紙10に画像を記録した後、所定の位置で切断することにより紙片を発行するシステムである。
以下の説明では、記録システム1は、POSシステムの一部を構成するシステムとして、コンビニエンスストアやスーパー等に適用されることが想定されたシステムであり、紙片としてレシートを発行可能であるものとする。
FIG. 2 is a block diagram showing the configuration of the
The
In the following description, the
図2に示すように、プリンター2は、制御部21と、プリントエンジン22と、入力部23と、表示部24と、記憶部25と、インターフェイス部26(I/F)と、を備えている。
制御部21は、プリンター2の各部を中枢的に制御するものであり、CPUや、ROM、RAMその他の周辺回路を備えている。制御部21は、記憶部25に記憶されたファームウェア41を読み出して実行することにより、プリンター2の各部を制御する。また、制御部21は、図示せぬ発振器が生成した基準クロックに基づいて各種計時動作を実行可能であり、特に、入力部23から入力された押下スイッチ17に対する押下の検出信号に基づいて、押下スイッチ17が押下されてから、当該押下が解除されるまでに経過した時間を計時可能である。制御部21は、情報記録制御部21aを備えているが、これについては後述する。
プリントエンジン22は、ロール紙10の記録面に画像を記録するサーマルヘッドや、ロール紙10を搬送する搬送機構、カット刃15によりロール紙10を切断する切断機構等に接続されている。制御部21は、ホストコンピューター4から入力された制御コマンドに基づいて、プリントエンジン22を制御して、ロール紙10に画像を記録し、所定の位置で切断して、レシートを発行する。
入力部23は、押下スイッチ17に接続され、押下スイッチ17に対する操作を検出して、制御部21に出力する。
表示部24は、制御部21の制御の下、LED表示部18を制御して、LEDを所定の態様で点灯/消灯させる。
記憶部25は、書き換え可能な不揮発性のメモリーである。記憶部25には、プリンター2の制御用のファームウェア41が記憶されている。
インターフェイス部26(I/F)は、制御部21の制御の下、ホストコンピューター4との間で所定の通信プロトコルに準拠した通信を行う。
As shown in FIG. 2, the
The
The
The
The
The
The interface unit 26 (I / F) performs communication based on a predetermined communication protocol with the
ホストコンピューター4は、ホスト側制御部30と、ホスト側表示部31と、ホスト側入力部32と、インターフェイス部33(I/F)と、ホスト側記憶部34と、を備える。
ホスト側制御部30は、ホストコンピューター4の各部を中枢的に制御するものであり、CPUや、ROM、RAM、その他の周辺回路等を備えている。ホスト側制御部30には、プリンタードライバー実行部30aを備えているが、これについては後述する。
ホスト側表示部31は、液晶ディスプレーパネルや、有機ELパネル等の表示パネルを備え、ホスト側制御部30の制御の下、表示パネルに各種情報を表示する。
ホスト側入力部32は、キーボードや、マウス、バーコードリーダー、カードリーダー等の入力デバイスに接続され、これら入力デバイスの出力信号をホスト側制御部30に出力する。バーコードリーダーは商品の包装紙等に記録されたバーコードの読み取りに利用され、カードリーダーはクレジットカードや、会員カード等に記録された情報の読み取りに利用される。バーコードリーダーやカードリーダー等の入力デバイスを用いて取得した情報は、レシートの発行に係る処理に用いられる。
インターフェイス部33(I/F)は、ホスト側制御部30の制御の下、プリンター2との間で通信規格に準拠した通信を行う。
ホスト側記憶部34は、各種データを書き換え可能に記憶する部位であり、ハードディスクや、EEPROM等の記憶装置を備える。ホスト側記憶部34には、プリンタードライバー42(制御プログラム)がロード可能に記憶されている。
The
The host-
The host
The host
The interface unit 33 (I / F) performs communication based on the communication standard with the
The host-
次いで、プリンタードライバー実行部30aの説明を通して、記録システム1がレシートを発行する際の基本的な動作について説明する。
レシートの発行に際し、まず、ホストコンピューター4のホスト側制御部30のプリンタードライバー実行部30aは、プリンタードライバー42を読み出して実行することにより、プリンター2のコマンド仕様に対応した制御コマンドであって、プリンター2にレシートの発行に係る各種動作を行わせるための制御コマンドを生成し、プリンター2に出力する。この制御コマンドには、搬送機構に感熱ロール紙を搬送させるコマンドや、サーマルヘッドを駆動させるコマンド、切断機構に感熱ロール紙を切断させるコマンド等の、プリンター2にレシートを発行させるために必要な動作を行わせるコマンドが含まれている。
制御コマンドが入力された制御部21は、この制御コマンドに基づいてプリンター2の各部を制御し、レシートを発行する。
Next, a basic operation when the
When the receipt is issued, first, the printer
The
図3は、記録システム1によって発行されることが予定されているレシートの一例を模式的に示す図である。
図3に示すように、レシートの先頭には、ロゴを示すロゴ画像50が記録される。ロゴとは、レシートを発行する主体(例えば、記録システム1が適用されている店舗を経営する会社)を示すマーク等、レシートの先頭に定型的に記録される画像のことである。ロゴ画像50は、グラフィックス画像である。グラフィックス画像とは、バーコードではなく、かつ、後述するフォントデータを利用することなく記録される画像であって、所定の領域におけるビットの組み合わせによって表現される画像である。
ロゴ画像50の下方には、日付画像51が記録される。日付画像51とは、レシートの発行日を示す画像である。日付画像51は、文字によって構成されており、日付画像51を構成する各文字は、フォントデータを利用して記録される。フォントデータとは、文字をロール紙10に記録可能な態様で表現する実データ(ビットマップデータや、スケイラブルフォントデータ等)のことである。プリンター2の記憶部35には、プリンター2が対応している文字(記録可能な文字)のそれぞれについて、対応するフォントデータが記憶されている。
日付画像51の下方には、レシート情報画像52が記録される。レシート情報画像52は、顧客が購入した商品名称や、購入数量、購入した商品の単価、合計購入金額等の会計の明細が記録された画像である。レシート情報画像52は、日付画像51と同様、文字によって構成されており、レシート情報画像52を構成する各文字は、フォントデータを利用して記録される。
レシート情報画像52の下方には、レシートを識別するためのバーコード53が記録される。
FIG. 3 is a diagram schematically illustrating an example of a receipt that is scheduled to be issued by the
As shown in FIG. 3, a
A
A
Below the
画像の記録に際しては、ホストコンピューター4からプリンター2に対して、画像の記録を指示する制御コマンドが送信される。
そして、上述したロゴ画像50、日付画像51、及び、バーコード53のそれぞれは、これら画像を記録させるための制御コマンドの態様が異なっている。なお、日付画像51と、レシート情報画像52とは共に文字のみからなる画像であり、制御コマンドの態様が同一である。制御コマンドの態様が異なっているとは、命令コード等の相違に起因して、制御コマンド自体のデータ構造が異なっていることをいう。
ロゴ画像50は、グラフィックス画像であり、当該画像を記録させる制御コマンドは、グラフィックス画像専用の命令コードと、当該命令コードに準じたパラメーター、及び、付随するデータ(例えば、ロゴ画像50を示す画像データ)とを所定のフォーマットに準拠して含んで構成されている。
また、日付画像51、及び、レシート情報画像52は、文字によって構成される画像であり、当該画像を記録させる制御コマンドは、文字専用の命令コードと、当該命令コードに準じたパラメーター、及び、付随するデータ(例えば、文字の文字コード)とを所定のフォーマットに準拠して含んで構成されている。
また、バーコード53を記録させる制御コマンドは、バーコード専用の命令コードと、当該命令コードに準じたパラメーター、及び、付随するデータとを所定のフォーマットに準拠して含んで構成されている。
従って、ロゴ画像50、日付画像51(レシート情報画像52)、及び、バーコード53のうち、いずれか1つの画像は、他の画像に係る制御コマンドを利用しては、記録することができない。例えば、ロゴ画像50を記録させる制御コマンドによっては、レシート情報画像52、及び、バーコード53を記録させることはできない。
以下の説明では、画像について、対応する制御コマンドの態様が異なっている場合、画像の「種類」が異なっているものとする。上述したように、ロゴ画像50、日付画像51(あるいは、レシート情報画像52)、及び、バーコード53のそれぞれは、対応する制御コマンドの態様が異なっているため、それぞれ画像の種類が異なっている。
At the time of image recording, a control command for instructing image recording is transmitted from the
The
The
Further, the
The control command for recording the
Accordingly, any one of the
In the following description, it is assumed that the “type” of the image is different when the mode of the corresponding control command is different for the image. As described above, the
上述したように、ホストコンピューター4は、プリンタードライバー42の機能により、プリンター2を制御するための制御コマンドを生成し、出力する。従って、プリンタードライバー42の開発や、プログラム修正を伴うメンテナンスにあたっては、作業者は、所定の画像を記録するためには、ホストコンピューター4によってどのような制御コマンドが生成されるようにすればよいのかを把握できれば、その作業が効率化し、また、作業に要する労力が軽減する。なぜなら、プリンタードライバー42のうち、制御コマンドを生成する機能を有するプログラムについては、具体的にどのよう制御コマンドを生成することが想定されるのかを把握している場合、していない場合と比較して、より効率的、かつ、着実にプログラミングすることができ、また、場合によっては、生成することが想定される制御コマンドについて、仕様書等で調べる回数が減るからである。また、プログラムのテストを行う際にも、想定された態様で制御コマンドが生成されているか否かの確認ができるからである。
特に、本実施形態に係るプリンター2は、ホストコンピューター4の制御の下、レシートを発行するものである。この場合、作業者は、発行することが想定されているレシートのレイアウトに準じた画像を記録するために、ホストコンピューター4が生成、出力すべき制御コマンド群を把握できれば、プリンタードライバー42の開発、メンテナンスの効率化、作業の容易化、及び、プログラムテストの充実をより効果的に達成することができる。
以上のことに基づいて、本実施形態に係るプリンター2は、以下の動作を実行する。
As described above, the
In particular, the
Based on the above, the
以下の説明においては、作業者が、プリンター2の制御用のプリンタードライバー42を開発している状況であるものとする。
また、プリンター2は、ホストコンピューター4が接続されておらず、スタンドアローンの状態であるものとする。一般に、プリンタードライバー42の開発の段階では、プリンター2がスタンドアローン状態で準備され、適宜、開発用の端末と接続され、必要なテストが行われる。
また、以下の説明において、情報記録制御部21aは、制御部21のCPUがファームウェアを読み出して実行する等、ハードウェアとソフトウェアとの協働により実現される。
In the following description, it is assumed that the operator is developing a
The
In the following description, the information
図4は、プリンター2の動作を示すフローチャートである。
図4を用いたプリンター2の動作の説明では、適宜、作業者により、発明の説明に適した選択が行われるものとする。作業者とは、本例では、プリンタードライバー42の開発を行う開発者等を意味するが、作業者に限らず、任意の者が、プリンター2に以下の動作をさせることが可能である。
まず、作業者により、セルフテストの指示が行われる(ステップSX1)。
セルフテストとは、プリンター2単独の機能により、通信インターフェイスに関する情報や、内蔵するバッファーの仕様、通信プロトコルに関する情報、搭載しているフォントデータの情報、設定されている印字濃度の情報、プリンター2の基板に設けられた各種ディップスイッチの状態等、予め定められた情報をロール紙10に記録する機能である。
セルフテストの指示は、例えば、押下スイッチ17が押下された状態で、カバー12が開閉されたり、また、押下スイッチ17が押下された状態で電源スイッチ16がオンされたりする等の、予め定められた特定の動作を行うことにより、実行可能である。
セルフテストが指示されると、プリンター2の制御部21の情報記録制御部21aは、所定のセンサーの検出値を取得したり、設定ファイルに記述された情報を参照したりすることにより、必要な情報を取得し、プリントエンジン22を制御して、ロール紙10にセルフテスト画像55(図5(a)参照)を記録する(ステップSA1)。
FIG. 4 is a flowchart showing the operation of the
In the description of the operation of the
First, the operator gives a self-test instruction (step SX1).
The self-test is a function of the
The self-test instruction is determined in advance, for example, the
When the self-test is instructed, the information
図5(a)は、セルフテスト画像55の一例を模式的に示す図である。セルフテスト画像55では、先頭から、順次、予め定められた情報が記録される。さらに、セルフテスト画像55では、セルフテスト画像55の下部において、セルフテストを継続する場合には、1秒を下回る間、押下スイッチ17を押下し、一方、モード選択ステージへ移行する場合は、1秒以上、押下スイッチ17を押下する旨記録される。
本例では、作業者が、セルフテスト画像55の下部に記録された情報を参照し、モード選択ステージへの移行を指示するため、1秒以上、押下スイッチ17を押下したものとする(ステップSX2)。
以下、1秒を下回る間、押下スイッチ17を押下することを「短押し」と表現し、1秒を以上、押下スイッチ17を押下することを「長押し」と表現する。
FIG. 5A is a diagram schematically illustrating an example of the self-
In this example, it is assumed that the operator refers to the information recorded in the lower part of the self-
Hereinafter, pressing the
モード選択ステージへの移行が指示されると、情報記録制御部21aは、ロール紙10にモード選択画像56を記録する(ステップSA2)。
When the transition to the mode selection stage is instructed, the information
図5(b)は、モード選択画像56の一例を模式的に示す図である。モード選択画像56は、大別してエリアA61と、エリアA62とに分かれている。
モード選択画像56のエリアA61には、選択可能なモードとして、モードM60〜モードM64の5つのモードが記録されている。
また、モード選択画像56のエリアA62には、モードM60〜モードM64のいずれかのモードを選択するために行うべき操作についての説明が記録されている。本例では、いずれか1のモードを選択する際は、エリアA61において当該1のモードと対応付けて記録されている番号Bが示す数字分の回数だけ、短押しを行った後、長押しを行うことにより、1のモードの選択を行う。このことは、以下説明する画像において、モードを選択する際も同様である。本実施形態では、操作スイッチは、押下スイッチ17の1つしかないが、この押下スイッチ17に対する短押しと長押しとの組み合わせにより、任意のモードを選択可能な構成となっている。
モードM60〜モードM64のうち、発明に関連するモードは、モードM64(Print Command Help or Sample)であり、本例、作業者が、ロール紙10にモード選択画像56が記録された後、当該モード選択画像56を参照した上で、短押しを4回行った後、長押しを行うことにより、モードM64を選択したものとする(ステップSX3)。
このモードM64が選択された場合、プリンター2の動作モードは、「ヘルプモード」へ移行する。このヘルプモードにおけるプリンター2の動作が、従来のものと異なる特徴的な動作である。
作業者により、モードM64が選択されると、情報記録制御部21aは、ロール紙10にヘルプモード画像57(図6(a)参照)を記録する(ステップSA3)。
FIG. 5B is a diagram schematically illustrating an example of the
In the area A61 of the
In the area A62 of the
Among the modes M60 to M64, the mode related to the invention is the mode M64 (Print Command Help or Sample). In this example, after the
When this mode M64 is selected, the operation mode of the
When the operator selects the mode M64, the information
図6(a)は、ロール紙10に記録されたヘルプモード画像57の一例を模式的に示す図である。ヘルプモード画像57には、選択可能なモードとして、モードM70〜モードM72の3つのモードが記録されている。これら3つのモードのうち、発明に関連するモードは、モードM71(Command Help Information)、及び、モードM72(Print Sample Receipt)である。以下、モードM72が選択された場合、及び、モードM71が選択された場合のそれぞれについて、プリンター2の動作を説明する。
FIG. 6A is a diagram schematically illustrating an example of the
<モードM72(Print Sample Receipt)が選択された場合>
作業者が、ロール紙10にヘルプモード画像57が記録された後、モードM72を選択した場合(ステップSX4)、情報記録制御部21aは、ロール紙10にサンプル準備画像58(図6(b)参照)を記録する(ステップSA4)。
以下の説明で明らかとなるとおり、作業者は、サンプル画像SP(後述)のレイアウトの設定、及び、サンプル画像SPのロール紙10への記録、記録したサンプル画像SPを記録するための制御コマンド群の情報のロール紙10への記録を行いたい場合に、ヘルプモード画像57におけるモードM72を選択する。
<When mode M72 (Print Sample Receipt) is selected>
When the operator selects the mode M72 after the
As will be apparent from the following description, the operator sets the layout of the sample image SP (described later), records the sample image SP on the
図6(b)は、サンプル準備画像58の一例を模式的に示す図である。サンプル準備画像58には、選択可能なモードとして、モードM80〜モードM83の4つのモードが記録されている。これら4つのモードのうち、発明に関連するモードは、モードM81〜M83の3つのモードである。
まず、モードM81が選択された場合について説明する。
作業者により、モードM81が選択されると(ステップSX5)、情報記録制御部21aは、ロール紙10にレイアウト設定画像59(図6(c)参照)を記録する(ステップSA5)。
FIG. 6B is a diagram schematically illustrating an example of the
First, the case where the mode M81 is selected will be described.
When the operator selects the mode M81 (step SX5), the information
図6(c)は、レイアウト設定画像59の一例を模式的に示す図である。このレイアウト設定画像59は、サンプル画像SP(サンプル画像)について、そのレイアウトを設定するための画像である。サンプル画像SPとは、サンプル準備画像58において、モードM82が選択された場合に、ロール紙10に記録される画像のことである。サンプル画像SPは、1又は複数の画像ユニット(後述)によって構成されており、レイアウト設定画像59では、サンプル画像SPを構成する画像ユニットのそれぞれについて、その種類と、サンプル画像SPにおける順番とを指定することにより、サンプル画像SPのレイアウトを設定可能となっている。ここで、1つの画像ユニットとは、ある1つの種類の画像のサンプルのことである。本例では、画像ユニットとして、グラフィックス画像の画像ユニット(グラフィックス画像ユニット)、文字の画像ユニット(文字画像ユニット)、及び、バーコードの画像ユニット(バーコード画像ユニット)が、用意されている。さらに、本例では、文字の画像ユニットについて、レシートには、日付画像51、及び、レシート情報画像52の2つの画像が存在することを踏まえて、日付画像51のサンプルに係る画像ユニット(日付文字画像ユニット)、及び、レシート情報画像52のサンプルに係る画像ユニット(レシート情報文字画像ユニット)が用意されている。
FIG. 6C is a diagram schematically illustrating an example of the
レイアウト設定画像59のエリアA91では、現時点で設定されているサンプル画像SPのレイアウト、すなわち、サンプル画像SPを構成する各画像ユニットについて、その種類と、サンプル画像SPにおける順番とが記録されている。図6(c)の例では、サンプル画像SPのレイアウトについて、1番目がグラフィックス画像ユニット(Graphics)であり、2番目が日付文字画像ユニット(Character(date))であり、3番目がレシート情報文字画像ユニット(Character(bill))であり、4番目がバーコード画像ユニット(Barcode)である旨表示されている。
In the area A91 of the
また、レイアウト設定画像59のエリアA92では、サンプル画像SPのレイアウトを変更するために行うべき操作を説明する情報が記録されている。具体的には、エリアA92には、モードM90〜モードM95の6つのモードが選択可能な旨記録されている。モードの選択方法は上述したとおり押下スイッチ17に対する短押しと、長押しとの組み合わせによって行う。
モードM90が選択された場合(ステップSX6)、情報記録制御部21aは、サンプル画像SPのレイアウトについて、設定された内容を保持(セーブ)した後、処理手順をステップSA4に戻し、再び、サンプル準備画像58をロール紙10に記録する。
モードM91が選択された場合、情報記録制御部21aは、現時点で設定されているサンプル画像SPのレイアウトにグラフィックス画像ユニットを追加し、その旨、ロール紙10に記録する。例えば、図6(c)の状態において、モードM91が選択された場合、情報記録制御部21aは、サンプル画像SPにおける5番目の画像ユニットとして、グラフィックス画像ユニットを追加し、追加後のサンプル画像SPのレイアウトを明示する画像を、ロール紙10に記録する。
モードM92が選択された場合、情報記録制御部21aは、現時点で設定されているサンプル画像SPのレイアウトに日付文字画像ユニットを追加し、その旨、ロール紙10に記録する。例えば、情報記録制御部21aは、日付文字画像ユニットを追加後のサンプル画像SPのレイアウトを示す画像、例えば、サンプル画像SPを構成する各画像ユニットについて、図6(c)のエリアA91に示すように、その順番を明示した上で、その種類を明示する。
モードM93が選択された場合、情報記録制御部21aは、現時点で設定されているサンプル画像SPのレイアウトにレシート情報文字画像ユニットを追加し、その旨、ロール紙10に記録する。
モードM94が選択された場合、情報記録制御部21aは、現時点で設定されているサンプル画像SPのレイアウトにバーコード画像ユニットを追加し、その旨、ロール紙10に記録する。
モードM95が選択された場合、情報記録制御部21aは、現時点で設定されているサンプル画像SPのレイアウトを一旦クリアーし、その旨、ロール紙10に記録する。作業者は、現時点におけるサンプル画像SPのレイアウトをクリアーし、新たに、レイアウトを設定したい場合に、モードM95を選択する。
このように、本実施形態では、作業者は、モードM91−モードM95を利用して、サンプル画像SPにおける画像ユニットの組み合わせを任意に設定することが可能である。従って、作業者は、サンプル画像SPのレイアウトを、発行することが想定されているレシートのレイアウトに準じたものとすることが可能である。このことによる効果については後述する。
In the area A92 of the
When the mode M90 is selected (step SX6), the information
When the mode M91 is selected, the information
When the mode M92 is selected, the information
When the mode M93 is selected, the information
When the mode M94 is selected, the information
When the mode M95 is selected, the information
As described above, in this embodiment, the operator can arbitrarily set the combination of the image units in the sample image SP using the mode M91 to the mode M95. Therefore, the operator can make the layout of the sample image SP conform to the layout of the receipt that is supposed to be issued. The effect of this will be described later.
さて、ステップSA4においてロール紙10に記録されるサンプル準備画像58において、作業者により、モードM82が選択された場合(ステップSX7)、情報記録制御部21aは、ロール紙10にサンプル関連画像60(図7(a)参照)を記録する(ステップSA6)。
In the
図7(a)は、サンプル関連画像60を模式的に示す図である。
サンプル関連画像60のエリアA101には、レイアウト設定画像59において、そのレイアウトが設定されたサンプル画像SPが記録される。すなわち、上述したように、レイアウト設定画像59では、サンプル画像SPを構成する各画像ユニットについて、その種類と、順番とが具体的に指定される。そして、情報記録制御部21aは、エリアA101において、レイアウト設定画像59において指定された順番で、指定された画像ユニットを順次、記録していく。例えば、図6(b)のレイアウト設定画像59のエリアA91に示すように、サンプル画像SPを、グラフィックス画像ユニット、日付文字画像ユニット、レシート情報文字画像ユニット、バーコード画像ユニットの順番で構成することが指定されていたとする。この場合、情報記録制御部21aは、エリアA101に、グラフィックス画像ユニット、日付文字画像ユニット、レシート情報文字画像ユニット、及び、バーコード画像ユニットを順番に記録していく。各画像ユニットを記録するために必要なデータは、予め準備され、所定の記憶領域に記憶されている。
FIG. 7A is a diagram schematically illustrating the sample-related
In the area A101 of the sample related
また、サンプル関連画像60のエリアA102には、ホストコンピューター4がプリンター2に、エリアA101に記録したサンプル画像SPを記録させるとした場合に、ホストコンピューター4が生成、出力すべき制御コマンド群が記録される。
本実施形態では、各画像ユニットを記録させるための制御コマンドを示す情報が予め記録されており、情報記録制御部21aは、サンプル画像SPを構成する画像ユニットの組み合わせに応じて、各画像ユニットを記録させるための制御コマンドを、順次、記録することにより、エリアA102に、サンプル画像SPを記録させるための制御コマンド群を記録する。
このように、本実施形態では、作業者は、プリンター2に対して、サンプル画像SPについて、サンプル画像SPを構成する画像ユニットの種類(画像の種類)と、その順番とを指定することにより、そのレイアウトを設定した上で、設定したレイアウトに準じたサンプル画像SPをロール紙10に記録させることができる。さらに、作業者は、サンプル画像SPと対応付けて、サンプル画像SPを記録させるための制御コマンド群を記録させることができる。特に、作業者は、レイアウト設定画像59を利用して、サンプル画像SPのレイアウトを、プリンター2によって発行することが想定されているレシートのレイアウトに準じたものとすることができ、かつ、当該レシートのレイアウトに準じたサンプル画像SP、及び、当該サンプル画像SPの記録に係る制御コマンド群をロール紙10に記録させることができる。そして、上述したように、レシートのレイアウトに準じた画像のサンプルと、当該画像のサンプルを記録させるためにホストコンピューター4が生成、出力すべき制御コマンドを示す情報とは、プリンタードライバー42の開発にあたって、その効率化、作業の容易化、及び、プログラムテストの充実に結びつく非常に有益な情報である。
つまり、本実施形態に係るプリンター2は、作業者の要求に応じて、プリンタードライバー42の開発にとって非常に有益な情報を提供することが可能である。
In the area A102 of the sample related
In the present embodiment, information indicating a control command for recording each image unit is recorded in advance, and the information
As described above, in this embodiment, the operator designates the type (image type) of the image unit constituting the sample image SP and the order of the sample image SP with respect to the
In other words, the
さて、サンプル関連画像60のエリアA103には、選択可能なモードとして、モードM100〜モードM102の3つのモードが記録される。
作業者によって、モードM101が選択された場合(ステップSX8)、情報記録制御部21aは、処理手順をステップSA5へ移行し、ロール紙10にレイアウト設定画像59を記録する。
作業者によって、モードM102が選択された場合(ステップSX9)、情報記録制御部21aは、ロール紙10に識別コード画像61(図7(b)参照)を記録する(ステップSA7)。
Now, in the area A103 of the sample related
When the operator selects the mode M101 (step SX8), the information
When the mode M102 is selected by the operator (step SX9), the information
図7(b)は、識別コード画像61の一例を模式的に示す図である。
識別コード画像61のエリアA111では、識別コードとしての2次元コードCO1が記録される。この2次元コードCO1には、サンプル関連画像60のエリアA102に記録した制御コマンド群、すなわち、サンプル画像SPを記録させるための制御コマンド群を示す情報が格納されている。ファームウェアには、制御コマンド群を示す情報に基づいて、当該制御コマンド群を示す情報を格納した2次元コードを生成する機能が実装されており、情報記録制御部21aは、当該機能により、制御コマンド群を示す情報を格納した2次元コードCO1を生成し、その画像をエリアA111に記録する。
ここで記録された2次元コードCO1は、作業者によって、例えば、以下の態様で利用される。すなわち、プリンタードライバー42の開発時、プリンター2は、基本的にはスタンドアローンの状態である。従って、情報記録制御部21aによってロール紙10に記録された制御コマンド群を示す情報は、プリンタードライバー42の開発にあたって有益な情報であるものの、当該情報をプリンタードライバー42の開発用の端末において電子データとして利用するためには、ロール紙10に記録された内容を、当該開発用の端末に手入力する必要がある。当該手入力に係る作業は非常に煩雑であり、また、入力ミスのリスクもある。そして、本実施形態では、ロール紙10に制御コマンド群を表す2次元コードCO1が記録されるため、開発用の端末において専用のスキャナー等で2次元コードCO1を読み取ることにより、入力ミスのリスクを排除した上で、非常に簡易に、制御コマンド群を示す情報を入力することができ、当該端末において電子データとして使用することが可能となる。
FIG. 7B is a diagram schematically illustrating an example of the
In the area A111 of the
The two-dimensional code CO1 recorded here is used by the operator, for example, in the following manner. That is, when developing the
また、識別コード画像61のエリアA112には、選択可能なモードとして、モードM110が記録される。
作業者によって、モードM110が選択された場合(ステップSX10)、情報記録制御部21aは、処理手順をステップSA3へ移行し、ロール紙10にヘルプモード画像を記録する。
なお、図6(b)のサンプル準備画像58において、作業者によりモードM83が選択された場合(ステップSX7’)、情報記録制御部21aは、処理手順をステップSA4からステップSA7へ移行し、サンプル画像SPに係る2次元コードCO1が記録された識別コード画像61をロール紙10に記録する。
In the area A112 of the
When the mode M110 is selected by the operator (step SX10), the information
In the
<ヘルプモード画像57で、モードM71(Command Help Information)が選択された場合>
ステップSA3においてロール紙10にヘルプモード画像57が記録された後、作業者がモードM71を選択した場合(ステップSX11)、情報記録制御部21aは、ロール紙10にコマンド大分類画像63を記録する(ステップSA8)。
以下の説明で明らかとなるとおり、作業者は、ある1つの制御コマンドについて、当該コマンドに関連する情報を調べたい場合に、モードM71を選択する。
<When Mode M71 (Command Help Information) is selected in
After the
As will be apparent from the following description, the operator selects the mode M71 when it is desired to examine information related to a certain control command.
図8(a)は、ロール紙10に記録されたコマンド大分類画像63の一例を模式的に示す図である。コマンド大分類画像63には、プリンター2が対応しており、処理可能な制御コマンドを分類分けしたときの、それぞれの分類を示す情報が記録されている。分類のそれぞれには、モードM121〜モードM126が割り振られており、作業者は、いずれかのモードを選択可能である。
本例では、作業者が調べようとしている制御コマンドが、図8(a)のモードM122に係る分類(Graphics Command)に属しており、作業者は、モードM122を選択したものとする(ステップSX12)。
FIG. 8A is a diagram schematically illustrating an example of the command
In this example, it is assumed that the control command that the operator wants to check belongs to the classification (Graphics Command) related to the mode M122 in FIG. 8A, and the worker selects the mode M122 (step SX12). ).
作業者によってモードM122が選択されると(ステップSX12)、情報記録制御部21aは、ロール紙10にコマンド中分類画像64(図8(b)参照)を記録する(ステップSA9)。
When the mode M122 is selected by the operator (step SX12), the information
図8(b)は、コマンド中分類画像64の一例を模式的に示す図である。コマンド中分類画像64には、コマンド大分類画像63において選択された分類に属する制御コマンドについて、さらに分類分けしたときの、それぞれの分類を示す情報が記録されている。分類のそれぞれには、モードM131〜モードM134が割り振られており、作業者は、いずれかのモードを選択可能である。
以下の説明では、作業者が調べようとしている制御コマンドが、図8(b)のモードM131に係る分類(XX)に属しており、作業者は、モードM131を選択したものとする(ステップSX13)。
FIG. 8B is a diagram schematically illustrating an example of the
In the following description, it is assumed that the control command that the operator wants to check belongs to the classification (XX) related to the mode M131 in FIG. 8B, and the operator has selected the mode M131 (step SX13). ).
作業者によってモードM131が選択されると(ステップSX13)、情報記録制御部21aは、ロール紙10にコマンド小分類画像65(図8(c)参照)を記録する(ステップSA10)。
When the mode M131 is selected by the operator (step SX13), the information
図8(c)は、コマンド小分類画像65の一例を模式的に示す図である。コマンド小分類画像65には、コマンド中分類画像64において選択された分類に属する制御コマンドについて、さらに分類分けしたときの、それぞれの分類を示す情報が記録されている。分類のそれぞれには、選択可能にモードが割り振られている。なお、情報記録制御部21aは、コマンド小分類画像65において、記録すべき制御コマンドの数が多い場合は、制御コマンドをページ分けし、指示に応じて、ページ毎に所定の個数(例えば、9個)の制御コマンドを記録する。このようにすることにより、制御コマンドの数が多い場合であっても、所望の制御コマンドを選択するための押下スイッチ17の押下の回数を減らせる場合がある。
以下の説明では、作業者が調べようとしている制御コマンドが、図8(c)のモードM141に係る分類(Function 02 (Print NV Graphics))に属しており、作業者は、モードM141を選択したものとする(ステップSX13)。
また、本例では、このモードM141に係る分類に属する制御コマンドは、1つであり、また、当該制御コマンドは、グラフィックス画像を記録させるための制御コマンドであるものとする。つまり、本例では、作業者は、モードM141を選択することにより、情報を調べようとしていた制御コマンドに関する情報の表示を指示している。
FIG. 8C is a diagram schematically illustrating an example of the command
In the following description, the control command that the operator wants to check belongs to the classification (Function 02 (Print NV Graphics)) related to mode M141 in FIG. 8C, and the operator selects mode M141. It is assumed (step SX13).
In this example, it is assumed that there is one control command belonging to the classification according to the mode M141, and that the control command is a control command for recording a graphics image. In other words, in this example, the operator instructs display of information related to the control command for which information is to be checked by selecting the mode M141.
作業者によってモードM141が選択されると(ステップSX14)、情報記録制御部21aは、ロール紙10にコマンド詳細情報画像66(図8(d)参照)を記録する(ステップSA11)。
When the mode M141 is selected by the operator (step SX14), the information
図8(d)は、コマンド詳細情報画像66の一例を模式的に示す図である。コマンド詳細情報画像66は、大別してエリアA151と、エリアA152とに分かれている。
コマンド詳細情報画像66のエリアA151には、コマンド小分類画像65において選択された制御コマンドに関連する詳細な情報が記録される。記録される情報は予め定まっており、例えば、制御コマンドの名称や、制御コマンドのフォーマット、設定すべきパラメーターの取り得る値の範囲、特殊なパラメーターの説明等が、コマンド詳細情報画像66に記録される。これら情報は、プリンタードライバー42の開発にあたって、当該開発の容易化に寄与する非常に有益な情報である。
このように本実施形態では、プリンター2は、作業者の指示に応じて、特定の制御コマンドの詳細な情報をロール紙10に記録することが可能である。このため、作業者は、仕様書等を参照するといった煩雑な作業を行うことなく、プリンター2に対して指示を与えるだけで、特定のコマンドの詳細な情報を得ることができ、プリンタードライバー42の開発にあたって、その作業が容易化する。
FIG. 8D is a diagram schematically illustrating an example of the command
In the area A151 of the command
As described above, in this embodiment, the
また、図8(d)に示すように、コマンド詳細情報画像66のエリアA152には、選択可能なモードとして、モードM150−モードM153が記録されている。
作業者によって、モードM151が選択された場合(ステップSX15)、情報記録制御部21aは、ロール紙10に選択制御コマンドサンプル画像67(図9(a)参照)を記録する(ステップSA12)。
Further, as shown in FIG. 8D, in the area A152 of the command
When the mode M151 is selected by the operator (step SX15), the information
図9(a)は、選択制御コマンドサンプル画像67の一例を模式的に示す図である。
選択制御コマンドサンプル画像67のエリアA161には、コマンド小分類画像65において選択され、コマンド詳細情報画像66においてその詳細が示された制御コマンド(選択制御コマンド)を使用して記録可能な画像の一例が記録される。なお、制御コマンド毎に、各制御コマンドを使用して記録可能な画像の一例を記録するために必要なデータが予め記憶されており、情報記録制御部21aは、対応するデータに基づいて、選択制御コマンドを使用して記録可能な画像の一例を、エリアA161に記録する。
選択制御コマンドサンプル画像67のエリアA162には、ホストコンピューター4がプリンター2に、エリアA161に記録した画像を記録させるとした場合に、ホストコンピューター4が生成、出力すべき制御コマンド群が記録される。
このように、本実施形態では、プリンター2は、作業者の指示に応じて、特定の制御コマンドの詳細な情報をロール紙10に記録するのみならず、当該特定の制御コマンドを使用して記録可能な画像の一例と、当該画像の一例を記録させるための制御コマンド群を示す情報という、プリンタードライバー42の開発にあたって非常に有益な情報を提供可能である。
FIG. 9A is a diagram schematically showing an example of the selection control
In the area A161 of the selection control
In the area A162 of the selection control
As described above, in the present embodiment, the
選択制御コマンドサンプル画像67のエリアA163には、選択可能なモードとして、モードM160〜モードM161の2つのモードが記録される。
作業者によって、モードM161が選択された場合(ステップSX16)、情報記録制御部21aは、ロール紙10に、選択制御コマンド識別コード画像68(図9(b)参照)を記録する。
In the area A163 of the selection control
When the mode M161 is selected by the operator (step SX16), the information
図9(b)は、選択制御コマンド識別コード画像68の一例を模式的に示す図である。 選択制御コマンド識別コード画像68のエリアA171では、識別コードとしての2次元コードCO2が記録される。
この2次元コードCO2には、選択制御コマンドサンプル画像67のエリアA162に記録した制御コマンド群を示す情報が格納されている。情報記録制御部21aは、制御コマンド群を示す情報に基づいて、制御コマンド群を示す情報を格納した2次元コードCO2を生成し、その画像をエリアA171に記録する。2次元コードCO2が記録されることにより、2次元コードCO1と同様、入力ミスのリスクを排除した上で、非常に簡易に、制御コマンド群を示す情報をプリンタードライバー42の開発用の端末に入力することができ、当該端末において電子データとして使用することが可能となる。
FIG. 9B is a diagram schematically showing an example of the selection control command
The two-dimensional code CO2 stores information indicating the control command group recorded in the area A162 of the selection control
選択制御コマンド識別コード画像68のエリアA172には、選択可能なモードとして、モードM170が記録される。
作業者によって、モードM170が選択された場合(ステップSX17)、情報記録制御部21aは、処理手順をステップSA3へ移行し、ロール紙10にヘルプモード画像を記録する。
なお、コマンド詳細情報画像66において、作業者によりモードM152が選択された場合(ステップSX15’)、情報記録制御部21aは、処理手順をステップSA11からステップSA13へ移行し、選択制御コマンドに係る2次元コードCO2が記録された選択制御コマンドサンプル画像67をロール紙10に記録する。
In the area A172 of the selection control command
When the mode M170 is selected by the operator (step SX17), the information
When the mode M152 is selected by the operator in the command detailed information image 66 (step SX15 ′), the information
以上説明したように、本実施形態に係るプリンター2は、画像の記録を指示する制御コマンドの態様が異なる複数種類の画像について、ホストコンピューター4から入力された制御コマンドに基づいて、記録媒体たるロール紙10に記録可能に構成されている。
さらに、プリンター2は、レイアウト設定画像59において、所定の順番で、所定の種類の画像に係る画像ユニットが並んで構成されたサンプル画像SPについて、サンプル画像SPを構成する各画像の種類と、その順番が指定可能に構成されている。
そして、プリンター2は、作業者によって、サンプル画像SPの記録が指示された場合、指定された順番で指定された種類の画像に係る画像ユニットをロール紙10に記録することによりサンプル画像SPを記録すると共に、記録したサンプル画像SPを記録するためにホストコンピューター4が出力すべき制御コマンド群をロール紙10に記録する情報記録制御部21aを備えている。
これによれば、プリンター2は、作業者の要求に応じて、所定の順番で、所定の種類の画像が並んで構成されたサンプル画像SPと、当該サンプル画像を記録させるための制御コマンド群、というプリンタードライバー42の開発や、プリンタードライバー42のメンテナンスにとって有益な情報を提供可能である。
As described above, the
Further, the
Then, when recording of the sample image SP is instructed by the operator, the
According to this, the
また、本実施形態では、情報記録制御部21aは、ロール紙10に記録したサンプル画像SPを記録するためにホストコンピューター4が出力すべき制御コマンド群に代えて、又は、当該制御コマンド群と共に、当該制御コマンド群を表す2次元コードCO1をロール紙10に記録する。
この構成によれば、プリンタードライバー42の開発や、メンテナンス中であり、プリンター2がスタンドアローンの状態であっても、手入力といった労力を要する手段によらずに、制御コマンド群を開発用の端末に入力することが可能となる。この場合、入力ミスのリスクも排除できる。
In the present embodiment, the information
According to this configuration, even when the
また、本実施形態では、情報記録制御部21aは、作業者により、ある特定の制御コマンド(選択制御コマンド)の情報の表示が指示された場合、コマンド詳細情報画像66により、当該選択制御コマンドの情報をロール紙10に記録する。
この構成によれば、プリンター2は、作業者の要求に応じて、所望の制御コマンドに関する情報という、プリンタードライバー42の開発、メンテナンスにあたって有益な情報を提供可能である。また、作業者は、仕様書等を参照することなく、特定の制御コマンドの情報を取得可能である。
In the present embodiment, the information
According to this configuration, the
また、本実施形態では、情報記録制御部21aは、作業者によって関連する情報の表示が指示された選択制御コマンドについて、当該選択制御コマンドを利用して記録可能な画像をロール紙10に記録すると共に、当該画像を記録するためにホストコンピューター4が出力すべき制御コマンド群をロール紙10に記録する。
この構成によれば、プリンター2は、選択制御コマンドに関する情報に加えて、当該制御コマンドを利用して記録可能な画像と、当該画像を記録するためにホストコンピューター4が出力すべき制御コマンド群と、という有益な情報を提供可能である。
In this embodiment, the information
According to this configuration, the
なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、レイアウト設定画像59において、作業者は、サンプル画像SPを構成する各画像ユニットについて、画像ユニットの種類と、その順番を任意に設定可能であったが、予め、構成の異なるサンプル画像SPを選択可能に複数用意しておき、いずれかのサンプル画像SPを選択することにより、サンプル画像SPのレイアウトを設定可能に構成してもよい。
また、画像の種類は、上述した実施形態で例を挙げて説明したものに限らない。すなわち、画像の種類は、画像の記録を指示する制御コマンドの態様ごとに存在する。
また、上述した実施形態では、プリンター2は、サーマルプリンターであったが、プリンター2の記録形式は、これに限らず、インクジェット式、ドットインパクト式等、何であってもよい。
また、上述した実施形態では、識別コードの例として、2次元コードを示したが、識別コードは、2次元コードに限らない。すなわち、光学的に読み取り可能な識別コードの全てを適用可能である。
また、図2に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
また例えば、プリンター2の情報記録制御部21aの機能を、プリンター2に外部接続される別の装置に持たせるようにしてもよい。
また、外部接続される記憶媒体に記憶させたプログラムを実行することにより、各種動作を実行するようにしてもよい。
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.
For example, in the above-described embodiment, in the
Further, the types of images are not limited to those described with examples in the above-described embodiments. That is, the image type exists for each mode of the control command that instructs to record the image.
In the above-described embodiment, the
In the above-described embodiment, the two-dimensional code is shown as an example of the identification code. However, the identification code is not limited to the two-dimensional code. That is, all of the optically readable identification codes can be applied.
Each functional block shown in FIG. 2 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration.
Further, for example, the function of the information
Various operations may be executed by executing a program stored in an externally connected storage medium.
1…記録システム、2…プリンター(記録装置)、4…ホストコンピューター(制御装置)、10…ロール紙(記録媒体)、21…制御部、21a…情報記録制御部、67…選択制御コマンドサンプル画像(制御コマンドを使用して記録可能な画像)、CO1…2次元コード(識別コード)、CO2…2次元コード(識別コード)、SP…サンプル画像。
DESCRIPTION OF
Claims (6)
画像の記録を指示する制御コマンドの態様が異なる複数種類の画像について、前記制御装置から入力された制御コマンドに基づいて、記録媒体に記録可能に構成されると共に、
所定の順番で、所定の種類の画像が並んで構成されたサンプル画像について、サンプル画像を構成する各画像の種類と、その順番が指定可能に構成され、
サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を前記記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群を前記記録媒体に記録する情報記録制御部を備えることを特徴とする記録装置。 A recording device connectable to a control device,
A plurality of types of images having different control command modes for instructing image recording are configured to be recordable on a recording medium based on a control command input from the control device, and
For a sample image configured by arranging a predetermined type of image in a predetermined order, the type of each image constituting the sample image and the order thereof can be specified,
When the recording of the sample image is instructed, the control device records the sample image by recording the specified type of image on the recording medium in the specified order and records the recorded sample image. A recording apparatus comprising an information recording control unit for recording a control command group to be output on the recording medium.
記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群に代えて、又は、当該制御コマンド群と共に、当該制御コマンド群を表す識別コードを前記記録媒体に記録することを特徴とする請求項1に記載の記録装置。 The information recording control unit
An identification code representing the control command group is recorded on the recording medium instead of or together with the control command group to be output by the control device in order to record the recorded sample image. The recording apparatus according to claim 1.
所定の制御コマンドに関する情報の表示が指示された場合、当該制御コマンドに関する情報を前記記録媒体に記録することを特徴とする請求項1又は2に記載の記録装置。 The information recording control unit
3. The recording apparatus according to claim 1, wherein when an instruction to display information relating to a predetermined control command is given, information relating to the control command is recorded on the recording medium.
情報の表示が指示された制御コマンドについて、さらに、当該制御コマンドを使用して記録可能な画像を前記記録媒体に記録すると共に、当該画像を記録するために前記制御装置が出力すべき制御コマンドを前記記録媒体に記録することを特徴とする請求項3に記載の記録装置。 The information recording control unit
For the control command instructed to display information, a recordable image is recorded on the recording medium using the control command, and a control command to be output by the control device to record the image is displayed. The recording apparatus according to claim 3, wherein recording is performed on the recording medium.
所定の順番で、所定の種類の画像が並んで構成されたサンプル画像について、サンプル画像を構成する各画像の種類と、その順番が指定されると共に、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を前記記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群を前記記録媒体に記録することを特徴とする記録装置の制御方法。 It is configured to be connectable to a control device, and is configured to be capable of recording on a recording medium based on a control command input from the control device, regarding a plurality of types of images having different control command modes for instructing image recording. A control method for a recording apparatus,
For sample images composed of images of a predetermined type arranged in a predetermined order, the type of each image constituting the sample image and its order are specified, and if the recording of the sample image is instructed, it is specified. A sample image is recorded by recording an image of a specified type in the specified order on the recording medium, and a control command group to be output by the control device to record the recorded sample image is recorded on the recording medium. Recording method for recording apparatus, characterized in that recording is performed.
前記制御部を、
所定の順番で、所定の種類の画像が並んで構成されたサンプル画像について、サンプル画像を構成する各画像の種類と、その順番が指定されると共に、サンプル画像の記録が指示された場合、指定された順番で指定された種類の画像を前記記録媒体に記録することによりサンプル画像を記録すると共に、記録したサンプル画像を記録するために前記制御装置が出力すべき制御コマンド群を前記記録媒体に記録する情報記録制御部として機能させることを特徴とするプログラム。 It is configured to be connectable to a control device, and is configured to be capable of recording on a recording medium based on a control command input from the control device, regarding a plurality of types of images having different control command modes for instructing image recording A program executed by a control unit that controls the recording device,
The control unit
For sample images composed of images of a predetermined type arranged in a predetermined order, the type of each image constituting the sample image and its order are specified, and if the recording of the sample image is instructed, it is specified. A sample image is recorded by recording an image of a specified type in the specified order on the recording medium, and a control command group to be output by the control device to record the recorded sample image is recorded on the recording medium. A program that functions as an information recording control unit for recording.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012019599A JP2013158911A (en) | 2012-02-01 | 2012-02-01 | Recording device, control method for the same and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012019599A JP2013158911A (en) | 2012-02-01 | 2012-02-01 | Recording device, control method for the same and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013158911A true JP2013158911A (en) | 2013-08-19 |
Family
ID=49171588
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012019599A Pending JP2013158911A (en) | 2012-02-01 | 2012-02-01 | Recording device, control method for the same and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013158911A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE112014003516B4 (en) | 2013-07-31 | 2020-06-25 | Canon Kabushiki Kaisha | Magnetic toner |
-
2012
- 2012-02-01 JP JP2012019599A patent/JP2013158911A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE112014003516B4 (en) | 2013-07-31 | 2020-06-25 | Canon Kabushiki Kaisha | Magnetic toner |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4281414B2 (en) | Barcode or two-dimensional code printing system, barcode or two-dimensional code font setting method, and barcode or two-dimensional code font setting program | |
US20110242580A1 (en) | Submission of jdf print jobs to a target printer using a usb storage device and other related methods | |
CN103336675B (en) | Information processing method, signal conditioning package and print system | |
CN103297639B (en) | Image processing apparatus and image processing method | |
JP2005141729A (en) | Method, device, and program for peripheral apparatus and control and method, device, and program for display control | |
US20050200887A1 (en) | Direct printing machine, direct printing method and computer-readable recording medium storing direct printing program | |
CN106888340B (en) | Display device, display methods and storage medium | |
JP4250427B2 (en) | Print control apparatus, print control method, and print control program | |
CN106445425B (en) | Print control apparatus and control method of print control apparatus | |
JP2013158911A (en) | Recording device, control method for the same and program | |
EP2302556B1 (en) | Printer and method for controlling printer | |
JP4980961B2 (en) | Printing control apparatus, printing system, program, and recording medium | |
US9195474B2 (en) | System and method print control device configured to control screen display unit of receipt printer | |
JP4681422B2 (en) | Image forming apparatus and image forming system | |
JP2007114990A (en) | Print control program | |
KR20050108902A (en) | Printing method for saving print option | |
JP2009251813A (en) | Printing system, image forming apparatus, and image processor | |
JP5416196B2 (en) | Data processing program and data processing apparatus | |
JP2008290431A (en) | Method of preparing printing sample form by printer | |
JP2008183890A (en) | Image forming apparatus | |
US20100060932A1 (en) | Image processing apparatus, information processing method, and computer program product | |
JP5803389B2 (en) | Label issuing device, label issuing method and program | |
KR20080052381A (en) | Image forming apparatus and control method thereof | |
JP2021105780A (en) | Information processing device, control method of information processing device, and program | |
JP2015179505A (en) | Information processing device and program |