JP4412312B2 - Printing apparatus and control method thereof - Google Patents

Printing apparatus and control method thereof Download PDF

Info

Publication number
JP4412312B2
JP4412312B2 JP2006244482A JP2006244482A JP4412312B2 JP 4412312 B2 JP4412312 B2 JP 4412312B2 JP 2006244482 A JP2006244482 A JP 2006244482A JP 2006244482 A JP2006244482 A JP 2006244482A JP 4412312 B2 JP4412312 B2 JP 4412312B2
Authority
JP
Japan
Prior art keywords
command
printing apparatus
power
power supply
printing
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.)
Expired - Fee Related
Application number
JP2006244482A
Other languages
Japanese (ja)
Other versions
JP2007022090A (en
Inventor
光明 寺平
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 JP2006244482A priority Critical patent/JP4412312B2/en
Publication of JP2007022090A publication Critical patent/JP2007022090A/en
Application granted granted Critical
Publication of JP4412312B2 publication Critical patent/JP4412312B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、印刷装置及びその制御方法に関する。   The present invention relates to a printing apparatus and a control method thereof.

従来から、プリンタなどの印刷装置に対してコンピュータなどのホスト装置から指令を送信して、印刷装置に文字や図形を印刷させたり、印刷の体裁を整えたり、印刷装置自体の設定を行ったりする印刷システムが広く使用されている。   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(PointOfSales)端末として使用される場合、印刷装置の電源のオン・オフは、店員に直接行わせたくはない場合も多い。   In addition, 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.

また、印刷装置のスイッチを直接操作するのではなく、ホスト装置からの指令により印刷装置の電源供給の停止が指示できるような印刷システムについても研究開発が進められている。
特開平08-339275 特開平08-11393
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.
JP 08-339275 JP 08-11393

このような印刷システムにおいて、ホスト装置から印刷装置の電源を管理して、印刷装置の電源をオフする場合に、印刷装置に確実に停止処理を行わせることができるような印刷システムが望まれている。   In such a printing system, there is a need for a printing system that can reliably stop the printing apparatus when the power of the printing apparatus is managed from a host device and the printing apparatus is turned off. Yes.

本発明は、上記のような課題を解決するためになされたもので、ホスト装置から印刷装置の電源供給の停止を確実に管理するのに好適な印刷装置及びその制御方法を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a printing apparatus suitable for reliably managing a stop of power supply of a printing apparatus from a host apparatus and a control method thereof. And

本発明の印刷装置は、ホスト装置に接続されるPOS端末として使用される印刷装置であって、
前記ホスト装置が送信した指令を受信する指令受信部と、
前記指令を受信するたびに指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したときリアルタイムコマンドとしての電源オフコマンドであると確定する電源オフコマンド確定部と、
前記電源オフコマンドの確定に応じて当該印刷装置の停止処理を行う停止処理部と、
を備え、
前記停止処理部は、
前記停止処理として、前記電源オフコマンドに含まれるパラメータの指定によって、当該印刷装置の電源供給を停止して良いかどうかを判断し、停止して良いと判断された場合、当該印刷装置の各種設定値、各種カウント値及び当該印刷装置の状態を設定記憶部に記憶し、前記ホスト装置に前記停止処理の主要部分が終了した旨の通知を送信し、該送信後に当該印刷装置の電源供給を停止可能とすることを特徴とする。
A printing apparatus of the present invention is a printing apparatus used as a POS terminal connected to a host apparatus,
A command receiving unit for receiving a command transmitted by the host device;
A power-off command determination unit that interprets the value of the command data every time the command is received and determines that the command data is a power-off command as a real-time command when it is detected that the command data is received in a predetermined order;
A stop processing unit that performs stop processing of the printing apparatus in response to confirmation of the power-off command ;
With
The stop processing unit
As the stop process, it is determined whether or not the power supply of the printing apparatus can be stopped by specifying a parameter included in the power-off command. When it is determined that the power supply can be stopped, various settings of the printing apparatus are determined. Value, various count values, and the status of the printing device are stored in the setting storage unit, a notification that the main part of the stop process has been completed is transmitted to the host device, and the power supply of the printing device is stopped after the transmission. It is possible to make it possible.

また、本発明の印刷装置は、ホスト装置に接続される印刷装置であって、前記受信した指令を記憶する指令格納部と、前記受信した指令を順に読み出し、該読み出した指令が印刷指令である場合、該印刷指令に対応する印刷動作を行う指令処理部と、前記電源停止処理には、キャリッジに搭載された印刷ヘッドを所定の位置に移動してロックする処理を含むことを特徴とする。
The printing apparatus according to the present invention is a printing apparatus connected to a host device, and sequentially reads the received command and a command storage unit that stores the received command, and the read command is a print command. In this case, the command processing unit that performs a printing operation corresponding to the print command and the power supply stop process include a process of moving and locking the print head mounted on the carriage to a predetermined position.

また、本発明の印刷装置の電源オフ制御方法は、ホスト装置に接続されるPOS端末として使用される印刷装置の電源オフ制御方法であって、前記ホスト装置が送信した指令を受信するたびに指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したときリアルタイムコマンドとしての電源オフコマンドであると確定する工程と、
前記印刷装置の停止処理を行う停止処理工程と、電源オフコマンドに含まれるパラメータの指定によって、当該印刷装置の電源供給を停止して良いかどうかを判断する工程と、
停止して良いと判断された場合、当該印刷装置の各種設定値、各種カウント値及び当該印刷装置の状態を設定記憶部に記憶し、前記ホスト装置に前記停止処理の主要部分が終了した旨の通知を送信し、該送信後に当該印刷装置の電源供給を停止可能とする工程と、
を備えることを特徴とする。
The printing apparatus power-off control method according to the present invention is a printing apparatus power-off control method used as a POS terminal connected to a host apparatus, and the command is sent every time a command transmitted by the host apparatus is received. Interpreting the value of the data and determining that it is a power off command as a real time command when detecting that the command data is received in a predetermined order; and
A stop process step of performing a stop process of the printing apparatus, a step of determining whether or not the power supply of the printing apparatus may be stopped by specifying a parameter included in a power-off command ;
If it is determined that the printer can be stopped, the various setting values, the various count values, and the state of the printer are stored in the setting storage unit, and the main part of the stop process is completed in the host device. A step of transmitting a notification and allowing the power supply of the printing apparatus to be stopped after the transmission ;
It is characterized by providing.

また、本発明の印刷装置の電源オフ制御方法は、ホスト装置に接続されるPOS端末として使用される印刷装置の電源オフ制御方法であって、前記ホスト装置が送信した指令を受信するたびに指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したときリアルタイムコマンドとしての電源オフコマンドであると確定する工程と、
前記印刷装置の停止処理を行う停止処理工程と、電源オフコマンドに含まれるパラメータの指定によって、当該印刷装置の電源供給を停止して良いかどうかを判断する工程と、停止して良いと判断された場合、当該印刷装置の各種設定値、各種カウント値及び当該印刷装置の状態を設定記憶部に記憶し、前記ホスト装置に前記停止処理の主要部分が終了した旨の通知を送信する工程と、前記印刷装置から停止処理の主要部分が終了したかどうかの通知を受信する停止処理主要部分終了通知受信工程と、前記印刷装置から前記停止処理の主要部分が終了した旨の通知を受信した場合、前記ホスト装置の電源供給を停止して、当該ホスト装置から連動して電源が供給されている印刷装置への電源をオフをするホスト装置電源供給停止工程と、を備えることを特徴とする。

The printing apparatus power-off control method according to the present invention is a printing apparatus power-off control method used as a POS terminal connected to a host apparatus, and the command is sent every time a command transmitted by the host apparatus is received. Interpreting the value of the data and determining that it is a power off command as a real time command when detecting that the command data is received in a predetermined order; and
A stop process step for stopping the printing apparatus, a step for determining whether or not to stop power supply to the printing apparatus by specifying a parameter included in the power-off command, and a determination that the stop may be performed. A setting storage unit that stores various setting values, various count values, and the state of the printing device of the printing device, and transmits a notification that the main part of the stop process has been completed to the host device ; When receiving a notification indicating that the main part of the stop process has been completed from the printing apparatus, and a stop process main part end notification receiving step for receiving whether or not the main part of the stop process has been completed from the printing apparatus, A host device power supply stopping step of stopping power supply to the host device and turning off power to the printing device to which power is supplied in conjunction with the host device. And wherein the Rukoto.

以上説明したように、本発明によれば、ホスト装置から電源オフコマンドを受信した場合、印刷装置の停止処理として、印刷装置の電源供給を停止して良いかどうか判断した後、キャリッジに搭載された印刷ヘッドを所定の位置に移動してロックし、印刷装置の各種設定値、各種カウント値及び当該印刷装置の状態を設定記憶部に記憶し、ホスト装置に電源停止処理の主要部分が終了した旨の通知を送信し、該送信の所定時間後に印刷装置の電源供給を停止するので、印刷装置の停止処理を確実に行うことができる。   As described above, according to the present invention, when a power-off command is received from the host device, the printer is mounted on the carriage after determining whether or not the power supply to the printing device can be stopped as a printing device stop process. The print head is moved to a predetermined position and locked, and various setting values of the printing apparatus, various count values and the state of the printing apparatus are stored in the setting storage unit. Since the notification to that effect is transmitted and the power supply of the printing apparatus is stopped after a predetermined time of the transmission, the stopping process of the printing apparatus can be reliably performed.

また、本発明によれば、ユーザによって作業終了を指示された時、ホスト装置から最後の印刷指令を送り、この指令を受信した印刷装置において、印刷装置内部の印刷データを全て印刷した後に印刷装置の電源供給を停止するので、印刷装置の電源供給を停止しても、未印字データを残すことがない。   Further, according to the present invention, when the end of work is instructed by the user, the printing device sends a final print command from the host device, and after printing all the print data inside the printing device in the printing device that has received this command, Therefore, even if the power supply of the printing apparatus is stopped, unprinted data is not left.

以下に本発明の一実施形態を説明する。なお、以下に説明する実施形態は説明のためのものであり、本願発明の範囲を制限するものではない。したがって、当業者であればこれらの各要素もしくは全要素をこれと均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本願発明の範囲に含まれる。
(第1の実施形態)
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.
(First embodiment)

図1は、本発明の印刷システムの第1の実施形態の概要構成を示す模式図である。以下、図1を参照しながら説明する。   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 printing system 101 includes a printing apparatus 102 and a host apparatus 103 that controls the printing apparatus 102. The host apparatus 103 transmits a command to the printing apparatus 102 via the communication line 104. The printing apparatus 102 receives the command transmitted from the host device 103, interprets the command, prints characters and figures on paper, film, etc., arranges the printing appearance, and sets the printing apparatus 102 itself. Or change it.

また、本実施形態では、ホスト装置103が外部機器に電源を供給するための電源コネクタ(図示せず)を備えており、この電源コネクタから電源供給線105が印刷装置102に接続されている。この電源コネクタは、ホスト装置103の電源供給と連動させることができる。この場合、ホスト装置103の電源がオフになると、印刷装置102の電源スイッチを一切操作しなくとも、印刷装置102に対する電源の供給をすべて停止することができる。   In this embodiment, the host apparatus 103 includes a power connector (not shown) for supplying power to an external device, and a power supply line 105 is connected to the printing apparatus 102 from the power connector. This power connector can be interlocked with the power supply of the host device 103. In this case, when the host apparatus 103 is powered off, all the power supply to the printing apparatus 102 can be stopped without operating any power switch of the printing apparatus 102.

なお、通信線104は、有線ケーブルのほか、無線LAN(LocalAreaNetwork)や電話線、赤外線通信などの通信手段によってもよい。
(印刷装置の実施形態)
Note that the communication line 104 may be a wired LAN, communication means such as a wireless local area network (LAN), a telephone line, or infrared communication.
(Embodiment of printing apparatus)

図2は、印刷システム101の印刷装置102の概要構成を示す模式図である。なお、図2において、上述の図と同じ機能を果たす要素には同じ符号を付してある。   FIG. 2 is a schematic diagram illustrating a schematic configuration of the printing apparatus 102 of the printing system 101. In FIG. 2, the elements having the same functions as those in the above-described drawings are denoted by the same reference numerals.

印刷装置102は、CPU201によって制御される。電源供給コネクタ202から供給された電源は、電源コントローラ203によって制御管理される。電源供給コネクタ202と電源コントローラ203の間の電源供給線の途中には主スイッチ204が接続されており、印刷装置102全体のこれを切れば、電源を完全にオフにすることができる。   The printing apparatus 102 is controlled by the CPU 201. The power supplied from the power supply connector 202 is controlled and managed by the power controller 203. A main switch 204 is connected in the middle of the power supply line between the power supply connector 202 and the power controller 203, and the power can be completely turned off by turning off the entire printing apparatus 102.

印刷装置102は、印刷ヘッド、紙送り機構、プラテン、用紙カッターなどの印刷機構205を駆動して、紙やフィルムなどに文字や図形を印刷する。   The printing apparatus 102 drives a printing mechanism 205 such as a print head, a paper feed mechanism, a platen, and a paper cutter, and prints characters and figures on paper, film, and the like.

CPU201には、副スイッチ211が接続されている。副スイッチ211はプッシュ型のスイッチで、副スイッチ211を押圧操作すると、その操作がトリガとなって、CPU201は、印刷機構205内の印刷ヘッドのクリーニング処理を実行し、さらに、電源コントローラ203を制御して、電源コントローラ203による電源供給を停止させる。なお、電源コントローラからは、CPU201や印刷機構205に対して電源が供給されているが、図の理解を容易にするため、図2中では、この電源供給線の図示を省略している。   A sub switch 211 is connected to the CPU 201. The sub switch 211 is a push-type switch. When the sub switch 211 is pressed, the operation is a trigger, and the CPU 201 executes a cleaning process for the print head in the printing mechanism 205 and further controls the power controller 203. Then, the power supply by the power controller 203 is stopped. Note that power is supplied from the power supply controller to the CPU 201 and the printing mechanism 205, but in order to facilitate understanding of the drawing, the illustration of the power supply line is omitted in FIG.

印刷装置102は、ホスト装置103とインターフェース206を介して接続されており、CPU201は、インターフェース206が受信した指令にしたがって、印刷機構205を駆動する。   The printing apparatus 102 is connected to the host apparatus 103 via the interface 206, and the CPU 201 drives the printing mechanism 205 in accordance with a command received by the interface 206.

インターフェース206が指令を表すデータの受信を検出すると、CPU201に対して割り込みを発生させる。CPU201は、そのときの制御の流れから受信割り込み処理に制御を移行して、検出された指令データをインターフェースに受信させ、当該データがリアルタイムコマンドである場合には、これに対応する処理を実行し、受信したデータをRAM(RandomAccessMemory)207内の受信バッファに記憶させて、受信割り込み処理を終了する。リアルタイムコマンドとは、受信したときリアルタイムに実行されるコマンドであり、本発明における電源オフコマンドはリアルタイムコマンドとして実装される。   When the interface 206 detects the reception of data representing a command, the CPU 206 generates an interrupt. The CPU 201 shifts control from the flow of control at that time to reception interrupt processing, causes the detected command data to be received by the interface, and executes processing corresponding to this when the data is a real-time command. The received data is stored in a reception buffer in a RAM (Random Access Memory) 207, and the reception interrupt process is terminated. The real-time command is a command that is executed in real time when received, and the power-off command in the present invention is implemented as a real-time command.

また、電源オフコマンドの処理の際に、インターフェース206を介してホスト装置103へ、電源オフの状況に関する情報を送信する。   Further, when processing the power-off command, information related to the power-off state is transmitted to the host apparatus 103 via the interface 206.

一方、CPU201は、通常処理として、受信バッファに記憶された指令データを順に読み出し、その指令データにしたがって、文字や図形を印刷したり、印刷の体裁を整えたり、印刷装置102の設定を変更したりする。このように、ここで解釈される指令を通常コマンドと呼ぶ。また、指令データがリアルタイムコマンドである場合には、当該指令データを読み飛ばす。   On the other hand, as a normal process, the CPU 201 sequentially reads the command data stored in the reception buffer, prints characters and graphics, arranges the printing appearance, and changes the settings of the printing apparatus 102 according to the command data. Or Thus, the command interpreted here is called a normal command. When the command data is a real time command, the command data is skipped.

文字や図形を印刷する際には、ROM(ReadOnlyMemory)208に記憶されたフォント情報を用いて、RAM207内のラインバッファに印刷イメージを展開する。展開された印刷イメージが1行分に達したり、改行指令に出会った場合に、当該ラインバッファ内の印刷イメージにしたがって印刷機構205を駆動する。   When printing characters and graphics, a print image is developed in a line buffer in the RAM 207 using font information stored in a ROM (Read Only Memory) 208. When the expanded print image reaches one line or a line feed command is encountered, the printing mechanism 205 is driven according to the print image in the line buffer.

ディップスイッチ209は、印刷装置102の各種の設定を行う。動作ランプ210は、各種の色で点灯したり、点滅することにより、現在の動作状態をユーザに知らせる。   A dip switch 209 performs various settings of the printing apparatus 102. The operation lamp 210 is lit in various colors or blinks to notify the user of the current operation state.

フラッシュEEPROM(ElectricallyErasableProgrammableROM)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コードの文字を印刷する。通常コマンド。
・0x100x140x020x01n 電源オフコマンドである。リアルタイムコマンド。
・ 0x0a Starts a new line. Normal command.
・ 0x20 ~ 0x7e Print the ASCII code characters. Normal command.
・ 0x100x140x020x01n 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 printing apparatus 102 stores the designated parameter type in the parameter storage area in the RAM 207.

一般に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 printing apparatus 102 is transmitted, a real-time command for opening the printing apparatus 102 when the printing apparatus 102 has a POS terminal money box, or a normal command for printing an image. Embodiments in which these instructions are implemented are also included in the scope of the present invention.

ここで、インターフェース206は、受信部として機能し、CPU201は、許可部として機能し、RAM207は、指令格納部として機能し、印刷機構205は、CPU201と共働して印刷部として機能し、電源コントローラ203は、CPU201と共働して停止処理部として機能する。また、インターフェース206は、送信部として機能し、CPU201は、停止処理済み送信制御部として機能する。また、CPU201は、禁止部として機能する。また、CPU201は、停止処理禁止送信部として機能する。   Here, the interface 206 functions as a receiving unit, the CPU 201 functions as a permission unit, the RAM 207 functions as a command storage unit, the printing mechanism 205 functions as a printing unit in cooperation with the CPU 201, and a power source. The controller 203 functions as a stop processing unit in cooperation with the CPU 201. Further, the interface 206 functions as a transmission unit, and the CPU 201 functions as a transmission control unit that has been stopped. Further, the CPU 201 functions as a prohibition unit. Further, the CPU 201 functions as a stop process prohibition transmission unit.

また、ROM208は、本発明の情報記録媒体として機能する。ホスト装置103からROM 208の更新(バージョンアップ)を行うことができる場合は、ホスト装置103に装着された情報記録媒体やホスト装置103が備える情報記録媒体も、本発明の情報記録媒体として機能する。
(受信割り込み処理)
The ROM 208 functions as an information recording medium of the present invention. When the ROM 208 can be updated (upgraded) from the host device 103, the information recording medium mounted on the host device 103 and the information recording medium included in the host device 103 also function as the information recording medium of the present invention. .
(Reception interrupt processing)

図3は、印刷装置102で実行される受信割り込み処理の制御の流れを示すフローチャートである。受信割り込み処理は、指令データが送信されていることをインターフェース206が検知したことを契機に、後述する通常処理に割り込む形式で開始される。この割り込みは、指令データが1バイト送信されるたびに発生する。   FIG. 3 is a flowchart showing a control flow of reception interrupt processing executed by the printing apparatus 102. The reception interrupt process is started in a format that interrupts normal processing to be described later when the interface 206 detects that command data is being transmitted. This interruption occurs every time one byte of command data is transmitted.

まず、CPU201は、インターフェース206に指令データを1バイト受信させる(ステップS301)。   First, the CPU 201 causes the interface 206 to receive 1 byte of command data (step S301).

次に、CPU201は、受信した指令データの値にしたがって、印刷装置102の受信状態を次の受信状態に遷移させ(ステップS302)、その状態遷移に伴う処理を実行する(ステップS303)。   Next, the CPU 201 transitions the reception state of the printing apparatus 102 to the next reception state according to the value of the received command data (step S302), and executes processing associated with the state transition (step S303).

印刷装置102の受信状態は、図4に示すような状態遷移図によって表すことができる。現在の受信状態は、RAM207内に記憶されており、遷移の度に記憶される値(図4の実施形態ではA〜E等)が更新される。   The reception state of the printing apparatus 102 can be represented by a state transition diagram as shown in FIG. The current reception state is stored in the RAM 207, and the value (A to E in the embodiment of FIG. 4) stored at each transition is updated.

図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, and 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.

この状態遷移図は、ROM208内に記憶しておいてもよいし、プログラムの形式で表現してもよい。   This state transition diagram may be stored in the ROM 208 or expressed in the form of a program.

これらの状態遷移は、通常コマンドやリアルタイムコマンドの種類に応じて変更することができ、変更した実施形態も本発明の範囲に含まれる。たとえば、受信状態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 process accompanying this are executed, the received 1-byte command data is stored in the reception buffer (step S304), and this process ends.
(Power stop permission process)

図5は、印刷装置102で実行される電源停止許可処理の制御の流れを示すフローチャートである。   FIG. 5 is a flowchart illustrating a control flow of the power stop permission process executed by the printing apparatus 102.

まず、CPU201は、指定されたパラメータ(0x00、0x01〜0x09、0xf0、0xf1〜0xf9のいずれか)の値を、RAM207内のパラメータ格納領域に記憶する(ステップS501)。   First, the CPU 201 stores the value of the designated parameter (0x00, 0x01 to 0x09, 0xf0, or 0xf1 to 0xf9) in the parameter storage area in the RAM 207 (step S501).

さらに、現在の時刻をRAM207内に設けられた電源停止許可時刻領域に記憶する(ステップS502)。この「現在時刻」は、印刷装置102がリアルタイムクロックを備えている場合は、これら取得することができる。また、電源をオンにした時点からの経過時間を「現在時刻」としてもよい。この場合は、所定のクロック数ごとにカウント値が増加するカウンタの値を「現在時刻」とする。   Further, the current time is stored in the power supply stop permission time area provided in the RAM 207 (step S502). The “current time” can be acquired when the printing apparatus 102 includes a real-time clock. Further, the elapsed time from when the power is turned on may be set as the “current time”. In this case, the value of the counter whose count value increases every predetermined number of clocks is set as “current time”.

次に、当該パラメータの値を調べる(ステップ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 printing apparatus 102 is stopped, and thus this process ends.

一方、パラメータの値が0xf0である場合(ステップS503:0xf0)、印刷装置102が、直ちに電源をオフにしてもよい状態か否かを調べる(ステップS505)。直ちにオフにしてもよい状態として、たとえば、「受信バッファとラインバッファに格納された指令データはすべて処理済みである」か否か、のような条件を採用することができる。これらの条件については、後述する電源停止においてさらに詳細に説明する。   On the other hand, when the value of the parameter is 0xf0 (step S503: 0xf0), the printing apparatus 102 checks whether or not it is possible to immediately turn off the power (step S505). As a state that may be immediately turned off, for example, a condition such as “whether all the command data stored in the reception buffer and the line buffer have been processed” can be adopted. These conditions will be described in more detail in the power supply stop described later.

なお、受信バッファに電源オフコマンドの先頭部分の指令データの先頭部分0x100x140x020x01が記憶されているだけの場合は、「すべて処理済み」として扱う。   If only the head part 0x100x140x020x01 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)、RAM207内のパラメータ格納領域に0xffを記憶して(ステップS507)、本処理を終了する。送信のフォーマットについては、後述する電源停止処理でまとめて説明する。   If the power cannot be turned off (step S505: No), the fact is transmitted to the host device 103 via the interface 206 (step S506), and 0xff is stored in the parameter storage area in the RAM 207 ( Step S507), the process is terminated. The transmission format will be described together in the power supply stop process described later.

なお、ステップ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 printing apparatus 102 is turned on. This value represents prohibition of power supply stop.

パラメータの値がこれら以外である場合(ステップS503:その他)、本処理を直ちに終了する。この場合、電源の停止は、後述する通常処理の過程で行われる。
(電源停止処理)
If the value of the parameter 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.
(Power stop processing)

図6は、印刷装置102で実行される電源停止処理の制御の流れを示すフローチャートである。   FIG. 6 is a flowchart illustrating a control flow of the power supply stop process executed by the printing apparatus 102.

まず、CPU201は、動作ランプ210を点滅させ(ステップS601)、電源停止処理を開始したことをユーザに通知する。   First, the CPU 201 blinks the operation lamp 210 (step S601), and notifies the user that the power supply stop process has started.

次に、CPU201は、印刷機構205の印刷ヘッドのメンテナンス処理を実行する(ステップS602)。メンテナンス処理では、最後に印刷ヘッドを移動させるキャリッジを所定の位置に移動させてロックする。   Next, the CPU 201 executes a print head maintenance process of the printing mechanism 205 (step S602). In the maintenance process, the carriage for moving the print head is moved to a predetermined position and locked.

ついで、CPU201は、フラッシュEEPROM212に印刷装置102の各種設定値、インクの使用量や残量、印刷ページ数、行数、文字数などの各種カウント値、プリンタの状態などを保存する(ステップS603)。   Next, the CPU 201 stores various setting values of the printing apparatus 102, ink usage and remaining amount, various count values such as the number of printed pages, the number of lines, and the number of characters, the status of the printer, and the like in the flash EEPROM 212 (step S603).

さらに、CPU201は、動作ランプ210を点灯させ(ステップS604)、電源停止処理の主要部分が終了したことをユーザに通知する。   Further, the CPU 201 turns on the operation lamp 210 (step S604), and notifies the user that the main part of the power supply stop process has been completed.

この後、CPU201は、インターフェース206を介して、ホスト装置103に、電源停止処理の主要部分が終了し、印刷装置102本体の電源を所定時間経過後(たとえば10秒)にオフにする旨と、ステップS602において調査した結果と、を合わせて通知する(ステップS605)。通知の際には、たとえば以下のようなデータを送信する。   Thereafter, the CPU 201 terminates the main part of the power supply stop process in the host apparatus 103 via the interface 206 and turns off the power supply of the printing apparatus 102 main body after a predetermined time (for example, 10 seconds); The result of the investigation in step S602 is notified together (step S605). At the time of notification, for example, the following data is transmitted.

・0x3b0x300x00 正常に電源停止処理の主要部が終了したことを表す。
・0x3b0x0*0x00 電源停止処理に何らかの異常があったことを表す。
-0x3b0x300x00 Indicates that the main part of the power shutdown process has been completed normally.
-0x3b0x0 * 0x00 Indicates that there was some abnormality in the power stop processing.

0x3bは、ステータス通知のデータ列が始まるを表すヘッダであり、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.

0x3b0x0*0x00の形式のデータは、前述したステップS506においても使用される。0x0*の*部分は、0以外の値が入る4ビット分の領域であり、以下の4種類の状態をこのビット列で表現する。   Data in the format of 0x3b0x0 * 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.

最後に、CPU201は、電源コントローラ203により、印刷装置102に対する電源供給を停止させる(ステップS606)。電源コントローラ203は、所定時間経過後に印刷装置102に対する電源供給を停止する。   Finally, the CPU 201 causes the power supply controller 203 to stop power supply to the printing apparatus 102 (step S606). The power controller 203 stops power supply to the printing apparatus 102 after a predetermined time has elapsed.

このように、ホスト装置103から送信された電源オフコマンドによって印刷装置102の電源をオフにすることができるため、ユーザは、主スイッチ204を操作する必要はない。業務形態によっては、主スイッチ204は常にオン(クローズ)の状態にしておき、副スイッチ211は使用しない(覆いをつけてユーザが操作できないようにする)などの実施態様を採用することができる。   As described above, since the power of the printing apparatus 102 can be turned off by the power off command transmitted from the host apparatus 103, the user does not need to operate the main switch 204. Depending on the business form, it is possible to adopt an embodiment in which the main switch 204 is always turned on (closed) and the sub switch 211 is not used (a cover is provided so that the user cannot operate).

また、リアルタイムコマンドとして電源オフコマンドを実装しているため、パラメータとして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 printing apparatus 102 is in an offline state (a state in which normal processing is waiting). be able to.

一方で、印刷装置102が電源オフコマンドを受信した時点の状況がホスト装置103で把握できるため、たとえば、紙詰まりで電源をオフにしてしまった場合や、何らかの理由で印刷ができなかったデータがある場合に、適切な対応をとることができる。   On the other hand, since the status at the time when the printing apparatus 102 receives the power-off command can be grasped by the host apparatus 103, for example, when the power is turned off due to a paper jam or when data cannot be printed for some reason. In some cases, an appropriate response can be taken.

なお、本実施形態では、上述のように、状態遷移によりリアルタイムコマンド等の解釈を行うが、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.
(Normal processing)

印刷装置102で実行される通常処理は、通常の印刷装置で実行される処理と同様である。図7は、このような通常処理の制御の流れを示すフローチャートである。以下、概説する。   The normal process executed by the printing apparatus 102 is the same as the process executed by the normal printing apparatus. FIG. 7 is a flowchart showing the flow of such normal processing control. Outlined below.

通常処理では、まず、CPU201は、RAM207内の受信バッファに指令データが記憶されているか否かを調べる(ステップS701)。   In the normal process, first, the CPU 201 checks whether command data is stored in the reception buffer in the RAM 207 (step S701).

受信バッファに指令データが記憶されている場合(ステップS701:Yes)、その指令データを読み出し(ステップS702)、指令データの種類を調べる(ステップS703)。   When the command data is stored in the reception buffer (step S701: Yes), the command data is read (step S702), and the type of the 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に戻る。当該コマンドに対応する処理は、すでに受信割り込み処理の中で実行済みだからである。   When 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に戻る。   When 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)、CPU201は、RAM207のパラメータ格納領域に記憶された値の種類を調べる(ステップ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 CPU 201 checks the type of value stored in the parameter storage area of the RAM 207 (step S710). When the value is 0xff (step S710: 0xff), in this embodiment, since the power-off command is not specified, it waits until some value is stored in the reception buffer (step S711), and a predetermined value is set. When waiting for a time or when triggered by a reception interrupt, the process returns to step S701.

一方、値が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 should be turned off within a predetermined time (each within 1 minute to 9 minutes).

そこで、CPU201は、現在の時刻を取得し(ステップS712)、当該時刻とステップS502においてRAM207内に格納された電源停止許可時刻とを比較し、所定時間が経過しているか否かを調べる(ステップS713)。   Therefore, the CPU 201 acquires the current time (step S712), compares the time with the power stop permission time stored in the RAM 207 in step S502, and checks whether or not a predetermined time has elapsed (step S712). S713).

