JP2001018469A - Continuous form printer - Google Patents

Continuous form printer

Info

Publication number
JP2001018469A
JP2001018469A JP11196270A JP19627099A JP2001018469A JP 2001018469 A JP2001018469 A JP 2001018469A JP 11196270 A JP11196270 A JP 11196270A JP 19627099 A JP19627099 A JP 19627099A JP 2001018469 A JP2001018469 A JP 2001018469A
Authority
JP
Japan
Prior art keywords
paper
usage
receipt
command
length
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
Application number
JP11196270A
Other languages
Japanese (ja)
Inventor
Yasushi Sato
靖 佐藤
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP11196270A priority Critical patent/JP2001018469A/en
Publication of JP2001018469A publication Critical patent/JP2001018469A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To grasp current use of sheet easily by analyzing the content of a command every time when it is received from a host CPU and determining the quantity of used sheet and then accumulating the quantity of used sheet. SOLUTION: A host CPU 11 multiplies the font size of current print data by the number of printed lines to calculate the quantity of receipt sheets used for printing the current print data. It is added to a used length read into an RAM 14 to calculate the accumulated quantity of used receipt sheet and the used length stored in an EEPROM 13 is updated. The accumulated quantity of used receipt sheet is compared with a sheet length read out from the RAM 14 minus marginal length and if the accumulated quantity of used receipt sheet exceeds an operated value, a decision is made that end of sheet is approached because the residual length of receipt sheet is shorter than the marginal length. Subsequently, a sheet alarm flag stored in the EEPROM 13 is set and print processing is ended.

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 POS (Point Of
The present invention relates to a continuous paper printer that prints on continuous paper such as roll paper or web paper, such as a receipt printer incorporated in a terminal.

【0002】[0002]

【従来の技術】連続した形態の用紙を装填する用紙装填
部を有し、この用紙装填部に装填された用紙をその先端
から引出して印字部まで送り出し、印字部で用紙を幅方
向とは垂直な方向に順次フィードさせながら幅方向に1
行ずつ印字を行なう形式の連続紙プリンタにおいて、従
来、用紙装填部の用紙が無くなったこと若しくは少なく
なったことをハードウェアのセンサで検知して、用紙切
れ若しくは用紙切れ間近の警告を報知する機能はあっ
た。
2. Description of the Related Art A sheet loading section for loading sheets in a continuous form is provided. The sheet loaded in the sheet loading section is pulled out from its leading end and sent out to a printing section, and the printing section moves the sheet perpendicular to the width direction. In the width direction while sequentially feeding
Conventionally, in continuous paper printers that print on a line-by-line basis, a function is used to detect that the paper in the paper loading unit has run out or is running low with a hardware sensor, and to issue a warning that the paper has run out or is about to run out. There was.

【0003】しかし、現時点まで用紙をどの程度使用し
たか、また残りはどのくらいか等、用紙の現時点までの
使用状況を確認するには、用紙装填部に装填されている
用紙の残量を直接目で見て確認するしか方法がなく、そ
のためには、プリンカバーを開けて用紙装填部を覗き込
む必要があり、面倒であった。
However, in order to check the usage status of the paper up to the present time, such as how much paper has been used up to the present time and how much has been used, the remaining amount of paper loaded in the paper loading section is directly monitored. There was no other way but to check it. For that purpose, it was necessary to open the pudding cover and look into the paper loading section, which was troublesome.

【0004】[0004]

【発明が解決しようとする課題】上述したように従来の
この種の連続紙プリンタにおいては、現時点までの用紙
使用状況を確認するのが面倒であった。また、用紙切れ
や用紙切れ間近の検出をハードウェアのセンサで行なっ
ていたので、センサの汚れなどにより誤検出が発生し易
かった。
As described above, in this type of conventional continuous paper printer, it is troublesome to check the paper usage status up to the present time. Further, since the detection of the paper shortage or the near paper shortage is performed by a hardware sensor, erroneous detection is likely to occur due to contamination of the sensor.

【0005】本発明はこのような事情に基づいてなされ
たものであり、その目的とするところは、現時点までの
用紙使用状況を簡単に確認できる連続紙プリンタを提供
しようとするものである。また、ハードウェアのセンサ
を用いずに用紙切れ間近を検知することができ、信頼性
を向上できる連続紙プリンタを提供しようとするもので
ある。
The present invention has been made in view of such circumstances, and an object of the present invention is to provide a continuous paper printer which can easily confirm the paper use status up to the present time. It is another object of the present invention to provide a continuous paper printer that can detect the near-out of paper without using a hardware sensor and can improve reliability.

【0006】[0006]

【課題を解決するための手段】本願請求項1記載の発明
は、ホストからの命令に従い、連続した形態の用紙をそ
の幅方向とは垂直な方向にフィードして印字部まで送り
出し、印字部で用紙に対してその幅方向に印字を行なう
連続紙プリンタにおいて、ホストからの命令を受ける毎
にその命令内容を解析して用紙の使用量を取得する使用
量取得手段と、この使用量取得手段により取得した用紙
使用量を累計する使用量累計手段と、このフィード累計
手段による累計使用量を出力する累計使用量出力手段と
を備えたものである。ここで、使用量取得手段は、ホス
トからの命令が用紙フィード命令であれば、その単位フ
ィード長とフィード回数とから使用量を取得する手段を
含む。また、ホストからの命令が印字命令であれば、フ
ォントサイズと印字行数とから使用量を取得する手段を
含む。勿論、その他の要素から使用量を取得してもよ
い。このような構成の請求項1記載の発明であれば、ホ
ストからの命令を受ける毎に用紙の使用量を取得し、そ
の用紙使用量を累計し、その累計使用量を出力するの
で、累計使用量の出力結果から現時点までの用紙使用量
の確認が容易である。
According to a first aspect of the present invention, in accordance with a command from a host, a continuous form of paper is fed in a direction perpendicular to the width direction of the paper and sent out to a printing unit. In a continuous paper printer that prints on a sheet in the width direction, each time a command from a host is received, the content of the command is analyzed to obtain the amount of paper used. The apparatus is provided with a use amount accumulating means for accumulating the obtained sheet use amount, and a total use amount output means for outputting the total use amount by the feed accumulating means. Here, if the command from the host is a paper feed command, the usage obtaining unit includes a unit that obtains the usage from the unit feed length and the number of times of feeding. Also, if the command from the host is a print command, a means for acquiring the used amount from the font size and the number of print lines is included. Of course, the usage amount may be obtained from other factors. According to the first aspect of the present invention, each time a command is received from the host, the used amount of paper is acquired, the used amount of paper is accumulated, and the accumulated used amount is output. It is easy to confirm the amount of paper used up to the present time from the output result of the amount.

【0007】本願請求項2記載の発明は、上記請求項1
記載の発明の使用量取得手段及び使用量累計手段に加え
て、用紙の全長データを設定記憶する全長記憶手段と、
この全長記憶手段により記憶される用紙全長データと使
用量累計手段による累計使用量とに基づいて現時点まで
の用紙使用状況を示すデータを取得する使用状況データ
取得手段と、この使用状況データ取得手段により取得し
た用紙使用状況を示すデータを出力する使用状況出力手
段とを備えたものである。ここで、使用状況データ取得
手段は、累計使用量が現時点までの用紙使用量となるの
で、例えば用紙全長データに対する現時点までの用紙使
用率を計算する手段を含む。勿論、用紙使用率以外の用
紙使用状況を示すデータを取得してもよい。このような
構成の請求項2記載の発明であれば、ホストからの命令
を受ける毎に用紙の使用量を取得し、その用紙使用量を
累計し、その累計使用量と用紙の全長データとから現時
点までの用紙使用状況を示すデータを取得し、その用紙
使用状況を示すデータを出力するので、用紙使用状況を
示すデータの出力結果から現時点までの用紙使用量並び
に残量の確認が容易である。
[0007] The invention described in claim 2 of the present application is the above-described claim 1.
In addition to the used amount obtaining means and the used amount accumulating means of the described invention, a total length storing means for setting and storing the total length data of the paper,
A usage data acquisition unit that acquires data indicating the paper usage status up to the present time based on the total paper length data stored by the full length storage unit and the total usage amount by the usage totalization unit; and a usage status data acquisition unit. A use status output unit for outputting data indicating the obtained paper use status. Here, the use status data acquisition means includes a means for calculating the paper use rate up to the present time with respect to the paper total length data because the total use amount is the paper use amount up to the present time. Of course, data indicating the paper usage status other than the paper usage rate may be obtained. According to the second aspect of the present invention, each time a command is received from the host, the used amount of paper is acquired, the used amount of paper is totaled, and the total used amount and the total length data of the paper are obtained. Since the data indicating the paper usage status up to the present time is obtained and the data indicating the paper usage status is output, it is easy to confirm the paper usage amount and the remaining amount up to the present time from the output result of the data indicating the paper usage status. .

【0008】本願請求項3記載の発明は、上記請求項2
記載の発明の使用量取得手段,使用量累計手段及び全長
記憶手段に加えて、この全長記憶手段により記憶される
用紙全長データと使用量累計手段による累計使用量とに
基づいて用紙が用紙切れ間近か否かを判定する用紙切れ
間近判定手段と、この用紙切れ間近判定手段により用紙
が用紙切れ間近であると判定するとその旨を警告する用
紙切れ間近警告手段とを備えたものである。ここで、用
紙切れ間近判定手段は、累計使用量が現時点までの用紙
使用量となるので、例えば用紙全長データと累計使用量
とを比較し、その差が予め設定したしきい値以下になる
と用紙切れ間近と判定する手段を含む。勿論、その他の
要素により用紙切れ間近を判定してもよい。このような
構成の請求項3記載の発明であれば、ホストからの命令
を受ける毎に用紙の使用量を取得し、その用紙使用量を
累計し、その累計使用量と用紙の全長データとから用紙
切れ間近か否かを判定し、用紙切れ間近であると判定さ
れるとその旨を警告するので、ハードウェアのセンサを
用いることなく用紙切れ間近であることが自動的に検知
される。
[0008] The invention described in claim 3 of the present application is the above-described claim 2.
In addition to the used amount acquiring means, used amount accumulating means, and total length storing means of the invention described above, the sheet is almost out of paper based on the total paper length data stored by the full length storing means and the total used amount by the used amount accumulating means. The near-paper shortage determining means for determining whether or not the paper is near the end of paper is provided, and the near-paper shortage warning means for issuing a warning when the near-paper shortage is determined by the near-paper shortage determining means. Here, the near-paper shortage determination means compares the total paper usage with the total usage, for example, because the total usage is the paper usage up to the present time. It includes a means for determining that it is about to expire. Of course, it may be determined that the paper is about to run out based on other factors. According to the third aspect of the present invention, each time a command is received from the host, the amount of paper used is acquired, the amount of used paper is totaled, and the total amount of used paper and the total length data of the paper are obtained. It is determined whether the paper is about to run out, and if it is determined that the paper is about to run out, a warning to that effect is issued. Therefore, it is automatically detected that the paper is about to run out without using a hardware sensor.

【0009】[0009]

【発明の実施の形態】以下、本発明の一実施の形態を図
面を用いて説明する。なお、この実施の形態では、本発
明をPOSターミナルに組込まれるレシートプリンタに
適用した場合について述べる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. In this embodiment, a case will be described in which the present invention is applied to a receipt printer incorporated in a POS terminal.

【0010】図1は本発明に関わるレシートプリンタを
内蔵したPOSターミナル1の外観図であり、タッチ・
スキャナ2をRS232C等の通信インタフェース用ケ
ーブル3を介して接続している。POSターミナル1
は、ドロワ4の上に載置しており、このドロワ4の引出
し4aを手前側に自動開放させるようになっている。P
OSターミナル1には、その筐体の正面にキーボード
5、モードスイッチ6及びオペレータ用表示器7を設
け、背面に客用表示器8を設けている。また、筐体の上
面に、筐体内に組込まれたレシートプリンタに装填され
るロール状のレシート用紙を交換するとき等に開放する
プリンタカバー9を形成しており、このプリンタカバー
9に、レシートプリンタで印字されたレシート用紙を排
出するレシート発行口10を形成している。
FIG. 1 is an external view of a POS terminal 1 incorporating a receipt printer according to the present invention.
The scanner 2 is connected via a communication interface cable 3 such as RS232C. POS terminal 1
Are placed on the drawer 4, and the drawer 4a of the drawer 4 is automatically opened to the near side. P
The OS terminal 1 is provided with a keyboard 5, a mode switch 6 and an operator display 7 on the front of its housing, and a customer display 8 on the back. Further, a printer cover 9 is formed on the upper surface of the housing and is opened when exchanging a roll-shaped receipt sheet loaded in a receipt printer incorporated in the housing. The receipt issuance port 10 for discharging the receipt paper printed with the symbol.

【0011】前記キーボード5は、商品の販売点数,金
額などの数値データを置数入力する置数キーの他、部門
キー,小計キー,預/現計キー,×キー,クリアキー,
実行キー,取消キー,値引キー,レシートフィードキー
等を配設したPOSターミナル専用のキーボードであ
る。そして、特に本実施の形態では、レシート用紙の現
時点までの使用率出力を要求するための使用率出力キー
Kを配設している。
The keyboard 5 includes a numeric key for inputting numerical data such as the number of items sold and the amount of money, a department key, a subtotal key, a deposit / current total key, an X key, a clear key,
This is a POS terminal-dedicated keyboard provided with an execution key, a cancel key, a discount key, a receipt feed key, and the like. In particular, in the present embodiment, a utilization rate output key K for requesting the utilization rate output of the receipt paper up to the present time is provided.

【0012】前記モードスイッチ6は、「登録」,「点
検」,「精算」,「設定」等の各種業務モードを選択す
るスイッチで、鍵にて切換え操作する。因みに、「登
録」とは、商品コードの入力により登録された商品の販
売データを記憶部に売上登録処理するとともにレシート
プリンタによりレシート用紙に印字しレシートを発行す
る業務のモードであり、「点検」とは、「登録」業務に
よって記憶部に売上登録処理された各商品の販売データ
の集計データをレシートプリンタによりレシート用紙に
印字して点検レポートとして発行する業務のモードであ
り、「精算」とは、「点検」業務と同様に各商品販売デ
ータの集計データをレシート用紙に印字して精算レポー
トとして発行した後、記憶部のデータをクリアする業務
であり、「設定」とは、「登録」等の各種業務を実行す
る上で必要なデータを予め記憶部に設定しその設定内容
をレシートプリンタによりレシート用紙に印字して発行
する業務である。
The mode switch 6 is a switch for selecting various business modes such as "registration", "inspection", "payment", and "setting", and is operated by a key. By the way, "registration" is a business mode in which sales data of a product registered by inputting a product code is sales-registered in a storage unit, printed on receipt paper by a receipt printer, and a receipt is issued. `` Registration '' is a business mode in which the total data of sales data for each product that has been registered in the storage unit by the `` Registration '' business is printed on receipt paper by a receipt printer and issued as an inspection report. In the same way as the “Inspection” business, after printing the aggregated data of each product sales data on receipt paper and issuing it as a settlement report, it is a business to clear the data in the storage unit, and “Setting” is “Registration” etc. The data required to execute the various tasks described above are set in the storage unit in advance, and the settings are printed on a receipt paper by a receipt printer and issued. Is Tsutomu.

【0013】しかして、当該POSターミナル1は、コ
ンピュータを主体とし、前記タッチ・スキャナ2,キー
ボード5,オペレータ用表示器7,客用表示器8及びレ
シートプリンタ等の各部を制御して、前記「登録」,
「点検」,「精算」,「設定」などの各種業務を実行さ
せるPOS制御部15(図2参照)を実装している。
The POS terminal 1 is mainly composed of a computer, and controls the touch scanner 2, keyboard 5, operator display 7, customer display 8, and receipt printer to control the "POS terminal". Registration ”,
The POS control unit 15 (see FIG. 2) for executing various tasks such as “check”, “payment”, and “setting” is mounted.

【0014】一方、レシートプリンタは、ホストとして
機能する前記POS制御部15からの命令に従い、用紙
装填部に装填されたロール状のレシート用紙を、用紙フ
ィード機構によりその幅方向とは垂直な方向にフィード
して印字部まで送り出し、この印字部でレシート用紙に
対してその幅方向に印字を行ない、さらにレシート発行
口10までフィードして排出させる構造であり、印字部
としてレシート用紙の幅方向に複数の発熱体を配列して
なるラインサーマルヘッド17(図2参照)を備えてい
る。
On the other hand, the receipt printer, in accordance with a command from the POS control unit 15 functioning as a host, causes the roll-shaped receipt paper loaded in the paper loading unit to be moved in a direction perpendicular to the width direction by a paper feed mechanism. The paper is fed to the printing unit, the printing unit prints the receipt paper in the width direction, and feeds the paper to the receipt issuing port 10 to discharge the paper. And a line thermal head 17 (see FIG. 2) in which the heating elements are arranged.

【0015】また、このレシートプリンタは、図2に示
すように、制御部本体としてCPU(Central Processi
ng Unit)11を搭載している。また、読出し専用のR
OM(Read Only Memory)12、不揮発性の書換え可能
なEEPROM(Electrically Erasable and Programm
able Read Only Memory)13、揮発性のRAM(Rando
m Access Memory)14の各種半導体メモリの他、前記
POS制御部15とのデータ通信を司る通信インタフェ
ース16、前記ラインサーマルヘッド17を構成する各
発熱体の通電オン,オフを切り換えるヘッドドライバ1
8、前記用紙フィード機構の駆動源であるフィードモー
タ19の通電オン,オフを切り換えるモータドライバ2
0、前記用紙装填部でのレシート用紙有無を検知する用
紙センサや前記プリンタカバー9の開閉状態を検知する
カバーセンサなどのハードウェアの各種センサ21から
信号を入力するI/Oポート22などを搭載しており、
CPU11と、ROM12,EEPROM13,RAM
14,通信インタフェース15,ヘッドドライバ18,
モータドライバ20及びI/Oポート22とを、アドレ
スバス,データバスなどのバスライン23で接続してい
る。
As shown in FIG. 2, this receipt printer has a CPU (Central Process
ng Unit) 11. Also, the read-only R
OM (Read Only Memory) 12, nonvolatile rewritable EEPROM (Electrically Erasable and Programmable)
able Read Only Memory (13), volatile RAM (Rando
m Access Memory) 14, a communication interface 16 for controlling data communication with the POS control unit 15, and a head driver 1 for switching on and off the power supply of each heating element constituting the line thermal head 17.
8. A motor driver 2 for switching on and off the power supply of a feed motor 19 which is a driving source of the paper feed mechanism.
0, equipped with an I / O port 22 for inputting signals from various hardware sensors 21 such as a paper sensor for detecting the presence or absence of a receipt paper in the paper loading section and a cover sensor for detecting the open / close state of the printer cover 9. And
CPU 11, ROM 12, EEPROM 13, RAM
14, communication interface 15, head driver 18,
The motor driver 20 and the I / O port 22 are connected by a bus line 23 such as an address bus and a data bus.

【0016】前記ROM12には、プログラムやキャラ
クタジェネレータデータなどの固定的データを予め格納
している。前記EEPROM13には、図3に示すよう
に、レシート用紙の全長であるレシート長N、レシート
用紙の用紙切れ間近警告を発する時のしきい値となる残
量である有余長Y、レシート用紙の現時点までの使用量
である使用長M、用紙切れ警告の発令中に“1”にセッ
トされる用紙警告フラグf等の各種データを記憶保持し
ている。ここに、EEPROM13は全長記憶手段を構
成する。
The ROM 12 previously stores fixed data such as programs and character generator data. As shown in FIG. 3, the EEPROM 13 has a receipt length N, which is the total length of the receipt paper, a remaining length Y, which is a remaining amount which is a threshold when a near-out-of-paper warning of the receipt paper is issued, and a current length of the receipt paper. It stores various data such as the usage length M, which is the usage amount up to, and the paper warning flag f which is set to "1" during the issuance of the paper out warning. Here, the EEPROM 13 constitutes a full length storage means.

【0017】前記RAM14には、図4に示すように、
前記POS制御部15から受信した印字データ等を一時
格納する受信バッファ41,前記POS制御部15に送
信するデータを一時格納する送信バッファ42、印字デ
ータがドット展開される印字バッファ43、前記CPU
11の処理データを一時格納するワークメモリ44など
の各種メモリエリアを形成している。
In the RAM 14, as shown in FIG.
A reception buffer 41 for temporarily storing print data and the like received from the POS control unit 15; a transmission buffer 42 for temporarily storing data to be transmitted to the POS control unit 15; a print buffer 43 in which print data is expanded into dots;
Various memory areas such as a work memory 44 for temporarily storing processing data of 11 are formed.

【0018】しかして、前記レシートプリンタは、PO
Sターミナル1の電源投入により立ち上がると、CPU
11が図6の流れ図に示すメイン処理を実行するよう
に、ROM12のプログラムを構成している。
The receipt printer has a PO
When the terminal is started up by turning on the power of the S terminal 1, the CPU
The program of the ROM 12 is configured so that the main processing 11 executes the main processing shown in the flowchart of FIG.

【0019】すなわちCPU11は、電源投入による立
上げ処理後、ST(ステップ)1としてEEPROM1
3で記憶保持している用紙警告フラグfの状態を調べ
る。ここで、用紙警告フラグfが“1”にセットされて
いた場合には、用紙切れ間近の警告がなされた状態で電
源が一旦オフされ、再度投入されたので、ST2として
I/Oポート22に入力される用紙センサからの信号に
より用紙装填部にレシート用紙が有るか否かを判断す
る。そして、レシート用紙無しの場合には、レシート用
紙が用紙装填部にセットされるまで待機する。
That is, after the power-on start-up process, the CPU 11 executes the EEPROM 1 as ST (step) 1.
The state of the paper warning flag f stored in step 3 is checked. Here, if the paper warning flag f is set to "1", the power is once turned off and turned on again in a state in which a warning that the paper is about to run out is given, so that the I / O port 22 is connected to the I / O port 22 as ST2. It is determined whether or not a receipt sheet is present in the sheet loading unit based on a signal from the input sheet sensor. If there is no receipt paper, the process waits until the receipt paper is set in the paper loading unit.

【0020】ST2にてレシート用紙有りの場合には、
ST3としてEEPROM13で記憶保持している使用
長Mを“0”にクリアする。また、ST4として同EE
PROM13で記憶保持している用紙警告フラグfを
“0”にリセットする。しかる後、ST5としてホスト
であるPOS制御部15からコマンド(命令)を受信す
るのを待機する。ST1にて用紙警告フラグfが“0”
にリセットされていた場合には、ST2乃至ST4の処
理を行なわずにST5に進み、POS制御部15からの
コマンドを待機する。
If there is a receipt paper in ST2,
In ST3, the use length M stored and held in the EEPROM 13 is cleared to "0". Also, the same EE as ST4
The sheet warning flag f stored in the PROM 13 is reset to "0". Thereafter, as ST5, the process waits for receiving a command (command) from the POS control unit 15 as the host. In ST1, the paper warning flag f is "0"
If it has been reset, the process proceeds to ST5 without performing the processing of ST2 to ST4, and waits for a command from the POS control unit 15.

【0021】ここで、ST6として図5(a)に示す伝
文フォーマットの設定コマンドを受信した場合には、図
7に具体的に示す設定処理を実行する。なお、設定コマ
ンドの伝文フォーマットにおいて、項目「ヘッダ」はS
TXであり、「コマンド」は設定コマンドの識別コード
であり、「設定種別」は設定データの種別コードであ
り、「設定データ」は実際の設定データであり、「ター
ミネータ」はEOTである。
Here, when the message format setting command shown in FIG. 5A is received in ST6, the setting process specifically shown in FIG. 7 is executed. In the message format of the setting command, the item “header” is S
TX, “command” is an identification code of a setting command, “setting type” is a type code of setting data, “setting data” is actual setting data, and “terminator” is EOT.

【0022】すなわちCPU11は、上記設定コマンド
の伝文を受信すると、その伝文中の項目「設定種別」か
ら設定データの種別を判別する。ここで、設定データの
種別が「レシート長」であった場合には、EEPROM
13で記憶保持しているレシート長Nを伝文中の項目
「設定データ」の値に変更して、この設定処理を終了す
る。また、設定データの種別が「有余長」であった場合
には、EEPROM13で記憶保持している有余長Yを
伝文中の項目「設定データ」の値に変更して、この設定
処理を終了する。
That is, when receiving the message of the setting command, the CPU 11 determines the type of the setting data from the item “setting type” in the message. If the type of the setting data is “receipt length”, the EEPROM
At step 13, the receipt length N stored and changed is changed to the value of the item "setting data" in the message, and the setting process is terminated. If the type of the setting data is “extra length”, the extra length Y stored and held in the EEPROM 13 is changed to the value of the item “setting data” in the message, and the setting process ends. .

【0023】因みに、POS制御部15は、「設定」モ
ードにおいてレシート長Mの設定業務が選択されそのレ
シート長Mの設定データがキー入力された場合、及び有
余長Yの設定業務が選択されその有余長Mの設定データ
がキー入力された場合に、前記設定コマンドをレシート
プリンタに送信するものとなっている。
Incidentally, the POS control unit 15 selects the setting operation of the receipt length M in the "setting" mode and inputs the setting data of the receipt length M by a key. When the setting data of the surplus length M is input by a key, the setting command is transmitted to the receipt printer.

【0024】レシートプリンタのCPU11は、POS
制御部15からのコマンド待機状態において、ST7と
して図5(b)に示す伝文フォーマットの使用率要求コ
マンドを受信した場合には、図8に具体的に示す使用率
応答処理を実行する。なお、使用率要求コマンドの伝文
フォーマットにおいて、項目「ヘッダ」はSTXであ
り、「コマンド」は使用率要求コマンドの識別コードで
あり、「ターミネータ」はEOTである。
The CPU 11 of the receipt printer has a POS
In the command standby state from the control unit 15, when the usage rate request command of the message format shown in FIG. 5B is received as ST7, the usage rate response process specifically shown in FIG. 8 is executed. In the message format of the usage request command, the item “header” is STX, “command” is an identification code of the usage request command, and “terminator” is EOT.

【0025】すなわちCPU11は、上記使用率要求コ
マンドを受信すると、EEPROM13で記憶保持して
いるレシート長Nと使用長Mの各データをRAM14の
ワークメモリ44に読込む。そして、下記(1)式の演
算を行って、用紙全長データに対する現時点までの用紙
使用率Xを計算する(使用状況データ取得手段)。
That is, when receiving the usage rate request command, the CPU 11 reads the receipt length N and usage length M data stored in the EEPROM 13 into the work memory 44 of the RAM 14. Then, the calculation of the following equation (1) is performed to calculate the sheet usage rate X up to the present time with respect to the sheet total length data (use state data acquisition means).

【0026】X=(M/N)×100 …(1) こうして、用紙使用率Xを算出したならば、この用紙使
用率Xを含むデータ通知伝文を送信バッファ42上に作
成し、通信インタフェース16を介してPOS制御部1
5に送信して(使用状況出力手段)、この使用率応答処
理を終了する。
X = (M / N) × 100 (1) After calculating the paper usage rate X, a data notification message including the paper usage rate X is created on the transmission buffer 42 and the communication interface 16 through the POS control unit 1
5 (use status output means), and the usage rate response process ends.

【0027】因みに、POS制御部15は、「登録」,
「点検」,「精算」または「設定」モードにおいて、キ
ーボード5の使用率出力キーKが入力されると、前記使
用率要求コマンドをレシートプリンタに送信するものと
なっている。また、この使用率要求コマンドを送信後、
レシートプリンタから用紙使用率Xを含むデータ通知伝
文を受信すると、図11に示す如く、レシートプリンタ
から通知された用紙使用率Xをオペレータ用表示器7の
画面に表示させるようになっている。
Incidentally, the POS control unit 15 performs “registration”,
When the usage rate output key K of the keyboard 5 is input in the "check", "payment" or "setting" mode, the usage rate request command is transmitted to the receipt printer. After sending this usage request command,
When a data notification message including the paper usage rate X is received from the receipt printer, the paper usage rate X notified from the receipt printer is displayed on the screen of the operator display 7 as shown in FIG.

【0028】レシートプリンタのCPU11は、POS
制御部15からのコマンド待機状態において、ST8と
して図5(c)に示す伝文フォーマットの印字コマンド
を受信した場合には、図9に具体的に示す印字処理を実
行する。なお、印字コマンドの伝文フォーマットにおい
て、項目「ヘッダ」はSTXまたはヘッダ無しであり、
「コマンド」は印字コマンドの識別コードであり、「制
御データ」はフォントサイズF,印字行数Tなどの印字
制御データであり、「印字データ」は実際の印字データ
(アスキーコードなど)であり、「ターミネータ」はC
R,LF,CR+LFまたはEOTである。
The CPU 11 of the receipt printer has a POS
In the command standby state from the control unit 15, when a print command in the message format shown in FIG. 5C is received in ST8, the print processing specifically shown in FIG. 9 is executed. In the message format of the print command, the item “header” is STX or no header,
"Command" is an identification code of a print command, "Control data" is print control data such as font size F and the number of print lines T, and "Print data" is actual print data (such as ASCII code). "Terminator" is C
R, LF, CR + LF or EOT.

【0029】すなわちCPU11は、上記印字コマンド
を受信すると、EEPROM13で記憶保持しているレ
シート長N,有余長Y及び使用長Mの各データをRAM
14のワークメモリ44に読込む。また、受信した印字
コマンド中の制御データからフォントサイズFと印字行
数Tの各データを取出す。そして、ST81としてレシ
ート長Nから使用長Mを減じた値つまりレシートの残り
の長さが、フォントサイズFに印字行数Tを乗じた値つ
まり今回の印字データによるレシート用紙の使用量(長
さ)より大きいか否かを判断する。
That is, when the CPU 11 receives the print command, the CPU 11 stores the data of the receipt length N, the surplus length Y, and the used length M stored in the EEPROM 13 in the RAM 13.
14 is read into the work memory 44. Further, the data of the font size F and the number of print lines T are extracted from the control data in the received print command. Then, in ST81, the value obtained by subtracting the used length M from the receipt length N, that is, the remaining length of the receipt is the value obtained by multiplying the font size F by the number of printing lines T, that is, the usage amount (length ) To determine if it is greater than.

【0030】その結果、レシートの残りの長さ(N−
M)が今回使用量(F×T)より大きい場合には、今回
の印字データを現使用中のレシート用紙に全て印字する
ことができるので、印字コマンド中の印字データをRA
M14の印字バッファ43にドット展開する。そして、
サーマルヘッド17及びフィードモータ19の駆動を制
御して、印字バッファ43にドット展開された印字行数
Tの印字データのレシート用紙への印字を実行する。
As a result, the remaining length of the receipt (N-
M) is larger than the current use amount (F × T), the current print data can be completely printed on the currently used receipt paper.
The dots are developed in the print buffer 43 of M14. And
By controlling the driving of the thermal head 17 and the feed motor 19, the print data of the print line number T, which has been developed into dots in the print buffer 43, is printed on the receipt paper.

【0031】印字終了後、CPU11は今回印字データ
のフォントサイズFに印字行数Tを乗じて今回印字デー
タによるレシート用紙の使用量を算出する(使用量取得
手段)。そして、この値をRAM14に読込んだ使用長
Mに加算して現時点までのレシート用紙の累計使用量
M′(=M+F×T)を算出したならば、EEPROM
13で記憶保持している使用長Mを今回算出した累計使
用量M′に更新する(使用量累計手段)。
After printing, the CPU 11 multiplies the font size F of the current print data by the number of print lines T to calculate the usage amount of the receipt paper based on the current print data (use amount obtaining means). When this value is added to the usage length M read into the RAM 14 to calculate the total usage M '(= M + F × T) of the receipt paper up to the present time, the EEPROM is used.
In step 13, the used length M stored and updated is updated to the total usage amount M 'calculated this time (used amount total means).

【0032】次に、CPU11は今回算出した累計使用
量M′と、RAM14に読込んであるレシート長Nから
有余長Yを減じた値(N−Y)とを比較する。その結
果、累計使用量M′が演算値(N−Y)以上の場合に
は、レシート用紙の残りの長さが有余長Yより短い用紙
切れ間近と判断して、EEPRPM13で記憶保持して
いる用紙警告フラグfを“1”にセットする。これに対
し、累計使用量M′が演算値(N−Y)に満たない場合
には、用紙切れ間近で無いと判断して、用紙警告フラグ
fを“0”にリセットされたままとする(用紙切れ間近
判定手段)。
Next, the CPU 11 compares the total usage amount M 'calculated this time with a value (NY) obtained by subtracting the surplus length Y from the receipt length N read into the RAM 14. As a result, when the total usage amount M ′ is equal to or larger than the calculated value (N−Y), it is determined that the remaining length of the receipt paper is short of the remaining length Y, and the EEPRPM 13 stores the receipt paper. The paper warning flag f is set to "1". On the other hand, if the total usage M 'is less than the calculated value (N-Y), it is determined that the paper is almost out of paper, and the paper warning flag f is kept reset to "0" ( Means of nearing out of paper).

【0033】一方、ST81の判断処理において、レシ
ートの残りの長さ(N−M)が今回使用量(F×T)よ
り小さかった場合には、今回の印字データを全て現使用
中のレシート用紙に印字することはできないので、印字
エラー応答をPOS制御部15に送信する。また、EE
PRPM13で記憶保持している用紙警告フラグfを
“1”にセットする。以上で、CPU11は、印字処理
を終了する。
On the other hand, if the remaining length (NM) of the receipt is smaller than the current use amount (F × T) in the determination processing of ST81, all the print data of this time is transferred to the receipt paper currently in use. Therefore, a print error response is transmitted to the POS control unit 15. Also, EE
The paper warning flag f stored and held by the RPM 13 is set to “1”. Thus, the CPU 11 ends the printing process.

【0034】因みに、POS制御部15は、「登録」,
「点検」,「精算」または「設定」モードにおいて、デ
ータ処理により印字データが生成されると、前記印字コ
マンドをレシートプリンタに送信するものとなってい
る。
By the way, the POS control unit 15 sets “registration”,
In the "inspection", "payment" or "setting" mode, when print data is generated by data processing, the print command is transmitted to the receipt printer.

【0035】レシートプリンタのCPU11は、POS
制御部15からのコマンド待機状態において、ST9と
して図5(d)に示す伝文フォーマットのフィードコマ
ンドを受信した場合には、図10に具体的に示すフィー
ド処理を実行する。なお、フィードコマンドの伝文フォ
ーマットにおいて、項目「ヘッダ」はSTXであり、
「コマンド」はフィードコマンドの識別コードであり、
「フィード長」はレシート用紙の空フィード量Lであ
り、「ターミネータ」はEOTである。
The CPU 11 of the receipt printer has a POS
In the command waiting state from the control unit 15, when a feed command of the message format shown in FIG. 5D is received in ST9, the feed processing specifically shown in FIG. 10 is executed. In the message format of the feed command, the item “header” is STX,
"Command" is the identification code of the feed command,
The “feed length” is the empty feed amount L of the receipt paper, and the “terminator” is EOT.

【0036】すなわちCPU11は、上記フィードコマ
ンドを受信すると、EEPROM13で記憶保持してい
るレシート長N,有余長Y及び使用長Mの各データをR
AM14のワークメモリ44に読込む。また、受信コマ
ンド中の空フィード量Lを取得する。そして、ST91
としてレシート長Nから使用長Mを減じた値つまりレシ
ートの残りの長さが、空フィード量Lより大きいか否か
を判断する。
That is, when the CPU 11 receives the feed command, the CPU 11 converts the data of the receipt length N, surplus length Y and used length M stored in the EEPROM 13 into R.
The data is read into the work memory 44 of the AM 14. Further, an empty feed amount L in the received command is obtained. And ST91
It is determined whether the value obtained by subtracting the used length M from the receipt length N, that is, the remaining length of the receipt is larger than the empty feed amount L.

【0037】その結果、レシートの残りの長さ(N−
M)が空フィード量Lより大きい場合には、受信コマン
ドで指令された空フィードを実行できるので、フィード
モータ19の駆動を制御してレシート用紙の空フィード
量Lだけの空フィードを実行する。空フィード終了後、
CPU11は今回の空フィード量Lをレシート用紙の使
用量として取得する(使用量取得手段)。そして、この
空フィード量LをRAM14に読込んだ使用長Mに加算
して現時点までのレシート用紙の累計使用量M′(=M
+L)を算出したならば、EEPROM13で記憶保持
している使用長Mを今回算出した累計使用量M′に更新
する(使用量累計手段)。
As a result, the remaining length of the receipt (N-
If M) is larger than the empty feed amount L, the empty feed instructed by the reception command can be executed. Therefore, the drive of the feed motor 19 is controlled to execute the empty feed for the empty amount L of the receipt paper. After empty feed,
The CPU 11 obtains the current empty feed amount L as the usage amount of the receipt paper (use amount obtaining means). Then, the empty feed amount L is added to the use length M read into the RAM 14, and the total use amount M '(= M
After calculating (+ L), the use length M stored and held in the EEPROM 13 is updated to the total use amount M 'calculated this time (use amount accumulation means).

【0038】次に、CPU11は今回算出した累計使用
量M′と、RAM14に読込んであるレシート長Nから
有余長Yを減じた値(N−Y)とを比較する。その結
果、累計使用量M′が演算値(N−Y)以上の場合に
は、レシート用紙の残りの長さが有余長Yより短い用紙
切れ間近と判断して、EEPRPM13で記憶保持して
いる用紙警告フラグfを“1”にセットする。これに対
し、累計使用量M′が演算値(N−Y)に満たない場合
には、用紙切れ間近で無いと判断して、用紙警告フラグ
fを“0”にリセットされたままとする(用紙切れ間近
判定手段)。
Next, the CPU 11 compares the total amount M 'calculated this time with a value (NY) obtained by subtracting the surplus length Y from the receipt length N read into the RAM 14. As a result, when the total usage amount M ′ is equal to or larger than the calculated value (N−Y), it is determined that the remaining length of the receipt paper is short of the remaining length Y, and the EEPRPM 13 stores the receipt paper. The paper warning flag f is set to "1". On the other hand, if the total usage M 'is less than the calculated value (N-Y), it is determined that the paper is almost out of paper, and the paper warning flag f is kept reset to "0" ( Means of nearing out of paper).

【0039】一方、ST91の判断処理において、レシ
ートの残りの長さ(N−M)が今回の空フィード量Lよ
り小さかった場合には、今回指令された空フィードを実
行できないので、フィードエラー応答をPOS制御部1
5に送信する。また、EEPRPM13で記憶保持して
いる用紙警告フラグfを“1”にセットする。以上で、
CPU11は、フィード処理を終了する。
On the other hand, if the remaining length (NM) of the receipt is smaller than the current empty feed amount L in the determination processing of ST91, the empty feed commanded this time cannot be executed, so that a feed error response is issued. POS control unit 1
Send to 5. Further, the paper warning flag f stored and held by the EEPRPM 13 is set to “1”. Above,
The CPU 11 ends the feed processing.

【0040】因みに、POS制御部15は、「登録」,
「点検」,「精算」または「設定」モードにおいて、レ
シートフィードキーの入力またはデータ処理によりレシ
ート用紙を空フィードする必要が生じると、前記フィー
ドコマンドをレシートプリンタに送信するものとなって
いる。
Incidentally, the POS control unit 15 sets “registration”,
In the "inspection", "payment" or "setting" mode, when it becomes necessary to empty the receipt paper by inputting a receipt feed key or data processing, the feed command is transmitted to the receipt printer.

【0041】レシートプリンタのCPU11は、前記設
定処理及び使用率応答処理を終了したならば、ST5に
戻り、POS制御部15からの次のコマンド受信を待機
する。一方、前記印字処理またはフィード処理を終了し
た時には、ST10としてEEPROM13で記憶保持
している用紙警告フラグfを調べる。その結果、用紙警
告フラグfが“0”にリセットされている場合には、レ
シート用紙は用紙切れ間近でないので、ST5に戻り、
POS制御部15からの次のコマンド受信を待機する。
When the CPU 11 of the receipt printer has completed the setting process and the usage rate response process, the process returns to ST5 and waits for reception of the next command from the POS control unit 15. On the other hand, when the printing process or the feeding process is completed, the paper warning flag f stored in the EEPROM 13 is checked in step ST10. As a result, when the paper warning flag f is reset to “0”, the receipt paper is not nearly out of paper, so the process returns to ST5,
It waits for reception of the next command from the POS control unit 15.

【0042】これに対し、用紙警告フラグfが“1”に
セットされていた場合には、レシート用紙が用紙切れ間
近なので、ST11として用紙切れ間近であることを警
告する用紙切れ警告通知伝文をPOS制御部15に送信
する(用紙切れ間近警告手段)。その後、ST12とし
てI/Oポート22に入力される用紙センサからの信号
により用紙装填部からレシート用紙が取り除かれるのを
待機する。そして、レシート用紙が取り除かれたことを
検知したならば、ST2に戻り、用紙装填部に新たなレ
シート用紙が装填されるのを待機し、装填されたなら
ば、レシート用紙が交換されたと判断して、EEPRO
M13で記憶保持している使用長Mを“0”にクリアす
る。また、用紙警告フラグfを“0”にリセットする。
しかる後、POS制御部15からのコマンド受信を待機
する。
On the other hand, if the paper warning flag f is set to "1", the receipt paper is almost out of paper, and a paper out warning message for warning that paper is about to run out is issued in ST11. The message is transmitted to the POS control unit 15 (means of near-paper shortage warning). Thereafter, in step ST12, the process waits for the receipt sheet to be removed from the sheet loading unit by a signal from the sheet sensor input to the I / O port 22. If it is detected that the receipt paper has been removed, the process returns to ST2, waits for a new receipt paper to be loaded in the paper loading section, and if loaded, determines that the receipt paper has been replaced. EEPRO
The use length M stored and held in M13 is cleared to "0". Further, the paper warning flag f is reset to “0”.
After that, it waits for a command from the POS control unit 15 to be received.

【0043】因みに、POS制御部15は、レシートプ
リンタから上記用紙切れ警告通知伝文を受信すると、図
12に示す如く、オペレータ用表示器7の画面にレシー
ト用紙が用紙切れ間近であることをオペレータに警告す
るメッセージを表示させるようになっている。
When the POS control unit 15 receives the out-of-paper warning notification message from the receipt printer, the POS control unit 15 informs the operator display 7 that the receipt paper is almost out of paper as shown in FIG. Warning message is displayed.

【0044】このような構成の本実施の形態において
は、レシート用紙の全長であるレシート長Nと、レシー
ト用紙の用紙切れ間近警告を発する時のしきい値となる
残量である有余長Yとを、POSターミナル1から設定
可能である。そして、設定されたレシート長Nと有余長
Yとは、レシートプリンタのEEPROM13で記憶保
持される。
In the present embodiment having such a configuration, the receipt length N, which is the total length of the receipt paper, and the remaining length Y, which is the remaining amount that becomes a threshold when a near-out-of-paper warning of the receipt paper is issued, is provided. Can be set from the POS terminal 1. The set receipt length N and surplus length Y are stored and held in the EEPROM 13 of the receipt printer.

【0045】そこで、POSターミナル1のオペレータ
は、レシート用紙を交換する際、新しく装填するレシー
ト用紙の全長がEEPROM13に記憶保持されている
レシート長Nと一致するか確認する。そして、一致する
場合には、レシート用紙の装填のみ行なう。一致しない
場合には、レシート用紙の装填後、「設定」モードにお
いてレシート長Nの再設定を行なう。また、必要に応じ
て有余長Yも再設定する。なお、レシート用紙を装填す
る際には、その先端を用紙装填部から印字部まで引き出
すが、その引出し分も見越して有余長Yを設定しておく
ことは言うまでもないことである。
Therefore, when replacing the receipt paper, the operator of the POS terminal 1 checks whether the total length of the newly loaded receipt paper matches the receipt length N stored in the EEPROM 13. If they match, only the receipt paper is loaded. If they do not match, after the receipt paper is loaded, the receipt length N is reset in the “setting” mode. Further, the surplus length Y is reset if necessary. When the receipt paper is loaded, the leading end thereof is pulled out from the paper loading section to the printing section. Needless to say, the extra length Y is set in anticipation of the pulled-out amount.

【0046】レシート用紙の交換が実施されると、EE
PROM13で記憶保持していた使用長Mが“0”にク
リアされる。また、用紙警告フラグfも“0”にリセッ
トされる。その後、オペレータはPOSターミナル1を
操作して各種業務の処理を実行する。そして、この業務
処理の実行によりレシート用紙に印字するデータが発生
すると、POS制御部15からレシートプリンタに印字
コマンドが送信される。これにより、レシート用紙への
印字が実行される。このとき、レシートプリンタにおい
ては、印字コマンドを解析して印字文字のフォントサイ
ズFと印字行数Tとから今回印字データの印字量(F×
T)を取得し、この印字量(F×T)をEEPROM1
3で記憶保持している使用長Mに加算する。。
When the receipt paper is exchanged, the EE
The use length M stored and held in the PROM 13 is cleared to "0". Also, the sheet warning flag f is reset to “0”. Thereafter, the operator operates the POS terminal 1 to execute various business processes. Then, when data to be printed on the receipt paper is generated by the execution of this business process, a print command is transmitted from the POS control unit 15 to the receipt printer. Thus, printing on the receipt paper is executed. At this time, in the receipt printer, the print command is analyzed and the print amount (F × F) of the current print data is determined based on the font size F of print characters and the number T of print lines.
T) is obtained, and the printing amount (F × T) is stored in the EEPROM 1
In step 3, it is added to the use length M stored and held. .

