JPH0438592A - Electronic register - Google Patents

Electronic register

Info

Publication number
JPH0438592A
JPH0438592A JP14543890A JP14543890A JPH0438592A JP H0438592 A JPH0438592 A JP H0438592A JP 14543890 A JP14543890 A JP 14543890A JP 14543890 A JP14543890 A JP 14543890A JP H0438592 A JPH0438592 A JP H0438592A
Authority
JP
Japan
Prior art keywords
printing
data
cpu
serial number
print data
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
JP14543890A
Other languages
Japanese (ja)
Inventor
Tatsuya Nakamura
達哉 中村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP14543890A priority Critical patent/JPH0438592A/en
Publication of JPH0438592A publication Critical patent/JPH0438592A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

PURPOSE:To easily and precisely retransmit printing unfinished data by possessing a master CPU to control an electronic register and a slave CPU to executes printing under the control of it and providing a means to add a serial number to printing data and to transmit them to the slave CPU in the master CPU. CONSTITUTION:As far as the vacancy of a printing data buffer exists within a memory 5 even in the middle of printing, printing data from a master CPU 1 are stored with a serial number. When the abnormal situation of power supply interruption and so on, since it is difficult for the master CPU 1 to judge how much the printing is finished, a slave CPU 4 notifies the serial number attached to the printing data to the master CPU 1 through an interface circuit 6 every time when the printing of the one piece of the printing data is finished. As a result, the master CPU 1 can grasp the range of printing finishing actually. Thus, printing omission can be prevented by judging the printing data in the middle of the printing from the above mentioned grasped printing finished data and retransmitting by the master CPU 1 after the power supply interruption is restored or the like.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、posシステムやクレジット処理端末機等で
使用する。レシート・プリンタ、レシート・ジャーナル
・プリンタ、スリーステーション・プリンタ等において
レシートを発光する電子レジスタに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention is used in POS systems, credit processing terminals, and the like. The present invention relates to an electronic register that illuminates receipts in receipt printers, receipt journal printers, three-station printers, and the like.

(従来の技術) 従来の電子レジスタは、主CPUと、レシート・プリン
タ等の印字機能を制御する隷属CPUを備え、レシート
・プリンタに印字する場合、主CPUは隷属CPUに印
字データを送出し、それを受領したとする応答を得るこ
とで、隷属CPUの印字終了と判断していた。しかしな
がら、たとえば停電等があると、印字データの授受は完
了していても実際の印字は途中までで未完了な場合があ
る。
(Prior Art) A conventional electronic cash register includes a main CPU and a slave CPU that controls the printing function of a receipt printer, etc. When printing on a receipt printer, the main CPU sends print data to the slave CPU, By receiving a response indicating that it has been received, it was determined that the slave CPU had finished printing. However, if there is a power outage or the like, for example, even if the transfer of print data has been completed, the actual printing may be incomplete.

そのため従来の電子レジスタでは未完了の印字を人手に
より、印字データの売上データと印字終了のデータを突
き合わせたり、主CPU側に複数のレシート分の印字デ
ータを記憶させておき、停電の回復後、最後のレシート
の一枚分を再度、印字データとしてプリンタに送出した
り、隷属CPUのメモリの電源のバックアップを行ない
、印字未完了の行があれば、停電回復後に再度印字する
という方法をとっている。
For this reason, with conventional electronic registers, unfinished printing is manually checked, sales data in the print data is compared with print completion data, and print data for multiple receipts is stored in the main CPU side, and after a power outage is restored, The last receipt is sent to the printer again as print data, the slave CPU's memory power is backed up, and if there are any unprinted lines, they are printed again after the power is restored. There is.

(発明が解決しようとする課M) しかしながら、上述のような印字中断処理のうち1人手
による方法は、その作業が面倒であり、また、印字デー
タ複数枚分のレシートを主CPU側において記憶し、停
電の回復後最後のレシートの一枚分の印字データを再度
プリンタに送出する方法では、実際の印字がどこまで終
了したのか正確に把握することが困難で、どうしてもだ
ぶり印字を避けることができなかった。また、隷属CP
Uのメモリ電源のバックアップを行なって、停電回復印
字未完了の行があれば再度印字する方法では、隷属CP
Uのメモリの電源バックアップに高価なメモリを必要と
する経済的な問題があった。
(Problem M to be solved by the invention) However, among the above-mentioned printing interruption processes, the one-man method requires troublesome work, and the printing data for multiple receipts must be stored on the main CPU side. However, with the method of sending the print data for the last receipt to the printer again after a power outage is restored, it is difficult to accurately determine how far the actual printing has been completed, and it is impossible to avoid overprinting. Ta. Also, slave CP
In the method of backing up the memory power of U and printing again if there are lines that have not been printed after power failure, the slave CP
There was an economical problem in that an expensive memory was required for power backup of the U's memory.

