JP2009110470A - Printer and program - Google Patents

Printer and program Download PDF

Info

Publication number
JP2009110470A
JP2009110470A JP2007284771A JP2007284771A JP2009110470A JP 2009110470 A JP2009110470 A JP 2009110470A JP 2007284771 A JP2007284771 A JP 2007284771A JP 2007284771 A JP2007284771 A JP 2007284771A JP 2009110470 A JP2009110470 A JP 2009110470A
Authority
JP
Japan
Prior art keywords
notification
printer
ringing
print job
factor
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.)
Withdrawn
Application number
JP2007284771A
Other languages
Japanese (ja)
Inventor
Kahori Okumura
香保里 奥村
Toshiaki Koike
利明 小池
Kenichi Murahashi
賢一 村橋
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 JP2007284771A priority Critical patent/JP2009110470A/en
Publication of JP2009110470A publication Critical patent/JP2009110470A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer and a program, capable of executing a notification operation considering the significance of a notification element. <P>SOLUTION: The printer 3 for performing printing based on print data and having a notification function is provided with a notification element detecting means for detecting the occurrence of a predetermined prescribed notification element 71, a priority attachment table 61 obtained by setting priorities 72 of notification operations corresponding to each notification element 71, and a notifying means 46 for executing a notification operation on the basis of a result of reference by referring to the priority attachment table 61 when the notification element detecting means detects the notification element 71, wherein the notifying means 46 stops a notification operation due to the optional notification element 71 and executes a notification operation based on another notification element 71 when the other notification element 71 with a priority 72 higher than that of the optional notification element 71 is detected during notification operation based on the optional notification element 71. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、報知機能を有するプリンタおよびプログラムに関するものである。   The present invention relates to a printer having a notification function and a program.

従来、ホストコンピュータとプリンタとを接続し、ホストコンピュータで生成した印刷データをプリンタに送信して印刷処理を行うシステムが知られている。例えば、スーパーマーケットや小売店等で使用されるPOSシステムでは、POS端末コンピュータにより、オペレータ(店員)により入力された商品情報に基づく商品データから印刷データを生成し、当該印刷データをプリンタ(印刷装置)に送信する。プリンタは、受信した印刷データに基づいてレシートやクーポン等の印刷を行う。そして、印刷されたレシートやクーポンは、適当な長さにカットされ、レシート搬送路から排出される(例えば、特許文献1参照)。
特開2005−222310号公報
2. Description of the Related Art Conventionally, a system is known in which a host computer and a printer are connected and print data generated by the host computer is transmitted to the printer to perform print processing. For example, in a POS system used in a supermarket, a retail store, etc., print data is generated from product data based on product information input by an operator (store clerk) by a POS terminal computer, and the print data is printed by a printer (printing device). Send to. The printer prints receipts, coupons, and the like based on the received print data. Then, the printed receipt or coupon is cut to an appropriate length and discharged from the receipt conveyance path (see, for example, Patent Document 1).
JP 2005-222310 A

ところで、上述のようなシステムでは、印刷ジョブの実行やプリンタの状態変化を例えばブザー音などで報知し、ユーザはこのブザー音により、現在の状態(印刷処理中、何らかの異常の発生など)を把握する。しかしながら、例えば、プリンタの所定の状態に関する報知動作中に、急を有する他の報知要因が発生した場合(報知指示が発行された場合)、現在実行中の報知動作が終了した後に、当該他の報知要因による報知動作を実行するため、急を有するにも関わらず、後回しにされてしまうという問題がある。   By the way, in the system as described above, the execution of the print job or the change in the printer state is notified by, for example, a buzzer sound, and the user grasps the current state (the occurrence of some abnormality during the printing process) by the buzzer sound. To do. However, for example, when another notification factor having an abrupt occurs during a notification operation regarding a predetermined state of the printer (when a notification instruction is issued), after the notification operation currently being executed ends, Since the notification operation by the notification factor is executed, there is a problem that the notification operation is postponed despite the suddenness.

本発明は、上記の問題に鑑みたものであり、報知要因の重要度を考慮して報知動作を実行することのできるプリンタおよびプログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a printer and a program that can execute a notification operation in consideration of the importance of a notification factor.

本発明のプリンタは、印刷データに基づいて印刷を行うと共に報知機能を有するプリンタであって、予め定められた所定の報知要因の発生を検出する報知要因検出手段と、報知要因毎に対応した報知動作の優先順位を設定した優先度付けテーブルと、報知要因検出手段により報知要因が検出された場合、優先度付けテーブルを参照し、その参照結果に基づいて報知動作を実行する報知手段と、を備え、報知手段は、任意の報知要因に基づく報知動作中に、当該報知要因よりも優先順位の高い他の報知要因が検出された場合、当該任意の報知要因による報知動作を停止し、他の報知要因に基づく報知動作を実行することを特徴とする。   The printer of the present invention is a printer that performs printing based on print data and has a notification function, and includes notification factor detection means for detecting occurrence of a predetermined notification factor, and notification corresponding to each notification factor. A prioritization table in which the priority of the operation is set, and a notification unit that refers to the prioritization table when a notification factor is detected by the notification factor detection unit, and executes a notification operation based on the reference result. The notification means stops the notification operation by the arbitrary notification factor when another notification factor having a higher priority than the notification factor is detected during the notification operation based on the arbitrary notification factor. A notification operation based on a notification factor is executed.

この構成によれば、何らかの報知要因が発生した場合、報知要因毎に優先順位が設定された優先度付けテーブルを参照し、その参照結果に基づいて報知動作を実行する。そして、何らかの報知要因(第1報知要因)に基づく報知動作中に、優先順位の高い他の報知要因(第2報知要因)が検出された場合、第1報知要因に基づく報知動作を停止し、第2報知要因に基づく報知動作を実行する。これにより、急を有する報知要因に対する報知動作の優先順位を高く設定することで、当該急を有する報知要因に対する報知動作の遅延を防止でき、適切なタイミングで報知動作を実行することができる。   According to this configuration, when any notification factor occurs, the prioritization table in which the priority is set for each notification factor is referred to, and the notification operation is executed based on the reference result. Then, when another notification factor (second notification factor) having a high priority is detected during the notification operation based on some notification factor (first notification factor), the notification operation based on the first notification factor is stopped, A notification operation based on the second notification factor is executed. Accordingly, by setting the priority of the notification operation with respect to the notification factor having a suddenness, delay of the notification operation with respect to the notification factor having the suddenness can be prevented, and the notification operation can be executed at an appropriate timing.

この場合、優先度付けテーブルに設定された優先順位を変更するテーブル設定変更手段をさらに備えることが好ましい。   In this case, it is preferable to further include table setting changing means for changing the priority order set in the prioritization table.

この構成によれば、優先度付けテーブルに設定された優先順位の変更が可能であるため、ユーザのニーズに応じた優先順位に設定することができる。   According to this configuration, since the priority order set in the prioritization table can be changed, the priority order can be set according to the user's needs.

これらの場合、優先度付けテーブルは、プリンタの全ての状態において使用可能な1の共通優先度付けテーブルと、プリンタの各状態に対応した1以上の個別優先度付けテーブルと、から成り、プリンタの現在の状態を判別する状態判別手段と、プリンタの状態毎に、共通優先度付けテーブルおよび各状態に対応して設けられた個別優先度付けテーブルの、いずれを使用するかを設定するテーブル設定手段と、をさらに備え、報知手段は、状態判別手段による状態判別結果に基づいて、テーブル設定手段により設定されたテーブルを参照し、その参照結果に基づいて報知動作を実行することが好ましい。   In these cases, the prioritization table is composed of one common prioritization table that can be used in all states of the printer, and one or more individual prioritization tables corresponding to the respective states of the printer. State determining means for determining the current state, and table setting means for setting which of the common prioritization table and the individual prioritization table provided for each state is used for each printer state It is preferable that the notification unit refers to the table set by the table setting unit based on the state determination result by the state determination unit, and executes the notification operation based on the reference result.

この構成によれば、個別優先度テーブルを用いることにより、その状態に特化した優先順位で報知動作が行える。また、共通優先度テーブルおよび個別優先度テーブルを含む複数のテーブルのうちいずれを使用するかを設定できるため、例えば、プリンタのほとんどの状態に対しては同一の優先度付けで良く、それ以外の一部の状態に対しては異なる優先度付けを行いたい等のユーザのニーズに柔軟に対応することができる。   According to this configuration, by using the individual priority table, the notification operation can be performed with the priority order specific to the state. In addition, since it is possible to set which one of a plurality of tables including a common priority table and an individual priority table is used, for example, the same priority may be assigned to almost all states of the printer. It is possible to flexibly respond to user needs such as wanting to give different priorities to some states.

これらの場合、印刷ジョブに対応する印刷ジョブIDおよび報知指令を含む報知制御コマンドを受信して解析するコマンド解析手段と、自身の所定の内部変化を検出する内部変化検知手段と、をさらに備え、報知要因検出手段は、コマンド解析手段の解析結果および内部変化検知手段の検知結果のいずれかに基づいて、報知要因が発生した旨を検出することが好ましい。   In these cases, further comprising: a command analysis unit that receives and analyzes a notification control command including a print job ID corresponding to a print job and a notification command; and an internal change detection unit that detects a predetermined internal change of itself, The notification factor detection unit preferably detects that the notification factor has occurred based on either the analysis result of the command analysis unit or the detection result of the internal change detection unit.

この構成によれば、外部からの報知要因およびプリンタ内部の状態変化による報知要因の両方の報知要因を考慮した優先順位に基づき報知動作を制御することができる。   According to this configuration, the notification operation can be controlled based on the priority order in consideration of both the notification factor from the outside and the notification factor due to the change in the internal state of the printer.

これらの場合、報知手段は、電子音を発生することにより報知動作を行なうことが好ましい。   In these cases, it is preferable that the notification means performs the notification operation by generating an electronic sound.

この構成によれば、電子音による鳴動により、ユーザに対してプリンタの状況(何らかの事象が発生したこと)を報知することができる。これにより、例えば、プリンタがスーパーマーケット等で用いられるレシートプリンタの場合、ユーザが顧客の対応をしており、プリンタを視認することができない場合でも、容易にプリンタの状況を把握することができる。   According to this configuration, it is possible to notify the user of the status of the printer (that some event has occurred) by ringing with an electronic sound. Thereby, for example, when the printer is a receipt printer used in a supermarket or the like, even if the user is dealing with the customer and the printer cannot be visually recognized, the printer status can be easily grasped.

本発明のプログラムは、コンピュータを、上記に記載のプリンタの各手段として機能させるためのものであることを特徴とする。   The program of the present invention is for causing a computer to function as each unit of the printer described above.

これを用いることにより、報知要因の重要度を考慮して報知動作を実行することのできるプリンタを提供することができる。   By using this, it is possible to provide a printer that can execute a notification operation in consideration of the importance of the notification factor.

以下、添付の図面を参照して、本実施形態に係るプリントシステムについて説明する。本実施形態に係るプリンタは、何らかの報知要因が発生した場合、その報知要因の重要度を考慮して報知動作を実行することのできるプリンタである。以下、本実施形態では、本発明のプリンタを適用したプリントシステムについて説明する。また、印刷物としてクーポン券を対象とすると共に、報知手段として電子音による鳴動により報知する場合について説明する。   Hereinafter, a print system according to the present embodiment will be described with reference to the accompanying drawings. The printer according to the present embodiment is a printer that can execute a notification operation in consideration of the importance of the notification factor when any notification factor occurs. Hereinafter, in this embodiment, a printing system to which the printer of the present invention is applied will be described. In addition, a case will be described in which coupons are targeted as printed matter and notification is made by means of an electronic sound as notification means.