【0047】また、POSターミナル1においてレシー
ト用紙の空フィード要求が発生すると、POS制御部1
5からレシートプリンタにフィードコマンドが送信され
る。これにより、レシート用紙の空フィードが実行され
る。このとき、レシートプリンタにおいては、フィード
コマンドを解析して今回のフィード量Lを取得し、この
フィード量Lを上記使用長Mに加算する。
When the POS terminal 1 issues a request for empty feed of receipt paper, the POS controller 1
5, a feed command is transmitted to the receipt printer. As a result, an empty feed of the receipt paper is executed. At this time, the receipt printer analyzes the feed command to obtain the current feed amount L, and adds the feed amount L to the use length M.

【0048】このように、POSターミナル1での通常
の業務処理によってレシート用紙へのデータ印字または
レシート用紙の空フィードが行なわれる毎に、レシート
プリンタでは、そのときのレシート用紙の使用量を取得
し、その用紙使用量をEEPROM1で記憶保持してい
る使用長Mに加算することによって、現時点までのレシ
ート用紙の累計使用量を記憶管理している。そして、こ
の用紙使用量の累計値である使用長Mがレシート長Nか
ら有余長Yを減じた値に達すると、用紙切れ間近である
と判定して、オペレータ用表示器7の画面に用紙切れ間
近であることを警告するメッセージを表示させるように
なっている。したがって、ハードウェアのセンサを用い
ることなく、レシート用紙が用紙切れ間近であることを
確実にオペレータに知らせることができる。
As described above, every time data is printed on the receipt paper or a blank feed of the receipt paper is performed by the ordinary business processing in the POS terminal 1, the receipt printer obtains the usage amount of the receipt paper at that time. By adding the paper usage to the usage length M stored and held in the EEPROM 1, the total usage of the receipt paper up to the present time is stored and managed. When the usage length M, which is the total value of the paper usage, reaches a value obtained by subtracting the surplus length Y from the receipt length N, it is determined that the paper is almost out, and the screen of the operator display 7 is displayed. A message is displayed to warn you that you are close. Therefore, it is possible to reliably notify the operator that the receipt paper is almost out of paper without using a hardware sensor.