本発明は上述のような印字上の問題点を排除した、電子
レジスタの提供を目的とする。
The present invention aims to provide an electronic register that eliminates the above-mentioned printing problems.

(課題を解決するための手段) 本発明は上記の目的を、電子レジスタを制御する主CP
Uと、それに隷属して印字を行なう隷属CPUとを有し
、主にCPUには、印字データに通し番号を付加して隷
属CPUに送出する手段を、また隷属CPUには、前記
印字データを受取ったとする情報及び、その印字を終了
したとき印字を終了したとする情報を、それら各情報に
それぞれ、上記印字データの通し番号を付加して、主C
PUに送出可能にした手段を設けた構成によって達成す
る。
(Means for Solving the Problems) The present invention achieves the above object by using a main CPU that controls an electronic register.
The CPU has a means for adding a serial number to print data and sending it to the slave CPU, and the slave CPU has a means for receiving the print data. The serial number of the above-mentioned print data is added to each information, and the information that the printing is finished when the printing is finished, and the main C
This is achieved by a configuration in which the PU is provided with a means that enables transmission.

(作 用) 本発明の電子レジスタによれば、主CPUは通し番号を
付した印字データを隷属CPUに送出し、隷属CPUは
、その印字データを受取ったという情報を主CPUに送
出してから印字を実行し、その印字終了後、印字データ
の上記通し番号を付して印字が終了したことを主CPU
に送出するから停電等の不慮の事態で印字が中断された
としても、主CPUは印字データに付した通し番号によ
って、どこまで印字が終了したかの判断が可能であるか
ら、印字未完了データを容易、正確に再送することがで
きる。
(Function) According to the electronic register of the present invention, the main CPU sends print data with serial numbers attached to it to the slave CPU, and the slave CPU sends information that it has received the print data to the main CPU, and then prints the data. After the printing is finished, the main CPU adds the above serial number to the print data to indicate that printing has finished.
Even if printing is interrupted due to an unexpected situation such as a power outage, the main CPU can determine how much printing has been completed based on the serial number attached to the print data, making it easy to remove unprinted data. , can be retransmitted accurately.

(実施例) 以下、本発明を実施例により図面を用いて説明する。(Example) Hereinafter, the present invention will be explained with reference to Examples and drawings.

第1図は本発明の一実施例の電子レジスタの構成を示す
ブロック図である。■は主CPU、2は主CP Tl 
lのプログラム及び、印字データを格納した第1のメモ
リであり、このメモリは電源のバッテリーバックアップ
がなされている。3はレシート・プリンタ、レシート・
ジャーナル・プリンタ、スリーステーション・プリンタ
等のプリンタ、4は前記プリンタ3を制御する主CPU
Iに隷属する隷属CPU、5は隷属CPU4のプログラ
ム及び、印字データを格納した第2のメモリ、6は主C
PUIと隷属CPU4との間のデータ授受のためのイン
タフェース回路、7は周辺機器を示している。
FIG. 1 is a block diagram showing the configuration of an electronic register according to an embodiment of the present invention. ■ is the main CPU, 2 is the main CP Tl
1 program and print data, and this memory is backed up by a battery as a power source. 3 is receipt printer, receipt
A printer such as a journal printer or a three-station printer; 4 is a main CPU that controls the printer 3;
A slave CPU slaved to I, 5 a second memory storing the slave CPU 4 program and print data, 6 a master CPU
An interface circuit 7 indicates a peripheral device for exchanging data between the PUI and the slave CPU 4.

上述のような電子レジスタの構成において、プリンタ3
に印字させる場合、主CPU 1は印字データに通し番
号を付してインタフェース回路6を介して隷属CPU4
に送出し、隷属CPU4は上記の送られてきた印字デー
タをメモリ5に格納後、主CPUIに印字データを受取
ったという情報を、インタフェース回路6を介して伝達
後プリンタ3により印字を開始する。
In the configuration of the electronic register as described above, the printer 3
, the main CPU 1 assigns a serial number to the print data and sends it to the slave CPU 4 via the interface circuit 6.
After storing the sent print data in the memory 5, the slave CPU 4 transmits information that the print data has been received to the main CPU via the interface circuit 6, and then the printer 3 starts printing.

印字の途中であってもメモリ5内に印字データバッファ
の空きがある限り、主CPUIからの印字データは通し
番号とともに記憶する。したがって、受取った印字デー
タと印字済みデータとは印字データバッファの数だけの
差を生じ、停電などの異常事態が発生すると、主CPU
Iはどこまで印字が終了しているか判断が困難であるか
ら、隷属CPU4は一つの印字データの印字終了ごとに
、その印字データに付されていた通し番号をインタフェ
ース回路6を介して主CPUIに知らせる。
Even during printing, as long as there is space in the print data buffer in the memory 5, the print data from the main CPUI is stored together with the serial number. Therefore, there is a difference between the received print data and the printed data by the number of print data buffers, and if an abnormal situation such as a power outage occurs, the main CPU
Since it is difficult to judge how far printing has been completed in I, the slave CPU 4 notifies the main CPU through the interface circuit 6 of the serial number attached to the print data every time printing of one print data is completed.

その結果主CPUIは実際に印字終了の範囲が把握でき
ることになる。そのため停電回復後など、主CPUIは
上記把握している印字完了データから、印字途中の印字
データを判断して再送することにより印字もれを完全に
防止することができる。
As a result, the main CPU can actually grasp the printing end range. Therefore, after a power outage is restored, the main CPU determines the print data that is currently being printed based on the print completion data that is grasped above and resends the print data, thereby completely preventing printing omissions.

以下、本発明をさらに具体的に説明する。The present invention will be explained in more detail below.

第2図は第1図のインタフェース回路6を説明するブロ
ック図である。8は主CPUシステムで第1図の主CP
UI、メモリ2、周辺機器7からなる。9はデュアルポ
ートRAM、10は第1図の尊属CPU4に相当するプ
リンタコントローラ(以下、Pコントローラと略す)、
 11はPコントローラlOとシリアル通信を行なう通
信コントローラ。
FIG. 2 is a block diagram illustrating the interface circuit 6 of FIG. 1. 8 is the main CPU system, which is the main CPU in Figure 1.
It consists of a UI, memory 2, and peripheral devices 7. 9 is a dual port RAM; 10 is a printer controller (hereinafter abbreviated as P controller) corresponding to the subordinate CPU 4 in FIG. 1;
11 is a communication controller that performs serial communication with the P controller IO.

12は第1図のメモリ5に相当するPコントローラ用メ
モリ、13はプリンタである。
12 is a P controller memory corresponding to the memory 5 in FIG. 1, and 13 is a printer.

デュアルポートRAM9と通信コントローラ11とが第
1図のCPU間のインタフェース回路6に相当し、デュ
アルポートRAM9には第3図のように、印字データの
文字列りと、それに付加して送出通し番号Sと、及び印
字終了通し番号Eが割当てられる。
The dual port RAM 9 and the communication controller 11 correspond to the interface circuit 6 between the CPUs shown in FIG. 1, and as shown in FIG. , and a printing end serial number E are assigned.

第4図は主CPUシステム8から印字データをPコント
ローラ10に送出したときの動作フローチャートで、ま
ず、デュアルポートRAM9に印字データの文字列りを
格納しくステップ1、以下S1のように記す)、次に印
字データの送出通し番号Sを1つ繰上げ(S2)、通信
コントローラ11に割込み(S3)、通信コントローラ
11からの印字データ受取完了の割込み待ちとなる(S
4)。通信コントローラ11は割込み処理によって印字
データの文字列L、及び送出通し番号Sを受取り(S5
)。
FIG. 4 is an operation flowchart when print data is sent from the main CPU system 8 to the P controller 10. First, the character string of the print data is stored in the dual port RAM 9 (Step 1 (hereinafter referred to as S1)). Next, the print data transmission serial number S is incremented by one (S2), an interrupt is made to the communication controller 11 (S3), and an interrupt waits for completion of print data reception from the communication controller 11 (S2).
4). The communication controller 11 receives the character string L of print data and the sending serial number S by interrupt processing (S5
).