図1は、本発明のプリントシステム1の機器構成を示す図である。同図に示すように本実施形態のプリントシステム1は、印刷ジョブおよび当該印刷ジョブに対応する鳴動制御コマンド(報知制御コマンド)を送信するホストコンピュータ2と、ホストコンピュータ2から受信した印刷ジョブに基づいて印刷を行うと共に、鳴動制御コマンド、あるいは自身の内部変化(紙なしやインクなし等)に基づいて鳴動する機能を有するプリンタ3と、で構成されている。   FIG. 1 is a diagram showing a device configuration of a print system 1 according to the present invention. As shown in the figure, the print system 1 of the present embodiment is based on a print job and a host computer 2 that transmits a ringing control command (notification control command) corresponding to the print job, and a print job received from the host computer 2. And a printer 3 having a function of sounding based on a sounding control command or its own internal change (no paper, no ink, etc.).

ホストコンピュータ2は、プリンタ3を管理するためのコンピュータであり、プリンタ3に対してそれぞれ印刷ジョブを送信する。ホストコンピュータ2は、図示しないPOSアプリケーションなどからクーポン等の発行要求を受けると、後述する業務アプリケーション31によりその要求に基づいて印刷ジョブを生成し、各印刷ジョブに対して印刷ジョブIDを付与する。そして、この印刷ジョブIDに基づいて印刷ジョブの管理を行うと共に、プリンタ3に対し印刷ジョブを送信する。   The host computer 2 is a computer for managing the printer 3 and transmits a print job to the printer 3. When the host computer 2 receives a request for issuing a coupon or the like from a POS application (not shown), the business application 31 (to be described later) generates a print job based on the request and assigns a print job ID to each print job. Then, the print job is managed based on the print job ID, and the print job is transmitted to the printer 3.

また、ホストコンピュータ2は、必要に応じてプリンタ3のブザー46(報知手段,図2参照)を鳴動するための鳴動制御コマンドを生成する。そして、ホストコンピュータ2が、この鳴動制御コマンドをプリンタ3に送信することで、設定したタイミングおよび所定の鳴動パターンでブザー46を鳴動させることができる。   Further, the host computer 2 generates a sound control command for sounding the buzzer 46 (notification means, see FIG. 2) of the printer 3 as necessary. Then, the host computer 2 transmits the sounding control command to the printer 3 so that the buzzer 46 can sound at the set timing and a predetermined sounding pattern.

一方、プリンタ3は、複数種のカラーインクを記録材料として使用し、記録媒体である用紙に画像記録(複数色カラー印刷)を実行し、クーポン等を発券するインクジェット方式のプリンタ3である。図1に示すように、プリンタ3は、前面上部パネル11aおよびケースカバー11bから構成されるプリンタケース11の前面に、左側から順に電源スイッチ12、ロール紙カバー13、装着部開閉カバー14が配置されており、ロール紙カバー13の上方には、ロール紙を排出する用紙排出口15が臨んでいる。また、電源スイッチ12の上方には、プリンタ3の状態をオペレータ(ユーザ)に通知する複数のLEDランプ16が設けられている。ロール紙カバー13の内部には、用紙がロール状に巻回されたロール紙(図示省略)が装填されており、一方の装着部開閉カバー14の内部には、インクカートリッジ(図示省略)が装着されている。   On the other hand, the printer 3 is an ink jet printer 3 that uses a plurality of types of color inks as a recording material, performs image recording (multi-color printing) on a recording medium, and issues coupons and the like. As shown in FIG. 1, in the printer 3, a power switch 12, a roll paper cover 13, and a mounting portion opening / closing cover 14 are arranged in this order from the left side on the front surface of a printer case 11 including a front upper panel 11a and a case cover 11b. A paper discharge port 15 for discharging the roll paper faces above the roll paper cover 13. A plurality of LED lamps 16 for notifying the operator (user) of the state of the printer 3 are provided above the power switch 12. The roll paper cover 13 is loaded with roll paper (not shown) in which the paper is wound in a roll shape, and an ink cartridge (not shown) is installed inside one of the mounting portion opening / closing covers 14. Has been.

プリンタ3は、ホストコンピュータ2から印刷ジョブを受信すると、当該印刷ジョブに基づいて、用紙上に文字や絵柄といった所望の画像をカラー印刷すると共に、用紙排出口15より印刷済みの用紙(クーポン等)を排出する。また、プリンタ3は、ホストコンピュータ2から鳴動制御コマンドを受信し、当該鳴動制御コマンドに基づいて自身のブザー46の鳴動を制御する。プリンタ3は、鳴動制御コマンドに設定されている鳴動タイミングおよび鳴動パターンに基づいてブザー46から電子音を鳴らし(鳴動)、オペレータに対し印刷処理が開始/完了などを報知する。また、プリンタ3は、自身に内部変化が発生した場合、その変化した状態を知らせるためにブザー46を鳴動させる(例えば、紙なしやインクなし等を知らせる)。これらブザー46を鳴動させる動作(以下、「鳴動動作」と称す。)は、後述する優先度付けテーブル61に設定された優先順位72に基づいて実行される。このように、電子音による鳴動により報知することで、例えば、オペレータが顧客の対応をしており、プリンタ3を視認することができない場合でも、プリンタ3がどのような状況にあるのかを容易に把握することができる。   When the printer 3 receives a print job from the host computer 2, based on the print job, the printer 3 performs color printing of a desired image such as a character or a pattern on the paper and prints paper (such as a coupon) printed from the paper discharge port 15. Is discharged. Further, the printer 3 receives the ring control command from the host computer 2 and controls the ring of its own buzzer 46 based on the ring control command. The printer 3 emits an electronic sound (sound) from the buzzer 46 based on the sounding timing and sounding pattern set in the sounding control command, and notifies the operator of the start / completion of the printing process. Further, when an internal change occurs in the printer 3, the printer 3 sounds a buzzer 46 to notify the changed state (for example, informing that there is no paper or no ink). The operation for causing the buzzer 46 to ring (hereinafter referred to as “ringing operation”) is executed based on the priority order 72 set in the prioritization table 61 described later. In this way, by notifying by an electronic sound, for example, even when the operator is dealing with a customer and the printer 3 cannot be seen, it is easy to determine what the printer 3 is in. I can grasp it.

なお、プリンタ3の状況を報知する手段として、上述のようにブザー46からの電子音による鳴動により聴覚的に報知しても良いし、あるいは、上述のLEDランプ16を点灯(明滅)させて、視覚的に報知するようにしても良い。   In addition, as means for notifying the status of the printer 3, it may be audibly informed by the sound of an electronic sound from the buzzer 46 as described above, or the LED lamp 16 described above may be turned on (flashing), You may make it alert | report visually.

次に、図2の制御ブロック図を参照して、本発明に係るプリントシステム1を構成するホストコンピュータ2およびプリンタ3について説明する。   Next, the host computer 2 and the printer 3 constituting the print system 1 according to the present invention will be described with reference to the control block diagram of FIG.

ホストコンピュータ2は、CPU21(Central Processing Unit)、ROM22(Read Only Memory)、RAM23(Random Access Memory)、HDD24(Hard Disk Drive)、入力デバイス25および通信インターフェース26を備えている。そして、HDD24に記憶された制御プログラムを起動時にRAM23にコピーし、その制御プログラムに従ってRAM23内などに保存されたデータの処理を行う。また、HDD24には、業務アプリケーション31およびスプーラ32が記憶されている。   The host computer 2 includes a CPU 21 (Central Processing Unit), a ROM 22 (Read Only Memory), a RAM 23 (Random Access Memory), an HDD 24 (Hard Disk Drive), an input device 25, and a communication interface 26. Then, the control program stored in the HDD 24 is copied to the RAM 23 at startup, and the data stored in the RAM 23 or the like is processed according to the control program. The HDD 24 stores a business application 31 and a spooler 32.

CPU21は、業務アプリケーション31を実行し、入力デバイス25からの入力に基づき所望の鳴動パターンを生成する。鳴動パターンは、周波数、鳴動時間、消音時間、音量、鳴動回数等の項目からなる。ユーザは、これら項目に対するパラメータを変化させることで、所望の鳴動パターンを生成させることができる。   The CPU 21 executes the business application 31 and generates a desired ringing pattern based on the input from the input device 25. The ring pattern includes items such as frequency, ring time, mute time, volume, and number of rings. The user can generate a desired ringing pattern by changing parameters for these items.

また、CPU21は、POSアプリケーションなどからクーポンを発券するための情報(以下、クーポン情報)を受信すると、業務アプリケーション31を実行して当該クーポン情報に基づいて印刷データを生成する。そして、業務アプリケーション31は、印刷要求と共に生成した印刷データをスプーラ32に送る。スプーラ32では、当該印刷データに基づき印刷ジョブを生成すると共に、当該印刷ジョブに対して印刷ジョブIDを付与する。この印刷ジョブは、印刷ジョブの先頭を示すJobStartコマンド、印刷ジョブIDが記載されたJobNameコマンド、印刷データの印刷を指示するJobPrintコマンド、印刷ジョブの最後を示すJobEndコマンド等の印刷制御コマンドおよび印刷データから形成される。そして、スプーラ32は、当該印刷要求の応答として業務アプリケーション31に印刷ジョブIDを通知し、これにより業務アプリケーション31は当該印刷ジョブIDを取得する。また、CPU21は、スプーラ32から通信インターフェース26を介して生成した印刷ジョブをプリンタ3に送信する。   In addition, when receiving information (hereinafter referred to as coupon information) for issuing a coupon from a POS application or the like, the CPU 21 executes the business application 31 and generates print data based on the coupon information. Then, the business application 31 sends the print data generated together with the print request to the spooler 32. The spooler 32 generates a print job based on the print data and assigns a print job ID to the print job. This print job includes a print control command and print data such as a JobStart command indicating the head of the print job, a JobName command describing the print job ID, a JobPrint command for instructing printing of the print data, and a JobEnd command indicating the end of the print job. Formed from. Then, the spooler 32 notifies the business application 31 of the print job ID as a response to the print request, whereby the business application 31 acquires the print job ID. Further, the CPU 21 transmits a print job generated from the spooler 32 via the communication interface 26 to the printer 3.

業務アプリケーション31は、印刷ジョブIDが所定の印刷ジョブID(例えば、1の顧客に対して発行される最後のクーポン発行に対する印刷ジョブID)であるか否かを判別する。当該印刷ジョブIDが所定の印刷ジョブIDである場合、業務アプリケーション31は、ブザー46を鳴動させるタイミング(鳴動タイミング)、鳴動パターン、当該印刷ジョブIDを関連付けて鳴動制御コマンドを生成する。そして、CPU21は、業務アプリケーション31のAPIを用い、通信インターフェース26を介して当該鳴動制御コマンドをプリンタ3に送信する。所定の印刷ジョブに関する鳴動制御コマンドのみを送信することで、後述するプリンタ3での所定の印刷ジョブの開始/完了、つまり、所定のクーポンがこれから発券される/発券された旨のみを報知することができる。   The business application 31 determines whether or not the print job ID is a predetermined print job ID (for example, the print job ID for the last coupon issue issued to one customer). When the print job ID is a predetermined print job ID, the business application 31 generates a ringing control command by associating the timing (ringing timing) for ringing the buzzer 46, the ringing pattern, and the print job ID. Then, the CPU 21 transmits the ringing control command to the printer 3 through the communication interface 26 using the API of the business application 31. By transmitting only the ringing control command related to a predetermined print job, notification of only the start / completion of a predetermined print job in the printer 3, which will be described later, that is, only that a predetermined coupon is issued / issued Can do.