【0049】また、オペレータがキーボード5の使用率
出力キーKを押下すると、POS制御部15からレシー
トプリンタに使用率要求コマンドが送信される。これに
より、レシートプリンタにおいては、EEPROM13
で記憶保持している使用長Mとレシート長Nとからレシ
ート用紙全長に対する現時点までの用紙使用率が算出さ
れる。そして、この用紙使用率がオペレータ用表示器7
に表示される。したがって、オペレータは、使用率出力
キーKを押下するだけの簡単な操作で、いつでも現時点
までのレシート用紙の使用量や残量を確認することがで
きる。
When the operator presses the usage rate output key K on the keyboard 5, the POS control section 15 sends a usage rate request command to the receipt printer. Thereby, in the receipt printer, the EEPROM 13
From the use length M and the receipt length N stored and held, the paper usage rate up to the present time with respect to the total length of the receipt paper is calculated. The paper usage rate is displayed on the operator display 7.
Will be displayed. Therefore, the operator can always check the usage amount and the remaining amount of the receipt paper up to the present time by a simple operation of simply pressing the usage rate output key K.

【0050】なお、この実施の形態において、印字処理
またはフィード処理を終了した後、自動的に使用率応答
処理を実行するようにプログラムを構成することによっ
て、現時点までの用紙使用率を、常時、POSターミナ
ル1のオペレータ用表示器7に表示させるようにしても
よい。また、用紙使用率でなく、使用長Mの値をそのま
まPOSターミナル1のオペレータ用表示器7に表示さ
せることによって(累計使用量出力手段)、オペレータ
が現時点までのレシート用紙の使用量や残量を確認でき
るようにしてもよい。
In this embodiment, the program is configured to automatically execute the usage rate response processing after the printing processing or the feeding processing is completed, so that the paper usage rate up to the present time can be constantly adjusted. The information may be displayed on the operator display 7 of the POS terminal 1. Further, by displaying the value of the used length M on the operator display 7 of the POS terminal 1 as it is, instead of the paper usage rate (cumulative usage output means), the operator can use the remaining usage paper and the remaining amount of paper up to the present time. May be confirmed.

