JP2001310538A - Printing device - Google Patents
Printing deviceInfo
- Publication number
- JP2001310538A JP2001310538A JP2000129694A JP2000129694A JP2001310538A JP 2001310538 A JP2001310538 A JP 2001310538A JP 2000129694 A JP2000129694 A JP 2000129694A JP 2000129694 A JP2000129694 A JP 2000129694A JP 2001310538 A JP2001310538 A JP 2001310538A
- Authority
- JP
- Japan
- Prior art keywords
- paper
- printing
- mode
- absence
- journal
- 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
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Controlling Sheets Or Webs (AREA)
Abstract
(57)【要約】
【課題】 装置の使用条件によって、印字出力処理と売
上登録処理とのうち優先する処理を使用者が選択するこ
とができる印字装置を提供する。
【解決手段】 通信インターフェース11を介して送信
された印字データをジャーナル印字制御部8およびレシ
ート印字制御部7によって印字する。ホストマシンから
のコマンドおよびスイッチ12からの入力によってたと
えばジャーナル紙無検出を有効としレシート紙無検出を
無効と設定する。ジャーナル紙検知部10によってジャ
ーナル紙の紙無が検出されると、印字データを印字バッ
ファ14に記憶したままジャーナル印字制御部8の動作
を停止し、エラーランプ21を点灯する。レシート紙の
紙無が検出されても、レシート印字制御部7の動作は停
止せず、ジャーナル印字制御部8によってのみ印字を行
う。
(57) [Summary] [PROBLEMS] To provide a printing device that allows a user to select a priority process from a printing output process and a sales registration process according to a use condition of the device. SOLUTION: Print data transmitted through a communication interface 11 is printed by a journal print control unit 8 and a receipt print control unit 7. According to a command from the host machine and an input from the switch 12, for example, the detection of no journal paper is enabled and the detection of no receipt paper is disabled. When the journal paper detection unit 10 detects the absence of journal paper, the operation of the journal print control unit 8 is stopped while the print data is stored in the print buffer 14, and the error lamp 21 is turned on. Even if the absence of the receipt paper is detected, the operation of the receipt print control unit 7 does not stop, and printing is performed only by the journal print control unit 8.
Description
【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION
【0001】[0001]
【発明の属する技術分野】本発明は、コンピュータおよ
びPOS(Point of Sales)ターミナルなどと接続し、
出力結果を印字する印字装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer and a POS (Point of Sales) terminal.
The present invention relates to a printing device for printing an output result.
【0002】[0002]
【従来の技術】プリンタはPOS(Point of Sales)タ
ーミナルなどのホストマシンに通信インターフェースを
介して接続し、POS本体にて商品の売上登録処理が行
われると、その登録情報および印字処理に関するコマン
ドを受信し、コマンドに基づいて登録情報を印字する。
印字用紙が無くなったり、用紙が詰まるなどの異常が発
生した場合は、用紙の補給および詰まった紙の除去など
によって異常が回避されるまでプリンタは停止状態とな
っているので、売上登録処理が行えず、顧客に多大な迷
惑をかけることとなる。これに対して特開平5−205
47号公報に記載された電子式キャッシュレジスタは、
レシートおよびジャーナル用印字部を備え、レジスタが
印字部の異常を検知するとマスクコマンドを送信し、異
常の発生した印字部の印字動作を行わないようにし、正
常な印字部のみで印字動作を継続する。これによって、
少なくとも正常側の印字部から印字が行われるので売上
登録処理が停止することはない。2. Description of the Related Art A printer is connected to a host machine such as a POS (Point of Sales) terminal via a communication interface. When a sales registration process of a product is performed by a POS main unit, the registration information and a command relating to a printing process are transmitted. Receives and prints registration information based on command.
If an error such as running out of print paper or a paper jam occurs, the printer is stopped until the error is avoided by replenishing the paper and removing the jammed paper. And cause a lot of trouble for customers. In contrast, Japanese Patent Application Laid-Open No. 5-205
The electronic cash register described in Japanese Patent Publication No. 47,
Equipped with a receipt and journal printing unit, when a register detects an abnormality in the printing unit, it sends a mask command to prevent the printing operation of the printing unit where the abnormality has occurred, and continues printing operation only in the normal printing unit . by this,
Since the printing is performed at least from the printing section on the normal side, the sales registration process does not stop.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上述の
ようにプリンタを停止して売上登録処理より印字出力処
理を優先するか、特開平5−20547号公報に記載さ
れた電子式キャッシュレジスタのようにレジスタ用もし
くはジャーナル用のどちらか正常側の印字部から印字を
行うことで印字出力処理より売上登録処理を優先するか
は、印字装置を使用する時間帯、対象となる顧客層およ
び店舗の管理方針などによって決定されるものであり、
装置の使用条件によるものであるが、従来の技術では、
同一の装置内で優先する処理を選択することができない
という問題がある。However, as described above, the printer is stopped to give priority to the print output processing over the sales registration processing, or as described in the electronic cash register disclosed in Japanese Patent Application Laid-Open No. 5-20547. Whether register or journal printing should be given priority over sales output processing by printing from the normal printing section depends on the time zone when the printing device is used, the target customer segment and the store management policy. Etc.
It depends on the usage conditions of the device, but in the conventional technology,
There is a problem that priority processing cannot be selected in the same apparatus.
【0004】本発明の目的は、装置の使用条件によって
優先する処理を使用者が選択可能な印字装置を提供する
ことである。[0004] It is an object of the present invention to provide a printing apparatus in which a user can select a process to be prioritized according to a use condition of the apparatus.
【0005】[0005]
【課題を解決するための手段】本発明は、ホストマシン
から印字データを受信する通信インターフェースと、受
信した印字データを記憶する記憶手段と、受信し記憶し
た印字データを記録紙に印字する印字手段とを備える印
字装置において、印字動作中に記録紙が無くなったこと
を検出する紙無検出手段と、紙無検出に応答して、印字
動作を停止するとともに受信した印字データを記憶手段
に記憶したまま紙無検出を報知する第1の態様と、受信
した印字データを記憶手段から破棄する第2の態様との
うちのいずれか一方を選択し実行する制御手段とを含む
ことを特徴とする印字装置である。SUMMARY OF THE INVENTION The present invention provides a communication interface for receiving print data from a host machine, a storage means for storing the received print data, and a printing means for printing the received and stored print data on recording paper. In the printing apparatus comprising: a paper absence detecting means for detecting that the recording paper has run out during the printing operation; and in response to the paper absence detection, stopping the printing operation and storing the received print data in the storage means. A printing method comprising a control unit for selecting and executing one of a first mode for notifying detection of no paper as it is and a second mode for discarding received print data from a storage unit. Device.
【0006】本発明に従えば、通信インターフェースを
介してホストマシンから送信された印字データが記録紙
に印字される。紙無検出手段によって記録紙が無いこと
が検出されたときの処理として、印字動作を停止して印
字データを記憶したまま記録紙が無いことを報知する第
1の態様と印字データを記憶手段から破棄する第2の態
様とのうちいずれか一方を選択し実行することができる
ので、記録紙が無いときに、装置の使用条件によって印
字出力処理を優先するか売上登録処理を優先するかを使
用者が選択することができる。According to the present invention, print data transmitted from the host machine via the communication interface is printed on recording paper. As processing when the absence of recording paper is detected by the paper absence detection means, a first mode in which the printing operation is stopped and the absence of recording paper is notified while print data is stored, and the print data is stored from the storage means. Since either one of the second mode of discarding and the second mode can be selected and executed, when there is no recording paper, whether to give priority to print output processing or sales registration processing depending on the use conditions of the apparatus is used. Can choose.
【0007】本発明は、前記印字装置は、前記通信イン
ターフェースを介してホストマシンから前記第1の態様
と前記第2の態様とのうちのいずれか一方を指定するコ
マンドを受信し、前記制御手段は、受信したコマンドに
基づいて各態様を切換えることを特徴とする。According to the present invention, the printing device receives a command specifying one of the first mode and the second mode from a host machine via the communication interface, and Is characterized in that each mode is switched based on a received command.
【0008】本発明に従えば、通信インターフェースを
介してホストマシンから送信されたコマンドによって第
1および第2の前記態様のうちのいずれか一方が指定さ
れ、各態様を切換えることができるので、ホストマシン
が紙無検出を処理するための負担を軽減しかつ記録紙が
無いときに、装置の使用条件によって印字出力処理を優
先するか売上登録処理を優先するかを使用者が選択する
ことができる。According to the present invention, one of the first and second aspects is designated by a command transmitted from the host machine via the communication interface, and each aspect can be switched. The user can select whether to prioritize the print output process or the sales registration process according to the usage conditions of the device when the machine reduces the load for processing the paper absence detection and there is no recording paper. .
【0009】本発明は、前記印字装置は、前記第1の態
様と前記第2の態様とのうちのいずれか一方を指定する
コマンドを入力する入力手段を含み、前記制御手段は、
入力されたコマンドに基づいて各態様を切換えることを
特徴とする。According to the present invention, the printing apparatus includes input means for inputting a command for designating one of the first mode and the second mode, and the control means includes:
Each mode is switched based on an input command.
【0010】本発明に従えば、印字装置に含まれる入力
手段から入力されたコマンドによって第1および第2の
前記態様のうちのいずれか一方が指定され、各態様を切
換えることができるので、ホストマシンが紙無検出を処
理するための負担を無くしかつ記録紙が無いときに、装
置の使用条件によって印字出力処理を優先するか売上登
録処理を優先するかを使用者が選択することができる。According to the present invention, one of the first and second aspects is designated by a command input from the input means included in the printing apparatus, and each aspect can be switched. When the machine eliminates the burden of processing for detecting the absence of paper and there is no recording paper, the user can select whether to give priority to print output processing or sales registration processing depending on the usage conditions of the apparatus.
【0011】本発明は、ホストマシンから印字データを
受信する通信インターフェースと、受信した印字データ
を記憶する記憶手段と、受信し記憶した印字データを互
いに異なる記録紙に印字する複数の印字手段とを備える
印刷装置において、印字動作中に記録紙が無くなったこ
とを複数の印字手段毎に検出する紙無検出手段と、紙無
検出に応答して、紙無が検出された印字手段の印字動作
を停止するとともに受信した印字データを記憶手段に記
憶したまま紙無検出を報知する第1の態様と、受信した
印字データを紙無が検出されなかった印字手段によって
印字する第2の態様とのうちのいずれか一方を選択し実
行する制御手段とを含むことを特徴とする印字装置であ
る。The present invention comprises a communication interface for receiving print data from a host machine, a storage means for storing the received print data, and a plurality of printing means for printing the received and stored print data on different recording papers. A printing device provided with a paper absence detecting means for detecting for each of a plurality of printing means that recording paper has run out during a printing operation, and a printing operation of a printing means in which paper absence is detected in response to the paper absence detection. The first mode of notifying the absence of paper while stopping and storing the received print data in the storage unit, and the second mode of printing the received print data by the printing unit that has not detected the absence of paper. Control means for selecting and executing any one of the above.
【0012】本発明に従えば、通信インターフェースを
介してホストマシンから送信された印字データが複数の
印字手段によって互いに異なる記録紙に印字される。紙
無検出手段によって記録紙が無いことが検出されたとき
の処理として、紙無が検出された印字手段の印字動作を
停止して印字データを記憶したまま記録紙が無いことを
報知する第1の態様と紙無が検出されなかった印字手段
によって印字データを印字する第2の態様とのうちいず
れか一方を選択し実行することができるので、記録紙が
無いときに、装置の使用条件によって印字出力処理を優
先するか売上登録処理を優先するかを使用者が選択する
ことができる。According to the present invention, the print data transmitted from the host machine via the communication interface is printed on different recording papers by a plurality of printing means. As a process when the absence of recording paper is detected by the paper absence detection means, the printing operation of the printing means in which the paper absence is detected is stopped, and the first report for notifying that there is no recording paper while the print data is stored. And the second mode in which print data is printed by the printing means in which no paper is detected can be selected and executed. Therefore, when there is no recording paper, depending on the use conditions of the apparatus, The user can select whether to give priority to print output processing or sales registration processing.
【0013】本発明は、前記印字装置は、前記通信イン
ターフェースを介してホストマシンから前記第1の態様
と前記第2の態様とのうちのいずれか一方を指定するコ
マンドを受信し、前記制御手段は、受信したコマンドに
基づいて各態様を切換えることを特徴とする。According to the present invention, the printing device receives a command specifying one of the first mode and the second mode from a host machine via the communication interface, and Is characterized in that each mode is switched based on a received command.
【0014】本発明に従えば、通信インターフェースを
介してホストマシンから送信されたコマンドによって第
1および第2の前記態様のうちのいずれか一方が指定さ
れ、各態様を切換えることができるので、ホストマシン
が紙無検出を処理するための負担を軽減しかつ記録紙が
無いときに、装置の使用条件によって印字出力処理を優
先するか売上登録処理を優先するかを使用者が選択する
ことができる。According to the present invention, one of the first and second aspects is designated by a command transmitted from the host machine via the communication interface, and each aspect can be switched. The user can select whether to prioritize the print output process or the sales registration process according to the usage conditions of the device when the machine reduces the load for processing the paper absence detection and there is no recording paper. .
【0015】本発明は、前記印字装置は、前記第1の態
様と前記第2の態様とのうちのいずれか一方を指定する
コマンドを入力する入力手段を含み、前記制御手段は、
入力されたコマンドに基づいて各態様を切換えることを
特徴とする。According to the present invention, the printing apparatus includes input means for inputting a command for designating one of the first mode and the second mode, and the control means includes:
Each mode is switched based on an input command.
【0016】本発明に従えば、印字装置に含まれる入力
手段から入力されたコマンドによって第1および第2の
前記態様のうちのいずれか一方が指定され、各態様を切
換えることができるので、ホストマシンが紙無検出を処
理するための負担を無くしかつ記録紙が無いときに、装
置の使用条件によって印字出力処理を優先するか売上登
録処理を優先するかを使用者が選択することができる。According to the present invention, one of the first and second aspects is designated by a command input from the input means included in the printing apparatus, and each aspect can be switched. When the machine eliminates the burden of processing for detecting the absence of paper and there is no recording paper, the user can select whether to give priority to print output processing or sales registration processing depending on the usage conditions of the apparatus.
【0017】[0017]
【発明の実施の形態】図1は、本発明の実施の一形態で
ある印字装置1の電気的構成を示すブロック図である。
印字装置1は、電子式キャッシュレジスタであるPOS
ターミナルなどと接続し、POSターミナルから送信さ
れる売上登録データを顧客用のレシート紙および店舗保
管用のジャーナル紙に印字出力する。この印字装置1
は、CPU(中央演算処理装置)2、ROM(リードオ
ンリメモリ)3、RAM(ランダムアクセスメモリ)
4、各種キー5、LED(ライトエミッティングダイオ
ード)部6、レシート印字制御部7、ジャーナル印字制
御部8、レシート紙検知部9、ジャーナル紙検知部1
0、通信インターフェース11およびスイッチ12を含
んで構成される。FIG. 1 is a block diagram showing an electrical configuration of a printing apparatus 1 according to an embodiment of the present invention.
The printing device 1 has a POS which is an electronic cash register.
The terminal is connected to a terminal or the like, and prints out sales registration data transmitted from the POS terminal on receipt paper for customers and journal paper for store storage. This printing device 1
Is a CPU (Central Processing Unit) 2, ROM (Read Only Memory) 3, RAM (Random Access Memory)
4, various keys 5, LED (light emitting diode) unit 6, receipt print control unit 7, journal print control unit 8, receipt paper detection unit 9, journal paper detection unit 1.
0, a communication interface 11 and a switch 12.
【0018】CPU2は、ROM3に記憶されたマイク
ロ命令に従って印字装置1全体の動作を統括的に制御す
る。ROM3には具体的に、レシート印字制御部7、ジ
ャーナル印字制御部8、通信インターフェース11およ
びスイッチ12などの周辺回路の動作を制御するための
マイクロ命令が記憶される。またROM3には、通信イ
ンターフェース11を介して受信した印字データを印字
イメージに変換するためのフォントデータが記憶され
る。RAM4は、受信バッファ13、印字バッファ14
および設定メモリ15を備える記憶手段である。受信バ
ッファ13には、通信インターフェース11を介してホ
ストマシンから受信した印字データおよびコマンドが記
憶される。印字バッファ14には、ROM3に記憶され
たフォントデータを用いて印字データを変換した印字イ
メージが記憶される。設定メモリ15には、受信したコ
マンド内に含まれ、装置の動作を設定するための設定デ
ータが記憶される。The CPU 2 controls the overall operation of the printing apparatus 1 in accordance with micro instructions stored in the ROM 3. Specifically, the ROM 3 stores microinstructions for controlling operations of peripheral circuits such as the receipt print control unit 7, the journal print control unit 8, the communication interface 11, and the switch 12. The ROM 3 stores font data for converting print data received via the communication interface 11 into a print image. The RAM 4 includes a reception buffer 13, a print buffer 14,
And a storage unit including a setting memory 15. The print data and the command received from the host machine via the communication interface 11 are stored in the reception buffer 13. The print buffer 14 stores a print image obtained by converting print data using the font data stored in the ROM 3. The setting memory 15 stores setting data included in the received command and for setting the operation of the apparatus.
【0019】キー5はオンラインキー16、レシート紙
送りキー17およびジャーナル紙送りキー18を有す
る。オンラインキー16によってホストマシンと印字装
置1との通信を可能にし、印字装置1を印字可能状態に
する。レシート紙送りキー17およびジャーナル紙送り
キー18によってそれぞれレシート印字制御部7および
ジャーナル印字制御部8に備えられた記録紙であるレシ
ート紙およびジャーナル紙を、印字せずに強制的に紙送
りを行う。LED部6は電源オンを示すLED19、オ
ンライン状態を示すLED20、エラーの発生を示すL
ED21を有する。電源オンを示すLED19は図示し
ない電源スイッチにより電源が入っているときに点灯
し、オペレータに報知する。オンライン状態を示すLE
D20は、オンラインキー16によって印字装置1がオ
ンライン状態となっているときに点灯し、オペレータに
報知する。エラーの発生を示すLED21は印字装置1
において、たとえばレシート印字制御部7で紙無しが起
こるなどの異常が生じたときに点灯しオペレータに報知
する。The key 5 has an online key 16, a receipt paper feed key 17, and a journal paper feed key 18. The online key 16 enables communication between the host machine and the printing device 1 to put the printing device 1 in a printable state. The receipt paper feed key 17 and the journal paper feed key 18 forcibly feed the receipt paper and the journal paper, which are the recording papers, provided in the receipt print control unit 7 and the journal print control unit 8 without printing. . The LED unit 6 includes an LED 19 indicating power-on, an LED 20 indicating online status, and an L indicating error occurrence.
It has ED21. The power-on LED 19 is turned on by a power switch (not shown) when the power is on, and notifies the operator. LE indicating online status
D20 is turned on by the online key 16 when the printing apparatus 1 is in the online state, and notifies the operator. The LED 21 indicating the occurrence of an error is
In this case, when an abnormality such as the absence of paper occurs in the receipt print control unit 7, the light is turned on to notify the operator.
【0020】レシート印字制御部7は印字バッファ14
に記憶された印字イメージをレシート紙に印字し紙送り
する印字手段である。ジャーナル印字制御部8は印字バ
ッファ14に記憶された印字イメージをジャーナル紙に
印字し紙送りする印字手段である。レシート紙検知部9
はレシート印字制御部7が備えるレシート紙が無いこと
を報知する紙無検出手段であり、たとえば発光素子と受
光素子とから成り、発光素子が発する光を検体、本形態
ではレシート紙が反射し、その反射光を受光素子が検知
することで検体の有無を検知するフォトインタラプタな
どが用いられる。ジャーナル紙検知部10も前記レシー
ト紙検知部と同様にジャーナル印字制御部8が備えるジ
ャーナル紙が無いことを検知する紙無検出手段である。The receipt print control unit 7 includes a print buffer 14
Is printing means for printing the print image stored in the printer on receipt paper and feeding the paper. The journal print control unit 8 is a printing unit that prints a print image stored in the print buffer 14 on journal paper and feeds the paper. Receipt paper detector 9
Is paper absence detection means for notifying that there is no receipt paper provided in the receipt print control unit 7, and is composed of, for example, a light-emitting element and a light-receiving element, and the light emitted by the light-emitting element is a sample, and in this embodiment, the receipt paper is reflected. A photo-interrupter or the like that detects the presence or absence of a sample by detecting the reflected light by a light receiving element is used. The journal paper detection unit 10 is also a paper absence detection unit that detects that there is no journal paper provided in the journal print control unit 8, similarly to the receipt paper detection unit.
【0021】通信インターフェース11は、印字装置1
とホストマシンとの間で印字データ、装置の制御を指示
するコマンドおよび通信方式の設定を指示するコマンド
などを送受信するためのインターフェースである。イン
ターフェースの規格としてはRS232Cおよびセント
ロニクスインターフェースなどがある。スイッチ12
は、ディップスイッチ30,31を備える入力手段であ
る。ディップスイッチ30,31は、印字装置1の制御
を指示するコマンドおよび通信方式の設定を指示するコ
マンドなどを入力する。The communication interface 11 is a printer 1
An interface for transmitting and receiving print data, a command for instructing control of the apparatus, a command for setting a communication method, and the like, between the printer and the host machine. Interface standards include RS232C and Centronics interface. Switch 12
Is input means provided with dip switches 30 and 31. The DIP switches 30 and 31 are used to input a command for instructing control of the printing apparatus 1 and a command for instructing setting of a communication method.
【0022】図2は通信インターフェース11の例を示
す図である。図2(A)は印字装置1とホストマシンで
あるPOSターミナル22との接続例を示す図である。
印字装置1はRS232C規格の通信インターフェース
を備え、RS232C規格のケーブルを介してPOSタ
ーミナル22と接続される。FIG. 2 is a diagram showing an example of the communication interface 11. FIG. 2A is a diagram illustrating a connection example between the printing apparatus 1 and a POS terminal 22 as a host machine.
The printing device 1 includes a communication interface of the RS232C standard, and is connected to the POS terminal 22 via a cable of the RS232C standard.
【0023】この接続例および印字装置1とPOSター
ミナル22との間の通信は図2(B)で示す通信条件で
行われる。通信条件24には、通信方式、通信速度およ
び通信規格などがある。通信方式には、モデムが送出す
るクロックに合わせてデータおよびコマンドなどを送信
する同期式と、クロックを使用しない非同期式があり、
本形態ではモデムは接続していないので非同期式の通信
方式を用いている。The connection example and the communication between the printing apparatus 1 and the POS terminal 22 are performed under the communication conditions shown in FIG. The communication condition 24 includes a communication method, a communication speed, a communication standard, and the like. There are two types of communication: synchronous type, which sends data and commands according to the clock sent by the modem, and asynchronous type, which uses no clock.
In this embodiment, since no modem is connected, an asynchronous communication system is used.
【0024】通信速度は、1200,4800,960
0,19200および38400bps(bit per seco
nd)のうち任意の速度を選択して使用する。The communication speed is 1200, 4800, 960
0, 19200 and 38400 bps (bit per seco
Select and use any speed from nd).
【0025】通信規格では、スタートビットとストップ
ビットとの付加、データビット長およびパリティチェッ
クの種類を設定する。非同期式の通信方式ではモデムの
クロックを使用せずに送信するので、データの所在を明
らかにするために、データの最初であることを示すスタ
ートビットとデータの最後であることを示すストップビ
ットとをデータに付加する。データビット長は、英数字
だけで送信するときは7ビット長、カナ文字を送受信す
るときは8ビット長で1つの文字を表現する。パリティ
チェックはデータの転送結果を確認するために行うチェ
ックで、データのビット列の最後にチェック用のビット
をつけ加える。受信側で0と1のビットのうち1のビッ
ト数を数えて、その数が偶数のときに誤りなしとするも
のが偶数パリティチェック、奇数のときに誤りなしとす
るものが奇数パリティチェックである。以上の通信条件
は、POSターミナル22からの送信およびスイッチ1
2からの入力によって設定することができる。In the communication standard, the addition of a start bit and a stop bit, the data bit length, and the type of parity check are set. In the asynchronous communication method, transmission is performed without using the clock of the modem, so in order to clarify the location of the data, a start bit indicating the beginning of the data and a stop bit indicating the end of the data are used. Is added to the data. One character is represented by a data bit length of 7 bits when transmitting only alphanumeric characters, and 8 bits when transmitting and receiving Kana characters. The parity check is a check performed to confirm the data transfer result, and a check bit is added to the end of the data bit string. The receiving side counts the number of 1 bits out of the 0 and 1 bits, and when the number is even, it is an even parity check when there is no error, and when it is odd, it is the odd parity check. . The above communication conditions are based on the transmission from the POS terminal 22 and the switch 1
2 can be set.
【0026】図2(C)は、設定された通信条件に基づ
いてPOSターミナル22から印字装置1へ送信される
コマンド例を示す図である。たとえば印字装置1によっ
て「ABC」と印字させる場合には、「A」を示すアス
キーコード[41h]、「B」を示すアスキーコード
[42h]、「C」を示すアスキーコード[43h]お
よび[LF(ラインフィード)]を示すコマンドコード
[0Ah]がPOSターミナル22から、ケーブル23
および通信インターフェース11を介して送信され、R
AM4の受信バッファ13に記憶される。受信バッファ
13に記憶された印字データを、ROM3に格納されて
いるフォントデータを用いて印字イメージに変換する。
変換された印字イメージをRAM4の印字バッファ14
に記憶し、受信バッファ13から変換済みのデータを消
去する。印字バッファ14に記憶された印字イメージを
レシート印字制御部7およびジャーナル印字制御部8か
ら印字出力する。印字出力した印字イメージは印字バッ
ファ14から消去する。FIG. 2C is a diagram showing an example of a command transmitted from the POS terminal 22 to the printing device 1 based on the set communication conditions. For example, when the printing device 1 prints “ABC”, the ASCII code [41h] indicating “A”, the ASCII code [42h] indicating “B”, the ASCII code [43h] indicating “C”, and [LF] (Line feed)] from the POS terminal 22 to the cable 23
And transmitted via the communication interface 11,
It is stored in the reception buffer 13 of AM4. The print data stored in the reception buffer 13 is converted into a print image using the font data stored in the ROM 3.
The converted print image is stored in the print buffer 14 of the RAM 4.
And deletes the converted data from the reception buffer 13. The print image stored in the print buffer 14 is printed out from the receipt print control unit 7 and the journal print control unit 8. The printed print image is deleted from the print buffer 14.
【0027】また受信バッファ13にコマンドが記憶さ
れているときは、記憶されたコマンドに応じた処理が行
われる。前記コマンド[LF]により「ABC」が印字
されたのちに改行を行う。When a command is stored in the reception buffer 13, processing corresponding to the stored command is performed. After "ABC" is printed by the command [LF], a line feed is performed.
【0028】その他のコマンド例としては、90度回転
した文字を印字するコマンドである[ESC]V[01
h]、アンダーライン付で印字するコマンドである[E
SC]−[01h]および紙無を検出したときに印字装
置から自動的にホストマシンに報知するように指示する
コマンドである[GS]a[08h]などがある。Another example of the command is a command for printing a character rotated by 90 degrees [ESC] V [01
h], a command to be printed with an underline [E
SC]-[01h], and a command [GS] a [08h] for instructing the printing apparatus to automatically notify the host machine when paper empty is detected.
【0029】図3は、POSターミナル22から印字装
置1へ送信されるコマンド例26を示す図である。たと
えば紙無検出手段によって記録紙が無いことが検出され
たときに、検出結果を有効として、印字手段の動作を停
止し、LEDエラーランプ21によってオペレータに報
知する。印字装置1が備える複数ある印字手段毎に紙無
検出が有効か無効かを設定するコマンドを示す。FIG. 3 is a diagram showing a command example 26 transmitted from the POS terminal 22 to the printer 1. For example, when the absence of recording paper is detected by the paper absence detection means, the detection result is validated, the operation of the printing means is stopped, and the operator is notified by the LED error lamp 21. A command for setting whether paper absence detection is valid or invalid for each of a plurality of printing units provided in the printing apparatus 1 is shown.
【0030】具体的には[ESC]を示すアスキーコー
ド[1Bh]と、「c」を示すアスキーコード[63
h]と「4」を示すアスキーコード[34h]と、複数
ある印字手段のうち紙無検出を有効とする印字手段を示
すデータ「n」とを含めてコマンド[ESC]c4nを
形成する。たとえばレシート印字制御部7に対して紙無
検出を有効とし、ジャーナル印字制御部8に対しては紙
無検出を無効とすることを示す設定のデータ「n」は
[10h]とする。データ[10h]はビット4が1で
その他のビットが0であることを示している。Specifically, an ASCII code [1Bh] indicating [ESC] and an ASCII code [63] indicating "c"
h] and an ASCII code [34h] indicating “4”, and data “n” indicating a printing means for which paper absence detection is valid among a plurality of printing means, to form a command [ESC] c4n. For example, the data "n" indicating that paper absence detection is enabled for the receipt print control unit 7 and paper absence detection is disabled for the journal print control unit 8 is [10h]. Data [10h] indicates that bit 4 is 1 and other bits are 0.
【0031】以上よりPOSターミナル22からのコー
ド[ESC]c4[10h]が受信されると、RAM4
の設定メモリ15に、レシート紙の紙無検出が有効であ
り、ジャーナル紙の紙無検出が無効であることが記憶さ
れ、レシート紙が無いときは、設定メモリ15を参照し
て、レシート印字制御部7の印字動作を停止し、LED
エラーランプ21を点灯するが、ジャーナル紙が無いと
きは、設定メモリ15を参照して、ジャーナル印字制御
部8の印字動作は停止せず、レシート印字制御部7によ
って印字データを印字出力する。When the code [ESC] c4 [10h] is received from the POS terminal 22, the RAM 4
It is stored in the setting memory 15 that the paper absence detection of the receipt paper is valid and the paper absence detection of the journal paper is invalid. When there is no receipt paper, the setting memory 15 is referred to and the receipt printing control is performed. Stop the printing operation of the unit 7, and
The error lamp 21 is turned on, but when there is no journal paper, the print operation of the journal print control unit 8 is not stopped and the print data is printed out by the receipt print control unit 7 with reference to the setting memory 15.
【0032】図4は、印字装置1が備えるスイッチ12
の入力例を示す図である。スイッチ12はディップスイ
ッチ30,31から成り、ディップスイッチ30はスイ
ッチ1−1,1−2,1−3,1−4,1−5,1−
6,1−7および1−8を有し、ディップスイッチ31
は、スイッチ2−1,2−2,2−3,2−4,2−
5,2−6,2−7および2−8を有する。このスイッ
チ1−1から1−8およびスイッチ2−1から2−8に
対して任意の設定項目を割当てることができる。FIG. 4 shows a switch 12 provided in the printing apparatus 1.
FIG. 6 is a diagram showing an input example of “.” The switch 12 includes dip switches 30 and 31, and the dip switch 30 is a switch 1-1, 1-2, 1-3, 1-4, 1-4, 1-.
6, 1-7 and 1-8, and a dip switch 31
Are the switches 2-1, 2-2, 2-3, 2-4, 2-
5, 2-6, 2-7 and 2-8. Arbitrary setting items can be assigned to the switches 1-1 to 1-8 and the switches 2-1 to 2-8.
【0033】図4(A)は、ディップスイッチ30によ
る前記通信条件24の入力設定例を示す図である。スイ
ッチ1−2によってビット長、スイッチ1−3によって
パリティチェックの有無、スイッチ1−4によってパリ
ティチェックの種類、スイッチ1−6,1−7および1
−8によって通信速度をそれぞれ入力することができ
る。スイッチ1−2をオンすると通信するビット長が7
ビットに設定され、オフにすると8ビットに設定され
る。スイッチ1−3をオンにすると通信時にパリティチ
ェックを行い、オフにすると行わないように設定され
る。スイッチ1−4をオンにすると偶数パリティチェッ
クを行い、オフにすると奇数パリティチェックを行うよ
うに設定される。FIG. 4A is a diagram showing an example of the input setting of the communication condition 24 by the DIP switch 30. Bit length by switch 1-2, presence or absence of parity check by switch 1-3, type of parity check by switch 1-4, switches 1-6, 1-7 and 1
The communication speed can be input by -8. When switch 1-2 is turned on, the communication bit length is 7
Set to 8 bits, set to 8 bits when turned off. When the switch 1-3 is turned on, a parity check is performed during communication, and when the switch 1-3 is turned off, the parity check is not performed. When the switches 1-4 are turned on, an even parity check is performed, and when the switches 1-4 are turned off, an odd parity check is performed.
【0034】通信速度は図4(B)に示すようにスイッ
チ1−6,1−7および1−8を入力することで設定す
ることができる。たとえばスイッチ1−6をオン、スイ
ッチ1−7をオフ、スイッチ1−8をオフにすると通信
速度は2400bpsに設定され、スイッチ1−6をオ
フ、スイッチ1−7をオン、スイッチ1−8をオフにす
ると通信速度は9600bpsに設定される。このよう
にスイッチ1−6,1−7および1−8を用いて通信速
度を2400〜38400bpsまで設定することがで
きる。The communication speed can be set by inputting switches 1-6, 1-7 and 1-8 as shown in FIG. For example, when the switch 1-6 is turned on, the switch 1-7 is turned off, and the switch 1-8 is turned off, the communication speed is set to 2400 bps, the switch 1-6 is turned off, the switch 1-7 is turned on, and the switch 1-8 is turned on. When turned off, the communication speed is set to 9600 bps. As described above, the communication speed can be set from 2400 to 38400 bps by using the switches 1-6, 1-7 and 1-8.
【0035】図4(C)は紙無検出手段によって記録紙
が無いことが検出されたときに検出結果を有効とするか
どうかをディップスイッチ31によって印字手段毎に設
定する入力設定例を示す図である。スイッチ2−7によ
ってジャーナル印字の設定を行い、スイッチ2−8によ
ってレシート印字の設定を行う。スイッチ2−7をオン
にするとジャーナル紙が無いときに検出結果を有効と
し、ジャーナル印字制御手段8の印字動作を停止する。
スイッチ2−7をオフにすると検出結果を無効とし、印
字動作は停止しない。スイッチ2−8をオンにするとレ
シート紙が無いときに検出結果を有効とし、レシート印
字制御手段7の印字動作を停止する。スイッチ2−8を
オフにすると検出結果を無効とし、印字動作は停止しな
い。FIG. 4C is a diagram showing an example of an input setting in which the DIP switch 31 sets whether or not the detection result is valid when the absence of recording paper is detected by the paper absence detection means. It is. The switch 2-7 sets journal printing, and the switch 2-8 sets receipt printing. When the switch 2-7 is turned on, the detection result is made valid when there is no journal paper, and the printing operation of the journal print control means 8 is stopped.
When the switch 2-7 is turned off, the detection result is invalidated, and the printing operation is not stopped. When the switch 2-8 is turned on, the detection result is made valid when there is no receipt paper, and the printing operation of the receipt printing control means 7 is stopped. When the switch 2-8 is turned off, the detection result is invalidated, and the printing operation is not stopped.
【0036】以上のように通信インターフェース11を
介してホストマシン22から印字装置1へコマンド[E
SC]c4[10h]が送信された場合およびスイッチ
12においてスイッチ2−7をオフにし、スイッチ2−
8をオンにした場合は、レシート紙検知部9によって紙
無が検出されると、印字バッファ14に記憶された印字
イメージを記憶したままレシート印字制御部7の印字動
作を停止し、LEDエラーランプ21を点灯する。ま
た、ジャーナル紙検知部10によって紙無が検出される
と、レシート印字制御部7のみから印字イメージが出力
される。As described above, the command [E] is sent from the host machine 22 to the printer 1 via the communication interface 11.
SC] c4 [10h] is transmitted and the switch 2-7 is turned off in the switch 12, and the switch 2-
When the receipt paper detection unit 9 detects that no paper is present, the printing operation of the receipt print control unit 7 is stopped while the print image stored in the print buffer 14 is stored, and the LED error lamp 8 is turned on. 21 is turned on. When the paper absence is detected by the journal paper detection unit 10, a print image is output only from the receipt print control unit 7.
【0037】図5、図6、図7、図8および図9は印字
装置1の態様切換制御のフローチャートを示す図であ
る。印字装置1の態様を切換えることでオペレータが選
択することができる設定は以下の4種類である。ここで
紙無検出手段である紙検知部によって紙無が検出された
ときに印字制御部の印字動作を停止して紙無を報知する
場合を紙無検出が有効であるとし、紙無が検出されても
印字動作を停止しない場合を紙無検出が無効であるとす
る。FIGS. 5, 6, 7, 8 and 9 show flowcharts of the mode switching control of the printing apparatus 1. FIG. The following four types of settings can be selected by the operator by switching the mode of the printing device 1. Here, when the absence of paper is detected by the paper detection unit, which is the paper absence detection means, the printing operation of the print control unit is stopped and the absence of paper is notified, and the absence of paper is regarded as valid. The case where the printing operation is not stopped even when the detection is performed is regarded as that the no-paper detection is invalid.
【0038】第1設定はジャーナル紙無検出とレシート
紙無検出とを共に有効とする設定である。第2設定はジ
ャーナル紙無検出は有効とし、レシート紙無検出は無効
とする設定である。第3設定はジャーナル紙無検出は無
効とし、レシート紙無検出は有効とする設定である。第
4設定はジャーナル紙無検出とレシート紙無検出とを共
に無効とする設定である。The first setting is a setting that enables both the detection of no journal paper and the detection of no receipt paper. The second setting is that the detection of no journal paper is valid and the detection of no receipt paper is invalid. The third setting is that the detection of no journal paper is invalid, and the detection of no receipt paper is valid. The fourth setting is a setting that invalidates both the detection of no journal paper and the detection of no receipt paper.
【0039】ジャーナル紙検知部10とレシート紙検知
部9との紙無検出が有効であるか無効であるかは、ホス
トマシンであるPOSターミナル22から送信されたコ
マンドおよびスイッチ12からの入力によってオペレー
タが決定することができるので、印字装置1を使用する
条件によってオペレータは上述の第1から第4設定を任
意に選択して切換えることができる。Whether the paper absence detection by the journal paper detection unit 10 and the receipt paper detection unit 9 is valid or invalid is determined by the command transmitted from the POS terminal 22 as the host machine and the input from the switch 12 by the operator. Can be determined, and the operator can arbitrarily select and switch the above-described first to fourth settings depending on the conditions for using the printing apparatus 1.
【0040】最初に第1設定のときのフローについて説
明する。まずステップa1で切換制御が開始され、ステ
ップa2でCPU2がスイッチ2−7を参照してジャー
ナル紙無検出が有効であるかどうかを判断する。第1設
定ではジャーナル紙無検出は有効であるのでステップa
3へ進む。ステップa3ではa2と同様にスイッチ2−
8を参照して判断する。第1設定ではレシート紙無検出
は有効であるのでステップa4へ進む。ステップa4で
はCPU2が設定メモリ15を参照してジャーナル紙無
検出が有効であるかどうかを判断する。第1設定ではジ
ャーナル紙無検出は有効であるのでステップa5へ進
む。ステップa5ではa4と同様に設定メモリ15を参
照して判断する。第1設定ではレシート紙無検出は有効
であるのでステップa6へ進む。First, the flow at the time of the first setting will be described. First, the switching control is started in step a1, and in step a2, the CPU 2 refers to the switch 2-7 to determine whether the detection of no journal paper is valid. In the first setting, the detection of no journal paper is effective, so step a
Proceed to 3. In step a3, switch 2
8 is determined. Since the receipt sheet absence detection is effective in the first setting, the process proceeds to step a4. At step a4, the CPU 2 refers to the setting memory 15 to determine whether the detection of no journal paper is valid. In the first setting, the detection of no journal paper is valid, and the process proceeds to step a5. In step a5, the determination is made with reference to the setting memory 15 as in step a4. Since the receipt paper absence detection is effective in the first setting, the process proceeds to step a6.
【0041】ステップa6でCPU2はジャーナル紙検
知部10およびレシート紙検知部9の検出信号に基づい
てジャーナル紙とレシート紙の有無を判断する。どちら
の紙無も検出されなければステップa7へ進む。ステッ
プa7では印字イメージを印字バッファ14からCPU
2が読み出し、ジャーナル印字制御部8およびレシート
印字制御部7に出力して各印字制御部から印字を行う。
印字が完了すれば印字イメージは印字バッファ14から
消去し、ステップa24で、切換制御の処理を終了す
る。どちらかの紙無が検出されればステップa8に進
む。ステップa8では紙無が検出された印字制御部の印
字動作を停止するとともに、LEDエラーランプ21を
点灯して紙が無いことをオペレータに報知する。またP
OSターミナル22と印字装置1との通信を停止してL
EDオンラインランプ20を消灯する。印字は完了して
いないので、印字イメージは印字バッファ14に記憶さ
れたまま紙がセットされるまで待機する。オペレータに
よって紙がセットされ、オンラインキー16が押される
と、POSターミナル22と印字装置1との通信を開始
し、印字バッファ14に記憶されていた印字イメージを
印字制御部から印字し、ステップa24で切換制御の処
理を終了する。In step a6, the CPU 2 determines the presence or absence of the journal paper and the receipt paper based on the detection signals of the journal paper detection unit 10 and the receipt paper detection unit 9. If neither sheet is detected, the process proceeds to step a7. In step a7, the print image is transferred from the print buffer 14 to the CPU.
2 outputs the read data to the journal print control unit 8 and the receipt print control unit 7 to perform printing from each print control unit.
When the printing is completed, the print image is deleted from the print buffer 14, and the switching control process is terminated in step a24. If either sheet is detected, the process proceeds to step a8. In step a8, the printing operation of the printing control unit in which no paper is detected is stopped, and the LED error lamp 21 is turned on to notify the operator that there is no paper. Also P
The communication between the OS terminal 22 and the printer 1 is stopped and
The ED online lamp 20 is turned off. Since the printing has not been completed, the print image is kept stored in the print buffer 14 until the paper is set. When the paper is set by the operator and the online key 16 is pressed, communication between the POS terminal 22 and the printing device 1 starts, and the print image stored in the print buffer 14 is printed from the print control unit. The switching control process ends.
【0042】第2設定のフローについて説明する。まず
ステップa1で切換制御が開始され、ステップa2に進
む。第2設定ではジャーナル紙無検出は有効であるので
ステップa3へ進む。第2設定ではレシート紙無検出は
無効であるのでステップa17へ進む。The flow of the second setting will be described. First, the switching control is started in step a1, and the process proceeds to step a2. In the second setting, since the detection of no journal paper is valid, the process proceeds to step a3. In the second setting, the receipt paper absence detection is invalid, so the process proceeds to step a17.
【0043】ステップa17でCPU2はジャーナル紙
検知部10およびレシート紙検知部9の検出信号に基づ
いてジャーナル紙およびレシート紙の有無を判断する。
ジャーナル紙の紙無は検出されずにレシート紙の紙無が
検出されればステップa16に進む。ステップa16で
は印字データを印字バッファ14からCPU2が読み出
し、ジャーナル印字制御部8に出力してジャーナル印字
制御部8のみから印字を行う。印字が完了すれば印字イ
メージは印字バッファ14から消去し、ステップa24
で切換制御の処理を終了する。レシート紙の紙無が検出
されていなければステップa6に進む。ジャーナル紙の
紙無が検出されればステップa8に進み印字を停止し、
ステップa24で切換制御の処理を終了する。ジャーナ
ル紙の紙無が検出されなければステップa7に進み両方
の印字制御部から印字し、ステップa24で切換制御の
処理を終了する。In step a17, the CPU 2 determines the presence or absence of the journal paper and the receipt paper based on the detection signals of the journal paper detection unit 10 and the receipt paper detection unit 9.
If the absence of the journal paper is detected without detecting the absence of the journal paper, the process proceeds to step a16. In step a16, the CPU 2 reads the print data from the print buffer 14, outputs the print data to the journal print control unit 8, and performs printing only from the journal print control unit 8. When the printing is completed, the print image is erased from the print buffer 14 and a step a24 is executed.
Ends the switching control process. If no receipt paper is detected, the process proceeds to step a6. If the absence of journal paper is detected, the flow advances to step a8 to stop printing,
In step a24, the process of the switching control ends. If the absence of journal paper is not detected, the process proceeds to step a7, where printing is performed from both print control units, and the switching control process ends in step a24.
【0044】POSターミナルから送信されたコマンド
によって設定を選択する場合は、スイッチ2−7および
スイッチ2−8をオンにする。したがってステップa1
からa2,a3を経てa4に進む。第2設定ではジャー
ナル紙無検出は有効であるのでステップa5へ進む。第
2設定ではレシート紙無検出は無効であるのでステップ
a23へ進む。When setting is selected by a command transmitted from the POS terminal, the switches 2-7 and 2-8 are turned on. Therefore, step a1
From a2 and a3 to a4. In the second setting, since the detection of no journal paper is valid, the process proceeds to step a5. In the second setting, the receipt paper absence detection is invalid, so the process proceeds to step a23.
【0045】ステップa23ではCPU2はジャーナル
紙検知部10およびレシート紙検知部9の検出信号に基
づいてジャーナル紙およびレシート紙の有無を判断す
る。ジャーナル紙の紙無は検出されずにレシート紙の紙
無が検出されればステップa16に進んでジャーナル印
字制御部8のみから印字し、ステップa24で切換制御
の処理を終了する。レシート紙の紙無が検出されていな
ければステップa6に進む。ジャーナル紙の紙無が検出
されなければステップa7に進み両方の印字制御部から
印字し、ステップa24で切換制御の処理を終了する。
ジャーナル紙の紙無が検出されればステップa8に進み
印字を停止し、ステップa24で切換制御の処理を終了
する。In step a23, the CPU 2 determines the presence or absence of the journal paper and the receipt paper based on the detection signals of the journal paper detection unit 10 and the receipt paper detection unit 9. If the absence of journal paper is not detected and the absence of receipt paper is detected, the process proceeds to step a16, where printing is performed only from the journal print control unit 8, and the switching control process ends in step a24. If no receipt paper is detected, the process proceeds to step a6. If the absence of journal paper is not detected, the flow proceeds to step a7, where printing is performed from both print control units, and the switching control process ends in step a24.
If the absence of journal paper is detected, the flow advances to step a8 to stop printing, and the switching control process ends in step a24.
【0046】第3設定のフローについて説明する。まず
ステップa1で切換制御が開始され、ステップa2に進
む。第3設定ではジャーナル紙無検出は無効であるので
ステップa9へ進む。ステップa9ではa3と同様にス
イッチ2−8を参照して判断する。第3設定ではレシー
ト紙無検出は有効であるのでステップa10へ進む。The flow of the third setting will be described. First, the switching control is started in step a1, and the process proceeds to step a2. In the third setting, the detection of no journal paper is invalid, so that the process proceeds to step a9. In step a9, the determination is made with reference to the switch 2-8 in the same manner as in a3. In the third setting, the receipt paper absence detection is valid, so the process proceeds to step a10.
【0047】ステップa10ではCPU2はジャーナル
紙検知部10およびレシート紙検知部9の検出信号に基
づいてジャーナル紙およびレシート紙の有無を判断す
る。レシート紙の紙無は検出されずにジャーナル紙の紙
無が検出されればステップa11に進む。ステップa1
1では印字データを印字バッファ14からCPU2が読
み出し、レシート印字制御部7に出力してレシート印字
制御部7のみから印字を行う。印字が完了すれば印字イ
メージを印字バッファ14から消去し、ステップa24
で切換制御の処理を終了する。ジャーナル紙の紙無が検
出されていなければステップa6に進む。レシート紙の
紙無が検出されればステップa8に進み印字を停止し、
ステップa24で切換制御の処理を終了する。レシート
紙の紙無が検出されなければステップa7に進み両方の
印字制御部から印字し、ステップa24で切換制御の処
理を終了する。In step a10, the CPU 2 determines the presence or absence of journal paper and receipt paper based on the detection signals of the journal paper detection unit 10 and the receipt paper detection unit 9. If the absence of the receipt paper is detected without detecting the absence of the receipt paper, the process proceeds to step all. Step a1
In step 1, the CPU 2 reads out print data from the print buffer 14, outputs the print data to the receipt print control unit 7, and performs printing only from the receipt print control unit 7. When the printing is completed, the print image is deleted from the print buffer 14 and a step a24 is executed.
Ends the switching control process. If no journal paper is detected, the process proceeds to step a6. If the absence of the receipt paper is detected, the flow proceeds to step a8 to stop printing,
In step a24, the process of the switching control ends. If the absence of the receipt paper is not detected, the process proceeds to step a7, where printing is performed from both print control units, and the switching control process ends in step a24.
【0048】POSターミナルから送信されたコマンド
によって設定を選択する場合は、スイッチ2−7および
スイッチ2−8をオンにする。したがってステップa1
からa2,a3を経てa4に進む。第3設定ではジャー
ナル紙無検出は無効であるのでステップa18へ進む。
ステップa18ではa5と同様に設定メモリ15を参照
して判断する。第3設定ではレシート紙無検出は有効で
あるのでステップa19へ進む。When setting is selected by a command transmitted from the POS terminal, the switches 2-7 and 2-8 are turned on. Therefore, step a1
From a2 and a3 to a4. In the third setting, the detection of no journal paper is invalid, so the process proceeds to step a18.
In step a18, a determination is made with reference to the setting memory 15, as in step a5. In the third setting, the receipt paper absence detection is valid, so the process proceeds to step a19.
【0049】ステップa19ではa10と同様にジャー
ナル紙およびレシート紙の有無を判断する。レシート紙
の紙無は検出されずにジャーナル紙の紙無が検出されれ
ばステップa11に進んでレシート印字制御部7のみか
ら印字し、ステップa24で切換制御の処理を終了す
る。ジャーナル紙の紙無が検出されていなければステッ
プa6に進む。レシート紙の紙無が検出されればステッ
プa8に進み印字を停止し、ステップa24で切換制御
の処理を終了する。レシート紙の紙無が検出されなけれ
ばステップa7に進み両方の印字制御部から印字し、ス
テップa24で切換制御の処理を終了する。In step a19, the presence or absence of journal paper and receipt paper is determined in the same manner as in a10. If the absence of the receipt paper is not detected and the absence of the journal paper is detected, the process proceeds to step a11, where printing is performed only from the receipt print control unit 7, and the switching control process ends in step a24. If no journal paper is detected, the process proceeds to step a6. If the absence of the receipt paper is detected, the flow advances to step a8 to stop the printing, and the processing of the switching control ends in step a24. If the absence of the receipt paper is not detected, the process proceeds to step a7, where printing is performed from both print control units, and the switching control process ends in step a24.
【0050】最後に第4設定のフローについて説明す
る。まずステップa1で切換制御が開始され、ステップ
a2に進む。第4設定ではジャーナル紙無検出は無効で
あるのでステップa9へ進む。第4設定ではレシート紙
無検出は無効であるのでステップa12へ進む。Finally, the flow of the fourth setting will be described. First, the switching control is started in step a1, and the process proceeds to step a2. In the fourth setting, the detection of no journal paper is invalid, so the process proceeds to step a9. In the fourth setting, the receipt paper absence detection is invalid, so the process proceeds to step a12.
【0051】ステップa12でCPU2はジャーナル紙
検知部10およびレシート紙検知部9の検出信号に基づ
いてジャーナル紙およびレシート紙の有無を判断する。
どちらの紙無も検出されればステップa13へ進む。ス
テップa13ではCPU2が印字バッファ14から印字
イメージを読み出して破棄し、ステップa24で切換制
御の処理を終了する。少なくともどちらか一方で紙無が
検出されていなければステップa14へ進む。In step a12, the CPU 2 determines the presence or absence of the journal paper and the receipt paper based on the detection signals of the journal paper detection unit 10 and the receipt paper detection unit 9.
If neither sheet is detected, the process proceeds to step a13. In step a13, the CPU 2 reads the print image from the print buffer 14 and discards it, and in step a24, ends the switching control process. If at least one of them has detected no paper, the process proceeds to step a14.
【0052】ステップa14ではa10と同様にジャー
ナル紙およびレシート紙の有無を判断する。レシート紙
の紙無は検出されずにジャーナル紙の紙無が検出されれ
ばステップa11に進んでレシート印字制御部7のみか
ら印字し、ステップa24で切換制御の処理を終了す
る。ジャーナル紙の紙無が検出されなければステップa
15に進む。ステップa15ではステップa17と同様
にジャーナル紙およびレシート紙の有無を判断する。ジ
ャーナル紙の紙無は検出されずにレシート紙の紙無が検
出されればステップa16に進んでジャーナル印字制御
部8のみから印字し、ステップa24で切換制御の処理
を終了する。レシート紙の紙無が検出されなければステ
ップa6に進む。ステップa6ではジャーナル紙および
レシート紙のどちらも紙無は検出されないのでステップ
a7に進んで両方の印字制御部から印字し、ステップa
24で切換制御の処理を終了する。At step a14, the presence or absence of journal paper and receipt paper is determined similarly to a10. If the absence of the receipt paper is not detected and the absence of the journal paper is detected, the process proceeds to step a11, where printing is performed only from the receipt print control unit 7, and the switching control process ends in step a24. If no journal paper is detected, step a
Proceed to 15. In step a15, the presence or absence of journal paper and receipt paper is determined as in step a17. If the absence of journal paper is not detected and the absence of receipt paper is detected, the process proceeds to step a16, where printing is performed only from the journal print control unit 8, and the switching control process ends in step a24. If the absence of the receipt paper is not detected, the process proceeds to step a6. At step a6, the absence of paper is not detected for both the journal paper and the receipt paper, so the process proceeds to step a7, where printing is performed from both print control units.
At 24, the switching control process is terminated.
【0053】POSターミナルから送信されたコマンド
によって設定を選択する場合は、スイッチ2−7および
スイッチ2−8をオンにする。したがってa1からa
2,a3を経てa4に進む。第4設定ではジャーナル紙
無検出は無効であるのでステッa18へ進む。第4設定
ではレシート紙無検出は無効であるのでステップa20
へ進む。ステップa20ではa12と同様にジャーナル
紙およびレシート紙の有無を判断する。どちらの紙無も
検出されればステップa13へ進んで印字イメージを破
棄し、ステップa24で切換制御の処理を終了する。少
なくともどちらか一方で紙無が検出されていなければス
テップa21へ進む。When selecting a setting by a command transmitted from the POS terminal, the switches 2-7 and 2-8 are turned on. Therefore, from a1 to a
The process proceeds to a4 via 2, a3. In the fourth setting, the detection of no journal paper is invalid, so that the process proceeds to step 18. In the fourth setting, the detection of no receipt paper is invalid, so step a20
Proceed to. In step a20, the presence or absence of journal paper and receipt paper is determined similarly to a12. If neither sheet is detected, the process proceeds to step a13, where the print image is discarded, and the switching control process ends in step a24. If at least one of them has not detected the absence of paper, the process proceeds to step a21.
【0054】ステップa21ではa10と同様にジャー
ナル紙およびレシート紙の有無を判断する。レシート紙
の紙無は検出されずにジャーナル紙の紙無が検出されれ
ばステップa11に進んでレシート印字制御部7のみか
ら印字し、ステップa24で切換制御の処理を終了す
る。ジャーナル紙の紙無が検出されなければステップa
22に進む。ステップa22ではステップa17と同様
にジャーナル紙およびレシート紙の有無を判断する。ジ
ャーナル紙の紙無は検出されずにレシート紙の紙無が検
出されればステップa16に進んでジャーナル印字制御
部8のみから印字し、ステップa24で切換制御の処理
を終了する。レシート紙の紙無が検出されなければステ
ップa6に進む。ステップa6ではジャーナル紙および
レシート紙のどちらも紙無は検出されないのでステップ
a7に進んで両方の印字制御部から印字し、ステップa
24で切換制御の処理を終了する。In step a21, the presence or absence of journal paper and receipt paper is determined in the same manner as in a10. If the absence of the receipt paper is not detected and the absence of the journal paper is detected, the process proceeds to step a11, where printing is performed only from the receipt print control unit 7, and the switching control process ends in step a24. If no journal paper is detected, step a
Proceed to 22. In step a22, the presence or absence of journal paper and receipt paper is determined as in step a17. If the absence of journal paper is not detected and the absence of receipt paper is detected, the process proceeds to step a16, where printing is performed only from the journal print control unit 8, and the switching control process ends in step a24. If the absence of the receipt paper is not detected, the process proceeds to step a6. At step a6, the absence of paper is not detected for both the journal paper and the receipt paper, so the process proceeds to step a7, where printing is performed from both print control units.
At 24, the switching control process is terminated.
【0055】以上のように、たとえば第1設定を選択す
ればジャーナル紙およびレシート紙のうちどちらか一方
でも無くなれば、印字動作が停止されるので印字データ
を必ず印字するように印字出力処理を優先することがで
きる。また、第4設定を選択すればジャーナル紙および
レシート紙のどちらが無くなっても印字動作を停止しな
いように売上登録処理を優先することができる。As described above, if, for example, the first setting is selected, if either one of the journal paper or the receipt paper is used up, the printing operation is stopped, so that the print output process is prioritized so that the print data is always printed. can do. If the fourth setting is selected, the sales registration process can be prioritized so that the printing operation is not stopped when either the journal paper or the receipt paper runs out.
【0056】なお、前記実施例において印字装置はレシ
ート印字とジャーナル印字の2種類の印字手段を備えて
いるが、印字手段は3種類以上備えていてもよい。In the above embodiment, the printing apparatus has two types of printing means, receipt printing and journal printing, but three or more printing means may be provided.
【0057】また前記実施例において、印字装置はホス
トマシンとしてPOSターミナルと接続しているが、コ
ンピュータなど印字データを送信する機能を有している
ものであればよい。In the above-described embodiment, the printing apparatus is connected to the POS terminal as a host machine. However, any apparatus having a function of transmitting print data, such as a computer, may be used.
【0058】[0058]
【発明の効果】以上のように本発明によれば、記録紙が
無くなったときの処理を選択することができるので、店
舗の管理方針などの印字装置を使用する条件によって印
字出力処理と売上登録処理とのどちらを優先するかを使
用者が選択することができる。As described above, according to the present invention, it is possible to select the processing when the recording paper is exhausted, so that the print output processing and the sales registration are performed according to the conditions of using the printing apparatus such as the store management policy. The user can select which of the processing and the processing is prioritized.
【0059】また本発明によれば、ホストマシンからコ
マンドを送信することによって記録紙が無くなったとき
の処理を選択することができるので、ホストマシンが紙
無検出を処理するための負担を軽減することができると
ともに店舗の管理方針などの印字装置を使用する条件に
よって印字出力処理と売上登録処理とのどちらを優先す
るかを使用者が選択することができる。Further, according to the present invention, it is possible to select the processing when the recording paper runs out by transmitting a command from the host machine, so that the burden on the host machine for processing the paper absence detection is reduced. The user can select which of the printout process and the sales registration process is to be prioritized according to the conditions for using the printing device such as the store management policy.
【0060】また本発明によれば、印字装置に含まれる
入力手段から入力することによって記録紙が無くなった
ときの処理を選択することができるので、ホストマシン
が紙無検出を処理するための負担を無くすことができる
とともに店舗の管理方針などの印字装置を使用する条件
によって印字出力処理と売上登録処理とのどちらを優先
するかを使用者が選択することができる。Further, according to the present invention, it is possible to select the processing when the recording paper is exhausted by inputting from the input means included in the printing apparatus. Can be eliminated, and the user can select which of the printout process and the sales registration process is to be prioritized according to the conditions for using the printing device such as a store management policy.
【図1】本発明の実施の一形態である印字装置1の電気
的構成を示すブロック図である。FIG. 1 is a block diagram illustrating an electrical configuration of a printing apparatus 1 according to an embodiment of the invention.
【図2】通信インターフェース11の例を示す図であ
る。FIG. 2 is a diagram illustrating an example of a communication interface 11;
【図3】POSターミナル22から印字装置1へ送信さ
れるコマンド26の例を示す図である。FIG. 3 is a diagram illustrating an example of a command 26 transmitted from the POS terminal 22 to the printing device 1.
【図4】印字装置1が備えるスイッチ12の入力例を示
す図である。FIG. 4 is a diagram illustrating an input example of a switch provided in the printing apparatus.
【図5】印字装置1の態様切換え制御のフローチャート
を示す図である。FIG. 5 is a flowchart illustrating a mode switching control of the printing apparatus.
【図6】印字装置1の態様切換え制御のフローチャート
を示す図である。FIG. 6 is a diagram illustrating a flowchart of a mode switching control of the printing apparatus 1.
【図7】印字装置1の態様切換え制御のフローチャート
を示す図である。FIG. 7 is a diagram illustrating a flowchart of a mode switching control of the printing apparatus 1.
【図8】印字装置1の態様切換え制御のフローチャート
を示す図である。FIG. 8 is a diagram illustrating a flowchart of a mode switching control of the printing apparatus 1.
【図9】印字装置1の態様切換え制御のフローチャート
を示す図である。FIG. 9 is a diagram illustrating a flowchart of a mode switching control of the printing apparatus 1.
1 印字装置 2 CPU(中央演算処理装置) 3 ROM(リードオンリメモリ) 4 RAM(ランダムアクセスメモリ) 7 レシート印字制御部 8 ジャーナル印字制御部 9 レシート紙検知部 10 ジャーナル紙検知部 11 通信インターフェース 12 スイッチ 21 エラーランプ Reference Signs List 1 printing device 2 CPU (central processing unit) 3 ROM (read only memory) 4 RAM (random access memory) 7 receipt print control unit 8 journal print control unit 9 receipt paper detection unit 10 journal paper detection unit 11 communication interface 12 switch 21 Error lamp
Claims (6)
通信インターフェースと、 受信した印字データを記憶する記憶手段と、 受信し記憶した印字データを記録紙に印字する印字手段
とを備える印字装置において、 印字動作中に記録紙が無くなったことを検出する紙無検
出手段と、 紙無検出に応答して、印字動作を停止するとともに受信
した印字データを記憶手段に記憶したまま紙無検出を報
知する第1の態様と、受信した印字データを記憶手段か
ら破棄する第2の態様とのうちのいずれか一方を選択し
実行する制御手段とを含むことを特徴とする印字装置。1. A printing apparatus comprising: a communication interface for receiving print data from a host machine; a storage unit for storing the received print data; and a printing unit for printing the received and stored print data on recording paper. A paper absence detecting means for detecting that the recording paper has run out during the operation, and a paper stopping means for stopping the printing operation in response to the paper absence detection and notifying the paper absence detection while storing the received print data in the storage means. A printing apparatus comprising: a control unit that selects and executes one of a first mode and a second mode in which received print data is discarded from a storage unit.
ェースを介してホストマシンから前記第1の態様と前記
第2の態様とのうちのいずれか一方を指定するコマンド
を受信し、 前記制御手段は、受信したコマンドに基づいて各態様を
切換えることを特徴とする請求項1記載の印字装置。2. The printing device receives a command designating one of the first mode and the second mode from a host machine via the communication interface, 2. The printing apparatus according to claim 1, wherein each mode is switched based on a received command.
第2の態様とのうちのいずれか一方を指定するコマンド
を入力する入力手段を含み、 前記制御手段は、入力されたコマンドに基づいて各態様
を切換えることを特徴とする請求項1記載の印字装置。3. The printing apparatus includes input means for inputting a command for designating one of the first mode and the second mode. 2. The printing apparatus according to claim 1, wherein each mode is switched based on the status.
通信インターフェースと、 受信した印字データを記憶する記憶手段と、 受信し記憶した印字データを互いに異なる記録紙に印字
する複数の印字手段とを備える印刷装置において、 印字動作中に記録紙が無くなったことを複数の印字手段
毎に検出する紙無検出手段と、 紙無検出に応答して、紙無が検出された印字手段の印字
動作を停止するとともに受信した印字データを記憶手段
に記憶したまま紙無検出を報知する第1の態様と、受信
した印字データを紙無が検出されなかった印字手段によ
って印字する第2の態様とのうちのいずれか一方を選択
し実行する制御手段とを含むことを特徴とする印字装
置。4. A printing apparatus comprising: a communication interface for receiving print data from a host machine; a storage unit for storing the received print data; and a plurality of printing units for printing the received and stored print data on different recording papers. In the apparatus, a paper absence detecting means for detecting for each of a plurality of printing means that the recording paper has run out during the printing operation, and in response to the paper absence detection, stopping the printing operation of the printing means in which the paper absence is detected. And a second mode in which the received print data is stored in the storage unit and the absence of paper is notified while the received print data is stored in the storage unit. And a control means for selecting and executing one of them.
ースを介してホストマシンから前記第1の態様と前記第
2の態様とのうちのいずれか一方を指定するコマンドを
受信し、 前記制御手段は、受信したコマンドに基づいて各態様を
切換えることを特徴とする請求項4記載の印字装置。5. The printing device receives a command specifying one of the first mode and the second mode from a host machine via the communication interface, and the control unit includes: 5. The printing apparatus according to claim 4, wherein each mode is switched based on the received command.
第2の態様とのうちのいずれか一方を指定するコマンド
を入力する入力手段を含み、 前記制御手段は、入力されたコマンドに基づいて各態様
を切換えることを特徴とする請求項4記載の印字装置。6. The printing apparatus includes an input unit for inputting a command for designating one of the first mode and the second mode, and the control unit outputs the command to the input command. 5. The printing apparatus according to claim 4, wherein each mode is switched based on the status.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000129694A JP2001310538A (en) | 2000-04-28 | 2000-04-28 | Printing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000129694A JP2001310538A (en) | 2000-04-28 | 2000-04-28 | Printing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001310538A true JP2001310538A (en) | 2001-11-06 |
Family
ID=18638928
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000129694A Pending JP2001310538A (en) | 2000-04-28 | 2000-04-28 | Printing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001310538A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPWO2005096240A1 (en) * | 2004-04-01 | 2007-08-16 | 松下電器産業株式会社 | Value information management system, recording medium, printer device, payment device, electronic data printing method, and computer program |
| US7299210B2 (en) * | 2000-02-16 | 2007-11-20 | Stamps.Com | On-line value-bearing indicium printing using DSA |
| US8027926B2 (en) | 1999-10-18 | 2011-09-27 | Stamps.Com | Secure and recoverable database for on-line value-bearing item system |
| US8027927B2 (en) | 1999-10-18 | 2011-09-27 | Stamps.Com | Cryptographic module for secure processing of value-bearing items |
| JP2013052571A (en) * | 2011-09-02 | 2013-03-21 | Toshiba Tec Corp | Printer and printing method |
-
2000
- 2000-04-28 JP JP2000129694A patent/JP2001310538A/en active Pending
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8027926B2 (en) | 1999-10-18 | 2011-09-27 | Stamps.Com | Secure and recoverable database for on-line value-bearing item system |
| US8027927B2 (en) | 1999-10-18 | 2011-09-27 | Stamps.Com | Cryptographic module for secure processing of value-bearing items |
| US8041644B2 (en) | 1999-10-18 | 2011-10-18 | Stamps.Com | Cryptographic module for secure processing of value-bearing items |
| US8301572B2 (en) | 1999-10-18 | 2012-10-30 | Stamps.Com | Cryptographic module for secure processing of value-bearing items |
| US8498943B2 (en) | 1999-10-18 | 2013-07-30 | Stamps.Com | Secure and recoverable database for on-line value-bearing item system |
| US7299210B2 (en) * | 2000-02-16 | 2007-11-20 | Stamps.Com | On-line value-bearing indicium printing using DSA |
| US10580222B2 (en) | 2000-02-16 | 2020-03-03 | Stamps.Com Inc. | Secure on-line ticketing |
| JPWO2005096240A1 (en) * | 2004-04-01 | 2007-08-16 | 松下電器産業株式会社 | Value information management system, recording medium, printer device, payment device, electronic data printing method, and computer program |
| JP4649403B2 (en) * | 2004-04-01 | 2011-03-09 | パナソニック株式会社 | Value information management system, recording medium, printer device, payment device, electronic data printing method, and computer program |
| US7970708B2 (en) | 2004-04-01 | 2011-06-28 | Panasonic Corporation | Value information management system, recording medium, printer device, account adjusting device, electronic data printing method, and computer program |
| JP2013052571A (en) * | 2011-09-02 | 2013-03-21 | Toshiba Tec Corp | Printer and printing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6437869B1 (en) | Printer apparatus, printer system and control method therefor | |
| US6985257B2 (en) | Job processing apparatus | |
| US8375388B2 (en) | Combining print jobs when the current and the next job are generated by a specific application and each job having one copy | |
| US7158243B2 (en) | Printing apparatus and printing system, control method, storage medium and program | |
| US7503712B2 (en) | Printing apparatus for selecting the appropriate error state mode according to the application type and user desired print results | |
| EP0834828A2 (en) | Hybrid printer equipped with a plurality of printing mechanisms and method of controlling it | |
| US8355148B2 (en) | Image processing apparatus, method and storage medium providing customized interface displays | |
| JP2001310538A (en) | Printing device | |
| US20050286078A1 (en) | Print control device and method for automatically resuming a printing operation of remaining pages | |
| US8854652B2 (en) | Host device and printing control method thereof | |
| JP2000062292A (en) | PRINTING SYSTEM, PRINTING SYSTEM CONTROL METHOD, AND COMPUTER-READABLE STORAGE MEDIUM | |
| JP2871370B2 (en) | Output control method and device | |
| JP2001134388A (en) | Controller for image forming device and printing job monitoring method | |
| JP2000029642A (en) | Printing apparatus, printing method, printing system, information processing apparatus, information processing method, and storage medium | |
| JP2002244821A (en) | Printing method using print server, print server, program, and recording medium | |
| US9158489B1 (en) | Buffering a print instruction before its transferred to a printing apparatus | |
| JPH11184648A (en) | Printing system | |
| KR100341785B1 (en) | Method for printing subscription of document | |
| JPH1097395A (en) | Print control apparatus, print control method for print apparatus, and storage medium storing computer-readable program | |
| JP2002248840A (en) | Print control device, data processing method, and storage medium | |
| JP2002157094A (en) | Data processing device, print control device, data processing method of data processing device, data processing method of print control device, and storage medium | |
| KR20000013020A (en) | Picture data processing system of picture formation device | |
| JP2001034440A (en) | Printer, control method thereof, and information recording medium | |
| CN112976836A (en) | Printing apparatus and control method of printing apparatus | |
| KR20010018369A (en) | Method for re-printing of document |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040622 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050405 |