また、CPU21は、なんらかの事象が発生したことを報知するために、ブザー6を鳴動させるための鳴動制御コマンド(以下、「即時鳴動制御コマンド」と称す。)を生成する。この即時鳴動制御コマンドは、上述の鳴動制御コマンドのように印刷ジョブの生成に伴って生成されるものではなく(印刷ジョブとは関連付けられることはなく)、任意のタイミングで生成され、プリンタ3に送信される。   Further, the CPU 21 generates a sound control command (hereinafter referred to as “immediate sound control command”) for sounding the buzzer 6 in order to notify that some event has occurred. This immediate ringing control command is not generated along with the generation of a print job like the above-described ringing control command (not associated with the print job), and is generated at an arbitrary timing, and is sent to the printer 3. Sent.

また、CPU21は、プリンタ3の優先度付けテーブル61(後述の共通優先度付けテーブル62および個別優先度付けテーブル63)に設定された優先順位72を変更するための優先順位変更要求、優先度付けテーブル61の内容を確認するためのテーブル確認要求、およびプリンタ3の各状態と優先度付けテーブル61との関連付けを設定するテーブル設定要求等をプリンタ3に送信する。これら各要求に基づく優先度付けテーブル61の変更/確認/設定手順については、後で詳細に説明する。   The CPU 21 also assigns a priority change request and a priority assignment for changing the priority order 72 set in the prioritization table 61 (a common prioritization table 62 and an individual prioritization table 63 described later) of the printer 3. A table confirmation request for confirming the contents of the table 61 and a table setting request for setting an association between each state of the printer 3 and the prioritization table 61 are transmitted to the printer 3. The change / confirmation / setting procedure of the prioritization table 61 based on these requests will be described in detail later.

一方、プリンタ3は、CPU41、フラッシュROM42、RAM43、通信インターフェース44、印刷制御部45、用紙搬送機構47、印刷ヘッド48(印刷手段)、ブザー46(報知手段)およびLEDランプ16を備えている。そして、フラッシュROM42内に記憶された制御プログラムに従って、RAM43内のデータの処理を行う。   On the other hand, the printer 3 includes a CPU 41, a flash ROM 42, a RAM 43, a communication interface 44, a print control unit 45, a paper transport mechanism 47, a print head 48 (printing means), a buzzer 46 (notification means), and the LED lamp 16. Then, data in the RAM 43 is processed according to the control program stored in the flash ROM 42.

RAM43には、印刷ジョブのジョブ履歴が記録されるジョブ履歴記憶領域51が設けられ、このジョブ履歴記憶領域51には、既に印刷処理が完了した印刷ジョブおよび現在印刷処理が開始されている印刷ジョブに対応する印刷ジョブIDが記録されている。さらに、RAM43には、実行中の印刷ジョブに対応する印刷ジョブIDを記録する印刷ジョブID記憶領域52と、鳴動制御コマンドを記録するコマンド記憶領域53が設けられている。また、コマンド記憶領域53は、印刷ジョブの実行開始前に鳴動するように設定された鳴動制御コマンド(以下、「印刷前鳴動制御コマンド」と称す。)を記録する第1コマンド記憶領域53aと、印刷ジョブの実行完了後に鳴動するように設定された鳴動制御コマンド(以下、「印刷後鳴動制御コマンド」と称す。)を記録する第2コマンド記憶領域53bとから構成されている。   The RAM 43 is provided with a job history storage area 51 in which a job history of a print job is recorded. In the job history storage area 51, a print job that has already been printed and a print job that has been started. Is recorded. Further, the RAM 43 is provided with a print job ID storage area 52 for recording a print job ID corresponding to the print job being executed, and a command storage area 53 for recording a ringing control command. The command storage area 53 includes a first command storage area 53a for recording a ringing control command (hereinafter referred to as a “pre-printing ringing control command”) that is set to ring before the start of execution of a print job. This is composed of a second command storage area 53b for recording a ringing control command (hereinafter referred to as “post-printing ringing control command”) set to ring after completion of execution of the print job.

また、フラッシュROM42には、鳴動動作の優先順位72が設定された優先度付けテーブル61を備えている。図3に示すように、優先度付けテーブル61は、ブザー46を鳴動させる要因となる鳴動要因71(報知要因)と、鳴動要因71による鳴動動作の優先順位72(番号で指定)が記録されている。優先順位72は、付与された番号が小さい程、高い優先順位であると判別され、番号が同じであれば、後から発生した鳴動要因71の優先順位が高いと判別される。また、優先度付けテーブル61は、全てのプリンタ3の状態において使用可能な1の共通優先度付けテーブル62と、プリンタ3の各状態に対応して定義された1以上の個別優先度付けテーブル63(63a,63b,63c)とを有している。   Further, the flash ROM 42 is provided with a prioritization table 61 in which the priority order 72 of the ringing operation is set. As shown in FIG. 3, the prioritization table 61 is recorded with a ringing factor 71 (notification factor) that causes the buzzer 46 to ring and a priority order 72 (specified by a number) of the ringing operation by the ringing factor 71. Yes. The priority 72 is determined to be higher as the assigned number is smaller, and if the number is the same, it is determined that the priority of the ringing factor 71 generated later is higher. The prioritization table 61 includes one common prioritization table 62 that can be used in all printer 3 states, and one or more individual prioritization tables 63 that are defined corresponding to each state of the printer 3. (63a, 63b, 63c).

例えば、図3の優先度付けテーブル61(共通優先度付けテーブル62)では、「即時」というステータスの鳴動制御コマンド(即時鳴動制御コマンド)を鳴動要因71とする鳴動動作が最も高い優先順位「1」に設定され、「印刷後」というステータスの鳴動制御コマンド(印刷後鳴動制御コマンド)を鳴動要因71とする鳴動動作が優先順位「2」に設定されている。このため、印刷後鳴動制御コマンドによる鳴動動作中に、即時鳴動制御コマンドを鳴動要因71とする鳴動動作の要求が検出された場合(報知要因検出手段)、印刷後鳴動制御コマンドによる鳴動動作を停止し、即時鳴動制御コマンドによる鳴動動作を開始する。   For example, in the prioritization table 61 (common prioritization table 62) of FIG. 3, the highest priority is “1” for the ringing operation having the ringing control command (immediate ringing control command) with the status “immediate” as the ringing factor 71. Is set to priority “2”. The ringing operation with the ringing control command (post-printing ringing control command) having the status “after printing” as the ringing factor 71 is set to “2”. For this reason, when a request for a ringing operation using the ringing control command 71 as an immediate ringing control command is detected during the ringing operation by the post-printing ringing control command (notification factor detecting means), the ringing operation by the post-printing ringing control command is stopped. Then, the ringing operation by the immediate ringing control command is started.

また、印刷後鳴動制御コマンドによる鳴動動作中に、同じ優先順位72として設定された「印刷前」というステータスの鳴動制御コマンド(印刷前鳴動制御コマンド)を鳴動要因71とする鳴動動作の要求が検出された場合(報知要因検出手段)、印刷後鳴動制御コマンドによる鳴動動作を停止し、印刷前鳴動制御コマンドによる鳴動動作を開始する。この逆のパターンも同様であり、印刷前鳴動制御コマンドによる鳴動動作中に印刷後鳴動制御コマンドを鳴動要因71とする鳴動動作の要求が検出された場合(報知要因検出手段)、印刷前鳴動制御コマンドによる鳴動動作を停止し、印刷後鳴動制御コマンドによる鳴動動作が開始される。   Further, during the ringing operation by the post-printing ringing control command, a ringing operation request having the ringing control command (ringing control command before printing) having the status “before printing” set as the same priority 72 as the ringing factor 71 is detected. If it is performed (notification factor detecting means), the ringing operation by the post-printing ringing control command is stopped and the ringing operation by the pre-printing ringing control command is started. The reverse pattern is the same, and when a request for a ringing operation using the post-printing ringing control command as the ringing factor 71 is detected during the ringing operation by the pre-printing ringing control command (notification factor detecting means), the ringing control before printing is performed. The ringing operation by the command is stopped, and the ringing operation by the ringing control command after printing is started.

また、プリンタ3の状態毎に、これら共通優先度付けテーブル62および個別優先度付けテーブル63の、どちらのテーブルを使用するかを設定することができる。例えば、プリンタ3の状態が「印刷中」および「クリーニング中」の場合は共通優先度付けテーブル62を適用し、これに基づいて鳴動動作の優先順位72を判別し、「インク交換中」はインク交換中専用として優先順位72が設定された個別優先度付けテーブル63bを適用し、鳴動動作の優先順位72を判別することが可能となる。また、各優先度付けテーブル62、63は、設定された優先順位72を変更することが可能である(詳細は後述)。   Further, for each state of the printer 3, it is possible to set which of the common prioritization table 62 and the individual prioritization table 63 is used. For example, when the status of the printer 3 is “printing” and “cleaning”, the common prioritization table 62 is applied, and the priority order 72 of the ringing operation is determined based on this table. By applying the individual prioritization table 63b in which the priority order 72 is set exclusively for the exchange, it becomes possible to determine the priority order 72 of the ringing operation. In addition, each of the prioritization tables 62 and 63 can change the set priority order 72 (details will be described later).

ここで、ホストコンピュータ2から鳴動制御コマンドを受信した際の、プリンタ3の動作について説明する。CPU41は、通信インターフェース44を介してホストコンピュータ2から鳴動制御コマンドを受信する。この場合、CPU41は、当該鳴動制御コマンドを解析し(コマンド解析手段)、この鳴動制御コマンドが即時鳴動制御コマンドか否かを判別する。即時鳴動制御コマンドの場合、CPU41は、自身(プリンタ3)の現在の状態(IDLE状態、クリーニング中および印刷中等)を判別し(状態判別手段)、当該状態に対応した優先度付けテーブル61(共通優先度付けテーブル62または個別優先度付けテーブル63)を参照する。そして、現在実行中の鳴動動作の優先順位72が即時鳴動制御コマンドによる鳴動動作の優先順位72よりも高ければ、現在実行中の鳴動動作終了後に即時鳴動制御コマンドによる鳴動動作を開始する。一方、現在実行中の鳴動動作の優先順位72が即時鳴動制御コマンドによる鳴動動作の優先順位72よりも低ければ(同じ優先順位72も含む)、現在実行中の鳴動動作を停止し、即時鳴動制御コマンドによる鳴動動作を開始する。また、現在実行中の鳴動動作がない場合は、即時に鳴動動作を開始する。   Here, the operation of the printer 3 when receiving the ring control command from the host computer 2 will be described. The CPU 41 receives a ring control command from the host computer 2 via the communication interface 44. In this case, the CPU 41 analyzes the ring control command (command analysis means) and determines whether or not the ring control command is an immediate ring control command. In the case of an immediate ringing control command, the CPU 41 determines the current state (IDLE state, cleaning, printing, etc.) of itself (printer 3) (state determination unit), and prioritization table 61 corresponding to the state (common) Refer to the prioritization table 62 or the individual prioritization table 63). Then, if the priority 72 of the ringing operation currently being executed is higher than the priority 72 of the ringing operation by the immediate ringing control command, the ringing operation by the immediate ringing control command is started after the ringing operation currently being executed. On the other hand, if the priority 72 of the ringing operation currently being executed is lower than the priority 72 of the ringing operation by the immediate ringing control command (including the same priority 72), the ringing operation currently being executed is stopped and the immediate ringing control is performed. Starts ringing by command. If there is no ringing operation currently being executed, the ringing operation is started immediately.

即時鳴動制御コマンド以外の鳴動制御コマンドを受信した場合、当該鳴動制御コマンドに含まれる印刷ジョブIDが、印刷ジョブID記憶領域52に記録されている現在印刷処理中の印刷ジョブの印刷ジョブIDと一致するか否かを判別する。現在開始されている印刷ジョブの印刷ジョブIDと一致する場合、CPU41は、当該鳴動制御コマンドに含まれる鳴動タイミングおよび鳴動パターンに基づいて、ブザー46の鳴動を制御する。   When a ring control command other than the immediate ring control command is received, the print job ID included in the ring control command matches the print job ID of the print job currently being printed recorded in the print job ID storage area 52. It is determined whether or not to do so. If the print job ID matches the print job ID of the currently started print job, the CPU 41 controls the buzzer 46 to ring based on the ring timing and ring pattern included in the ring control command.

具体的には、当該鳴動タイミングが印刷ジョブの実行開始前に設定されている場合(印刷前鳴動制御コマンド)、CPU41は、上述と同様に、自身(プリンタ3)の現在の状態を判別すると共に、当該状態に対応した優先度付けテーブル61を参照し、当該優先度付けテーブル61に設定された優先順位72に基づいて鳴動動作を開始する。また、当該鳴動タイミングが印刷ジョブの実行完了後に設定されている場合(印刷後鳴動制御コマンド)、CPU41は、当該印刷後鳴動制御コマンドを第2コマンド記憶領域53bに記録する。この場合、鳴動動作の可否がまだ判別されないため、優先度付けテーブル61の参照などの処理は実施されない。   Specifically, when the ringing timing is set before the start of execution of the print job (pre-printing ringing control command), the CPU 41 determines the current state of itself (printer 3) as described above. Then, referring to the prioritization table 61 corresponding to the state, the ringing operation is started based on the priority order 72 set in the prioritization table 61. When the ringing timing is set after execution of the print job is completed (post-printing ringing control command), the CPU 41 records the post-printing ringing control command in the second command storage area 53b. In this case, since it is not yet determined whether or not the ringing operation is possible, processing such as referring to the prioritization table 61 is not performed.

一方、現在開始されている印刷ジョブの印刷ジョブIDと一致しない場合(現在開始されている印刷ジョブが存在しない場合も含む)、CPU41は、この鳴動制御コマンドに含まれる印刷ジョブIDがジョブ履歴記憶領域51に記録されているか否かを判別し、判別結果に基づいてブザー46の鳴動を制御する。具体的には、当該印刷ジョブIDジョブが履歴記憶領域51に記録されていない場合、CPU41は、当該鳴動制御コマンドに含まれる鳴動タイミングに基づいて、鳴動制御コマンドを記憶する。つまり、当該鳴動制御コマンドが印刷前鳴動制御コマンドであれば第1コマンド記憶領域53aに記録し、印刷後鳴動制御コマンドであれば第2コマンド記憶領域53bに記録する。一方、当該印刷ジョブIDがジョブ履歴記憶領域51に印刷処理完了済みとして記録されている場合、CPU41は、上述と同様に、自身(プリンタ3)の現在の状態を判別すると共に、当該状態に対応した優先度付けテーブル61を参照し、当該優先度付けテーブル61に設定された優先順位72に基づいて鳴動動作を開始する。   On the other hand, if the print job ID does not match the print job ID of the currently started print job (including the case where no print job is currently started), the CPU 41 stores the print job ID included in the ring control command in the job history. It is determined whether or not it is recorded in the area 51, and the sounding of the buzzer 46 is controlled based on the determination result. Specifically, when the print job ID job is not recorded in the history storage area 51, the CPU 41 stores the ring control command based on the ring timing included in the ring control command. That is, if the ringing control command is a pre-printing ringing control command, it is recorded in the first command storage area 53a, and if it is a post-printing ringing control command, it is recorded in the second command storage area 53b. On the other hand, when the print job ID is recorded in the job history storage area 51 as having been completed, the CPU 41 determines the current state of itself (printer 3) and responds to the state as described above. Referring to the prioritization table 61, the ringing operation is started based on the priority order 72 set in the prioritization table 61.

また、CPU41は、通信インターフェース44を介してホストコンピュータ2から印刷ジョブを受信する。CPU41は、受信した印刷ジョブの印刷制御コマンドに基づいて処理を実行する。具体的には、まず、CPU41は、JobStartコマンドを解析することで当該印刷ジョブの処理を開始し、続いてJobNameコマンドを解析する(コマンド解析手段)。このJobNameコマンドには当該印刷ジョブの印刷ジョブIDがパラメータとしてセットされており、これにより、CPU41は、当該印刷ジョブの印刷ジョブIDを取得する。CPU41は、このJobNameコマンドの解析に伴い、当該印刷ジョブが開始されたことを検出すると共に、当該印刷ジョブIDを印刷ジョブID記憶領域52およびジョブ履歴記憶領域51に印刷実行開始のステータスで記録する。この検出をトリガとして、CPU41は、第1コマンド記憶領域53aに当該印刷ジョブの印刷ジョブIDと同一の印刷ジョブIDを含む鳴動制御コマンド(印刷前鳴動制御コマンド)が存在するか否かを判別する。該当する印刷前鳴動制御コマンドが存在する場合、CPU41は、自身(プリンタ3)の現在の状態を判別すると共に、当該状態に対応した優先度付けテーブル61を参照し、当該優先度付けテーブル61に設定された優先順位72に基づいて鳴動動作を開始する。また、鳴動動作終了後、CPU41は、第1コマンド記憶領域53aに記憶されている印刷前鳴動制御コマンドをクリアする。一方、該当する印刷前鳴動制御コマンドが存在しない場合は、CPU41は、鳴動動作をすることなく、下記に示す印刷処理を開始する。   Further, the CPU 41 receives a print job from the host computer 2 via the communication interface 44. The CPU 41 executes processing based on the print control command of the received print job. Specifically, first, the CPU 41 starts processing the print job by analyzing the JobStart command, and then analyzes the JobName command (command analysis means). In this JobName command, the print job ID of the print job is set as a parameter, whereby the CPU 41 acquires the print job ID of the print job. The CPU 41 detects the start of the print job in accordance with the analysis of the JobName command, and records the print job ID in the print job ID storage area 52 and the job history storage area 51 in a print execution start status. . Using this detection as a trigger, the CPU 41 determines whether or not a ringing control command (pre-printing ringing control command) including the same print job ID as the print job ID of the print job exists in the first command storage area 53a. . When there is a corresponding pre-printing ringing control command, the CPU 41 determines the current state of itself (printer 3), refers to the prioritization table 61 corresponding to the state, and stores the prioritization table 61 in the prioritization table 61. The ringing operation is started based on the set priority order 72. After the ringing operation is completed, the CPU 41 clears the pre-printing ringing control command stored in the first command storage area 53a. On the other hand, if there is no corresponding pre-printing ringing control command, the CPU 41 starts the printing process shown below without performing the ringing operation.

次に、CPU41は、JobPrintコマンドを解析し、印刷データの印刷を開始する。この場合、CPU41は、印刷制御部45に対し、当該印刷データに基づく印刷指示を出す。印刷指示を受けた印刷制御部45は、当該印刷データに基づいて、用紙搬送機構47を介してロール紙を搬送しつつ、印刷ヘッド48を駆動してロール紙への印刷を実行し、用紙排出口15からクーポンを発券する。その後、CPU41は、印刷ジョブ(印刷制御コマンド)に含まれるJobEndコマンドを解析(処理)し、当該コマンドの解析が終了することで当該印刷ジョブに係る全ての処理が完了したことを検出する。   Next, the CPU 41 analyzes the JobPrint command and starts printing the print data. In this case, the CPU 41 issues a print instruction based on the print data to the print control unit 45. Upon receiving the print instruction, the print control unit 45 drives the print head 48 to execute printing on the roll paper while transporting the roll paper via the paper transport mechanism 47 based on the print data, and discharges the paper. A coupon is issued from the exit 15. Thereafter, the CPU 41 analyzes (processes) the JobEnd command included in the print job (print control command), and detects that all the processes related to the print job are completed by completing the analysis of the command.

この検出結果をトリガとして、CPU41は、第2コマンド記憶領域53bに当該印刷ジョブの印刷ジョブIDと同一の印刷ジョブIDを含む鳴動制御コマンド(印刷後鳴動制御コマンド)が存在するか否かを判別する。該当する印刷後鳴動制御コマンドが存在する場合、CPU41は、自身(プリンタ3)の現在の状態を判別すると共に、当該状態に対応した優先度付けテーブル61を参照し、当該優先度付けテーブル61に設定された優先順位72に基づいて鳴動動作を開始すると共に、ジョブ履歴記憶領域51を更新して当該印刷ジョブのステータスを印刷完了にする。また、鳴動動作終了後、CPU41は、コマンド記憶領域53に記憶されている印刷後鳴動制御コマンドをクリアする。一方、該当する印刷後鳴動制御コマンドが存在しない場合は、ジョブ履歴記憶領域51を更新し、当該印刷ジョブのステータスを印刷完了にする。   Using this detection result as a trigger, the CPU 41 determines whether or not a ringing control command (post-printing ringing control command) including the same print job ID as the print job ID of the print job exists in the second command storage area 53b. To do. If there is a corresponding post-printing ringing control command, the CPU 41 determines the current state of itself (printer 3) and refers to the prioritization table 61 corresponding to the state, in the prioritization table 61. The ringing operation is started based on the set priority order 72, and the job history storage area 51 is updated to make the status of the print job complete printing. Further, after the ringing operation is finished, the CPU 41 clears the post-printing ringing control command stored in the command storage area 53. On the other hand, if there is no corresponding post-printing ringing control command, the job history storage area 51 is updated, and the status of the print job is set to print completion.

また、CPU41は、自身(プリンタ3)の所定の内部変化を検出した場合(内部変化検知手段)、これを鳴動要因71とする鳴動動作を実行する。この場合も、上述と同様に、現在のプリンタ3の状態を判別し、その判別した状態に対応する優先度付けテーブル61(共通優先度付けテーブル62または個別優先度付けテーブル63)を参照する。そして、当該優先度付けテーブル61に設定された優先順位72に基づいて鳴動動作を開始する。   Further, when the CPU 41 detects a predetermined internal change of itself (the printer 3) (internal change detecting means), the CPU 41 executes a ringing operation using this as a ringing factor 71. In this case as well, the current state of the printer 3 is determined, and the prioritization table 61 (common prioritization table 62 or individual prioritization table 63) corresponding to the determined state is referred to. Then, the ringing operation is started based on the priority order 72 set in the prioritization table 61.

ここで、図4を参照し、優先度付けテーブル61(共通優先度付けテーブル62および個別優先度付けテーブル63)に設定された優先順位72の変更方法について説明する。図4(a)に示すように、まず、ホストコンピュータ2は、プリンタ3に対して変更対象となる優先度付けテーブル61の現在の内容を確認するためのテーブル確認要求を送信する(S001)。プリンタ3は、テーブル確認要求を受信し(S002)、要求された優先度付けテーブル61の現在の設定内容をホストコンピュータ2に送信する(S003)。そして、ホストコンピュータ2は、変更対象となる現在の優先度付けテーブル61を受信する(S004,図4(b)のD1参照)。なお、D1において、鳴動要因71の先頭に付随の番号は優先順位72であり、括弧内の番号は当該鳴動要因71の識別番号73である。   Here, with reference to FIG. 4, a method of changing the priority order 72 set in the prioritization table 61 (the common prioritization table 62 and the individual prioritization table 63) will be described. As shown in FIG. 4A, first, the host computer 2 transmits a table confirmation request for confirming the current contents of the prioritization table 61 to be changed to the printer 3 (S001). The printer 3 receives the table confirmation request (S002), and transmits the current setting contents of the requested priority assignment table 61 to the host computer 2 (S003). Then, the host computer 2 receives the current prioritization table 61 to be changed (S004, see D1 in FIG. 4B). In D1, the number associated with the head of the ringing factor 71 is the priority order 72, and the number in parentheses is the identification number 73 of the ringing factor 71.

次に、ホストコンピュータ2は、プリンタ3に対して対象となる優先度付けテーブル61に設定された優先順位72を変更するための優先順位変更要求を送信する(S005)。この場合、ホストコンピュータ2は、対象となる優先度付けテーブル61、変更する鳴動要因71を示す識別番号73(ここでは、「No.1」)および変更後の優先順位72(ここでは、「3」)を指定して優先順位変更要求を送信する。プリンタ3は、優先順位変更要求を受信し(S006)、その要求に従って、対象となる鳴動要因71(「即時(No.1)」)の優先順位72を変更する(S007,テーブル設定変更手段)。そして、プリンタ3は、ホストコンピュータ2に対して変更完了通知を送信し(S008)、ホストコンピュータ2はこれを受信することで、優先順位72の変更が正常に行われたと判別する(S009)。   Next, the host computer 2 transmits a priority order change request for changing the priority order 72 set in the target priority assignment table 61 to the printer 3 (S005). In this case, the host computer 2 determines the target prioritization table 61, the identification number 73 (“No. 1” here) indicating the ringing factor 71 to be changed, and the priority order 72 after change (here “3”). )) And send a priority change request. The printer 3 receives the priority order change request (S006), and changes the priority order 72 of the target ringing factor 71 ("immediate (No. 1)") in accordance with the request (S007, table setting change means). . Then, the printer 3 transmits a change completion notification to the host computer 2 (S008), and the host computer 2 receives this, thereby determining that the priority order 72 has been changed normally (S009).

次に、ホストコンピュータ2は、変更された優先度付けテーブル61を確認するために、プリンタ3に対してテーブル確認要求を送信する(S010)。プリンタ3は、テーブル確認要求を受信し(S011)、要求された優先度付けテーブル61の現在の設定内容(変更後の設定内容)をホストコンピュータ2に送信する(S012)。そして、ホストコンピュータ2は、対象となる(変更後の)優先度付けテーブル61を受信する(S013,図4(b)のD2参照)。これにより、優先度付けテーブル61は、D1からD2の状態に変更される(鳴動要因71の「即時」の優先順位72が「1」から「3」に変更される)。このように、優先度付けテーブル61に設定された優先順位72の変更が可能であるため、ユーザのニーズに応じた優先順位72に設定することができる。   Next, the host computer 2 transmits a table confirmation request to the printer 3 in order to confirm the changed prioritization table 61 (S010). The printer 3 receives the table confirmation request (S011), and transmits the current setting contents (changed setting contents) of the requested priority assignment table 61 to the host computer 2 (S012). Then, the host computer 2 receives the target (after change) prioritization table 61 (S013, see D2 in FIG. 4B). As a result, the prioritization table 61 is changed from D1 to D2 (the “immediate” priority order 72 of the ringing factor 71 is changed from “1” to “3”). Thus, since the priority order 72 set in the prioritization table 61 can be changed, the priority order 72 according to the user's needs can be set.

次に、図5を参照し、プリンタ3の各状態に対して共通優先度付けテーブル62および個別優先度付けテーブル63のうち、いずれを適用するかを設定する手順について説明する。図5(a)に示すように、まず、ホストコンピュータ2は、プリンタ3の各状態と優先度付けテーブル61との対応がどのように設定されているかを確認するために、状態設定確認要求をプリンタ3に送信する(S021)。プリンタ3は、状態設定確認要求を受信し(S022)、ホストコンピュータ2に対して現在の設定内容を送信する(S023)。そして、ホストコンピュータ2は、送信された設定内容を受信する(S024,図5(b)のD3参照)。なお、D3において、括弧内の番号はプリンタ3の状態を識別するための識別番号74であり、ON/OFF記号は、どの優先度付けテーブル61(62、63)が設定されているかを判別するフラグ75であり、ONの場合は、その状態に対応した個別優先度付けテーブル63が設定されていることを示し、OFFの場合は共通優先度付けテーブル62が設定されていることを示す。   Next, a procedure for setting which of the common prioritization table 62 and the individual prioritization table 63 is applied to each state of the printer 3 will be described with reference to FIG. As shown in FIG. 5A, first, the host computer 2 issues a status setting confirmation request in order to confirm how the correspondence between each status of the printer 3 and the prioritization table 61 is set. The data is transmitted to the printer 3 (S021). The printer 3 receives the status setting confirmation request (S022), and transmits the current setting contents to the host computer 2 (S023). Then, the host computer 2 receives the transmitted setting contents (S024, see D3 in FIG. 5B). In D3, the number in parentheses is an identification number 74 for identifying the state of the printer 3, and the ON / OFF symbol determines which priority setting table 61 (62, 63) is set. When the flag 75 is ON, the individual prioritization table 63 corresponding to the state is set. When the flag 75 is OFF, the common prioritization table 62 is set.

次に、ホストコンピュータ2は、プリンタ3に対して、プリンタ3の状態に対する優先度付けテーブル61を変更するためのテーブル設定要求を送信する(S025)。この場合、ホストコンピュータ2は、変更対象となるプリンタ3の状態を示す識別番号74(ここでは、「No.1」)および、共通優先度付けテーブル62または個別優先度付けテーブル63のいずれかを設定するフラグ75(ここでは、「ON(個別優先度付けテーブル63)」)を送信する。プリンタ3は、テーブル設定要求を受信し(S026)、その要求に従って対象となるプリンタ3の状態の時は(「IDLE(No.1)」状態の時)、個別優先度付けテーブル63を参照するように設定する(S027,テーブル設定手段)。そして、プリンタ3は、ホストコンピュータ2に対して設定完了通知を送信し(S028)、ホストコンピュータ2は、これを受信することで、プリンタ3の状態に対応する優先度付けテーブル61の設定変更が正常に行われたと判別する(S029)。   Next, the host computer 2 transmits a table setting request for changing the prioritization table 61 for the state of the printer 3 to the printer 3 (S025). In this case, the host computer 2 displays the identification number 74 (in this case, “No. 1”) indicating the status of the printer 3 to be changed, and either the common prioritization table 62 or the individual prioritization table 63. A flag 75 to be set (here, “ON (individual priority assignment table 63)”) is transmitted. The printer 3 receives the table setting request (S026), and refers to the individual prioritization table 63 when the target printer 3 is in the state (in the “IDLE (No. 1)” state) according to the request. (S027, table setting means). Then, the printer 3 transmits a setting completion notification to the host computer 2 (S028), and the host computer 2 receives the notification to change the setting of the prioritization table 61 corresponding to the state of the printer 3. It is determined that the operation has been performed normally (S029).

次に、ホストコンピュータ2は、変更後の設定内容を確認するために、プリンタ3に対して状態設定確認要求を送信する(S030)。プリンタ3は、状態設定確認要求を受信し(S031)、ホストコンピュータ2に対して変更後の設定内容を送信する(S032)。そして、ホストコンピュータ2は、変更後の設定内容を受信する(S033,図5(b)のD4参照)。これにより、プリンタ3の状態と優先度付けテーブル61との対応がD3からD4の状態に変更される(「IDLE」状態時に使用するテーブルが、共通優先度付けテーブル62から個別優先度付けテーブル63に変更される)。このように、個別優先度付けテーブル63を用いることにより、その状態に特化した優先順位72で鳴動動作を行うことができる。また、プリンタ3の状態毎に、共通優先度付けテーブル62および各状態に対応して設けられた個別優先度付けテーブル63の、いずれを使用するかを設定できるため、例えば、プリンタ3のほとんどの状態に対しては同一の優先度付けで良く、それ以外の一部の状態に対しては異なる優先度付けを行いたい等のユーザのニーズに柔軟に対応することができる。   Next, the host computer 2 transmits a status setting confirmation request to the printer 3 in order to confirm the changed setting content (S030). The printer 3 receives the status setting confirmation request (S031), and transmits the changed setting contents to the host computer 2 (S032). Then, the host computer 2 receives the changed setting contents (see S033, D4 in FIG. 5B). As a result, the correspondence between the status of the printer 3 and the prioritization table 61 is changed from D3 to D4 (the table used in the “IDLE” state is changed from the common prioritization table 62 to the individual prioritization table 63. To be changed). In this way, by using the individual prioritization table 63, it is possible to perform the ringing operation with the priority order 72 specialized for the state. Further, for each state of the printer 3, which of the common prioritization table 62 and the individual prioritization table 63 provided corresponding to each state can be set, for example, most of the printers 3 The same prioritization may be applied to the states, and it is possible to flexibly cope with the user's needs such as wanting to assign different priorities to some other states.

次に、図6および図7を参照して、プリンタ3が印刷ジョブを受信した場合の動作手順について説明する。まず、プリンタ3は、ホストコンピュータ2から送信された印刷ジョブを受信する(S041)。そして、プリンタ3は、当該印刷ジョブに基づいて印刷処理を開始する。この場合、プリンタ3は、当該印刷ジョブに含まれるJobNameコマンド(または、JobStartコマンド)を受信(解析)することで、印刷ジョブの開始を検出する(S042,コマンド解析手段)。この時、プリンタ3は、印刷ジョブに含まれる印刷ジョブIDを取得し、ジョブ履歴記憶領域51および印刷ジョブID記憶領域52に当該印刷ジョブIDおよびホスト情報を印刷処理開始のステータスで記録(登録)する(S043)。これと共に、当該印刷ジョブの印刷ジョブIDと同一の印刷ジョブIDを含む鳴動制御コマンドが、第1コマンド記憶領域53aに存在するか否かを判別する(S044)。   Next, an operation procedure when the printer 3 receives a print job will be described with reference to FIGS. First, the printer 3 receives a print job transmitted from the host computer 2 (S041). Then, the printer 3 starts print processing based on the print job. In this case, the printer 3 detects the start of the print job by receiving (analyzing) the JobName command (or JobStart command) included in the print job (S042, command analysis means). At this time, the printer 3 acquires the print job ID included in the print job, and records (registers) the print job ID and host information in the job history storage area 51 and the print job ID storage area 52 as the print processing start status. (S043). At the same time, it is determined whether or not a ringing control command including the same print job ID as the print job ID of the print job exists in the first command storage area 53a (S044).

対象となる鳴動制御コマンドが第1コマンド記憶領域53aに存在する場合(S045;Yes)、プリンタ3は、自身の現在の状態を判別し(S046,状態判別手段)、当該状態に対応した優先度付けテーブル61を参照する(S047)。現在実行中の鳴動動作の優先順位72が対象動作の優先順位72より高い場合(S048)、現在実行中の鳴動動作が終了するまで待機し、現在実行中の鳴動動作が終了した後に、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S049)。一方、現在実行中の鳴動動作の優先順位72が対象動作の優先順位72と同じ、または低い場合(S050)、現在実行中の鳴動動作を停止し、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S051)。また、現在実行中の鳴動動作が存在しない場合(S052)、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S053)。   If the target ring control command exists in the first command storage area 53a (S045; Yes), the printer 3 determines its current state (S046, state determination unit), and the priority corresponding to the state. The attached table 61 is referred to (S047). When the priority order 72 of the currently executing sounding operation is higher than the priority order 72 of the target action (S048), the process waits until the currently executing sounding action ends, and after the currently executing sounding action ends, The ringing operation is started based on the ringing pattern of the control command (S049). On the other hand, when the priority order 72 of the ringing operation currently being executed is the same as or lower than the priority order 72 of the target action (S050), the ringing operation currently being executed is stopped and the ringing is performed based on the ringing pattern of the ringing control command. The operation is started (S051). If there is no ringing operation currently being executed (S052), the ringing operation is started based on the ringing pattern of the ringing control command (S053).

ブザー46の鳴動動作終了後、プリンタ3は、第1コマンド記憶領域53aに記録された当該鳴動制御コマンドをクリアする(S054)。そして、プリンタ3は、引き続き印刷処理を続行し、当該印刷ジョブに基づく一連の印刷処理が完了した後、ジョブ履歴記憶領域51の当該印刷ジョブIDに対するステータスを印刷処理完了に更新する(S055)。   After the sounding operation of the buzzer 46 is completed, the printer 3 clears the sounding control command recorded in the first command storage area 53a (S054). Then, the printer 3 continues the printing process, and after a series of printing processes based on the print job is completed, the status for the print job ID in the job history storage area 51 is updated to the completion of the printing process (S055).

一方、対象となる鳴動制御コマンドが第1コマンド記憶領域53aに存在しない場合(S045;No)、プリンタ3は、引き続き印刷処理を続行し、当該印刷ジョブに基づく一連の印刷処理が完了したことを検出する(S056)。この検出をトリガとして、当該印刷ジョブの印刷ジョブIDと同一の印刷ジョブIDを含む鳴動制御コマンドが、第2コマンド記憶領域53bに存在するか否かを判別する(S057)。   On the other hand, if the target ring control command does not exist in the first command storage area 53a (S045; No), the printer 3 continues the printing process and indicates that a series of printing processes based on the print job has been completed. It is detected (S056). Using this detection as a trigger, it is determined whether or not a ringing control command including the same print job ID as the print job ID of the print job exists in the second command storage area 53b (S057).

対象となる鳴動制御コマンドが第2コマンド記憶領域53bに存在する場合(S058;Yes)、プリンタ3は、自身の現在の状態を判別し(S059)、当該状態に対応した優先度付けテーブル61を参照する(S060)。現在実行中の鳴動動作の優先順位72が対象動作の優先順位72より高い場合(S061)、現在実行中の鳴動動作が終了するまで待機し、現在実行中の鳴動動作が終了した後に、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S062)。一方、現在実行中の鳴動動作の優先順位72が対象動作の優先順位72と同じ、または低い場合(S063)、現在実行中の鳴動動作を停止し、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S064)。また、現在実行中の鳴動動作が存在しない場合(S065)、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S066)。   When the target ring control command exists in the second command storage area 53b (S058; Yes), the printer 3 determines its current state (S059), and stores the prioritization table 61 corresponding to the state. Reference is made (S060). If the priority 72 of the currently executing ringing operation is higher than the priority 72 of the target operation (S061), the process waits until the currently executing ringing operation ends, and after the currently executing ringing operation ends, the ringing The ringing operation is started based on the ringing pattern of the control command (S062). On the other hand, when the priority order 72 of the ringing operation currently being executed is the same as or lower than the priority order 72 of the target action (S063), the ringing operation currently being executed is stopped and the ringing is performed based on the ringing pattern of the ringing control command. The operation is started (S064). If there is no ringing operation currently being executed (S065), the ringing operation is started based on the ringing pattern of the ringing control command (S066).

ブザー46の鳴動動作終了後、プリンタ3は、第2コマンド記憶領域53bに記録された鳴動制御コマンドをクリアする(S067)。そして、プリンタ3は、ジョブ履歴記憶領域51の当該印刷ジョブIDに対するステータスを印刷処理完了に更新する(S055)。一方、対象となる鳴動制御コマンドが第2コマンド記憶領域53bに存在しない場合(S058;No)、プリンタ3は、ジョブ履歴記憶領域51の当該印刷ジョブIDに対するステータスを印刷処理完了に更新する(S055)。   After the sounding operation of the buzzer 46 is completed, the printer 3 clears the sounding control command recorded in the second command storage area 53b (S067). Then, the printer 3 updates the status for the print job ID in the job history storage area 51 to the completion of the printing process (S055). On the other hand, when the target ring control command does not exist in the second command storage area 53b (S058; No), the printer 3 updates the status for the print job ID in the job history storage area 51 to the completion of the printing process (S055). ).

次に、図8および図9を参照して、プリンタ3が鳴動制御コマンドを受信した場合の動作手順について説明する。まず、プリンタ3は、ホストコンピュータ2から送信された鳴動制御コマンドを受信する(S071)。次に、プリンタ3は、当該鳴動制御コマンドの鳴動タイミングが、即時に設定されているか、印刷ジョブの実行開始前に設定されているか、印刷ジョブの実行完了後に設定されているかを判別し、その判別結果に基づいて処理を実行する(S072)。鳴動タイミングが即時に設定されている場合(S073)、プリンタ3は、自身の現在の状態を判別し(S074)、当該状態に対応した優先度付けテーブル61を参照する(S075)。現在実行中の鳴動動作の優先順位72が対象動作の優先順位72より高い場合(S076)、現在実行中の鳴動動作が終了するまで待機し、現在実行中の鳴動動作が終了した後に、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S077)。一方、現在実行中の鳴動動作の優先順位72が対象動作の優先順位72と同じ、または低い場合(S078)、現在実行中の鳴動動作を停止し、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S079)。また、現在実行中の鳴動動作が存在しない場合(S080)、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S081)。   Next, an operation procedure when the printer 3 receives a ringing control command will be described with reference to FIGS. First, the printer 3 receives the ring control command transmitted from the host computer 2 (S071). Next, the printer 3 determines whether the ringing timing of the ringing control command is set immediately, before the start of execution of the print job, or after completion of execution of the print job. Processing is executed based on the determination result (S072). If the ringing timing is set immediately (S073), the printer 3 determines its current state (S074), and refers to the prioritization table 61 corresponding to the state (S075). When the priority order 72 of the currently executing sounding operation is higher than the priority order 72 of the target action (S076), the process waits until the currently executing sounding action ends, and after the current sounding action ends, The ringing operation is started based on the ringing pattern of the control command (S077). On the other hand, if the priority order 72 of the ringing operation currently being executed is the same as or lower than the priority order 72 of the target action (S078), the ringing operation currently being executed is stopped and the ringing is performed based on the ringing pattern of the ringing control command. The operation is started (S079). If there is no ringing operation currently being executed (S080), the ringing operation is started based on the ringing pattern of the ringing control command (S081).

鳴動タイミングが印刷ジョブの実行の開始前に設定されている場合(S082)、プリンタ3は、受信した鳴動制御コマンドに含まれる印刷ジョブIDと同一の印刷ジョブIDが、印刷ジョブID記憶領域52に記録されているか否かを判別する(S083)。つまり、鳴動制御コマンドに含まれる印刷ジョブIDが付与された印刷ジョブが、印刷実行中であるか否かを判別する。   If the ringing timing is set before the start of execution of the print job (S082), the printer 3 has the same print job ID as the print job ID included in the received ringing control command in the print job ID storage area 52. It is determined whether or not it is recorded (S083). That is, it is determined whether or not the print job to which the print job ID included in the ringing control command is assigned is being printed.

印刷ジョブID記憶領域52に対象となる印刷ジョブIDが存在する場合(S084;Yes)、プリンタ3は、自身の現在の状態を判別し(S074)、当該状態に対応した優先度付けテーブル61を参照する(S075)。現在実行中の鳴動動作の優先順位72が対象動作の優先順位72より高い場合(S076)、現在実行中の鳴動動作が終了するまで待機し、現在実行中の鳴動動作が終了した後に、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S077)。一方、現在実行中の鳴動動作の優先順位72が対象動作の優先順位72と同じ、または低い場合(S078)、現在実行中の鳴動動作を停止し、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S079)。また、現在実行中の鳴動動作が存在しない場合(S080)、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S081)。   When the target print job ID exists in the print job ID storage area 52 (S084; Yes), the printer 3 determines its current state (S074), and the prioritization table 61 corresponding to the state is displayed. Reference is made (S075). When the priority order 72 of the currently executing sounding operation is higher than the priority order 72 of the target action (S076), the process waits until the currently executing sounding action ends, and after the current sounding action ends, The ringing operation is started based on the ringing pattern of the control command (S077). On the other hand, if the priority order 72 of the ringing operation currently being executed is the same as or lower than the priority order 72 of the target action (S078), the ringing operation currently being executed is stopped and the ringing is performed based on the ringing pattern of the ringing control command. The operation is started (S079). If there is no ringing operation currently being executed (S080), the ringing operation is started based on the ringing pattern of the ringing control command (S081).

一方、印刷ジョブID記憶領域52に対象となる印刷ジョブIDが存在しない場合(S084;No)、プリンタ3は、ジョブ履歴記憶領域51を検索し、対象となる印刷ジョブIDが当該ジョブ履歴記憶領域51に記録されているか否かを判別する(S085)。ジョブ履歴記憶領域51に対象となる印刷ジョブIDが存在しない場合(S086;No)、プリンタ3は、鳴動制御コマンドを第1コマンド記憶領域53aに記録する(S087)。   On the other hand, when the target print job ID does not exist in the print job ID storage area 52 (S084; No), the printer 3 searches the job history storage area 51, and the target print job ID is the job history storage area. It is determined whether or not it is recorded in 51 (S085). If the target print job ID does not exist in the job history storage area 51 (S086; No), the printer 3 records the ring control command in the first command storage area 53a (S087).