【0051】この他、本発明をウェブ紙を使用した連続
紙プリンタに適用するなど、本発明の要旨を逸脱しない
範囲で種々変形実施可能であるのは勿論である。
In addition, it is needless to say that various modifications can be made without departing from the gist of the present invention, such as applying the present invention to a continuous paper printer using web paper.

【0052】[0052]

【発明の効果】以上詳述したように、本願請求項1記載
の発明によれば、現時点までの用紙使用状況を簡単に確
認できる連続紙プリンタを提供できる。また、本願請求
項2記載の発明によれば、現時点までの詳細な用紙使用
状況を簡単に確認できる連続紙プリンタを提供できる。
さらに、本願請求項3記載の発明によれば、ハードウェ
アのセンサを用いずに用紙切れ間近を検知することがで
き、信頼性を向上できる連続紙プリンタを提供できる。
As described above, according to the first aspect of the present invention, it is possible to provide a continuous paper printer capable of easily confirming the paper use status up to the present time. Further, according to the invention described in claim 2 of the present application, it is possible to provide a continuous paper printer capable of easily confirming the detailed paper use status up to the present time.
Further, according to the third aspect of the present invention, it is possible to provide a continuous paper printer capable of detecting the near paper out condition without using a hardware sensor and improving reliability.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の一実施の形態であるPOSターミナ
ルの外観を示す斜視図。
FIG. 1 is a perspective view showing the appearance of a POS terminal according to an embodiment of the present invention.

【図2】 同POSターミナルに組込まれるレシートプ
リンタの要部構成を示すブロック図。
FIG. 2 is a block diagram showing a main configuration of a receipt printer incorporated in the POS terminal.

【図3】 同レシートプリンタが有するEEPROMで
記憶保持するデータの構成図。
FIG. 3 is a configuration diagram of data stored and held in an EEPROM of the receipt printer.

【図4】 同レシートプリンタが有するRAMに形成す
る主要なメモリエリアを示す図。
FIG. 4 is a view showing a main memory area formed in a RAM of the receipt printer.

【図5】 同レシートプリンタに対してPOS制御部か
ら送信される各種コマンドのレコードフォーマットを示
す図。
FIG. 5 is a view showing a record format of various commands transmitted from the POS control unit to the receipt printer.

【図6】 同レシートプリンタのCPUが実行するメイ
ン処理の要部を示す流れ図。
FIG. 6 is a flowchart showing a main part of a main process executed by a CPU of the receipt printer.

【図7】 図6の設定処理を具体的に示す流れ図。FIG. 7 is a flowchart specifically showing a setting process of FIG. 6;

【図8】 図6の使用率応答処理を具体的に示す流れ
図。
FIG. 8 is a flowchart specifically showing a usage rate response process in FIG. 6;

【図9】 図6の印字処理を具体的に示す流れ図。FIG. 9 is a flowchart specifically showing the printing process of FIG. 6;

【図10】図6のフィード処理を具体的に示す流れ図。FIG. 10 is a flowchart specifically showing the feed processing of FIG. 6;

【図11】同レシートプリンタから使用率の通知がなさ
れたときのPOSターミナルのオペレータ用表示器に表
示される画面の一例を示す図。
FIG. 11 is a diagram showing an example of a screen displayed on the operator display of the POS terminal when the usage rate is notified from the receipt printer.

【図12】同レシートプリンタから用紙切れ警告通知が
なされたときのPOSターミナルのオペレータ用表示器
に表示される画面の一例を示す図。
FIG. 12 is a view showing an example of a screen displayed on the operator display of the POS terminal when a paper-out warning is notified from the receipt printer.

【符号の説明】[Explanation of symbols]

1…POSターミナル 11…CPU 12…ROM 13…EEPROM 14…RAM 15…POS制御部 16…通信インタフェース 17…サーマルヘッド 19…フィードモータ DESCRIPTION OF SYMBOLS 1 ... POS terminal 11 ... CPU 12 ... ROM 13 ... EEPROM 14 ... RAM 15 ... POS control part 16 ... Communication interface 17 ... Thermal head 19 ... Feed motor

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ホストからの命令に従い、連続した形態
の用紙をその幅方向とは垂直な方向にフィードして印字
部まで送り出し、前記印字部で前記用紙に対してその幅
方向に印字を行なう連続紙プリンタにおいて、 前記ホストからの命令を受ける毎にその命令内容を解析
して前記用紙の使用量を取得する使用量取得手段と、 この使用量取得手段により取得した用紙使用量を累計す
る使用量累計手段と、 このフィード累計手段による累計使用量を出力する累計
使用量出力手段と、を具備したことを特徴とする連続紙
プリンタ。
In accordance with a command from a host, a continuous form of paper is fed in a direction perpendicular to the width direction and sent to a printing section, and the printing section prints on the paper in the width direction. In the continuous paper printer, each time a command from the host is received, the content of the command is analyzed to obtain the usage of the paper, and the usage for accumulating the paper usage obtained by the usage obtaining means. A continuous paper printer comprising: an amount accumulating means; and an accumulated amount output means for outputting an accumulated amount used by the feed accumulating means.
【請求項2】 ホストからの命令に従い、連続した形態
の用紙をその幅方向とは垂直な方向にフィードして印字
部まで送り出し、前記印字部で前記用紙に対してその幅
方向に印字を行なう連続紙プリンタにおいて、 前記ホストからの命令を受ける毎にその命令内容を解析
して前記用紙の使用量を取得する使用量取得手段と、 この使用量取得手段により取得した用紙使用量を累計す
る使用量累計手段と、 前記用紙の全長データを設定記憶する全長記憶手段と、 この全長記憶手段により記憶される用紙全長データと前
記使用量累計手段による累計使用量とに基づいて現時点
までの用紙使用状況を示すデータを取得する使用状況デ
ータ取得手段と、 この使用状況データ取得手段により取得した用紙使用状
況を示すデータを出力する使用状況出力手段と、を具備
したことを特徴とする連続紙プリンタ。
2. In accordance with a command from a host, a continuous form of paper is fed in a direction perpendicular to its width direction and sent to a printing section, and the printing section prints on the paper in its width direction. In the continuous paper printer, each time a command from the host is received, the content of the command is analyzed to obtain the usage of the paper, and the usage for accumulating the paper usage obtained by the usage obtaining means. A total length storage means for setting and storing the total length data of the paper; a paper usage status up to the present time based on the total paper length data stored by the full length storage means and the total usage amount by the usage totaling means; Data obtaining means for obtaining data indicating the paper usage status, and a usage status output means for outputting data indicating the paper usage status obtained by the usage data obtaining means. Continuous paper printer being characterized in that comprising the, the.
【請求項3】 ホストからの命令に従い、連続した形態
の用紙をその幅方向とは垂直な方向にフィードして印字
部まで送り出し、前記印字部で前記用紙に対してその幅
方向に印字を行なう連続紙プリンタにおいて、 前記ホストからの命令を受ける毎にその命令内容を解析
して前記用紙の使用量を取得する使用量取得手段と、 この使用量取得手段により取得した用紙使用量を累計す
る使用量累計手段と、 前記用紙の全長データを設定記憶する全長記憶手段と、 この全長記憶手段により記憶される用紙全長データと前
記使用量累計手段による累計使用量とに基づいて前記用
紙が用紙切れ間近か否かを判定する用紙切れ間近判定手
段と、 この用紙切れ間近判定手段により前記用紙が用紙切れ間
近であると判定するとその旨を警告する用紙切れ間近警
告手段と、を具備したことを特徴とする連続紙プリン
タ。
3. In accordance with a command from a host, a continuous form of paper is fed in a direction perpendicular to the width direction and sent to a printing section, and the printing section prints on the paper in the width direction. In the continuous paper printer, each time a command from the host is received, the content of the command is analyzed to obtain the usage of the paper, and the usage for accumulating the paper usage obtained by the usage obtaining means. A total length storage means for setting and storing the total length data of the paper; and a paper shortly before the paper runs out based on the total paper length data stored by the full length storage means and the total usage by the usage totaling means. Means for determining whether or not the sheet is about to run out, and when the sheet is about to run out of paper, the near-paper shortage is warned to that effect. Continuous paper printer being characterized in that comprising a tell means.
JP11196270A 1999-07-09 1999-07-09 Continuous form printer Pending JP2001018469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11196270A JP2001018469A (en) 1999-07-09 1999-07-09 Continuous form printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11196270A JP2001018469A (en) 1999-07-09 1999-07-09 Continuous form printer

Publications (1)

Publication Number Publication Date
JP2001018469A true JP2001018469A (en) 2001-01-23

Family

ID=16355021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11196270A Pending JP2001018469A (en) 1999-07-09 1999-07-09 Continuous form printer

Country Status (1)

Country Link
JP (1) JP2001018469A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010131925A (en) * 2008-12-08 2010-06-17 Seiko Epson Corp Near-end detection method of long consumables and printing apparatus
JP2013111962A (en) * 2011-12-01 2013-06-10 Brother Industries Ltd Tape printing device
JP2013132898A (en) * 2011-12-27 2013-07-08 Brother Industries Ltd Print control device and computer program
JP2017128451A (en) * 2017-03-22 2017-07-27 東芝テック株式会社 Printer and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010131925A (en) * 2008-12-08 2010-06-17 Seiko Epson Corp Near-end detection method of long consumables and printing apparatus
JP2013111962A (en) * 2011-12-01 2013-06-10 Brother Industries Ltd Tape printing device
JP2013132898A (en) * 2011-12-27 2013-07-08 Brother Industries Ltd Print control device and computer program
JP2017128451A (en) * 2017-03-22 2017-07-27 東芝テック株式会社 Printer and program

Similar Documents

Publication Publication Date Title
US7884967B2 (en) Printer control apparatus and method
JP5380949B2 (en) Receipt issuing apparatus, receipt issuing system, printing apparatus, and printing apparatus control method
JP4802734B2 (en) Printer, host computer, printing system, and printing system control method
JP6008109B2 (en) Printing system and printing apparatus
CN102129359B (en) Printer system control method, printer system, and printer
US8873096B2 (en) Media processing device and POS system
US9224275B2 (en) Media processing method using multiple processing units for performing multiple processes
JP2002092439A (en) Network system and method for controlling consumables, computer program/product, and medium for recording information
JP2001018469A (en) Continuous form printer
US9591078B2 (en) Media processing device and POS system
JP4453508B2 (en) Print management method for roll print medium and print management system for roll print medium
US8769170B2 (en) Electronic device, control method for an electronic device, and recording medium
JP6056196B2 (en) Medium processing apparatus and POS system
JP7447534B2 (en) Information processing device, information processing program, information processing terminal, and information processing method
US20040019495A1 (en) System for setting up a point-of-sale system, a method for setting up a point-of-sale system, and a data recording medium storing the same
JP4848352B2 (en) Product sales data processing device
JP5828398B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2010012668A (en) Printing apparatus, control method of printing apparatus and print control program
US20220300776A1 (en) Printer and information processing system
EP3267306A1 (en) Print system, printer driver, and program
US20210373818A1 (en) Device management system, server, management apparatus, and storage medium
JPH11283056A (en) Device for issuing ticket
JP2004358791A (en) Inkjet printer, printing system, control method of inkjet printer, and program
JP2003196068A (en) Consumables control system and consumables control method and printing control device
JP2922730B2 (en) Product sales registration device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050816

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051213