第2図信号線15を介して主CPUシステム8に割込む
(S6)。次にPコントローラ10に印字データの文字
列り及び送出通し番号Sを第2図の信号線16を介して
送出する(S7)、主CPUシステム8は第2図の信号
線14を介して通信コントローラ11からの割込みを受
けて印字データの割込みは終了する(S8)。
The main CPU system 8 is interrupted via the signal line 15 in FIG. 2 (S6). Next, the character string of the print data and the sending serial number S are sent to the P controller 10 via the signal line 16 in FIG. 2 (S7), and the main CPU system 8 is sent to the communication controller via the signal line 14 in FIG. In response to the interrupt from 11, the print data interrupt ends (S8).

以上の印字処理はPコントローラ10の印字データバッ
ファが終るまで続けられる。Pコントローラ10では印
字バッファのデータを第2図の信号線17から送られる
割込み信号に従ってプリンタ13に印字させる。送出さ
れてきた印字データ単位で印字が終了すると、第2図の
信号線16により印字終了情報を、その印字データに付
されていた通し番号とともに通信コントローラ11に送
出する。なお、この通し番号を以下、終了通し番号と呼
ぶ。
The above print processing continues until the print data buffer of the P controller 10 is finished. The P controller 10 causes the printer 13 to print the data in the print buffer in accordance with an interrupt signal sent from the signal line 17 in FIG. When printing is completed in units of the sent print data, print end information is sent to the communication controller 11 along with the serial number attached to the print data via the signal line 16 in FIG. Note that this serial number is hereinafter referred to as the end serial number.

次に第5図の通信コントローラの動作フローチャートに
示すように、通信コントローラ11ではその終了通し番
号を受取り、前記終了通し番号を第3図のデュアルポー
トRAM9に格納する。
Next, as shown in the operation flowchart of the communication controller in FIG. 5, the communication controller 11 receives the ending serial number and stores the ending serial number in the dual port RAM 9 in FIG. 3.

第6図は主CPUシステム8における停電処理の動作フ
ローチャートである。停電が発生すると(Sl)デュア
ルポートRAM9内の送出通し番号と終了通し番号を、
電源がバックアップされている不揮発性メモリに格納し
くS2)、停電割込みを終了し、停電から復帰時に(S
3)、不揮発性メモリ内の送出通し番号と終了通し番号
とを比較しくS4)、一致しているときは印字完了であ
り、不一致のときは印字中に停電中断ありとする情報を
印字させるとともに(S5)、印字未完のデータを再送
する(S6)ことにより、停電復帰時の処理が終了する
FIG. 6 is an operational flowchart of power outage processing in the main CPU system 8. When a power outage occurs (Sl), the sending serial number and ending serial number in the dual port RAM 9 are
The power is stored in a non-volatile memory with backup power (S2), the power outage interrupt is terminated, and when the power is restored from the power outage (S2).
3) Compare the sending serial number and the ending serial number in the non-volatile memory (S4), and if they match, printing is complete; if they do not match, print information indicating that there was a power outage interruption during printing (S5). ), the unprinted data is retransmitted (S6), thereby completing the process at the time of power recovery.

(発明の効果) 以上説明して明らかなように本発明は、プリンタを制御
する主CPUシステムのメモリをバックアップすること
なく、プリンタの印字途中で停電等により印字が未完了
になることがあっても、自動的に印字未完了のデータを
印字することができる経済的な、同時に使い勝手のよい
利点を有する電子レジスタであるから用いて大きな効果
が得られる。
(Effects of the Invention) As is clear from the above explanation, the present invention prevents printing from being incomplete due to a power outage or the like during printing by the printer, without backing up the memory of the main CPU system that controls the printer. It is also an electronic register that can automatically print unprinted data and has the advantages of being economical and easy to use, so it can be used to great effect.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の概略を示すブロック図、第
2図はインタフェース回路を説明するブロック図、第3
図は本発明要部のメモリ割当てを示す図、第4図は主C
PUシステムの動作フローチャート、第5図は通信コン
トローラの動作フローチャート、第6図は主CPUシス
テムにおける停電処理を示す動作フローチャートである
。 1・・・主CPU、   2・・・(第1の)メモリ、
3.13・・プリンタ、 4・・隷属CPU、5・・・
(第2の)メモリ、  6・・・インタフェース回路、
 7・・・周辺機器、 8・・・主CPUシステム、 
 9・・・デュアルポートRAM、  to・・・プリ
ンタコントローラ(Pコントローラ)、 11・・・通
信コントローラ、12・・・プリンタコントローラ用メ
モリ。 特許出願人 松下電器産業株式会社
FIG. 1 is a block diagram showing an outline of an embodiment of the present invention, FIG. 2 is a block diagram explaining an interface circuit, and FIG.
The figure shows the memory allocation of the main parts of the present invention, and Figure 4 shows the main C
FIG. 5 is an operation flowchart of the PU system, FIG. 5 is an operation flowchart of the communication controller, and FIG. 6 is an operation flowchart showing power outage processing in the main CPU system. 1... Main CPU, 2... (first) memory,
3.13...Printer, 4...Slave CPU, 5...
(second) memory, 6... interface circuit,
7... Peripheral equipment, 8... Main CPU system,
9...Dual port RAM, to...Printer controller (P controller), 11...Communication controller, 12...Memory for printer controller. Patent applicant Matsushita Electric Industrial Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 電子レジスタを制御する主CPUと、それに隷属して印
字を行なう隷属CPUとを有し、主CPUには、印字デ
ータに通し番号を付加して隷属CPUに送出する手段を
、また隷属CPUには、前記印字データを受取ったとす
る情報及び、その印字を終了したとき印字を終了したと
する情報を、それら各情報にそれぞれ、上記印字データ
の通し番号を付加して、主CPUに送出可能にした手段
を設けたことを特徴とする電子レジスタ。
The main CPU has a main CPU that controls the electronic register, and a slave CPU that performs printing in a slave manner to the main CPU. Means is configured to add a serial number of the print data to each of the information indicating that the print data has been received and the information indicating that the print is completed when the print data is completed, and to send the information to the main CPU. An electronic register characterized in that:
JP14543890A 1990-06-05 1990-06-05 Electronic register Pending JPH0438592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14543890A JPH0438592A (en) 1990-06-05 1990-06-05 Electronic register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14543890A JPH0438592A (en) 1990-06-05 1990-06-05 Electronic register

Publications (1)

Publication Number Publication Date
JPH0438592A true JPH0438592A (en) 1992-02-07

Family

ID=15385247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14543890A Pending JPH0438592A (en) 1990-06-05 1990-06-05 Electronic register

Country Status (1)

Country Link
JP (1) JPH0438592A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016148917A (en) * 2015-02-10 2016-08-18 東芝テック株式会社 Product sales data processing device, data processing terminal and control program of the same, as well as station device and control program of the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016148917A (en) * 2015-02-10 2016-08-18 東芝テック株式会社 Product sales data processing device, data processing terminal and control program of the same, as well as station device and control program of the same

Similar Documents

Publication Publication Date Title
JP3711432B2 (en) Peripheral processing apparatus and control method thereof
US4486750A (en) Data transfer system
JP2002046326A (en) Method of controlling printing and multi-printing system
JPH07181842A (en) Management system for copying device
JPH1195941A (en) Printer system, printer unit and computer device for the same
JPS59127133A (en) Data transmitting system
US5204950A (en) Data processing system for transmitting data between a host processor and an i/o device
JPH0438592A (en) Electronic register
JPH02289374A (en) Printer
JPH02166511A (en) Printing system
JP2000089921A (en) Method for controlling printing data spool
JP2000339118A (en) Print controller method and printer and recording medium recording print control program
JP2001150774A (en) Printer
JPH10293661A (en) Network printer system
JPH0884211A (en) Facsimile equipment
JPH10100513A (en) Data controller of label printer
JP2859523B2 (en) Printing control method for document printing system
JP4095757B2 (en) Image forming apparatus management system
JP2008279647A (en) Image output device and system
JPH01180658A (en) Centralized control system
JPH0811358A (en) Hard disk built-in printer
JPH11203096A (en) Printing system
JPS61179757A (en) Double surface buffer transmitting control system of printer
JPH05266048A (en) Ticket issuing device
JPH06274289A (en) Network printer device