一方、ジョブ履歴記憶領域51に対象となる印刷ジョブIDが存在する場合(S086;Yes)、プリンタ3は、ジョブ履歴記憶領域51に記録されている印刷ジョブIDのステータスが「印刷処理完了済み」であるか否かを判別する。対象となる印刷ジョブIDおよびホスト情報のステータスが「印刷処理完了済み」以外の場合(S088;No)、鳴動制御コマンドを第1コマンド記憶領域53aに記録する(S087)。一方、対象となる印刷ジョブIDのステータスが「印刷処理完了済み」の場合(S088;Yes)、プリンタ3は、自身の現在の状態を判別し(S074)、当該状態に対応した優先度付けテーブル61を参照する(S075)。現在実行中の鳴動動作の優先順位72が対象動作の優先順位72より高い場合(S076)、現在実行中の鳴動動作が終了するまで待機し、現在実行中の鳴動動作が終了した後に、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S077)。一方、現在実行中の鳴動動作の優先順位72が対象動作の優先順位72と同じ、または低い場合(S078)、現在実行中の鳴動動作を停止し、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S079)。また、現在実行中の鳴動動作が存在しない場合(S080)、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S081)。   On the other hand, if the target print job ID is present in the job history storage area 51 (S086; Yes), the printer 3 has the status of the print job ID recorded in the job history storage area 51 “print processing completed”. It is determined whether or not. When the status of the target print job ID and host information is other than “print processing completed” (S088; No), the ring control command is recorded in the first command storage area 53a (S087). On the other hand, when the status of the target print job ID is “print processing completed” (S088; Yes), the printer 3 determines its current state (S074), and the prioritization table corresponding to the state. 61 is referred to (S075). When the priority order 72 of the currently executing sounding operation is higher than the priority order 72 of the target action (S076), the process waits until the currently executing sounding action ends, and after the current sounding action ends, The ringing operation is started based on the ringing pattern of the control command (S077). On the other hand, if the priority order 72 of the ringing operation currently being executed is the same as or lower than the priority order 72 of the target action (S078), the ringing operation currently being executed is stopped and the ringing is performed based on the ringing pattern of the ringing control command. The operation is started (S079). If there is no ringing operation currently being executed (S080), the ringing operation is started based on the ringing pattern of the ringing control command (S081).

また、鳴動タイミングが印刷ジョブの実行の完了後に設定されている場合(S089)、プリンタ3は、受信した鳴動制御コマンドに含まれる印刷ジョブIDと同一の印刷ジョブIDが、印刷ジョブID記憶領域52に記録されているか否かを判別する(S090)。つまり、鳴動制御コマンドに含まれる印刷ジョブIDが付与された印刷ジョブが、印刷処理中であるか否かを判別する。印刷ジョブID記憶領域52に対象となる印刷ジョブIDが存在する場合(S091;Yes)、プリンタ3は、鳴動制御コマンドを第2コマンド記憶領域53bに記録する(S092)。一方、印刷ジョブID記憶領域52に対象となる印刷ジョブIDが存在しない場合(S091;No)、プリンタ3は、ジョブ履歴記憶領域51を検索し、対象となる印刷ジョブIDが当該ジョブ履歴記憶領域51に記録されているか否かを判別する(S093)。   If the ringing timing is set after the execution of the print job is completed (S089), the printer 3 has the same print job ID as the print job ID included in the received ringing control command. Is recorded (S090). That is, it is determined whether or not the print job to which the print job ID included in the ringing control command is assigned is being printed. If the target print job ID exists in the print job ID storage area 52 (S091; Yes), the printer 3 records the ring control command in the second command storage area 53b (S092). On the other hand, when the target print job ID does not exist in the print job ID storage area 52 (S091; No), the printer 3 searches the job history storage area 51, and the target print job ID is the job history storage area. It is determined whether or not it is recorded in 51 (S093).

ジョブ履歴記憶領域51に対象となる印刷ジョブIDが存在しない場合(S094;No)、プリンタ3は、鳴動制御コマンドを第2コマンド記憶領域53bに記録する(S092)。一方、ジョブ履歴記憶領域51に対象となる印刷ジョブIDが存在する場合(S094;Yes)、プリンタ3は、ジョブ履歴記憶領域51に記録されている印刷ジョブIDのステータスが「印刷処理完了済み」であるか否かを判別する。対象となる印刷ジョブIDのステータスが「印刷処理完了済み」以外の場合(S095;No)、鳴動制御コマンドを第2コマンド記憶領域53bに記録する(S092)。一方、対象となる印刷ジョブIDのステータスが「印刷処理完了済み」の場合(S095;Yes)、プリンタ3は、自身の現在の状態を判別し(S096)、当該状態に対応した優先度付けテーブル61を参照する(S097)。現在実行中の鳴動動作の優先順位72が対象動作の優先順位72より高い場合(S098)、現在実行中の鳴動動作が終了するまで待機し、現在実行中の鳴動動作が終了した後に、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S099)。一方、現在実行中の鳴動動作の優先順位72が対象動作の優先順位72と同じ、または低い場合(S100)、現在実行中の鳴動動作を停止し、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S101)。また、現在実行中の鳴動動作が存在しない場合(S102)、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S103)。   When the target print job ID does not exist in the job history storage area 51 (S094; No), the printer 3 records the ring control command in the second command storage area 53b (S092). On the other hand, when the target print job ID exists in the job history storage area 51 (S094; Yes), the printer 3 has the status of the print job ID recorded in the job history storage area 51 “print processing completed”. It is determined whether or not. When the status of the target print job ID is other than “print processing completed” (S095; No), the ring control command is recorded in the second command storage area 53b (S092). On the other hand, when the status of the target print job ID is “print processing completed” (S095; Yes), the printer 3 determines its current state (S096), and the prioritization table corresponding to the state. 61 is referred to (S097). If the priority 72 of the currently executing ringing operation is higher than the priority 72 of the target operation (S098), the process waits until the currently executing ringing operation ends, and after the currently executing ringing operation ends, the ringing The ringing operation is started based on the ringing pattern of the control command (S099). On the other hand, if the priority order 72 of the ringing operation currently being executed is the same as or lower than the priority order 72 of the target action (S100), the ringing operation currently being executed is stopped and the ringing is performed based on the ringing pattern of the ringing control command. The operation is started (S101). If there is no ringing operation currently being executed (S102), the ringing operation is started based on the ringing pattern of the ringing control command (S103).

次に、図10を参照して、プリンタ3が自身の内部変化を検出した場合の動作手順について説明する。なお、内部変化とは、例えば、プリンタ3が、「紙なし」や「インクなし」となるなど、内部エラーの発生による変化を指す。まず、プリンタ3は、所定の内部変化が発生すると、これを検知し(S104,内部変化検知手段)、鳴動要因71が発生したことを検出する(S105,報知要因検出手段)。そして、プリンタ3は、自身の現在の状態を判別し(S106)、当該状態に対応した優先度付けテーブル61を参照する(S107)。現在実行中の鳴動動作の優先順位72が対象動作の優先順位72より高い場合(S108)、現在実行中の鳴動動作が終了するまで待機し、現在実行中の鳴動動作が終了した後に、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S109)。一方、現在実行中の鳴動動作の優先順位72が対象動作の優先順位72と同じ、または低い場合(S110)、現在実行中の鳴動動作を停止し、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S111)。また、現在実行中の鳴動動作が存在しない場合(S112)、当該鳴動制御コマンドの鳴動パターンに基づいて鳴動動作を開始する(S113)。   Next, an operation procedure when the printer 3 detects its own internal change will be described with reference to FIG. The internal change refers to a change due to the occurrence of an internal error, for example, the printer 3 becomes “no paper” or “no ink”. First, when a predetermined internal change occurs, the printer 3 detects this (S104, internal change detection means), and detects that the ringing factor 71 has occurred (S105, notification factor detection means). Then, the printer 3 determines its current state (S106), and refers to the prioritization table 61 corresponding to the state (S107). When the priority order 72 of the currently executing sounding operation is higher than the priority order 72 of the target action (S108), the process waits until the currently executing sounding action ends, and after the current sounding action ends, The ringing operation is started based on the ringing pattern of the control command (S109). On the other hand, when the priority order 72 of the ringing operation currently being executed is the same as or lower than the priority order 72 of the target action (S110), the ringing operation currently being executed is stopped and the ringing is performed based on the ringing pattern of the ringing control command. The operation is started (S111). If there is no ringing operation currently being executed (S112), the ringing operation is started based on the ringing pattern of the ringing control command (S113).

以上のように、本実施形態によれば、何らかの鳴動要因71が発生した場合、鳴動要因71毎に優先順位72が設定された優先度付けテーブル61を参照し、その参照結果に基づいて鳴動動作を実行する。そして、何らかの鳴動要因71(第1鳴動要因)に基づく鳴動動作中に、優先順位72の高い他の鳴動要因71(第2鳴動要因)が検出された場合、第1鳴動要因に基づく鳴動動作を停止し、第2鳴動要因に基づく鳴動動作を実行する。これにより、急を有する鳴動要因71に対する鳴動動作の優先順位72を高く設定することで、当該急を有する鳴動要因71に対する鳴動動作の遅延を防止でき、適切なタイミングで鳴動動作を実行することができる。また、外部からの鳴動要因71およびプリンタ3内部の状態変化による鳴動要因71の両方の鳴動要因71を考慮した優先順位72に基づき鳴動動作を制御することができる。   As described above, according to the present embodiment, when any ringing factor 71 occurs, the prioritization table 61 in which the priority order 72 is set for each ringing factor 71 is referred to, and the ringing operation is performed based on the reference result. Execute. When another ringing factor 71 (second ringing factor) having a higher priority 72 is detected during the ringing operation based on some ringing factor 71 (first ringing factor), the ringing operation based on the first ringing factor is performed. Stop and execute a ringing operation based on the second ringing factor. Thus, by setting a high priority 72 for the ringing action 71 for the sudden ringing factor 71, a delay in the ringing action for the sudden ringing factor 71 can be prevented, and the ringing operation can be executed at an appropriate timing. it can. Further, it is possible to control the ringing operation based on the priority order 72 that takes into consideration both the ringing factor 71 from the outside and the ringing factor 71 due to a change in the internal state of the printer 3.

なお、本実施形態では、ホストコンピュータ2側で鳴動パターンを生成し、この鳴動パターンをプリンタ3に送信することでブザー46の鳴動を実現しているが、これに限らず、プリンタ3側で、予め複数の鳴動パターンを記憶しておき、ホストコンピュータ2からプリンタ3に対して鳴動パターンを指定する情報のみを送信してブザー46を鳴動させるようにしても良い。これにより、鳴動パターンそのものの送信が不要となり、鳴動パターンの送信に係るトラフィックを削減することができる。この場合、この鳴動パターンを記録する記憶手段は、図2に示すフラッシュROM42に相当する。   In the present embodiment, a ringing pattern is generated on the host computer 2 side, and the ringing pattern is transmitted to the printer 3 to realize the ringing of the buzzer 46. However, the present invention is not limited to this. A plurality of ringing patterns may be stored in advance, and only the information specifying the ringing pattern may be transmitted from the host computer 2 to the printer 3 to ring the buzzer 46. Thereby, transmission of the ringing pattern itself becomes unnecessary, and traffic related to transmission of the ringing pattern can be reduced. In this case, the storage means for recording this ringing pattern corresponds to the flash ROM 42 shown in FIG.