経過していない場合(ステップS713:No)、前述した電源停止処理を実行する(ステップS714)。一方、経過してしまった場合(ステップS713:Yes)も、前述の電源停止処理を実行するが(ステップS715)、ステップS605において、以下のようなフォーマットのデータをホスト装置103へ送信する。   If it has not elapsed (step S713: No), the power supply stop process described above 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 host device 103.

・0x3b0x1*0x00 所定時間が経過しても電源停止処理が開始されなかったため、強制的に電源停止処理を開始した。   -0x3b0x1 * 0x00 The power supply stop process was forcibly started because the power supply stop process was not started even after the lapse of the specified 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), in this embodiment, it is specified that the power should be turned off if it can be performed within a predetermined time (each within 1 minute to 9 minutes). It will be.

そこで、CPU201は、現在の時刻を取得し(ステップS720)、当該時刻とステップS502においてRAM207内に格納された電源停止許可時刻とを比較し、所定時間が経過しているか否かを調べる(ステップS721)。   Therefore, the CPU 201 acquires the current time (step S720), compares the time with the power stop permission time stored in the RAM 207 in step S502, and checks whether a predetermined time has elapsed (step S502). S721).

経過していない場合(ステップS721:No)、前述した電源停止処理を実行する(ステップS722)。一方、経過してしまった場合(ステップS721:Yes)、RAM207内のパラメータ格納領域に0xffを記憶させて電源供給停止を禁止し(ステップS723)、以下のようなフォーマットのデータをホスト装置103へ送信して(ステップS724)、本処理を終了する。   If it has not elapsed (step S721: No), the power supply stop process described above 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 RAM 207 to prohibit the power supply stop (step S723), and data in the following format is sent to the host device 103. This is transmitted (step S724), and this process is terminated.

