JP2010083148A - Printing system, method for turning off power supply for printing system - Google Patents
Printing system, method for turning off power supply for printing system Download PDFInfo
- Publication number
- JP2010083148A JP2010083148A JP2010003098A JP2010003098A JP2010083148A JP 2010083148 A JP2010083148 A JP 2010083148A JP 2010003098 A JP2010003098 A JP 2010003098A JP 2010003098 A JP2010003098 A JP 2010003098A JP 2010083148 A JP2010083148 A JP 2010083148A
- Authority
- JP
- Japan
- Prior art keywords
- command
- printing apparatus
- printing
- power
- stop process
- 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
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
Description
本発明は、印刷システム、印刷システムの電源オフ方法に関する。 The present invention relates to a printing system and a printing system power-off method .
従来から、プリンタなどの印刷装置に対してコンピュータなどのホスト装置から指令を送信して、印刷装置に文字や図形を印刷させたり、印刷の体裁を整えたり、印刷装置自体の設定を行ったりする印刷システムが広く使用されている。 Conventionally, a command is sent from a host device such as a computer to a printing device such as a printer to cause the printing device to print characters and graphics, to make a printing appearance, or to set the printing device itself Printing systems are widely used.
一方で、印刷のコストを低減するため、インクジェット印刷ヘッドなどが普及しつつある。インクジェット印刷ヘッドなど、印刷の方式によっては、印刷装置に電源をオンにしたときや電源をオフにしたときに、印字品質を維持するために、印字ヘッドのクリーニング処理が必要なものがある。ここで言うクリーニング処理とは、印字ヘッドのノズル内の増粘したインクを排出したり、ノズル表面の異物を払拭したりすることによって行われる処理であり、メンテナンス処理とも呼ばれている。 On the other hand, in order to reduce printing costs, inkjet print heads and the like are becoming widespread. Some printing methods, such as an ink jet print head, require a print head cleaning process to maintain print quality when the printer is turned on or turned off. The cleaning process referred to here is a process performed by discharging the thickened ink in the nozzles of the print head or wiping off foreign matters on the nozzle surface, and is also called a maintenance process.
たとえば、インクジェット印刷ヘッドでは、インクがノズル内に残留して乾燥し増粘した場合、ノズルがつまったりインクの出が悪くなったりすることがある。したがって、このような印刷装置では、動作中に主電源を直接スイッチでオン・オフすることは望ましくない。 For example, in an ink jet print head, when ink remains in the nozzles and dries and thickens, the nozzles may become clogged or the ink output may deteriorate. Therefore, in such a printing apparatus, it is not desirable to directly turn on / off the main power supply with a switch during operation.
すなわち、増粘したインクが印刷ヘッドのノズルに残留した状態になってしまうと、大量のインクを使ったクリーニング処理が必要になるため、電源をオフにするときには、所定のメンテナンス処理を行うことが望ましい。 That is, if the thickened ink remains in the nozzles of the print head, a cleaning process using a large amount of ink is required. Therefore, when the power is turned off, a predetermined maintenance process may be performed. desirable.
また、店舗などでPOS(Point Of Sales)端末として使用される場合、印刷装置の電源のオン・オフは、店員に直接行わせたくはない場合も多い。 Further, when used as a POS (Point Of Sales) terminal in a store or the like, there are many cases where it is not desired for the store clerk to directly turn on / off the printing apparatus.
このため、ホスト装置から印刷装置の電源を管理して、印刷装置の電源をオフにする場合に、印刷装置に確実に停止処理を行わせることができるような印刷システムが研究開発の対象となっている。 For this reason, when the power of the printing apparatus is managed from the host device and the power of the printing apparatus is turned off, a printing system that can surely cause the printing apparatus to perform a stop process is the subject of research and development. ing.
また、印刷装置のスイッチを直接操作するのではなく、ホスト装置からの指令により印刷装置の電源供給の停止が指示できるような印刷システムについても研究開発が進められている。 Research and development is also underway for a printing system that does not directly operate the switch of the printing apparatus, but can instruct the stop of the power supply of the printing apparatus by a command from the host apparatus.
このような印刷システムにおいて、ホスト装置から印刷装置の電源供給の停止の手法についてきめ細かく管理したい、という要望は大きい。特に、強制的に電源供給を停止したり、所定の時間内に停止するように指令したり、状況に応じて停止しなくともよいように指令したりできるような印刷システムが望まれている。 In such a printing system, there is a great demand for finely managing the method of stopping the power supply of the printing apparatus from the host apparatus. In particular, a printing system that can forcibly stop power supply, instruct to stop within a predetermined time, or instruct not to stop depending on the situation is desired.
本発明は、上記のような課題を解決するためになされたもので、ホスト装置から印刷装置の電源供給の停止の手法をきめ細かく管理するのに好適な印刷装置、印刷システム、ホスト装置、これらの制御方法、および、これらを実現するプログラムを記録した情報記録媒体を提供することを目的とする。 The present invention has been made to solve the above-described problems, and is suitable for finely managing a method of stopping power supply of a printing apparatus from a host apparatus, a printing system, a host apparatus, and the like. It is an object of the present invention to provide a control method and an information recording medium on which a program for realizing the control method is recorded.
以上の目的を達成するため、本発明の印刷システムは、
ホスト装置と、当該ホスト装置の電源コントローラを介して電源が供給される印刷装置
とからなる印刷システムであって、
前記印刷装置には、
前記ホスト装置が送信した指令を受信するたびに指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したとき前記印刷装置の通常処理が待機されている状態であるオフライン状態でも前記印刷装置の電源オフ可能なリアルタイムコマンドを受信するリアルタイムコマンド受信手段と、
受信したリアルタイムコマンドに対応する処理を実行するリアルタイムコマンド実行手段とを含むことを特徴とする。
In order to achieve the above object, the printing system of the present invention provides:
Host apparatus and printing apparatus to which power is supplied via the power controller of the host apparatus
A printing system comprising:
In the printing apparatus,
Each time a command transmitted by the host device is received, the value of the command data is interpreted, and when it is detected that the command data is received in a predetermined order, the normal processing of the printing device is in a standby state. Real-time command receiving means for receiving a real-time command capable of powering off the printing apparatus even in an offline state;
And real-time command execution means for executing processing corresponding to the received real-time command.
また、前記リアルタイムコマンドには、少なくとも電源オフコマンド又は銭箱開コマンドを含むことを特徴とする。The real-time command includes at least a power-off command or a money box opening command.
また、前記印刷システムは、ホスト装置と印刷装置が一体形成されたPOS端末として機能することを特徴とする。Further, the printing system functions as a POS terminal in which a host device and a printing device are integrally formed.
また、本発明の印刷システムの電源オフ制御方法は、Further, the power-off control method of the printing system according to the present invention includes
ホスト装置と、当該ホスト装置の電源コントローラを介して電源が供給される印刷装置Host apparatus and printing apparatus to which power is supplied via the power controller of the host apparatus
とからなる印刷システムにおける印刷装置の電源オフ制御方法であって、A printing apparatus power-off control method in a printing system comprising:
前記ホスト装置から電源オフの指令データとして、リアルタイムコマンドを送信する工程と、 A step of transmitting a real-time command from the host device as power-off command data;
前記印刷装置で受信した前記指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したとき当該印刷装置の通常処理が待機されている状態であるオフライン状態でも当該印刷装置の電源をオフ可能なリアルタイムコマンドとして受信する受信工程と、 Interpreting the value of the command data received by the printing device, and when the command data is detected to be received in a predetermined order, the printing is performed even in an offline state in which normal processing of the printing device is waiting A receiving process for receiving the device as a real-time command capable of turning off the power;
前記ホスト装置に対する印刷装置の返事が異常終了の場合に、表示部にその旨の表示をしてホスト装置の電源をオフにする工程と、 If the response of the printing device to the host device is abnormally terminated, displaying the fact on the display unit and turning off the power of the host device;
を含むことを特徴とする。 It is characterized by including.
また、ホスト装置と、当該ホスト装置の電源コントローラを介して電源が供給される印刷装置とからなる印刷システムの印刷装置の電源オフ制御方法であって、Further, a power-off control method for a printing apparatus of a printing system comprising a host apparatus and a printing apparatus to which power is supplied via a power controller of the host apparatus,
前記ホスト装置から電源オフの指令データとして、リアルタイムコマンドを送信する工程と、 A step of transmitting a real-time command from the host device as power-off command data;
前記印刷装置で受信した前記指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したとき当該印刷装置の通常処理が待機されている状態であるオフライン状態でも当該印刷装置の電源をオフ可能なリアルタイムコマンドとして受信する受信工程と、 Interpreting the value of the command data received by the printing device, and when the command data is detected to be received in a predetermined order, the printing is performed even in an offline state in which normal processing of the printing device is waiting A receiving process for receiving the device as a real-time command capable of turning off the power;
この受信工程の後、前記印刷装置は、当該印刷装置内のフラッシュROMに、当該印刷装置の各種設定値、印刷ページ数、行数、文字数などの各種カウント値、プリンタの状態などを保存する工程と、 After this receiving step, the printing device stores various setting values of the printing device, various count values such as the number of printed pages, the number of lines, the number of characters, the state of the printer, and the like in a flash ROM in the printing device. When,
この保存工程の後、前記ホスト装置に印刷装置の電源停止処理の主要部分が終了したこと、及びフラッシュROMに保存したデータを通知する通知工程とを備えたことを特徴とする。 After the storing step, the host device is provided with a notification step for notifying the main part of the power supply stop process of the printing apparatus and the data stored in the flash ROM.
本発明の印刷装置は、ホスト装置に接続され、受信部と、許可部と、指令格納部と、印刷部と、停止処理部と、を備えるように構成する。The printing apparatus of the present invention is connected to a host device, and is configured to include a receiving unit, a permission unit, a command storage unit, a printing unit, and a stop processing unit.
受信部は、ホスト装置が送信する印刷データと電源オフコマンドとを含む指令を受信する。 The receiving unit receives a command including print data and a power-off command transmitted from the host device.
許可部は、受信された指令が電源オフコマンドである場合、停止処理の実行を許可する。 The permission unit permits execution of the stop process when the received command is a power-off command.
指令格納部は、受信された指令を記憶する。 The command storage unit stores the received command.
印刷部は、記憶された指令を順に読み出して、当該読み出された指令が印刷データである場合、印刷データに対応する文字または図形を印刷する。 The printing unit sequentially reads the stored instructions, and when the read instructions are print data, prints characters or figures corresponding to the print data.
停止処理部は、当該停止処理の実行が許可されており、かつ、特定条件が満たされた場合、前記印刷装置に対して当該停止処理を実行する。 The stop processing unit executes the stop process for the printing apparatus when the execution of the stop process is permitted and the specific condition is satisfied.
ここで、印刷装置の停止処理には、印刷装置の印刷部の印刷ヘッドのメンテナンス処理、印刷装置に対する電源供給の停止、印刷装置をいわゆる省電力モードに移行させる処理などが含まれる。 Here, the stop process of the printing apparatus includes a maintenance process of the print head of the printing unit of the printing apparatus, a stop of power supply to the printing apparatus, and a process of shifting the printing apparatus to a so-called power saving mode.
また、本発明の印刷装置において、記憶された指令がすべて読み出された場合に当該特定条件が満たされるように構成することができる。本発明により、印刷装置が受信した印刷データを確実に印刷してから印刷装置の停止処理を開始する印刷装置を提供することができる。 Further, the printing apparatus of the present invention can be configured such that the specific condition is satisfied when all stored instructions are read out. According to the present invention, it is possible to provide a printing apparatus that starts printing device stop processing after reliably printing print data received by the printing apparatus.
また、本発明の印刷装置において、当該停止処理の実行が最後に許可されてから所定の時間を経過した場合に当該特定条件は満たされないように構成することができる。本発明により、所定の時間が経過しても印刷装置の停止処理が開始できなかった場合は、当該停止処理の実行をあきらめる印刷装置を提供することができる。 Further, the printing apparatus of the present invention can be configured such that the specific condition is not satisfied when a predetermined time has elapsed since the last execution of the stop process was permitted. According to the present invention, it is possible to provide a printing apparatus that gives up execution of a stop process when the stop process of the printing apparatus cannot be started even after a predetermined time has elapsed.
また、本発明の印刷装置は、送信部と、停止処理済み送信制御部と、をさらに備えるように構成することができる。 Further, the printing apparatus of the present invention can be configured to further include a transmission unit and a stop-processed transmission control unit.
送信部は、ホスト装置へ状態データを送信する。 The transmission unit transmits status data to the host device.
停止処理済み送信制御部は、当該停止処理が実行された場合、その旨を示す状態データを送信部に送信させる。 When the stop process is executed, the stop-processed transmission control unit causes the transmission unit to transmit state data indicating that fact.
また、本発明の印刷装置は、禁止部をさらに備えるように構成することができる。 Further, the printing apparatus of the present invention can be configured to further include a prohibition unit.
禁止部は、受信された電源オフコマンドにより許可時間が指定されている場合、当該停止処理の実行が許可されてから当該指定された許可時間を経過した後に、当該停止処理の実行を禁止する。 When the permission time is specified by the received power-off command, the prohibiting unit prohibits the execution of the stop process after the specified permission time has elapsed since the execution of the stop process is permitted.
また、本発明の印刷装置は、送信部と、停止処理禁止送信制御部と、をさらに備えるように構成することができる。 Further, the printing apparatus of the present invention can be configured to further include a transmission unit and a stop process prohibition transmission control unit.
送信部は、ホスト装置へ状態データを送信する。 The transmission unit transmits status data to the host device.
停止処理禁止送信制御部は、当該停止処理の実行が禁止された場合、その旨を示す状態データを送信部に送信させる。 When the execution of the stop process is prohibited, the stop process prohibition transmission control unit causes the transmission unit to transmit state data indicating that fact.
本発明の印刷システムは、上記の印刷装置と、これに接続されるホスト装置と、を備えるように構成する。 A printing system of the present invention is configured to include the above-described printing apparatus and a host apparatus connected to the printing apparatus.
ホスト装置は、印刷装置へ印刷データと電源オフコマンドとを含む指令を送信する。 The host device transmits a command including print data and a power-off command to the printing device.
本発明のホスト装置は、印刷装置に接続され、送信部と、受信部とを備えるように構成する。 The host device of the present invention is configured to be connected to a printing device and include a transmission unit and a reception unit.
送信部は、印刷装置へ印刷データと電源オフコマンドとを含む指令を送信する。 The transmission unit transmits a command including print data and a power-off command to the printing apparatus.
受信部は、印刷装置へ電源オフコマンドを送信した場合、印刷装置から送信される停止処理が実行された旨を示す状態データを受信する。 When the power-off command is transmitted to the printing apparatus, the receiving unit receives status data indicating that the stop process transmitted from the printing apparatus has been executed.
本発明のホスト装置は、印刷装置に接続され、送信部と、受信部とを備えるように構成する。 The host device of the present invention is configured to be connected to a printing device and include a transmission unit and a reception unit.
送信部は、印刷装置へ印刷データと印刷装置の停止処理の実行の許可時間を指定する電源オフコマンドとを含む指令を送信する。 The transmission unit transmits a command including print data and a power-off command for designating a permission time for execution of the stop process of the printing apparatus to the printing apparatus.
受信部は、印刷装置へ電源オフコマンドを送信した場合、印刷装置から送信される停止処理の実行が禁止された旨を示す状態データを受信する。 When the power-off command is transmitted to the printing apparatus, the receiving unit receives status data indicating that execution of the stop process transmitted from the printing apparatus is prohibited.
本発明の制御方法は、ホスト装置に接続され、指令格納部を備える印刷装置を制御し、受信工程と、許可工程と、指令格納工程と、停止処理工程と、を備えるように構成する。 The control method of the present invention is configured to control a printing apparatus that is connected to a host device and includes a command storage unit, and includes a reception process, a permission process, a command storage process, and a stop process process.
受信工程では、ホスト装置が送信する印刷データと電源オフコマンドとを含む指令を受信する。 In the receiving step, a command including print data and a power-off command transmitted from the host device is received.
許可工程では、受信された指令が電源オフコマンドである場合、停止処理の実行を許可する。 In the permission step, if the received command is a power-off command, execution of the stop process is permitted.
指令格納工程では、受信された指令を指令格納部に記憶する。 In the command storage step, the received command is stored in the command storage unit.
印刷工程では、記憶された指令を順に読み出して、当該読み出された指令が印刷データである場合、印刷データに対応する文字または図形を印刷する。 In the printing process, the stored commands are read in order, and when the read commands are print data, characters or figures corresponding to the print data are printed.
停止処理工程では、当該停止処理の実行が許可されており、かつ、特定条件が満たされた場合、印刷装置に対して当該停止処理を実行する。 In the stop processing step, when the execution of the stop processing is permitted and the specific condition is satisfied, the stop processing is executed on the printing apparatus.
また、本発明の制御方法において、記憶された指令がすべて読み出された場合に当該特定条件が満たされるように構成することができる。 Further, the control method of the present invention can be configured such that the specific condition is satisfied when all stored commands are read out.
また、本発明の制御方法において、当該停止処理の実行が最後に許可されてから所定の時間を経過した場合に当該特定条件は満たされないように構成することができる。 Further, the control method of the present invention can be configured such that the specific condition is not satisfied when a predetermined time has elapsed since the last execution of the stop process was permitted.
また、本発明の制御方法は、停止処理済み送信工程をさらに備えるように構成することができる。 In addition, the control method of the present invention can be configured to further include a stop-processed transmission step.
停止処理済み送信工程では、当該停止処理が実行された場合、その旨を示す状態データをホストに送信する。 In the stop process completion transmission step, when the stop process is executed, status data indicating that is transmitted to the host.
また、本発明の制御方法は、禁止工程をさらに備えるように構成することができる。 In addition, the control method of the present invention can be configured to further include a prohibition step.
禁止工程では、受信された電源オフコマンドにより許可時間が指定されている場合、当該停止処理の実行が許可されてから当該指定された許可時間を経過した後に、当該停止処理の実行を禁止する。 In the prohibiting step, when the permission time is specified by the received power-off command, the execution of the stop process is prohibited after the specified permission time has elapsed since the execution of the stop process is permitted.
また、本発明の制御方法は、停止処理禁止送信工程をさらに備えるように構成することができる。 In addition, the control method of the present invention can be configured to further include a stop process prohibition transmission step.
停止処理禁止送信工程では、当該停止処理の実行が禁止された場合、その旨を示す状態データをホスト装置へ送信する。 In the stop process prohibition transmission step, when execution of the stop process is prohibited, status data indicating that fact is transmitted to the host device.
本発明の制御方法は、印刷装置に接続されるホスト装置を制御し、送信工程と、受信工程と、を備えるように構成する。 The control method of the present invention is configured to control a host device connected to a printing apparatus, and to include a transmission step and a reception step.
送信工程では、印刷装置へ印刷データと電源オフコマンドとを含む指令を送信する。 In the transmission step, a command including print data and a power-off command is transmitted to the printing apparatus.
受信工程では、印刷装置へ電源オフコマンドを送信した場合、印刷装置から送信される停止処理が実行された旨を示す状態データを受信する。 In the receiving process, when a power-off command is transmitted to the printing apparatus, status data indicating that a stop process transmitted from the printing apparatus is executed is received.
本発明の制御方法は、印刷装置に接続されるホスト装置を制御し、送信工程と、受信工程と、を備えるように構成する。 The control method of the present invention is configured to control a host device connected to a printing apparatus, and to include a transmission step and a reception step.
送信工程では、印刷装置へ印刷データと印刷装置の停止処理の実行の許可時間を指定する電源オフコマンドとを含む指令を送信する。 In the transmission step, a command including print data and a power-off command that designates a permission time for executing the stop process of the printing device is transmitted to the printing device.
受信工程では、印刷装置へ電源オフコマンドを送信した場合、印刷装置から送信される停止処理の実行が禁止された旨を示す状態データを受信する。 In the reception process, when a power-off command is transmitted to the printing apparatus, status data indicating that execution of the stop process transmitted from the printing apparatus is prohibited is received.
本発明の印刷装置、印刷システム、ホスト装置、これらの制御方法を実現するプログラムをコンパクトディスク、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、ディジタルビデオディスク、磁気テープ、半導体メモリなどの情報記録媒体に記録することができる。 The printing apparatus, printing system, host apparatus of the present invention, and a program for realizing these control methods are recorded on a compact disk, floppy (registered trademark) disk, hard disk, magneto-optical disk, digital video disk, magnetic tape, semiconductor memory, etc. Can be recorded on a medium.
本発明の情報記録媒体に記録されたプログラムを、印刷装置やホスト装置が備えるCPU(Central Processing Unit;中央処理ユニット)などの制御装置で実行することにより、上記の印刷装置、印刷システム、ホスト装置、これらの制御方法を実現することができる。 By executing the program recorded on the information recording medium of the present invention by a control device such as a CPU (Central Processing Unit) provided in the printing device or the host device, the printing device, the printing system, or the host device described above is executed. These control methods can be realized.
また、これらの装置とは独立して、本発明のプログラムを記録した情報記録媒体を配布、販売することができる。 Independent of these devices, an information recording medium on which the program of the present invention is recorded can be distributed and sold.
以上説明したように、本発明によれば、ホスト装置から印刷装置の電源供給の停止の手法をきめ細かく管理するのに好適な印刷装置、印刷システム、ホスト装置、これらの制御方法、および、これらを実現するプログラムを記録した情報記録媒体を提供することができる。 As described above, according to the present invention, a printing apparatus, a printing system, a host apparatus, a control method for these, and a control method suitable for finely managing a method for stopping power supply to the printing apparatus from the host apparatus, and An information recording medium recording a program to be realized can be provided.
以下に本発明の一実施形態を説明する。なお、以下に説明する実施形態は説明のためのものであり、本願発明の範囲を制限するものではない。したがって、当業者であればこれらの各要素もしくは全要素をこれと均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本願発明の範囲に含まれる。 An embodiment of the present invention will be described below. The embodiments described below are for explanation, and do not limit the scope of the present invention. Therefore, those skilled in the art can employ embodiments in which each of these elements or all of the elements are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention.
(第1の実施形態)
図1は、本発明の印刷システムの第1の実施形態の概要構成を示す模式図である。以下、図1を参照しながら説明する。
(First embodiment)
FIG. 1 is a schematic diagram showing a schematic configuration of the first embodiment of the printing system of the present invention. Hereinafter, a description will be given with reference to FIG.
印刷システム101は、印刷装置102と、これを制御するホスト装置103とを備える。ホスト装置103は、印刷装置102に対して通信線104を介して指令を送信する。印刷装置102は、ホスト装置103が送信した指令を受信して、その指令を解釈し、文字や図形を紙やフィルムなどに印刷したり、印刷の体裁を整えたり、印刷装置102自体の設定を変更したりする。
The
また、本実施形態では、ホスト装置103が外部機器に電源を供給するための電源コネクタ(図示せず)を備えており、この電源コネクタから電源供給線105が印刷装置102に接続されている。この電源コネクタは、ホスト装置103の電源供給と連動させることができる。この場合、ホスト装置103の電源がオフになると、印刷装置102の電源スイッチを一切操作しなくとも、印刷装置102に対する電源の供給をすべて停止することができる。
In this embodiment, the
なお、通信線104は、有線ケーブルのほか、無線LAN(Local Area Network)や電話線、赤外線通信などの通信手段によってもよい。
The
(印刷装置の実施形態)
図2は、印刷システム101の印刷装置102の概要構成を示す模式図である。なお、図2において、上述の図と同じ機能を果たす要素には同じ符号を付してある。
(Embodiment of printing apparatus)
FIG. 2 is a schematic diagram illustrating a schematic configuration of the
印刷装置102は、CPU 201によって制御される。電源供給コネクタ202から供給された電源は、電源コントローラ203によって制御管理される。電源供給コネクタ202と電源コントローラ203の間の電源供給線の途中には主スイッチ204が接続されており、印刷装置102全体のこれを切れば、電源を完全にオフにすることができる。
The
印刷装置102は、印刷ヘッド、紙送り機構、プラテン、用紙カッターなどの印刷機構205を駆動して、紙やフィルムなどに文字や図形を印刷する。
The
CPU 201には、副スイッチ211が接続されている。副スイッチ211はプッシュ型のスイッチで、副スイッチ211を押圧操作すると、その操作がトリガとなって、CPU 201は、印刷機構205内の印刷ヘッドのクリーニング処理を実行し、さらに、電源コントローラ203を制御して、電源コントローラ203による電源供給を停止させる。なお、電源コントローラからは、CPU201や印刷機構205に対して電源が供給されているが、図の理解を容易にするため、図2中では、この電源供給線の図示を省略している。
A
印刷装置102は、ホスト装置103とインターフェース206を介して接続されており、CPU 201は、インターフェース206が受信した指令にしたがって、印刷機構205を駆動する。
The
インターフェース206が指令を表すデータの受信を検出すると、CPU 201に対して割り込みを発生させる。CPU 201は、そのときの制御の流れから受信割り込み処理に制御を移行して、検出された指令データをインターフェースに受信させ、当該データがリアルタイムコマンドである場合には、これに対応する処理を実行し、受信したデータをRAM(Random Access Memory)207内の受信バッファに記憶させて、受信割り込み処理を終了する。リアルタイムコマンドとは、受信したときリアルタイムに実行されるコマンドであり、本発明における電源オフコマンドはリアルタイムコマンドとして実装される。
When the
また、電源オフコマンドの処理の際に、インターフェース206を介してホスト装置103へ、電源オフの状況に関する情報を送信する。
Further, when processing the power-off command, information related to the power-off state is transmitted to the
一方、CPU 201は、通常処理として、受信バッファに記憶された指令データを順に読み出し、その指令データにしたがって、文字や図形を印刷したり、印刷の体裁を整えたり、印刷装置102の設定を変更したりする。このように、ここで解釈される指令を通常コマンドと呼ぶ。また、指令データがリアルタイムコマンドである場合には、当該指令データを読み飛ばす。
On the other hand, as a normal process, the
文字や図形を印刷する際には、ROM(Read Only Memory)208に記憶されたフォント情報を用いて、RAM 207内のラインバッファに印刷イメージを展開する。展開された印刷イメージが1行分に達したり、改行指令に出会った場合に、当該ラインバッファ内の印刷イメージにしたがって印刷機構205を駆動する。
When printing characters or graphics, a print image is developed in a line buffer in the
ディップスイッチ209は、印刷装置102の各種の設定を行う。動作ランプ210は、各種の色で点灯したり、点滅することにより、現在の動作状態をユーザに知らせる。
A
フラッシュEEPROM(Electrically Erasable Programmable ROM)212には、印刷装置の各種設定のほか、印刷ヘッドの駆動回数、インクの使用量などのメンテナンス情報や、FISCALなどの会計情報を不揮発に記憶させることができる。 A flash EEPROM (Electrically Erasable Programmable ROM) 212 can store various settings of the printing apparatus, maintenance information such as the number of times the print head is driven, the amount of ink used, and accounting information such as FISCAL in a non-volatile manner.
指令の形式としては、 POS端末用に設けられた公知の印刷指令体系を採用することができる。なお、以下の説明では、理解を容易にするため、以下のような指令を用いて説明する。0xは、十六進数を意味する接頭辞である。 As the command format, a known print command system provided for the POS terminal can be adopted. In the following description, the following commands are used for easy understanding. 0x is a prefix meaning a hexadecimal number.
・0x0a 改行する。通常コマンド。
・0x20〜0x7e そのASCIIコードの文字を印刷する。通常コマンド。
・0x10 0x14 0x02 0x01 n 電源オフコマンドである。リアルタイムコマンド。
・ 0x0a Starts a new line. Normal command.
・ 0x20 ~ 0x7e Print the ASCII code characters. Normal command.
・ 0x10 0x14 0x02 0x01 n Power off command. Real-time command.
ここで、パラメータnには電源供給の停止の際の手法などを指定する。たとえば、以下の値を指定することができる。 Here, a method for stopping the power supply is designated as the parameter n. For example, the following values can be specified:
・0x00 直ちに電源をオフにする。
・0x01〜0x09 それぞれ、1分〜9分以内に電源をオフにする。
・0xf0 直ちに電源をオフにできるようであればオフにする。
そうでなければ電源はオンのままにする。
・0xf1〜0xf9 それぞれ、1分〜9分以内に電源をオフにできるようであればオフにする。
そうでなければ電源はオンのままにする。いずれのパラメータが指定されたかを示すために、印刷装置102は、RAM207内のパラメータ格納領域に指定されたパラメータの種類を記憶する。
・ 0x00 Turn off the power immediately.
・ 0x01 to 0x09 Turn off the power within 1 to 9 minutes respectively.
• 0xf0 Turn off if you can turn off the power immediately.
Otherwise leave the power on.
• 0xf1 to 0xf9 Turn off the power if it can be turned off within 1 to 9 minutes.
Otherwise leave the power on. In order to indicate which parameter is designated, the
一般にPOS端末用に設けられた印刷指令体系では、これ以外の指令も用意されている。たとえば、印刷装置102の現在のステータスを送信させたり、印刷装置102がPOS端末の銭箱を備える場合にこれを開くリアルタイムコマンドや、画像イメージを印刷させる通常コマンドなどである。これらの指令を実装した実施形態も本発明の範囲に含まれる。
In general, a print command system provided for a POS terminal also provides other commands. For example, a current status of the
ここで、インターフェース206は、受信部として機能し、CPU 201は、許可部として機能し、RAM 207は、指令格納部として機能し、印刷機構205は、CPU 201と共働して印刷部として機能し、電源コントローラ203は、CPU 201と共働して停止処理部として機能する。また、インターフェース206は、送信部として機能し、CPU 201は、停止処理済み送信制御部として機能する。また、CPU 201は、禁止部として機能する。また、CPU 201は、停止処理禁止送信部として機能する。
Here, the
また、ROM 208は、本発明の情報記録媒体として機能する。ホスト装置103からROM 208の更新(バージョンアップ)を行うことができる場合は、ホスト装置103に装着された情報記録媒体やホスト装置103が備える情報記録媒体も、本発明の情報記録媒体として機能する。
The
(受信割り込み処理)
図3は、印刷装置102で実行される受信割り込み処理の制御の流れを示すフローチャートである。受信割り込み処理は、指令データが送信されていることをインターフェース206が検知したことを契機に、後述する通常処理に割り込む形式で開始される。この割り込みは、指令データが1バイト送信されるたびに発生する。
(Reception interrupt processing)
FIG. 3 is a flowchart showing a control flow of reception interrupt processing executed by the
まず、CPU 201は、インターフェース206に指令データを1バイト受信させる(ステップS301)。
First, the
次に、CPU 201は、受信した指令データの値にしたがって、印刷装置102の受信状態を次の受信状態に遷移させ(ステップS302)、その状態遷移に伴う処理を実行する(ステップS303)。
Next, the
印刷装置102の受信状態は、図4に示すような状態遷移図によって表すことができる。現在の受信状態は、RAM 207内に記憶されており、遷移の度に記憶される値(図4の実施形態ではA〜E等)が更新される。
The reception state of the
図4に示すように、受信状態Aは、通常コマンドの列を受信しつつあることを示す状態であり、それ以外の状態は、現在リアルタイムコマンドを受信中であることを示す状態である。 As shown in FIG. 4, the reception state A is a state indicating that a normal command string is being received, and the other states are states indicating that a real-time command is currently being received.
受信状態Aのときに、0x0a(改行)や0x20〜0x7e(ASCII文字印刷)のような通常コマンドを受信すると、受信状態Aに移行する。一方、受信状態Aのときに、リアルタイムコマンドの先頭の指令データ0x10を受信すると、受信状態Bに移行する。受信状態Bのときに、0x14を受信すると受信状態Cに移行する。受信状態Cのときに、0x02を受信すると受信状態Dに移行する。受信状態Dのときに、0x01を受信すると受信状態Eに移行する。受信状態Eのときに、0x00、0x01〜0x09、0xf0、0xf1〜0xf9のいずれかを受信すると、受信状態Aに移行するとともに、後述する電源停止許可処理を実行する。 When a normal command such as 0x0a (line feed) or 0x20 to 0x7e (ASCII character printing) is received in the reception state A, the state shifts to the reception state A. On the other hand, when the command data 0x10 at the head of the real-time command is received in the reception state A, the state shifts to the reception state B. When 0x14 is received in the reception state B, the state shifts to the reception state C. When 0x02 is received in the reception state C, the state shifts to the reception state D. When 0x01 is received in the reception state D, the state shifts to the reception state E. When any of 0x00, 0x01 to 0x09, 0xf0, 0xf1 to 0xf9 is received in the reception state E, the state shifts to the reception state A and a power stop permission process described later is executed.
この状態遷移図は、ROM 208内に記憶しておいてもよいし、プログラムの形式で表現してもよい。
This state transition diagram may be stored in the
これらの状態遷移は、通常コマンドやリアルタイムコマンドの種類に応じて変更することができ、変更した実施形態も本発明の範囲に含まれる。たとえば、受信状態B〜Eで、上記の指令データ以外のデータを受信した場合には、同様の図示しない受信状態に移行したり、移行に伴う処理を実行したり、受信状態Aに移行するように、状態遷移を定義することができる。 These state transitions can be changed according to the types of normal commands and real-time commands, and changed embodiments are also included in the scope of the present invention. For example, when data other than the above command data is received in the reception states B to E, a similar reception state (not shown) is performed, a process associated with the transition is executed, or the reception state A is shifted. In addition, state transitions can be defined.
状態遷移と、これに伴う処理とを実行したら、受信した1バイトの指令データを受信バッファに記憶させ(ステップS304)、本処理を終了する。 When the state transition and the processing accompanying this are executed, the received 1-byte command data is stored in the reception buffer (step S304), and this processing is terminated.
(電源停止許可処理)
図5は、印刷装置102で実行される電源停止許可処理の制御の流れを示すフローチャートである。
(Power stop permission process)
FIG. 5 is a flowchart illustrating a control flow of the power stop permission process executed by the
まず、CPU 201は、指定されたパラメータ(0x00、0x01〜0x09、0xf0、0xf1〜0xf9のいずれか)の値を、RAM 207内のパラメータ格納領域に記憶する(ステップS501)。
First, the
さらに、現在の時刻をRAM 207内に設けられた電源停止許可時刻領域に記憶する(ステップS502)。この「現在時刻」は、印刷装置102がリアルタイムクロックを備えている場合は、これら取得することができる。また、電源をオンにした時点からの経過時間を「現在時刻」としてもよい。この場合は、所定のクロック数ごとにカウント値が増加するカウンタの値を「現在時刻」とする。
Further, the current time is stored in a power supply stop permission time area provided in the RAM 207 (step S502). The “current time” can be acquired when the
次に、当該パラメータの値を調べる(ステップS503)。パラメータの値が0x00である場合(ステップS502;0x00)、後述する電源停止処理を実行する(ステップS504)。これにより、印刷装置102への電源供給が停止されるので、本処理は終了する。
Next, the value of the parameter is examined (step S503). When the parameter value is 0x00 (step S502; 0x00), a power supply stop process described later is executed (step S504). As a result, the power supply to the
一方、パラメータの値が0xf0である場合(ステップS503;0xf0)、印刷装置102が、直ちに電源をオフにしてもよい状態か否かを調べる(ステップS505)。直ちにオフにしてもよい状態として、たとえば、「受信バッファとラインバッファに格納された指令データはすべて処理済みである」か否か、のような条件を採用することができる。これらの条件については、後述する電源停止においてさらに詳細に説明する。
On the other hand, when the value of the parameter is 0xf0 (step S503; 0xf0), the
なお、受信バッファに電源オフコマンドの先頭部分の指令データの先頭部分0x10 0x14 0x02 0x01が記憶されているだけの場合は、「すべて処理済み」として扱う。 If only the head part 0x10 0x14 0x02 0x01 of the command data of the head part of the power-off command is stored in the reception buffer, it is treated as “all processed”.
電源をオフにしてもよい状態の場合(ステップS505;Yes)、ステップS504に進み、後述する電源停止処理を実行する。 If the power may be turned off (step S505; Yes), the process proceeds to step S504, and a power supply stop process described later is executed.
電源をオフにすることができない状態の場合(ステップS505;No)、その旨をインターフェース206を介してホスト装置103に送信し(ステップS506)、RAM 207内のパラメータ格納領域に0xffを記憶して(ステップS507)、本処理を終了する。送信のフォーマットについては、後述する電源停止処理でまとめて説明する。
If the power cannot be turned off (step S505; No), the fact is transmitted to the
なお、ステップS507において0xffを選択したのは、指定されるパラメータの値としてありえないものだからである。また、この値は、印刷装置102に電源を投入したときに、パラメータ格納領域に初期値として記憶される値である。この値は、電源供給停止の禁止を表す。
The reason why 0xff is selected in step S507 is that it is impossible as the value of the designated parameter. This value is a value stored as an initial value in the parameter storage area when the
パラメータの値がこれら以外である場合(ステップS503;その他)、本処理を直ちに終了する。この場合、電源の停止は、後述する通常処理の過程で行われる。 If the parameter value is other than these (step S503; other), this process is immediately terminated. In this case, the power supply is stopped during the normal process described later.
(電源停止処理)
図6は、印刷装置102で実行される電源停止処理の制御の流れを示すフローチャートである。
(Power stop processing)
FIG. 6 is a flowchart illustrating a control flow of the power supply stop process executed by the
まず、CPU 201は、動作ランプ210を点滅させ(ステップS601)、電源停止処理を開始したことをユーザに通知する。
First, the
次に、CPU 201は、印刷機構205の印刷ヘッドのメンテナンス処理を実行する(ステップS 602)。メンテナンス処理では、最後に印刷ヘッドを移動させるキャリッジを所定の位置に移動させてロックする。
Next, the
ついで、CPU 201は、フラッシュEEPROM 212に印刷装置102の各種設定値、インクの使用量や残量、印刷ページ数、行数、文字数などの各種カウント値、プリンタの状態などを保存する(ステップS603)。
Next, the
さらに、CPU 201は、動作ランプ210を点灯させ(ステップS604)、電源停止処理の主要部分が終了したことをユーザに通知する。
Further, the
この後、CPU 201は、インターフェース206を介して、ホスト装置103に、電源停止処理の主要部分が終了し、印刷装置102本体の電源を所定時間経過後(たとえば10秒)にオフにする旨と、ステップS602において調査した結果と、を合わせて通知する(ステップS605)。通知の際には、たとえば以下のようなデータを送信する。
Thereafter, the
・0x3b 0x30 0x00 正常に電源停止処理の主要部が終了したことを表す。
・0x3b 0x0* 0x00 電源停止処理に何らかの異常があったことを表す。
・ 0x3b 0x30 0x00 Indicates that the main part of the power shutdown process has been completed normally.
・ 0x3b 0x0 * 0x00 Indicates that there was some abnormality in the power stop processing.
0x3 bは、ステータス通知のデータ列が始まるを表すヘッダであり、0x00は、ステータス通知のデータ列が終わることを表すフッタである。 0x3b is a header representing the start of the status notification data string, and 0x00 is a footer representing the end of the status notification data string.
0x3b 0x0* 0x00の形式のデータは、前述したステップS506においても使用される。0x0*の*部分は、0以外の値が入る4ビット分の領域であり、以下の4種類の状態をこのビット列で表現する。 Data in the format of 0x3b 0x0 * 0x00 is also used in step S506 described above. The * part of 0x0 * is a 4-bit area in which a value other than 0 is entered, and the following four types of states are represented by this bit string.
・印刷ヘッドのクリーニングの途中で電源オフコマンドを受信した、か否か。
・受信バッファに未処理の指令が残っている、もしくは、ラインバッファに展開されたまま、まだ印刷していない印刷イメージが残っている、か否か。
・紙詰まりなどの異常が発生している、か否か。
・オフライン状態のときに電源オフコマンドを受信した、か否か。
-Whether a power off command has been received during print head cleaning.
Whether there are unprocessed commands remaining in the reception buffer, or whether there are still unprinted print images that have been expanded in the line buffer.
・ Is there an abnormality such as a paper jam?
・ Whether or not a power-off command was received when offline.
最後に、CPU 201は、電源コントローラ203により、印刷装置102に対する電源供給を停止させる(ステップS606)。電源コントローラ203は、所定時間経過後に印刷装置102に対する電源供給を停止する。
Finally, the
このように、ホスト装置103から送信された電源オフコマンドによって印刷装置102の電源をオフにすることができるため、ユーザは、主スイッチ204を操作する必要はない。業務形態によっては、主スイッチ204は常にオン(クローズ)の状態にしておき、副スイッチ211は使用しない(覆いをつけてユーザが操作できないようにする)などの実施態様を採用することができる。
As described above, since the power of the
また、リアルタイムコマンドとして電源オフコマンドを実装しているため、パラメータとして0x00を選択した場合には、印刷装置102がオフライン状態(通常処理が待機されている状態)であっても電源をオフにすることができる。
In addition, since a power-off command is implemented as a real-time command, when 0x00 is selected as a parameter, the power is turned off even when the
一方で、印刷装置102が電源オフコマンドを受信した時点の状況がホスト装置103で把握できるため、たとえば、紙詰まりで電源をオフにしてしまった場合や、何らかの理由で印刷ができなかったデータがある場合に、適切な対応をとることができる。
On the other hand, since the status at the time when the
なお、本実施形態では、上述のように、状態遷移によりリアルタイムコマンド等の解釈を行うが、1バイト受信した指令データを受信バッファに格納してから、受信バッファを走査して、リアルタイムコマンドか否かを検出し、リアルタイムコマンドが発見されたらその処理を実行する形態を採用してもよい。 In this embodiment, as described above, the real-time command or the like is interpreted by the state transition, but the command data received by 1 byte is stored in the reception buffer, and then the reception buffer is scanned to determine whether the real-time command is received. It is also possible to adopt a form in which these are detected and the processing is executed when a real-time command is found.
(通常処理)
印刷装置102で実行される通常処理は、通常の印刷装置で実行される処理と同様である。図7は、このような通常処理の制御の流れを示すフローチャートである。以下、概説する。
(Normal processing)
The normal process executed by the
通常処理では、まず、CPU 201は、RAM 207内の受信バッファに指令データが記憶されているか否かを調べる(ステップS701)。
In normal processing, first, the
受信バッファに指令データが記憶されている場合(ステップS701;Yes)、その指令データを読み出し(ステップS702)、指令データの種類を調べる(ステップS703)。 When command data is stored in the reception buffer (step S701; Yes), the command data is read (step S702), and the type of command data is checked (step S703).
なお、ステップS702において指令データを読み出したら、受信バッファの状態を更新して、次回にステップS702に至ったときに、次の指令データが読み出せるようにする必要がある。 When the command data is read in step S702, it is necessary to update the state of the reception buffer so that the next command data can be read the next time step S702 is reached.
通常処理では、受信バッファから順に指令データを読み出し、受信割り込み処理では、受信バッファへ順に指令データを格納する。したがって、所定のサイズの受信バッファを有効に利用するためには、キューやリングバッファの形式で受信バッファを実装することが望ましい。 In the normal process, the command data is read in order from the reception buffer, and in the reception interrupt process, the command data is stored in the reception buffer in order. Therefore, in order to effectively use a reception buffer of a predetermined size, it is desirable to mount the reception buffer in the form of a queue or a ring buffer.
指令データがリアルタイムコマンドである場合(ステップS703;リアルタイムコマンド)、ステップS701に戻る。当該コマンドに対応する処理は、すでに受信割り込み処理の中で実行済みだからである。 If the command data is a real time command (step S703; real time command), the process returns to step S701. This is because the process corresponding to the command has already been executed in the reception interrupt process.
指令データが通常コマンドである場合(ステップS703;通常コマンド)、その指令データに対応する処理を実行して(ステップS704)、ステップS601に戻る。 If the command data is a normal command (step S703; normal command), processing corresponding to the command data is executed (step S704), and the process returns to step S601.
一方、受信バッファに指令データが記憶されていない場合(ステップS701;No)、CPU 201は、RAM 207のパラメータ格納領域に記憶された値の種類を調べる(ステップS710)。値が0xffである場合(ステップS710;0xff)、本実施形態では、電源オフコマンドが指定されていないことになるため、受信バッファに何らかの値が格納されるまで待機し(ステップS711)、所定の時間待機したら、あるいは、受信割り込みなどを契機として、ステップS701に戻る。
On the other hand, when the command data is not stored in the reception buffer (step S701; No), the
一方、値が0x01〜0x09である場合(ステップS710;No)、本実施形態では、所定時間内(それぞれ1分〜9分以内)に必ず電源オフすべきことが指定されていることになる。 On the other hand, when the value is 0x01 to 0x09 (step S710; No), in this embodiment, it is specified that the power must be turned off within a predetermined time (each within 1 minute to 9 minutes).
そこで、CPU 201は、現在の時刻を取得し(ステップS712)、当該時刻とステップS502においてRAM 207内に格納された電源停止許可時刻とを比較し、所定時間が経過しているか否かを調べる(ステップS713)。
Therefore, the
経過していない場合(ステップS713;No)、前述した電源停止処理を実行する(ステップS714)。一方、経過してしまった場合(ステップS713;Yes)も、前述の電源停止処理を実行するが(ステップS715)、ステップS605において、以下のようなフォーマットのデータをホスト装置103へ送信する。
If it has not elapsed (step S713; No), the above-described power supply stop process is executed (step S714). On the other hand, when the time has elapsed (step S713; Yes), the power supply stop process described above is executed (step S715). In step S605, data in the following format is transmitted to the
・0x3b 0x1* 0x00 所定時間が経過しても電源停止処理が開始されなかったため、強制的に電源停止処理を開始した。 ・ 0x3b 0x1 * 0x00 The power supply stop process was forcibly started because the power supply stop process was not started even after a predetermined time.
なお、*部分には、上述のものと同じように、印刷装置のステータスを付加する。 Note that the status of the printing apparatus is added to the * part in the same manner as described above.
一方、値が0xf1〜0xf9である場合(ステップS710;No)、本実施形態では、所定時間内(それぞれ1分〜9分以内)にできるようであれば電源オフすべきことが指定されていることになる。 On the other hand, when the value is 0xf1 to 0xf9 (step S710; No), the present embodiment specifies that the power should be turned off if it can be performed within a predetermined time (within 1 minute to 9 minutes, respectively). It will be.
そこで、CPU 201は、現在の時刻を取得し(ステップS720)、当該時刻とステップS502においてRAM 207内に格納された電源停止許可時刻とを比較し、所定時間が経過しているか否かを調べる(ステップS721)。
Therefore, the
経過していない場合(ステップS721;No)、前述した電源停止処理を実行する(ステップS722)。一方、経過してしまった場合(ステップS721;Yes)、RAM 207内のパラメータ格納領域に0xffを記憶させて電源供給停止を禁止し(ステップS723)、以下のようなフォーマットのデータをホスト装置103へ送信して(ステップS724)、本処理を終了する。
If it has not elapsed (step S721; No), the above-described power supply stop process is executed (step S722). On the other hand, if it has elapsed (step S721; Yes), 0xff is stored in the parameter storage area in the
・0x3b 0x20 0x00 所定時間が経過しても電源停止処理が開始されなかったため、電源停止処理を禁止した。 ・ 0x3b 0x20 0x00 The power supply stop process was prohibited because the power supply stop process was not started even after a predetermined time.
このように、ホスト装置103が指定したパラメータによって、きめ細かく印刷装置102の電源供給停止を管理することができる。
In this way, the power supply stoppage of the
図8は、ステップS605における通常コマンドの処理(ステップS605)の詳細を示すフローチャートである。 FIG. 8 is a flowchart showing details of normal command processing (step S605) in step S605.
まず、指令データの種類を調べる(ステップS761)。指令データが0x20〜0x7eである場合(ステップS761;ASCII)、そのデータに対応するフォントの定義をROM 208から読み出し(ステップS762)、その定義を印刷イメージとしてRAM 207内のラインバッファに展開する(ステップS763)。 First, the type of command data is checked (step S761). When the command data is 0x20 to 0x7e (step S761; ASCII), the font definition corresponding to the data is read from the ROM 208 (step S762), and the definition is developed as a print image in the line buffer in the RAM 207 ( Step S763).
さらに、ラインバッファが1行分たまったか否かを判断し(ステップS764)、1行分たまっていれば(ステップS764;Yes)、そのラインバッファに展開された印刷イメージにしたがって、印刷機構205を駆動して、文字または図形を印刷する(ステップS765)。
Further, it is determined whether or not the line buffer has accumulated one line (step S764). If one line has been accumulated (step S764; Yes), the
ついで、クリーニング処理を行う必要があるか否かを判断し(ステップS766)、行う必要がある場合は、印刷機構205の印刷ヘッドのクリーニング処理を行う(ステップS767)。印刷ヘッドのクリーニング処理は、インクの吐出やインクの吸い上げなど、各種の公知の技法を用いることができる。
Next, it is determined whether or not it is necessary to perform a cleaning process (step S766). If it is necessary to perform the cleaning process, a print head cleaning process of the
クリーニング処理を行う必要があるか否かの判断には、たとえば以下のような基準を用いることができる。 For example, the following criteria can be used to determine whether the cleaning process needs to be performed.
・前回クリーニング処理を行ってからの経過時間。
・前回クリーニング処理を行ってからのインクの使用量。
・前回印刷を行ってから今回印刷を行うまでの経過時間。
-Elapsed time since the last cleaning process.
-The amount of ink used since the previous cleaning process.
-The elapsed time from the previous printing to the current printing.
一方、ラインバッファが1行分たまっていなければ(ステップS764;No)、ステップS766に進んで、必要があればクリーニング処理を行う。 On the other hand, if the line buffer has not accumulated for one line (step S764; No), the process proceeds to step S766, and if necessary, a cleaning process is performed.
一方、指令データが0x0aである場合(ステップS761;LF)、ステップS765に進んで、現在のラインバッファの内容を印刷し、必要があればクリーニング処理を行う。 On the other hand, if the command data is 0x0a (step S761; LF), the process proceeds to step S765 to print the current contents of the line buffer, and if necessary cleaning processing is performed.
ここでは、通常コマンドが1バイト単位のものである実施形態をあげて説明したが、通常コマンドが複数バイトからなるような実施形態を採用してもよい。 Here, the embodiment in which the normal command is in units of 1 byte has been described, but an embodiment in which the normal command is composed of a plurality of bytes may be adopted.
この場合、ステップS702における指令データの読み出しは、1バイトづつの読み出しとして受信割り込み処理におけるような状態遷移を行ってもよいし、指令データのサイズを解釈しながら順次読み出すような形態を採用してもよい。たとえば、画像イメージの印刷指令では、画像イメージ全体のサイズを示す情報が指令データの中に埋め込まれているため、CPU 201は、まず、先頭の所定バイト数の指令データを見て画像イメージのサイズを調べてから、そのサイズだけ受信バッファからイメージデータを繰り返して読み出すことになる。 In this case, the reading of the command data in step S702 may perform state transition as in the reception interrupt process as reading one byte at a time, or adopt a form that reads sequentially while interpreting the size of the command data. Also good. For example, in an image image print command, information indicating the size of the entire image image is embedded in the command data. Then, image data is repeatedly read from the reception buffer by that size.
(ホスト装置の実施形態)
図9は、本発明の印刷システム101におけるホスト装置103の概要構成を示す模式図である。
(Host device embodiment)
FIG. 9 is a schematic diagram showing a schematic configuration of the
ホスト装置103の制御は、CPU 801が行う。ホスト装置103は、CPU 801によって制御される電源コントローラ802を備え、これがホスト装置103の各部に電源を供給するほか、印刷装置102にも電源コネクタ811を介して電源を供給することができる。なお、ホスト装置103内の各部への電源供給線は理解を容易にするため図示を省略してある。
The
ホスト装置103は、ユーザからの指示入力をキーボードやマウスなどの入力装置803で受け付け、この指示入力をCPU 801が解釈して処理を行い、解釈した結果をCRT(Cathode Ray Tube)や液晶ディスプレイなどの表示装置804に表示する。また、表示装置804には、印刷装置の状況を表示して、ユーザに通知することができる。
The
また、指示入力にしたがって、各種のデータをハードディスクやフロッピー(登録商標)ディスクなどの外部記憶装置805に記憶したり、更新したり、消去したりすることができる。
Also, according to the instruction input, various data can be stored in the
さらに、指示入力にしたがって、インターフェース810を介して印刷装置102へ指令データを送信して、指示入力や外部記憶装置805に記憶された情報に対応する文字や図形を印刷させることができる。
Furthermore, according to the instruction input, command data can be transmitted to the
また、CD−ROMドライブ806などの読取装置により、配布されたアプリケーションプログラムをインストールすることができる。
Further, the distributed application program can be installed by a reading device such as the CD-
CPU 801は、一時的な作業を行うための記憶領域として、RAM 807を使用する。また、電源投入直後に実行されるIPL(Initial Program Loader)は、ROM 809に記憶されており、CPU 801は、IPLを実行することにより、外部記憶装置805やCD−ROMドライブ806に装着されたCD−ROMなどからOS(Operating System)やアプリケーションプログラムをRAM 807にロードして実行する。
The
ここで、インターフェース810は、送信部および受信部として機能し、表示装置804は、CPU 801と共働して通知部として機能する。
Here, the
また、外部記憶装置805やCD−ROMドライブ806に装着されたCD−ROMは、本発明の情報記録媒体として機能する。
Further, the CD-ROM mounted on the
図10は、ホスト装置103に対してユーザが作業の終了の指示入力を入力装置803から入力した際に実行される作業終了処理の流れを示すフローチャートである。
FIG. 10 is a flowchart showing the flow of work end processing that is executed when the user inputs a work end instruction input from the
まず、ホスト装置103は、最後の印刷指令として印刷装置102に対し0x0a(改行)を送信する(ステップS901)。これにより、印刷装置102は、ラインバッファ内にデータが残っていれば、これをすべて印刷することができる。なお、0x0a(改行)のほかに、改ページ(0x0c)やn行改行(0x1b 0x64 n)などのコマンドを送信してもよい。
First, the
次に、印刷装置102に対して、現在の印刷状態を知らせる旨の通常コマンドを送信し(ステップS902)、返事が戻ってくるまで待機する(ステップS903)。現在の印刷状態を知らせる旨の通常コマンドとしては、たとえば、以下のようなものを使うことができる。 Next, a normal command for notifying the current printing state is transmitted to the printing apparatus 102 (step S902), and the process waits until a reply is returned (step S903). For example, the following command can be used as a normal command for notifying the current printing state.
・0x1d 0x72 0x01この通常コマンドを受信した印刷装置102は、上記0x0a(改行)に基づいて印刷機構205の駆動をし、これによる印字が完了してから、完了した旨の返事を返す。
0x1d 0x72 0x01 The
完了した旨の返事が戻って来たら、印刷装置102に対して、電源オフコマンドを送信して(ステップS904)、返事が戻ってくるまで、もしくは、所定経過時間(前述の通り、たとえば10秒)が経過するまで待機する(ステップS905)。戻ってくる返事は、上述のように、以下のようなデータ列である。 When a reply indicating completion is returned, a power-off command is transmitted to the printing apparatus 102 (step S904), or until a reply is returned or a predetermined elapsed time (as described above, for example, 10 seconds) ) (Step S905). As described above, the reply to be returned is the following data string.
・0x3b 0x30 0x00・0x3b 0x0* 0x00これらのデータ列のフォーマットは、実施態様に応じて適宜選択することができ、これらフォーマットを変更した実施形態も本発明の範囲に含まれる。 • 0x3b 0x30 0x00 • 0x3b 0x0 * 0x00 The format of these data strings can be appropriately selected according to the embodiment, and embodiments in which these formats are changed are also included in the scope of the present invention.
ついで、所定時間内に返事が戻ってきたか否かを判断し(ステップS906)、返事が戻ってきた場合(ステップS906;Yes)、その返事を吟味する(ステップS907)。返事が正常終了である場合(ステップS907;正常)、すなわち、返事が0x3b 0x30 0x00の形であった場合、ホスト装置103本体の動作中アプリケーションとOSを終了させてから(ステップS908)、電源コントローラ802によりホスト装置103に対する電源供給を停止させる(ステップS909)。
Next, it is determined whether or not a reply is returned within a predetermined time (step S906). If the reply is returned (step S906; Yes), the reply is examined (step S907). If the reply ends normally (step S907; normal), that is, if the reply is in the form of 0x3b 0x30 0x00, the running application and OS of the
一方、返事が異常終了である場合(ステップS907;異常)、すなわち、返事が0x3b 0x0* 0x00の形であった場合、その返事に対応するメッセージを表示装置804に表示してユーザに通知し(ステップS910)、このまま作業終了処理を続行するか否かを問い合わせる(ステップS911)。
On the other hand, if the reply is abnormally terminated (step S907; abnormal), that is, if the reply is in the form of 0x3b 0x0 * 0x00, a message corresponding to the reply is displayed on the
続行する旨の指示入力があった場合(ステップS911;Yes)、ステップS908に進み、続行しない旨の指示入力があった場合(ステップS911;No)、本処理を終了する。 If there is an instruction input for continuing (step S911; Yes), the process proceeds to step S908, and if there is an instruction input for not continuing (step S911; No), this process ends.
一方、所定の時間内に返事が戻ってこなかった場合(ステップS906)、その旨のメッセージを表示装置804に表示してユーザに通知し(ステップS912)、ステップS911に進む。
On the other hand, when a reply is not returned within a predetermined time (step S906), a message to that effect is displayed on the
連動電源によりホスト装置103から印刷装置102に対して電源が供給されている場合は、ここで印刷装置102全体に対する電源もオフになる。
When power is supplied from the
上記のような制御の流れのほかの時点で、所定時間内の電源の供給停止をパラメータとして選択した場合、印刷装置102からは、印刷装置102のステータスの報告として、以下のようなデータ列が送信されてくることがある。
When the stop of power supply within a predetermined time is selected as a parameter at another time point in the control flow as described above, the following data string is output from the
・0x3b 0x30 0x00・0x3b 0x1* 0x00・0x3b 0x20 0x00これらのデータ列を印刷装置102から受信する場合は、ホスト装置103から電源オフコマンドを送信した後である。ホスト装置103は、これらのデータ列により印刷装置102の状態を知ることができ、ユーザに適宜これらの情報を通知することができる。
0x3b 0x30 0x00, 0x3b 0x1 * 0x00, 0x3b 0x20 0x00 When these data strings are received from the
(第2の実施形態)
本実施形態は、主要な部分については上述の実施形態と同様であるが、電源停止処理の詳細が異なる。以下説明する。
(Second Embodiment)
This embodiment is the same as the above-described embodiment with respect to main parts, but the details of the power supply stop process are different. This will be described below.
上述の実施形態では、電源停止処理により、印刷装置102に対する電源供給がオフにされたが、本実施形態の電源停止処理では、以下のような省電力モードに移行することにより、電源停止処理のかわりとする。
In the above embodiment, the power supply to the
・印刷機構に対する電源供給を停止する。
・CPU 201のクロックを下げる。あるいは停止する。
-Stop the power supply to the printing mechanism.
-Lower the
これらの手法のいずれかを選択してもよいし、両方を使用してもよい。これらの手法を上述の電源停止処理のステップS606のかわりに使用する。 Either of these methods may be selected, or both may be used. These methods are used instead of step S606 of the power supply stop process described above.
なお、この際に、ステップS604における動作ランプ210の表示色を変更したり、常時点灯ではなく間欠点灯として現在省電力モードであることを示すようにしてもよい。したがって、本実施形態では、動作ランプ210は、表示部として機能する。
At this time, the display color of the
省電力モードから通常モードへの復帰は、副スイッチの操作によってCPU201に割り込みをかけることによってもよいし、ホスト装置103からの指令データによってもよい。
The return from the power saving mode to the normal mode may be performed by interrupting the
また、省電力モードへ移行した旨や、移行した省電力モードの情報を、電源オフコマンド受信時の印刷装置102の状態情報としてホスト装置103に送信することもできる。
In addition, information indicating the transition to the power saving mode and information on the shifted power saving mode can be transmitted to the
(第3の実施形態)
本実施形態は、主要な部分については、上述の実施形態と同様であるが、電源停止処理の処理の詳細が異なる。以下説明する。
(Third embodiment)
This embodiment is the same as the above-described embodiment with respect to the main part, but the details of the power supply stop process are different. This will be described below.
上述の実施形態では、受信割り込み処理の状態遷移E→Aの際にかならずステップS601〜S606の電源停止処理を実行したが、本実施形態では、ステップS601を実行する前に、ディップスイッチ209の設定を調べる。
In the above-described embodiment, the power supply stop process in steps S601 to S606 is always executed during the state transition E → A of the reception interrupt process. However, in this embodiment, the setting of the
ディップスイッチ209の所定のスイッチが第1の状態(たとえばON)になっている場合には、ステップS601〜S606の電源停止処理を実行する。
When the predetermined switch of the
一方第2の状態(たとえばOFF)になっている場合には、ステップS601〜S506の電源停止処理は実行せずに、そのままステップS304に戻る。この際に、ホスト装置103に対しては、ディップスイッチ209の設定に基づき、印刷装置102の電源の停止処理は実行しなかった旨を状態情報として送信する。
On the other hand, when it is in the second state (for example, OFF), the power supply stop process in steps S601 to S506 is not executed, and the process directly returns to step S304. At this time, based on the setting of the
本実施形態では、店舗などの業務形態に応じてディップスイッチ209の設定により、ホスト装置103から送信された電源オフコマンドに対応するか否かを決めることができる。また、対応しない場合に、ホスト装置103がその旨を知ることができる。
In this embodiment, it is possible to determine whether or not to respond to the power-off command transmitted from the
(第4の実施形態)
本実施形態は、主要な部分については、上述の実施形態と同様であるが、印刷装置102とホスト装置103とが一体に構成されている点が異なる。すなわち、本印刷システム101が一体の装置として実現される。このような印刷システム101は、たとえばPOS端末として使用することができる。
(Fourth embodiment)
This embodiment is the same as the above-described embodiment with respect to main parts, but is different in that the
101 印刷システム
102 印刷装置
103 ホスト装置
104 通信線
105 電源供給線
201 CPU
202 電源供給コネクタ
203 電源コントローラ
204 主スイッチ
205 印刷機構
206 インターフェース
207 RAM
208 ROM
209 ディップスイッチ
210 動作ランプ
211 副スイッチ
212 フラッシュEEPROM
801 CPU
802 電源コントローラ
803 入力装置
804 表示装置
805 外部記憶装置
806 CD−ROMドライブ
807 RAM
809 ROM
810 インターフェース
811 電源コネクタ
DESCRIPTION OF
202
208 ROM
209
801 CPU
802
809 ROM
810
Claims (23)
The information recording medium according to any one of claims 16 to 22, wherein the information recording medium is a compact disk, a floppy disk, a hard disk, a magneto-optical disk, a digital video disk, a magnetic tape, or a semiconductor memory. recoding media.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010003098A JP2010083148A (en) | 2010-01-08 | 2010-01-08 | Printing system, method for turning off power supply for printing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010003098A JP2010083148A (en) | 2010-01-08 | 2010-01-08 | Printing system, method for turning off power supply for printing system |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP28081699A Division JP2001096866A (en) | 1999-09-30 | 1999-09-30 | Printer, printing system, host device and method for controlling them and information recording medium |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010293385A Division JP4983978B2 (en) | 2010-12-28 | 2010-12-28 | Printing apparatus, printing system, host apparatus, control method therefor, and information recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010083148A true JP2010083148A (en) | 2010-04-15 |
Family
ID=42247560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010003098A Pending JP2010083148A (en) | 2010-01-08 | 2010-01-08 | Printing system, method for turning off power supply for printing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010083148A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106610799A (en) * | 2015-10-27 | 2017-05-03 | 北大方正集团有限公司 | Data division delay processing method, device and system of ink jet printing |
JP2020107352A (en) * | 2019-04-18 | 2020-07-09 | キヤノン株式会社 | Print control device |
JP2021170346A (en) * | 2020-03-09 | 2021-10-28 | キヤノン株式会社 | system |
US11403051B2 (en) | 2012-02-17 | 2022-08-02 | Canon Kabushiki Kaisha | Print control apparatus, printing system, method for controlling print control apparatus, and storage medium to send a shutdown instruction from an information processing apparatus to a printer from a print control apparatus, and the print control apparatus executing shutdown processing after receiving a power supply state notification from a printer, sending the power supply notification to the information processing apparatus and receiving a shutdown notification from the printer |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07186494A (en) * | 1993-11-08 | 1995-07-25 | Seiko Epson Corp | Printer, control thereof and data processor using printer |
JPH09128177A (en) * | 1995-10-31 | 1997-05-16 | Casio Electron Mfg Co Ltd | Printer device |
JPH11232183A (en) * | 1998-02-11 | 1999-08-27 | Nec Data Terminal Ltd | Printer control information managing device and recording medium for recording control information management program |
-
2010
- 2010-01-08 JP JP2010003098A patent/JP2010083148A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07186494A (en) * | 1993-11-08 | 1995-07-25 | Seiko Epson Corp | Printer, control thereof and data processor using printer |
JPH09128177A (en) * | 1995-10-31 | 1997-05-16 | Casio Electron Mfg Co Ltd | Printer device |
JPH11232183A (en) * | 1998-02-11 | 1999-08-27 | Nec Data Terminal Ltd | Printer control information managing device and recording medium for recording control information management program |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11403051B2 (en) | 2012-02-17 | 2022-08-02 | Canon Kabushiki Kaisha | Print control apparatus, printing system, method for controlling print control apparatus, and storage medium to send a shutdown instruction from an information processing apparatus to a printer from a print control apparatus, and the print control apparatus executing shutdown processing after receiving a power supply state notification from a printer, sending the power supply notification to the information processing apparatus and receiving a shutdown notification from the printer |
CN106610799A (en) * | 2015-10-27 | 2017-05-03 | 北大方正集团有限公司 | Data division delay processing method, device and system of ink jet printing |
JP2020107352A (en) * | 2019-04-18 | 2020-07-09 | キヤノン株式会社 | Print control device |
JP2021170346A (en) * | 2020-03-09 | 2021-10-28 | キヤノン株式会社 | system |
JP7305710B2 (en) | 2020-03-09 | 2023-07-10 | キヤノン株式会社 | PRINT CONTROL DEVICE AND CONTROL METHOD THEREOF |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4246367B2 (en) | Printing device | |
JP4137144B2 (en) | Data processing apparatus and control method thereof | |
JP6140994B2 (en) | Printing system, printing control apparatus, printing control apparatus control method, and program | |
JP2010083148A (en) | Printing system, method for turning off power supply for printing system | |
JP4983978B2 (en) | Printing apparatus, printing system, host apparatus, control method therefor, and information recording medium | |
JP2003319106A (en) | Image processing apparatus and control method thereof | |
CN104898994B (en) | Print command device, print system and print instruction method | |
JP2012224079A (en) | Printing apparatus | |
US9152359B2 (en) | Image forming apparatus that selects appropriate power saving mode for each time slot | |
JP4883238B2 (en) | Printing apparatus, printing system, host apparatus, control method therefor, and information recording medium | |
JP6431279B2 (en) | Printing apparatus and printing apparatus control method | |
JP4412312B2 (en) | Printing apparatus and control method thereof | |
JP2001096866A (en) | Printer, printing system, host device and method for controlling them and information recording medium | |
JP6282097B2 (en) | Information processing apparatus, information processing apparatus control method, and program | |
US20140111822A1 (en) | Image forming apparatus capable of controlling power supplies to respective parts thereof, and control method and storage medium therefor | |
JP2001222402A (en) | Printer, method for controlling the same and information recording medium | |
JP2017071186A (en) | Image forming apparatus, image forming method, and program | |
JP2009279919A (en) | Image forming apparatus | |
JP2001096850A (en) | Printing system, printing unit, host unit and control method therefor, and information recording medium | |
US8780387B2 (en) | System, information processing apparatus, and printing apparatus | |
JP2007105975A (en) | Image forming apparatus | |
JP2000250723A (en) | Print controlling method, printing controller and storage medium | |
JP6025303B2 (en) | Printing control apparatus, method and program | |
JP2007136815A (en) | Image forming apparatus and its control method | |
JPH1024642A (en) | Image forming apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100205 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100205 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101102 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101228 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110510 |