また、本実施形態では、所定の印刷ジョブが開始した場合に、ブザー46を鳴動してその開始/完了を報知するようにしているが、これに限らず、全ての印刷ジョブに対して、各印刷ジョブの開始/完了を報知するようにしても良い。   In this embodiment, when a predetermined print job is started, the buzzer 46 is sounded to notify the start / completion, but the present invention is not limited to this. The start / completion of the print job may be notified.

また、本実施形態では、印刷ジョブの実行開始前、あるいは実行完了後のいずれかの時点でブザー46の鳴動するように記載しているが、これは、あくまでも1例であり、実行開始前および実行完了後の両時点でブザー46を鳴動させるようにしても良いし、実行開始前から実行完了後までの間、ブザー46を鳴動させるようにしても良い。   Further, in this embodiment, it is described that the buzzer 46 sounds at any time before the start of execution of the print job or after the completion of the execution. However, this is only an example. The buzzer 46 may be sounded at both time points after the completion of execution, or the buzzer 46 may be sounded between before the execution is started and after the execution is completed.

また、本実施形態では、対象となる印刷物としてクーポンを例に挙げて説明したが、これに限定するものではない。   In the present embodiment, the coupon is described as an example of the printed matter to be a target, but the present invention is not limited to this.

また、上記の例に示した、ホストコンピュータ2およびプリンタ3の機能をプログラムとして提供することも可能である。また、そのプログラムを記憶媒体(図示省略)に格納して提供することも可能である。記録媒体としては、CD−ROM、フラッシュROM、メモリカード(コンパクトフラッシュ(登録商標)、スマートメディア、メモリースティック等)、コンパクトディスク、光磁気ディスク、デジタルバーサタイルディスクおよびフレキシブルディスク等を利用することができる。   It is also possible to provide the functions of the host computer 2 and the printer 3 shown in the above example as programs. It is also possible to provide the program stored in a storage medium (not shown). As the recording medium, a CD-ROM, a flash ROM, a memory card (compact flash (registered trademark), smart media, memory stick, etc.), a compact disk, a magneto-optical disk, a digital versatile disk, a flexible disk, and the like can be used.

また、上述した実施例によらず、プリントシステム1の装置構成や処理工程等について、本発明の要旨を逸脱しない範囲で、適宜変更も可能である。   Further, regardless of the above-described embodiments, the apparatus configuration, processing steps, and the like of the printing system 1 can be appropriately changed without departing from the gist of the present invention.

本実施形態に係るプリントシステムのシステム構成図である。1 is a system configuration diagram of a print system according to the present embodiment. ホストコンピュータおよびプリンタの制御ブロック図である。It is a control block diagram of a host computer and a printer. 優先度付けテーブルを説明する図である。It is a figure explaining a prioritization table. 優先度付けテーブルに設定された優先順位の変更方法について説明するフローチャートである。It is a flowchart explaining the change method of the priority set to the prioritization table. プリンタの状態毎に、どの優先度付けテーブルを適用するかを設定する手順について説明するフローチャートである。10 is a flowchart illustrating a procedure for setting which prioritization table is applied for each printer state. プリンタが印刷ジョブを受信した場合の動作手順について説明するフローチャートである。6 is a flowchart for describing an operation procedure when the printer receives a print job. プリンタが印刷ジョブを受信した場合の動作手順について説明するフローチャートである。6 is a flowchart for describing an operation procedure when the printer receives a print job. プリンタが鳴動制御コマンドを受信した場合の動作手順について説明するフローチャートである。It is a flowchart explaining the operation | movement procedure when a printer receives a ringing control command. プリンタが鳴動制御コマンドを受信した場合の動作手順について説明するフローチャートである。It is a flowchart explaining the operation | movement procedure when a printer receives a ringing control command. プリンタが自身の内部変化を検出した場合の動作手順について説明するフローチャートである。6 is a flowchart illustrating an operation procedure when a printer detects an internal change of the printer.

符号の説明Explanation of symbols

1…プリントシステム 2…ホストコンピュータ 3…プリンタ 46…ブザー 61…優先度付けテーブル 62…共通優先度付けテーブル 63…個別優先度付けテーブル 71…報知要因 72…優先順位   DESCRIPTION OF SYMBOLS 1 ... Print system 2 ... Host computer 3 ... Printer 46 ... Buzzer 61 ... Prioritization table 62 ... Common prioritization table 63 ... Individual prioritization table 71 ... Notification factor 72 ... Priority order

Claims (6)

印刷データに基づいて印刷を行うと共に報知機能を有するプリンタであって、
予め定められた所定の報知要因の発生を検出する報知要因検出手段と、
前記報知要因毎に対応した報知動作の優先順位を設定した優先度付けテーブルと、
前記報知要因検出手段により前記報知要因が検出された場合、前記優先度付けテーブルを参照し、その参照結果に基づいて報知動作を実行する報知手段と、を備え、
前記報知手段は、
任意の報知要因に基づく報知動作中に、当該報知要因よりも優先順位の高い他の報知要因が検出された場合、当該任意の報知要因による報知動作を停止し、前記他の報知要因に基づく報知動作を実行することを特徴とするプリンタ。
A printer that performs printing based on print data and has a notification function,
Notification factor detection means for detecting the occurrence of a predetermined notification factor;
A prioritization table in which priority of notification operation corresponding to each notification factor is set;
In the case where the notification factor is detected by the notification factor detection unit, the priority factor table is referred to, and a notification unit that performs a notification operation based on the reference result is provided,
The notification means includes
When another notification factor having a higher priority than the notification factor is detected during the notification operation based on the arbitrary notification factor, the notification operation based on the arbitrary notification factor is stopped, and the notification based on the other notification factor is performed. A printer that performs an operation.
前記優先度付けテーブルに設定された優先順位を変更するテーブル設定変更手段をさらに備えたことを特徴する請求項1に記載のプリンタ。   2. The printer according to claim 1, further comprising table setting changing means for changing a priority set in the prioritization table. 前記優先度付けテーブルは、前記プリンタの全ての状態において使用可能な1の共通優先度付けテーブルと、前記プリンタの各状態に対応した1以上の個別優先度付けテーブルと、から成り、
前記プリンタの現在の状態を判別する状態判別手段と、
前記プリンタの状態毎に、前記共通優先度付けテーブルおよび各状態に対応して設けられた前記個別優先度付けテーブルの、いずれを使用するかを設定するテーブル設定手段と、をさらに備え、
前記報知手段は、
前記状態判別手段による状態判別結果に基づいて、前記テーブル設定手段により設定されたテーブルを参照し、その参照結果に基づいて前記報知動作を実行することを特徴とする請求項1または2に記載のプリンタ。
The prioritization table includes one common prioritization table that can be used in all states of the printer, and one or more individual prioritization tables corresponding to each state of the printer,
State determining means for determining the current state of the printer;
Table setting means for setting which of the common prioritization table and the individual prioritization table provided corresponding to each state to be used for each state of the printer;
The notification means includes
3. The notification operation according to claim 1 or 2, wherein the table set by the table setting unit is referred to based on a state determination result by the state determination unit, and the notification operation is executed based on the reference result. Printer.
印刷ジョブに対応する印刷ジョブIDおよび報知指令を含む報知制御コマンドを受信して解析するコマンド解析手段と、
自身の所定の内部変化を検出する内部変化検知手段と、をさらに備え、
前記報知要因検出手段は、前記コマンド解析手段の解析結果および内部変化検知手段の検知結果のいずれかに基づいて、前記報知要因が発生した旨を検出することを特徴とする請求項1ないし3のいずれか1項に記載のプリンタ。
Command analysis means for receiving and analyzing a notification control command including a print job ID corresponding to a print job and a notification command;
An internal change detecting means for detecting its own predetermined internal change,
4. The notification factor detection unit detects that the notification factor has occurred based on either an analysis result of the command analysis unit or a detection result of an internal change detection unit. The printer according to any one of the above.
前記報知手段は、電子音を発生することにより報知動作を行なうことを特徴とする請求項1ないし4のいずれか1項に記載のプリンタ。   The printer according to claim 1, wherein the notification unit performs a notification operation by generating an electronic sound. コンピュータを、請求項1ないし5のいずれか1項に記載のプリンタの各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the printer of any one of Claims 1 thru | or 5.
JP2007284771A 2007-11-01 2007-11-01 Printer and program Withdrawn JP2009110470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007284771A JP2009110470A (en) 2007-11-01 2007-11-01 Printer and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007284771A JP2009110470A (en) 2007-11-01 2007-11-01 Printer and program

Publications (1)

Publication Number Publication Date
JP2009110470A true JP2009110470A (en) 2009-05-21

Family

ID=40778859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007284771A Withdrawn JP2009110470A (en) 2007-11-01 2007-11-01 Printer and program

Country Status (1)

Country Link
JP (1) JP2009110470A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019207481A (en) * 2018-05-28 2019-12-05 ブラザー工業株式会社 Computer program for server and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04268580A (en) * 1991-02-22 1992-09-24 Toshiba Corp Image forming device
JP2001166904A (en) * 1999-12-07 2001-06-22 Seiko Epson Corp Printing device and its controlling method the same and information recording medium
JP2007158619A (en) * 2005-12-02 2007-06-21 Sharp Corp Operating unit, system, and operating method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04268580A (en) * 1991-02-22 1992-09-24 Toshiba Corp Image forming device
JP2001166904A (en) * 1999-12-07 2001-06-22 Seiko Epson Corp Printing device and its controlling method the same and information recording medium
JP2007158619A (en) * 2005-12-02 2007-06-21 Sharp Corp Operating unit, system, and operating method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019207481A (en) * 2018-05-28 2019-12-05 ブラザー工業株式会社 Computer program for server and server
JP7259213B2 (en) 2018-05-28 2023-04-18 ブラザー工業株式会社 Computer programs for servers and servers

Similar Documents

Publication Publication Date Title
US8654373B2 (en) Printing system, printer, host computer, printing system control method, and program
JP5258182B2 (en) Ink jet printer, ink charging system, and control method of ink jet printer
JP2016194771A (en) Server device and control program
JP2010042630A (en) Printer, control method of printer, and printing system
US8699062B2 (en) Printer system control method, printer system, and printer
JP3661525B2 (en) INK CARTRIDGE MONITORING SYSTEM, INK CARTRIDGE MONITORING METHOD, INK CARTRIDGE MONITORING DEVICE, AND COMPUTER-READABLE MEDIUM CONTAINING INK CARTRIDGE MONITORING PROGRAM
JP4946735B2 (en) Printing system and program
JP2007196594A (en) Printer and its control method
JP2006209772A (en) Method and system for providing predictive paper out status in print network environment
JP4952445B2 (en) Printing system and program
JP2009110470A (en) Printer and program
JP4952446B2 (en) Printing system and program
WO2011108581A1 (en) Printer state notification system
JP5786078B1 (en) Printing system
JP5131398B2 (en) Printer and program
JP5578824B2 (en) Printing control apparatus, method and program
JP5549689B2 (en) Print system control method, print system, and POS system
JP5477398B2 (en) Printing system control method
JP4779925B2 (en) Image information registration method and image information registration apparatus
JPH11184648A (en) Print system
US8520244B2 (en) Recording system and control method for a recording system
KR100661171B1 (en) image forming device
JP5303005B2 (en) Ink jet printer, ink charging system, and control method of ink jet printer
JP4371644B2 (en) Printing apparatus and control method thereof
JP2012190221A (en) Recording system, recording control device, control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100928

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120131

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20120214