・0x3b0x200x00 所定時間が経過しても電源停止処理が開始されなかったため、電源停止処理を禁止した。   -0x3b0x200x00 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 printing apparatus 102 can be managed finely according to the parameters specified by the host apparatus 103.

図8は、ステップS605における通常コマンドの処理(ステップS605)の詳細を示すフローチャートである。   FIG. 8 is a flowchart showing details of normal command processing (step S605) in step S605.

まず、指令データの種類を調べる(ステップS761)。指令データが0x20〜0x7eである場合(ステップS761:ASCII)、そのデータに対応するフォントの定義をROM208から読み出し(ステップS762)、その定義を印刷イメージとしてRAM207内のラインバッファに展開する(ステップ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 printing mechanism 205 is set in accordance with the print image developed in the line buffer. Driven to print characters or graphics (step S765).

ついで、クリーニング処理を行う必要があるか否かを判断し(ステップ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 printing mechanism 205 is performed (step S767). Various known techniques such as ink ejection and ink suction can be used for the print head cleaning process.

クリーニング処理を行う必要があるか否かの判断には、たとえば以下のような基準を用いることができる。   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 line buffer contents, and if necessary, a cleaning process 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バイトづつの読み出しとして受信割り込み処理におけるような状態遷移を行ってもよいし、指令データのサイズを解釈しながら順次読み出すような形態を採用してもよい。たとえば、画像イメージの印刷指令では、画像イメージ全体のサイズを示す情報が指令データの中に埋め込まれているため、CPU201は、まず、先頭の所定バイト数の指令データを見て画像イメージのサイズを調べてから、そのサイズだけ受信バッファからイメージデータを繰り返して読み出すことになる。
(ホスト装置の実施形態)
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, since information indicating the size of the entire image image is embedded in the command data, the CPU 201 first determines the size of the image image by looking at the command data of a predetermined number of bytes at the beginning. After checking, the image data is repeatedly read from the reception buffer by that size.
(Host device embodiment)

図9は、本発明の印刷システム101におけるホスト装置103の概要構成を示す模式図である。   FIG. 9 is a schematic diagram showing a schematic configuration of the host apparatus 103 in the printing system 101 of the present invention.

ホスト装置103の制御は、CPU801が行う。ホスト装置103は、CPU801によって制御される電源コントローラ802を備え、これがホスト装置103の各部に電源を供給するほか、印刷装置102にも電源コネクタ811を介して電源を供給することができる。なお、ホスト装置103内の各部への電源供給線は理解を容易にするため図示を省略してある。   The CPU 801 controls the host device 103. The host device 103 includes a power controller 802 controlled by the CPU 801, which supplies power to each unit of the host device 103 and can also supply power to the printing device 102 via the power connector 811. Note that the power supply lines to the respective units in the host apparatus 103 are not shown for easy understanding.

ホスト装置103は、ユーザからの指示入力をキーボードやマウスなどの入力装置803で受け付け、この指示入力をCPU801が解釈して処理を行い、解釈した結果をCRT(CathodeRayTube)や液晶ディスプレイなどの表示装置804に表示する。また、表示装置804には、印刷装置の状況を表示して、ユーザに通知することができる。   The host device 103 receives an instruction input from the user by an input device 803 such as a keyboard or a mouse, the CPU 801 interprets the instruction input, processes the result, and displays the interpreted result as a display device such as a CRT (CathodeRay Tube) or a liquid crystal display. It is displayed in 804. The display device 804 can display the status of the printing device and notify the user.

また、指示入力にしたがって、各種のデータをハードディスクやフロッピーディスクなどの外部記憶装置805に記憶したり、更新したり、消去したりすることができる。   In accordance with the instruction input, various data can be stored in the external storage device 805 such as a hard disk or a floppy disk, updated, or deleted.

さらに、指示入力にしたがって、インターフェース810を介して印刷装置102へ指令データを送信して、指示入力や外部記憶装置805に記憶された情報に対応する文字や図形を印刷させることができる。   Furthermore, according to the instruction input, command data can be transmitted to the printing apparatus 102 via the interface 810, and characters and figures corresponding to the instruction input and information stored in the external storage device 805 can be printed.

また、CD−ROMドライブ806などの読取装置により、配布されたアプリケーションプログラムをインストールすることができる。   Further, the distributed application program can be installed by a reading device such as the CD-ROM drive 806.

CPU801は、一時的な作業を行うための記憶領域として、RAM807を使用する。また、電源投入直後に実行されるIPL(InitialProgramLoader)は、ROM809に記憶されており、CPU801は、IPLを実行することにより、外部記憶装置805やCD−ROMドライブ806に装着されたCD−ROMなどからOS(OperatingSystem)やアプリケーションプログラムをRAM807にロードして実行する。   The CPU 801 uses the RAM 807 as a storage area for performing temporary work. An IPL (Initial Program Loader) executed immediately after the power is turned on is stored in the ROM 809, and the CPU 801 executes an IPL to thereby execute a CD-ROM mounted on the external storage device 805 or the CD-ROM drive 806. OS (Operating System) and application programs are loaded into the RAM 807 and executed.

ここで、インターフェース810は、送信部および受信部として機能し、表示装置804は、CPU801と共働して通知部として機能する。   Here, the interface 810 functions as a transmission unit and a reception unit, and the display device 804 functions as a notification unit in cooperation with the CPU 801.

また、外部記憶装置805やCD−ROMドライブ806に装着されたCD−ROMは、本発明の情報記録媒体として機能する。   Further, the CD-ROM mounted on the external storage device 805 or the CD-ROM drive 806 functions as the information recording medium of the present invention.

図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 input device 803 to the host device 103.

まず、ホスト装置103は、最後の印刷指令として印刷装置102に対し0x0a(改行)を送信する(ステップS901)。これにより、印刷装置102は、ラインバッファ内にデータが残っていれば、これをすべて印刷することができる。なお、0x0a(改行)のほかに、改ページ(0x0c)やn行改行(0x1b0x64n)などのコマンドを送信してもよい。   First, the host apparatus 103 transmits 0x0a (line feed) to the printing apparatus 102 as the last print command (step S901). As a result, the printing apparatus 102 can print all the data remaining in the line buffer. In addition to 0x0a (line feed), commands such as page break (0x0c) and n-line line feed (0x1b0x64n) may be transmitted.

次に、印刷装置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.

・0x1d0x720x01
この通常コマンドを受信した印刷装置102は、上記0x0a(改行)に基づいて印刷機構205の駆動をし、これによる印字が完了してから、完了した旨の返事を返す。
・ 0x1d0x720x01
Upon receiving this normal command, the printing apparatus 102 drives the printing mechanism 205 based on the above 0x0a (carriage return), and returns a reply indicating that the printing has been completed.

完了した旨の返事が戻って来たら、印刷装置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.

・0x3b0x300x00
・0x3b0x0*0x00
これらのデータ列のフォーマットは、実施態様に応じて適宜選択することができ、これらフォーマットを変更した実施形態も本発明の範囲に含まれる。
・ 0x3b0x300x00
・ 0x3b0x0 * 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:正常)、すなわち、返事が0x3b0x300x00の形であった場合、ホスト装置103本体の動作中アプリケーションとOSを終了させてから(ステップS908)、電源コントローラ802によりホスト装置103に対する電源供給を停止させる(ステップS909)。   Next, it is determined whether or not a reply has been returned within a predetermined time (step S906). If the reply has been 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 0x3b0x300x00, the operating application and OS of the host apparatus 103 main body are terminated (step S908), and then the power controller 802 The power supply to the host device 103 is stopped (step S909).

一方、返事が異常終了である場合(ステップS907:異常)、すなわち、返事が0x3b0x0*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 0x3b0x0 * 0x00, a message corresponding to the reply is displayed on the display device 804 to notify the user (step In step S910, an inquiry is made as to whether or not to continue the work end processing as it is (step S911).

続行する旨の指示入力があった場合(ステップS911:Yes)、ステップS908に進み、続行しない旨の指示入力があった場合(ステップS911:No)、本処理を終了する。   If there is an instruction input to continue (Yes in step S911), the process proceeds to step S908. If there is an instruction input to not continue (No in step S911), the process is terminated.

一方、所定の時間内に返事が戻ってこなかった場合(ステップ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 display device 804 to notify the user (step S912), and the process proceeds to step S911.

連動電源によりホスト装置103から印刷装置102に対して電源が供給されている場合は、ここで印刷装置102全体に対する電源もオフになる。   When power is supplied from the host apparatus 103 to the printing apparatus 102 by the interlocking power supply, the power to the entire printing apparatus 102 is also turned off here.

上記のような制御の流れのほかの時点で、所定時間内の電源の供給停止をパラメータとして選択した場合、印刷装置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 printing apparatus 102 as a status report of the printing apparatus 102. May be sent.

・0x3b0x300x00
・0x3b0x1*0x00
・0x3b0x200x00
これらのデータ列を印刷装置102から受信する場合は、ホスト装置103から電源オフコマンドを送信した後である。ホスト装置103は、これらのデータ列により印刷装置102の状態を知ることができ、ユーザに適宜これらの情報を通知することができる。
(第2の実施形態)
・ 0x3b0x300x00
・ 0x3b0x1 * 0x00
・ 0x3b0x200x00
These data strings are received from the printing apparatus 102 after the power-off command is transmitted from the host apparatus 103. The host apparatus 103 can know the state of the printing apparatus 102 from these data strings, and can appropriately notify the user of such information.
(Second 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.

上述の実施形態では、電源停止処理により、印刷装置102に対する電源供給がオフにされたが、本実施形態の電源停止処理では、以下のような省電力モードに移行することにより、電源停止処理のかわりとする。   In the above embodiment, the power supply to the printing apparatus 102 is turned off by the power stop process. However, in the power stop process of the present embodiment, the power stop process is performed by shifting to the power saving mode as described below. Instead.

・印刷機構に対する電源供給を停止する。
・CPU201のクロックを下げる。あるいは停止する。
-Stop the power supply to the printing mechanism.
-Lower the CPU 201 clock. Or stop.

これらの手法のいずれかを選択してもよいし、両方を使用してもよい。これらの手法を上述の電源停止処理のステップ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 operation lamp 210 in step S604 may be changed, or the current power saving mode may be indicated as intermittent lighting instead of constant lighting. Therefore, in this embodiment, the operation lamp 210 functions as a display unit.

省電力モードから通常モードへの復帰は、副スイッチの操作によってCPU201に割り込みをかけることによってもよいし、ホスト装置103からの指令データによってもよい。   The return from the power saving mode to the normal mode may be performed by interrupting the CPU 201 by operating the sub switch or by command data from the host device 103.

また、省電力モードへ移行した旨や、移行した省電力モードの情報を、電源オフコマンド受信時の印刷装置102の状態情報としてホスト装置103に送信することもできる。
(第3の実施形態)
In addition, information indicating the transition to the power saving mode and information on the shifted power saving mode can be transmitted to the host apparatus 103 as the status information of the printing apparatus 102 when the power-off command is received.
(Third embodiment)

本実施形態は、主要な部分については、上述の実施形態と同様であるが、電源停止処理の処理の詳細が異なる。以下説明する。   This embodiment is the same as the above-described embodiment with respect to main parts, but the details of the process 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 dip switch 209 is performed before executing step S601. Check out.

ディップスイッチ209の所定のスイッチが第1の状態(たとえばON)になっている場合には、ステップS601〜S606の電源停止処理を実行する。   When the predetermined switch of the DIP switch 209 is in the first state (for example, ON), the power supply stop process in steps S601 to S606 is executed.

一方第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 dip switch 209, the host apparatus 103 is transmitted as status information indicating that the power supply stop process of the printing apparatus 102 has not been executed.

本実施形態では、店舗などの業務形態に応じてディップスイッチ209の設定により、ホスト装置103から送信された電源オフコマンドに対応するか否かを決めることができる。また、対応しない場合に、ホスト装置103がその旨を知ることができる。
(第4の実施形態)
In this embodiment, it is possible to determine whether or not to respond to the power-off command transmitted from the host device 103 by setting the dip switch 209 according to the business mode such as a store. In the case of no correspondence, the host device 103 can know that fact.
(Fourth embodiment)

本実施形態は、主要な部分については、上述の実施形態と同様であるが、印刷装置102とホスト装置103とが一体に構成されている点が異なる。すなわち、本印刷システム101が一体の装置として実現される。このような印刷システム101は、たとえばPOS端末として使用することができる。   This embodiment is the same as the above-described embodiment with respect to main parts, but is different in that the printing apparatus 102 and the host apparatus 103 are integrally configured. That is, the printing system 101 is realized as an integrated apparatus. Such a printing system 101 can be used as a POS terminal, for example.

本発明の印刷システムの実施形態の概要構成を示す模式図。1 is a schematic diagram showing a schematic configuration of an embodiment of a printing system of the present invention. 本発明の印刷装置の実施形態の概要構成を示す模式図。1 is a schematic diagram showing a schematic configuration of an embodiment of a printing apparatus of the present invention. 本発明の印刷装置で実行される割り込み処理の制御の流れを示すフローチャート。5 is a flowchart showing a flow of interrupt processing control executed by the printing apparatus of the present invention. 本発明の印刷装置の受信状態の遷移を示す状態遷移図。FIG. 6 is a state transition diagram illustrating a transition of a reception state of the printing apparatus according to the present invention. 本発明の印刷装置で実行される電源停止許可処理の制御の流れを示すフローチャート。6 is a flowchart showing a flow of control of power stop permission processing executed by the printing apparatus of the present invention. 本発明の印刷装置で実行される電源停止処理の制御の流れを示すフローチャート。6 is a flowchart showing a flow of control of power supply stop processing executed by the printing apparatus of the present invention. 本発明の印刷装置で実行される通常処理の制御の流れを示すフローチャート。6 is a flowchart showing a flow of control of normal processing executed by the printing apparatus of the present invention. 本発明の印刷装置で実行される通常コマンド処理の制御の流れを示すフローチャート。6 is a flowchart showing a control flow of normal command processing executed by the printing apparatus of the present invention. 本発明のホスト装置の概要構成を示す模式図。1 is a schematic diagram showing a schematic configuration of a host device of the present invention. 本発明のホスト装置で実行される作業終了処理の制御の流れを示すフローチャート。6 is a flowchart showing a flow of control of work end processing executed by the host device of the present invention.

符号の説明Explanation of symbols

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 SYMBOLS 101 Printing system 102 Printing apparatus 103 Host apparatus 104 Communication line 105 Power supply line 201 CPU
202 Power supply connector 203 Power supply controller 204 Main switch 205 Printing mechanism 206 Interface 207 RAM
208 ROM
209 DIP switch 210 Operation lamp 211 Sub switch 212 Flash EEPROM
801 CPU
802 Power controller 803 Input device 804 Display device 805 External storage device 806 CD-ROM drive 807 RAM
809 ROM
810 Interface 811 Power connector

Claims (4)

ホスト装置に接続されるPOS端末として使用される印刷装置であって、
前記ホスト装置が送信した指令を受信する指令受信部と、
前記指令を受信するたびに指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したときリアルタイムコマンドとしての電源オフコマンドであると確定する電源オフコマンド確定部と、
前記電源オフコマンドの確定に応じて当該印刷装置の停止処理を行う停止処理部と、
を備え、
前記停止処理部は、
前記停止処理として、前記電源オフコマンドに含まれるパラメータの指定によって、当該印刷装置の電源供給を停止して良いかどうかを判断し、停止して良いと判断された場合、当該印刷装置の各種設定値、各種カウント値及び当該印刷装置の状態を設定記憶部に記憶し、前記ホスト装置に前記停止処理の主要部分が終了した旨の通知を送信し、該送信後に当該印刷装置の電源供給を停止可能とすることを特徴とするPOS端末として使用される印刷装置。
A printing device used as a POS terminal connected to a host device,
A command receiving unit for receiving a command transmitted by the host device;
A power-off command determination unit that interprets the value of the command data every time the command is received and determines that the command data is a power-off command as a real-time command when it is detected that the command data is received in a predetermined order;
A stop processing unit that performs stop processing of the printing apparatus in response to confirmation of the power-off command ;
With
The stop processing unit
As the stop process, it is determined whether or not the power supply of the printing apparatus can be stopped by specifying a parameter included in the power-off command. When it is determined that the power supply can be stopped, various settings of the printing apparatus are determined. Value, various count values, and the status of the printing device are stored in the setting storage unit, a notification that the main part of the stop process has been completed is transmitted to the host device, and the power supply of the printing device is stopped after the transmission. A printing apparatus used as a POS terminal characterized by enabling.
前記受信した指令を記憶する指令格納部と、
前記受信した指令を順に読み出し、該読み出した指令が印刷指令である場合、該印刷指令
に対応する印刷動作を行う指令処理部と、
前記停止処理には、キャリッジに搭載された印刷ヘッドを所定の位置に移動してロック
する処理を含むことを特徴とする請求項1に記載のPOS端末として使用される印刷装置。
A command storage unit for storing the received command;
Read the received commands in order, and when the read command is a print command, a command processing unit that performs a printing operation corresponding to the print command;
The printing apparatus used as a POS terminal according to claim 1, wherein the stop process includes a process of moving and locking a print head mounted on a carriage to a predetermined position.
ホスト装置に接続されるPOS端末として使用される印刷装置の電源オフ制御方法であって、
前記ホスト装置が送信した指令を受信するたびに指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したときリアルタイムコマンドとしての電源オフコマンドであると確定する工程と、
前記印刷装置の停止処理を行う停止処理工程と、
電源オフコマンドに含まれるパラメータの指定によって、当該印刷装置の電源供給を停止して良いかどうかを判断する工程と、
停止して良いと判断された場合、当該印刷装置の各種設定値、各種カウント値及び当該印刷装置の状態を設定記憶部に記憶し、前記ホスト装置に前記停止処理の主要部分が終了した旨の通知を送信し、該送信後に当該印刷装置の電源供給を停止可能とする工程と、
を備えることを特徴とするPOS端末として使用される印刷装置の電源オフ制御方法。
A power-off control method for a printing apparatus used as a POS terminal connected to a host apparatus,
Interpreting the value of command data every time a command transmitted by the host device is received, and determining that the command data is a power-off command as a real-time command when detecting that the command data is received in a predetermined order; ,
A stop processing step for stopping the printing apparatus ;
Determining whether the power supply of the printing apparatus can be stopped by specifying a parameter included in the power-off command ;
If it is determined that the printer can be stopped, the various setting values, the various count values, and the state of the printer are stored in the setting storage unit, and the main part of the stop process is completed in the host device. A step of transmitting a notification and allowing the power supply of the printing apparatus to be stopped after the transmission ;
A power-off control method for a printing apparatus used as a POS terminal.
ホスト装置に接続されるPOS端末として使用される印刷装置の電源オフ制御方法であって、
前記ホスト装置が送信した指令を受信するたびに指令データの値を解釈し、該指令データが所定の順序で受信されたことを検出したときリアルタイムコマンドとしての電源オフコマンドであると確定する工程と、
前記印刷装置の停止処理を行う停止処理工程と、
電源オフコマンドに含まれるパラメータの指定によって、当該印刷装置の電源供給を停止して良いかどうかを判断する工程と、
停止して良いと判断された場合、当該印刷装置の各種設定値、各種カウント値及び当該印刷装置の状態を設定記憶部に記憶し、前記ホスト装置に前記停止処理の主要部分が終了した旨の通知を送信する工程と、
前記印刷装置から停止処理の主要部分が終了したかどうかの通知を受信する停止処理主
要部分終了通知受信工程と、
前記印刷装置から前記停止処理の主要部分が終了した旨の通知を受信した場合、前記ホスト装置の電源供給を停止して、当該ホスト装置から連動して電源が供給されている印刷装置への電源をオフをするホスト装置電源供給停止工程と、
を備えることを特徴とするホスト装置によるPOS端末として使用される印刷装置の電源オフ制御方法。
A power-off control method for a printing apparatus used as a POS terminal connected to a host apparatus,
Interpreting the value of command data every time a command transmitted by the host device is received, and determining that the command data is a power-off command as a real-time command when detecting that the command data is received in a predetermined order; ,
A stop processing step for stopping the printing apparatus ;
Determining whether the power supply of the printing apparatus can be stopped by specifying a parameter included in the power-off command ;
If it is determined that the printer can be stopped, the various setting values, the various count values, and the state of the printer are stored in the setting storage unit, and the main part of the stop process is completed in the host device. Sending a notification ;
A stop process main part end notification receiving step for receiving notification from the printing apparatus whether or not the main part of the stop process has ended;
When a notification that the main part of the stop process has been completed is received from the printing apparatus, the power supply to the host apparatus is stopped, and the power to the printing apparatus to which power is supplied in conjunction with the host apparatus A host device power supply stop process for turning off
A power-off control method for a printing apparatus used as a POS terminal by a host apparatus.
JP2006244482A 2006-09-08 2006-09-08 Printing apparatus and control method thereof Expired - Fee Related JP4412312B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006244482A JP4412312B2 (en) 2006-09-08 2006-09-08 Printing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006244482A JP4412312B2 (en) 2006-09-08 2006-09-08 Printing apparatus and control method thereof

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

Publications (2)

Publication Number Publication Date
JP2007022090A JP2007022090A (en) 2007-02-01
JP4412312B2 true JP4412312B2 (en) 2010-02-10

Family

ID=37783447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006244482A Expired - Fee Related JP4412312B2 (en) 2006-09-08 2006-09-08 Printing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP4412312B2 (en)

Also Published As

Publication number Publication date
JP2007022090A (en) 2007-02-01

Similar Documents

Publication Publication Date Title
JP4246367B2 (en) Printing device
CN107025082B (en) Printing system, information processing apparatus, and method thereof
JP4137144B2 (en) Data processing apparatus and control method thereof
KR100488269B1 (en) Printing apparatus, its control method and recording medium
CN107038005B (en) Printing system, information processing apparatus, and method thereof
JP6589664B2 (en) Driver program and set of driver program and printer
JP4983978B2 (en) Printing apparatus, printing system, host apparatus, control method therefor, and information recording medium
JP2010083148A (en) Printing system, method for turning off power supply for printing system
CN104898994B (en) Print command device, print system and print instruction method
JP6431279B2 (en) Printing apparatus and printing apparatus control method
JP4883238B2 (en) Printing apparatus, printing system, host apparatus, control method therefor, and information recording medium
JP4412312B2 (en) Printing apparatus and control method thereof
JP2002067450A (en) Printer, its control method and information recording medium
JP2001096866A (en) Printer, printing system, host device and method for controlling them and information recording medium
US20120257243A1 (en) Information processing apparatus, print control method, and storage medium
JP2009018489A (en) Printer system and its control method
JP2001222402A (en) Printer, method for controlling the same and information recording medium
JP4667213B2 (en) Image forming apparatus and method of controlling image forming apparatus
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
JP2007105975A (en) Image forming apparatus
JP2001096851A (en) Printing system, printing unit, host unit and control method therefor, and information recording medium
JP6773201B2 (en) Program and printer set
JP2017177641A (en) Receipt printer and control unit as well as control method for receipt printer

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080326

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080331

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080827

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081027

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090407

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090707

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090717

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090901

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090908

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091027

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091109

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131127

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees