JPS644228B2 - - Google Patents

Info

Publication number
JPS644228B2
JPS644228B2 JP56167415A JP16741581A JPS644228B2 JP S644228 B2 JPS644228 B2 JP S644228B2 JP 56167415 A JP56167415 A JP 56167415A JP 16741581 A JP16741581 A JP 16741581A JP S644228 B2 JPS644228 B2 JP S644228B2
Authority
JP
Japan
Prior art keywords
data
input
print
register
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP56167415A
Other languages
Japanese (ja)
Other versions
JPS5868175A (en
Inventor
Tetsuo Ootsuka
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP56167415A priority Critical patent/JPS5868175A/en
Publication of JPS5868175A publication Critical patent/JPS5868175A/en
Publication of JPS644228B2 publication Critical patent/JPS644228B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、一括印字機能、具体例は一顧客に対
する取引終了時に、取引中においてレシート用紙
上に印字されたデータを伝票用紙上に一括して印
字する機能を有する電子レジスタに関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a batch printing function, specifically, when a transaction for one customer is completed, the data printed on receipt paper during the transaction is batch printed on slip paper. The present invention relates to an electronic register having a printing function.

〔発明の概要〕[Summary of the invention]

本発明は一括印字機能を有する電子レジスタに
おいて、入力操作されたデータを入力操作順に記
憶し、このデータを一括印字指令時に利用して一
括印字を行なわせるのみならず、取引訂正指令時
の訂正処理にも利用できるようにして、一括印字
機能を有する電子レジスタにおけるデータの利用
効率の向上を計つたものである。
The present invention is an electronic register having a batch printing function, which stores inputted data in the order of input operations, and uses this data to not only perform batch printing when issuing a batch printing command, but also to perform correction processing when issuing a transaction correction command. This is intended to improve data utilization efficiency in electronic registers that have a batch printing function.

〔従来の技術〕[Conventional technology]

従来、電子レジスタにおいては一括印字機能を
有したものがある(特開昭56−40968号公報)。こ
の一括印字機能というのは別名認証印字機能とも
呼ばれており、一顧客に対する取引終了時のレシ
ート発行直後に指定されるもので、レシート用紙
上に印字されたデータと同一のデータを所定の伝
票用紙に印字する機能である。そして、従来では
前記一括印字機能を実現するためには、取引中に
レシート用紙上に印字される印字データを順次記
憶する一括印字専用のメモリが必要であつた。
Conventionally, some electronic registers have a batch printing function (Japanese Unexamined Patent Publication No. 40968/1983). This batch printing function is also called the authentication printing function, and is specified immediately after issuing a receipt at the end of a transaction for one customer. This is a function to print on paper. Conventionally, in order to realize the batch printing function, a memory dedicated to batch printing was required to sequentially store print data printed on receipt paper during a transaction.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで前記一括印字機能というものは各顧客
全員に対して必要なものではなく、伝票用紙に印
字を必要とする一部の顧客に対してのみ必要なも
のである。にもかかわらず、前記一括印字機能の
動作時においてしか使用されないデータを専用の
メモリに記憶させることはデータの使用効率の点
で問題であつた。
By the way, the above-mentioned batch printing function is not necessary for all customers, but only for some customers who require printing on slip paper. Nevertheless, storing data that is used only during the operation of the batch printing function in a dedicated memory poses a problem in terms of data usage efficiency.

本発明の課題は、一括印字用のデータのみを記
憶する専用メモリを電子レジスタに設けずとも、
一括印字が行なえるようにすることにある。
The problem of the present invention is that it is possible to print data without having to provide a dedicated memory for storing only data for batch printing in an electronic register.
The purpose is to enable batch printing.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の手段を第8図に示す機能ブロツク図を
用いて説明する。この図においてAは売上データ
及び分類指定データを入力するデータ入力手段、
Bは分類別に売上累計データを記憶する分類記憶
手段、Cは分類指定データの入力時に入力された
売上データを分類別記憶手段B内に累計処理する
累計手段、Dは取引開始後にデータ入力手段Aに
より入力された売上データ及び分類指定データ等
の入力データを入力操作順に記憶する操作データ
記憶手段、Eは一取引における売上データの一括
印字指令あるいは取引の取引訂正指令を入力する
指令入力手段、Fは一括印字指令あるいは取引訂
正指令の入力により操作データ記憶手段D内に記
憶されたデータを入力操作手順に読み出す読出手
段、Gは指令入力手段Eで入力された指令が一括
印字指令の際は読出手段Fにより読出されるデー
タに基づいて印字データを作成する印字データ作
成手段、Hは印字データ作成手段Gで作成された
印字データを印字する印字手段、Iは指令入力手
段Eで入力された指令が取引訂正指令の際は読出
手段Fにより読み出されるデータに基づいて分類
別記憶手段B内の売上累計データに対する訂正減
算処理を行なう訂正手段とを備える。
The means of the present invention will be explained using the functional block diagram shown in FIG. In this figure, A is a data input means for inputting sales data and classification designation data;
B is a classification storage means for storing cumulative sales data by classification; C is an accumulating means for accumulating the sales data inputted at the time of inputting the classification designation data into the classification storage means B; D is a data input means A after the start of a transaction. E is an operation data storage means for storing input data such as sales data and classification designation data inputted in the order of input operations; E is a command input means for inputting a command for batch printing of sales data in one transaction or a transaction correction command for a transaction; G is a readout means for reading data stored in the operation data storage means D according to the input operation procedure upon input of a batch printing command or transaction correction command; Print data creation means that creates print data based on the data read by means F; H is a printing means that prints the print data created by print data creation means G; I is a command input by command input means E; When a transaction correction command is issued, the correction means performs a correction subtraction process on the cumulative sales data in the classified storage means B based on the data read out by the reading means F.

〔作用〕[Effect]

本発明の手段の作用は次の通りである。取引開
始後売上データ及び分類指定データを入力手段A
により順次入力すると、分類データ指定時に累計
手段Cが動作し、入力された売上データが分類別
記憶手段B内に累計処理される。これと並行して
取引開始後の前記売上データ及び分類指定データ
は入力操作順に操作データ記憶手段D内に記憶さ
れる。このようにして、一連の取引が終了し、レ
シートの発行が行なわれた後、伝票用紙に対して
取引データの印字を行ないたい場合には、キヤツ
シヤーは伝票用紙を印字手段Hの所定位置にセツ
トし、指令入力手段Eにより一括印字指令を入力
する。すると読出手段Fが動作し、前記操作デー
タ記憶手段D内に記憶された取引開始後の全操作
データが入力操作順に順次読み出される。続いて
レシート上に印字されたデータと同一の印字デー
タが印字データ作成手段Gにて作成され、この印
字データは印字手段Hにより前記伝票用紙上に印
字される。一方、一連の取引の途中あるいは終了
後において今回の取引を中止したい場合にはキヤ
ツシヤーは指令入力手段Eにより取引訂正指令を
入力する。すると前述した一括印字指令の入力時
同様に操作データ記憶手段D内に記憶された取引
開始後の全操作データの読出手段Fにより入力操
作順に読み出され、このデータに基づいて分類別
記憶手段B内の売上累計データに対する訂正減算
処理が訂正手段Iにより行なわれる。この結果、
分類別記憶手段B内の売上累計データは取引開始
前の状態に訂正される。
The operation of the means of the invention is as follows. Input method A for sales data and classification designation data after transaction start
When the sales data is inputted sequentially, the cumulative totaling means C operates when the classification data is specified, and the input sales data is cumulatively processed in the classification storage means B. In parallel with this, the sales data and classification designation data after the start of the transaction are stored in the operation data storage means D in the order of input operations. In this way, after a series of transactions has been completed and a receipt has been issued, if the cashier wishes to print transaction data on the slip paper, the cashier sets the slip paper in a predetermined position on the printing means H. Then, the command input means E inputs a batch printing command. Then, the reading means F operates, and all the operation data stored in the operation data storage means D after the start of the transaction is sequentially read out in the order of input operations. Subsequently, print data identical to the data printed on the receipt is created by print data creation means G, and this print data is printed by printing means H onto the slip paper. On the other hand, if the cashier wishes to cancel the current transaction during or after a series of transactions, the cashier inputs a transaction correction command using the command input means E. Then, in the same way as when inputting the above-mentioned batch printing command, all the operation data after the start of the transaction stored in the operation data storage means D is read out by the reading means F in the order of the input operations, and based on this data, the classification storage means B The correction means I performs a correction subtraction process on the cumulative sales data within. As a result,
The cumulative sales data in the classified storage means B is corrected to the state before the start of the transaction.

従つて、一括印字用データのみを記憶する専用
メモリを設けずとも、電子レジスタにおいて一括
印字が可能となる。
Therefore, batch printing is possible in the electronic register without providing a dedicated memory for storing only data for batch printing.

〔実施例〕〔Example〕

以下、この発明の一実施例につき第1図ないし
第7図に基づいて説明する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 7.

(1) 構成 第1図ないし第5図は本実施例の構成を示す
図である。第1図は電子レジスタの概略システ
ム構成図を示し、符号1はCPUで、このCPU
1はコントロールバスCBを介して入力制御部
2、表示制御部3、印字制御部4,5、合計メ
モリ6およびコードメモリ7にチツプ指定信
号、R/W信号を出力し、印字制御部4,5か
ら出力される制御信号が入力される。また
CPU1はアドレスバスABを介し、前記各制御
部2,3,4,5、合計メモリ6およびコード
メモリ7にアドレス信号を出力する。また
CPU1はデータバスDBを介し、入力バツフア
INからのデータを入力し、また表示制御部3
に備えられた表示バツフアDIおよび印字制御
部4,5に備えられた印字バツフアPB1,PB2
に夫々データを出力し、さらに合計メモリ6お
よびコードメモリ7との間においてデータの授
受を行う。
(1) Configuration Figures 1 to 5 are diagrams showing the configuration of this embodiment. Figure 1 shows a schematic system configuration diagram of an electronic register, and numeral 1 is a CPU.
1 outputs a chip designation signal and an R/W signal to the input control section 2, display control section 3, print control sections 4 and 5, total memory 6 and code memory 7 via the control bus CB; A control signal output from 5 is input. Also
The CPU 1 outputs address signals to each of the control sections 2, 3, 4, 5, total memory 6, and code memory 7 via the address bus AB. Also
CPU1 receives input buffer via data bus DB.
Input data from IN and display control unit 3
Display buffer DI provided in the print buffers PB 1 and PB 2 provided in the print control units 4 and 5
Data is outputted to and received from the total memory 6 and the code memory 7, respectively.

前記入力制御部2は入力部8にタイミング信
号KPを出力し、入力部8においてキー操作が
行なわれた際にタイミング信号KPが操作キー
に応じて選択され、キー入力信号KIとして入
力バツフアINに入力される。また、前記表示
制御部3はデイジツト信号DG、および表示バ
ツフアDIのデータをデコードしたセグメント
信号SGを表示部9に出力し、金額データなど
を表示する。また前記印字制御部4はプリンタ
10から入力される印字位置信号TPと印字バ
ツフアPB1の印字データによつて生じる印字駆
動信号HDをプリンタ10に出力し、印字デー
タをロール状にレシート用紙に印字する。また
印字制御部5はスリツププリンタ11から入力
される印字位置信号TPと印字バツフアPB2
印字データによつて生じる印字駆動信号HDを
スリツププリンタ11へ出力し、所定の大きさ
の記録紙(伝票用紙)に一括印字データの印字
を行う。
The input control section 2 outputs a timing signal KP to the input section 8, and when a key operation is performed on the input section 8, the timing signal KP is selected according to the operated key and is sent to the input buffer IN as a key input signal KI. is input. Further, the display control section 3 outputs the digit signal DG and the segment signal SG obtained by decoding the data of the display buffer DI to the display section 9 to display amount data and the like. The print control unit 4 also outputs a print drive signal HD generated by the print position signal TP input from the printer 10 and the print data of the print buffer PB 1 to the printer 10, and prints the print data on a roll of receipt paper. do. The print control unit 5 also outputs a print drive signal HD generated by the print position signal TP input from the slip printer 11 and the print data of the print buffer PB 2 to the slip printer 11, and outputs the print drive signal HD to the slip printer 11, and outputs the print drive signal HD generated by the print position signal TP input from the slip printer 11 and the print data of the print buffer PB 2, Print the batch print data on paper).

第2図は前記CPU1を詳細に示した回路構
成図で、図中符号12はROMであり、ここに
は各種マイクロ命令が格納されている。この
ROM12はラインl1を介してアドレス信号を
アドレス指定回路13へ出力し、またラインl2
を介してオペレーシヨンコードおよびROM1
2の次アドレスを指定する次アドレス信号を制
御回路14へ出力する。そして、前記次アドレ
ス信号は制御回路14からラインl3を介して
ROM12へ入力され、次のマイクロ命令をア
ドレス指定する。
FIG. 2 is a circuit configuration diagram showing the CPU 1 in detail, and reference numeral 12 in the figure is a ROM, in which various microinstructions are stored. this
The ROM 12 outputs an address signal to the addressing circuit 13 via line l1 , and also outputs an address signal to the addressing circuit 13 via line l2.
Operation code and ROM1 through
A next address signal specifying the next address of 2 is output to the control circuit 14. Then, the next address signal is transmitted from the control circuit 14 via line l3 .
It is input to ROM 12 and addresses the next microinstruction.

前記アドレス指定回路13は、RAM15の
アドレスを指定するほか、アドレスバスABを
介して前記各制御部2,3,4,5、合計メモ
リ6およびコードメモリ7のアドレスを指定
し、アドレスの指定が終了した際にはラインl4
を介して制御回路14へ終了信号を出力する。
更に、このアドレス指定回路13にはRAM1
5から読み出されたデータがラインl5を介して
入力され、いわゆるインデイクス・アドレツシ
ングを行う。
The address designating circuit 13 not only designates the address of the RAM 15, but also designates the addresses of each of the control units 2, 3, 4, 5, total memory 6, and code memory 7 via the address bus AB. Line l 4 when finished
A termination signal is output to the control circuit 14 via the control circuit 14.
Furthermore, this addressing circuit 13 has RAM1.
The data read out from 5 is input via line l5 to perform so-called index addressing.

前記RAM15にはX、Y、Z、CT、CT1
VFLAGの各レジスタが備えられ、このRAM
15から読み出されたデータは演算回路16に
出力され、またデータバスDBを介して表示制
御部3、印字制御部4,5、合計メモリ6およ
びコードメモリ7へ送出される。前記演算回路
16は指定された各種演算を行い、この演算結
果はラインl6を介してRAM15へ入力される。
The RAM 15 has X, Y, Z, CT, CT 1 ,
Each register of VFLAG is provided, and this RAM
The data read from 15 is output to arithmetic circuit 16, and is also sent to display control section 3, print control sections 4 and 5, total memory 6, and code memory 7 via data bus DB. The arithmetic circuit 16 performs various specified arithmetic operations, and the results of these arithmetic operations are input to the RAM 15 via line l6 .

前記制御回路16は、入力されたオペレーシ
ヨンコードを解読し、ラインl7を介して加算あ
るいは減算の指定を行う指定信号を演算回路1
6へ出力する。また制御回路14はラインl8
介してRAM15へR/W信号を出力し、ライ
ンl9を介して入力されたデータおよびキヤリー
の有無に従つて次アドレスの変更を行う。更に
制御回路14はラインl4を介してアドレス指定
回路13内のアドレスカウンタへカウントアツ
プまたはカウントダウンを指定する信号を出力
する。このほか制御回路14はコントロールバ
スCBを介し、前記R/W信号、チツプ指定信
号を出力する。
The control circuit 16 decodes the input operation code and sends a designation signal for designating addition or subtraction to the arithmetic circuit 1 via line l7 .
Output to 6. The control circuit 14 also outputs an R/W signal to the RAM 15 via line l8 , and changes the next address depending on the data input via line l9 and the presence or absence of a carry. Further, the control circuit 14 outputs a signal specifying count up or count down to the address counter in the address designation circuit 13 via line l4 . In addition, the control circuit 14 outputs the R/W signal and the chip designation signal via the control bus CB.

第3図は前記入力部8に設けられたキーボー
ドの平面図を示し、置数キー群17、部門01
〜12を指定する部門別キー群18、小計キー
19、現/預かりキー20、その他の各種フア
ンクシヨンキーなどのほか一顧客分のデータの
一括印字を指示する際に使用される一括印字キ
ー22、一顧客分の登録途中のデータを一括し
て訂正する際に使用される一括印字キー23が
備えられている。このほか入力部8には「登
録」などの各種モードに指定するモードスイツ
チ(図示せず)などが備えられている。
FIG. 3 shows a plan view of the keyboard provided in the input section 8, including a number key group 17 and a department 01.
- 12, a group of departmental keys 18, a subtotal key 19, a current/customer key 20, various other function keys, and a batch print key 22 used to instruct batch printing of data for one customer. , a batch print key 23 is provided which is used to collectively correct data that is being registered for one customer. In addition, the input unit 8 is provided with a mode switch (not shown) for specifying various modes such as "registration".

第4図は前記合計メモリ6内の部門合計器6
aのフオーマツトを示し、行アドレス01〜1
2で夫々指定される記憶領域M01〜M12は部門
01〜12と対応しており、そこにはその部門
の売上合計データが記憶される。このほか合計
メモリ6には現金売上合計データが記憶される
現金合計器、現金売り、貸売りなどの総売上合
計データが記憶される総売上合計器、発行され
たレシートの一連番号が記憶される記憶領域な
どが備えられている。
FIG. 4 shows the department totalizer 6 in the total memory 6.
Indicates the format of a, row addresses 01-1
The storage areas M 01 to M 12 respectively designated by 2 correspond to departments 01 to 12, and total sales data of the departments are stored therein. In addition, the total memory 6 stores a cash totaler for storing total cash sales data, a total sales totaler for storing total sales data such as cash sales, loan sales, etc., and a serial number of issued receipts. It is equipped with a storage area, etc.

第5図は前記コードメモリ7のフオーマツト
を示し、その記憶領域STACK(1)〜STACK
(100)には一顧客の登録開始から終了までに操
作されたキーコードが順次記憶される。
FIG. 5 shows the format of the code memory 7, and its storage areas STACK(1) to STACK
(100) sequentially stores the key codes operated by one customer from the start to the end of registration.

(2) 動作 次に、本実施例の動作について説明する。前
記電子レジスタの電源スイツチをONした状態
で第6図のフローに従つた処理が実行される。
すなわち、RAM15内のCTレジスタ、
VFLAGレジスタ及びCH1レジスタに“0”が
書き込まれる(ステツプS1〜S3)。次いで入力
バツフアINの内容がRAM15のXレジスタに
転送され(ステツプS4)、Xレジスタの内容が
“0”であるか否かが判断され(ステツプS5)、
YESと判断されるとステツプS4に戻り、NOと
判断されるとステツプS6に移る。ステツプS6
おいて、Xレジスタの内容に基づいてROM1
2の所定のアドレスを指定するKEY・JUMP
が実行される。一括印字キーコードがXレジス
タに記憶されている場合は前記JUMPによつて
ステツプS7に移り、VFLAGレジスタに一括印
字キー22の操作を示す“1”が書き込まれ
る。また、一括訂正キーコードがXレジスタに
記憶されている場合は前記JUMPによつてステ
ツプS8に移り、記録紙上におけるそれまでの印
字データは全て無効であることを示す訂正印字
「トリケシ…」が印字れる。次いでステツプS9
に移り、VFLAGレジスタに一括訂正キー23
の操作を示す“2”が書き込まれる。また、置
数キーが操作された場合は前記JUMPによつて
ステツプS10に移り、RAM15内のYレジスタ
の内容が1桁ずつ桁上げされる。次いでステツ
プS11に移り、XレジスタのキーコードがYレ
ジスタの最下位桁YLSD転送される。
(2) Operation Next, the operation of this embodiment will be explained. With the power switch of the electronic register turned on, the process according to the flow shown in FIG. 6 is executed.
That is, the CT register in RAM15,
"0" is written to the VFLAG register and CH 1 register (steps S 1 to S 3 ). Next, the contents of the input buffer IN are transferred to the X register of the RAM 15 (step S4 ), and it is determined whether the contents of the X register are "0" (step S5 ).
If the answer is YES, the process returns to step S4 , and if the answer is NO, the process moves to step S6 . In step S6 , ROM1 is loaded based on the contents of the X register.
KEY/JUMP to specify the predetermined address in 2.
is executed. If the batch print key code is stored in the X register, the process moves to step S7 due to the JUMP, and "1" indicating the operation of the batch print key 22 is written in the VFLAG register. If the batch correction key code is stored in the Can be printed. Then step S 9
Move to VFLAG register and set batch correction key 23
"2" indicating the operation is written. If the numeric key is operated, the process moves to step S10 due to the JUMP, and the contents of the Y register in the RAM 15 are incremented one digit at a time. Next, the process moves to step S11 , and the key code of the X register is transferred to the least significant digit Y LSD of the Y register.

部門別キーコードがXレジスタに記憶されて
いる場合は前記JUMPによつてステツプS12
移り、ここでVFLAGレジスタに一括訂正フラ
グ“2”が記憶されているか否かの判断が実行
され、否と判断されるとステツプS13に移る。
ステツプS13において、RAM15の小計データ
を記憶するZレジスタの内容にYレジスタの売
上データが加算される。次いでステツプS14
実行に移り、VFLAGレジスタに一括印字フラ
グ“1”が記憶されているか否かの判断が実行
され、YESと判断されるとステツプS15に移る。
ステツプS15においてYレジスタの内容が印字
バツフアPB2に転送され、スリツププリンタ1
1において記録紙に印字される。前記ステツプ
S14においてVFLAGレジスタに一括印字フラ
グ“1”が記憶されていないと判断されるとス
テツプS16に移る。ステツプS16において、部門
別合計器6aの操作された部門別キーと対応す
る記憶領域MにYレジスタの売上データが累計
される。次いでステツプS17に移り、Yレジス
タの内容が印字バツフアPB1に転送され、プリ
ンタ10において記録紙に印字される。前記ス
テツプS12においてVFLAGレジスタに一括訂
正フラグ“2”が記憶されていると判断される
とステツプS18に移る。ステツプS18において武
門別合計器6aの操作された部門別キーと対応
する記憶領域Mの売上合計データからYレジス
タの売上データが減算される。前記ステツプ
S15、S17、S18が実行された後、ステツプS19
移りYレジスタに“0”が書き込まれる。
If the departmental key code is stored in the If it is determined that this is the case, the process moves to step S13 .
In step S13 , the sales data in the Y register is added to the contents of the Z register in the RAM 15, which stores the subtotal data. Next, the process moves to step S14 , where it is determined whether or not the batch print flag "1" is stored in the VFLAG register.If it is determined to be YES, the process moves to step S15 .
At step S15 , the contents of the Y register are transferred to the print buffer PB 2 , and the contents of the Y register are transferred to the print buffer PB 2,
1, it is printed on recording paper. Said step
If it is determined in S14 that the batch print flag "1" is not stored in the VFLAG register, the process moves to step S16 . In step S16 , the sales data of the Y register is accumulated in the storage area M of the department totalizer 6a corresponding to the operated department key. Next, the process moves to step S17 , where the contents of the Y register are transferred to the print buffer PB1 and printed on recording paper by the printer 10. If it is determined in step S12 that the batch correction flag "2" is stored in the VFLAG register, the process moves to step S18 . In step S18 , the sales data in the Y register is subtracted from the sales total data in the storage area M corresponding to the operated department key of the martial arts totalizer 6a. Said step
After S 15 , S 17 and S 18 are executed, the process moves to step S 19 and "0" is written into the Y register.

取引別キーとして、例えば現金/預かりキー
が操作されてそのキーコードがXレジスタに記
憶されている場合は前記JUMPによつてステツ
プS20に移り、ここでVFLAGレジスタの内容
が“1”より小の場合は通常の登録操作である
とみなされてステツプS21に移る。ステツプS21
においてZレジスタの小計データが印字バツフ
アPB1に転送され、プリンタ10においてレシ
ート用紙に印字される。次いでステツプS22
移り、合計メモリ6の現金合計器にZレジスタ
の小計データが累計される。次いでステツプ
S23の実行に移り、合計メモリ6の総売上合計
器にZレジスタの小計データが加算されると共
に、その他各種一連番号が加算される。前記ス
テツプS20において、VFLAGレジスタに一括
印字フラグ“1”が記憶されていると判断され
るとステツプS24に移り、Zレジスタの内容が
印字バツフアPB2に転送され、スリツププリン
タ11において印字される。前記ステツプS20
において、VFLAGレジスタに一括訂正フラグ
“2”が記憶れていると判別された場合、また
は前記ステツプS22、S24の後にステツプS25
移り、Zレジスタに“0”が書き込まれる。
As a transaction key, for example, if the cash/deposit key is operated and its key code is stored in the In this case, it is assumed that this is a normal registration operation, and the process moves to step S21 . Step S 21
At , the subtotal data in the Z register is transferred to the print buffer PB 1 and printed on receipt paper by the printer 10 . Next, the process moves to step S22 , and the subtotal data of the Z register is accumulated in the cash totalizer of the total memory 6. Then step
Moving on to the execution of S23 , the subtotal data in the Z register is added to the total sales totalizer in the total memory 6, and various other serial numbers are also added. In step S20 , if it is determined that the batch print flag "1" is stored in the VFLAG register, the process moves to step S24 , where the contents of the Z register are transferred to the print buffer PB2 and printed in the slip printer 11. Ru. Step S 20
If it is determined that the batch correction flag "2" is stored in the VFLAG register, or after steps S22 and S24 , the process moves to step S25 and "0" is written to the Z register.

前記ステツプS7、S9、S11、S19、S25のうち
いずれかのステツプが実行された後ステツプ
S26に移る。ステツプS26において、VFLAGレ
ジスタに通常の登録動作を示す“0”が記憶さ
れているか否かの判断が実行され、YESと判
断されるとステツプS27に移る。ステツプS27
おいてCTレジスタのインデイクスデータに
“1”が加算される。次いでステツプS28の実行
において、CTレジスタのインデイクスデータ
によつて指定されるコードメモリ7の記憶領域
STACK(CT)にXレジスタのキーコードが転
送され、この後ステツプS3に戻る。前記ステツ
プS26においてVFLAGレジスタの内容が“0”
で無いと判断されると通常の登録動作で無いと
みなされてステツプS29に移る。ステツプS29
おいて、CT1レジスタのインデイクスデータに
“1”が加算される。次いでステツプS30に移
り、CT1レジスタの内容がCTレジスタの内容
以下であるか否かの判断が実行され、YESと
判断されると末だ一括訂正あるいは一括印字に
係るキーコードの読み出しが終了して無いとみ
なされてステツプS31に移る。ステツプS31にお
いてCT1レジスタのインデイクスデータによつ
て指定されるコードメモリ7の記憶領域
STACK(CT1)のキーコードがXレジスタに
転送され、この後ステツプS6に戻る。前記ステ
ツプS30においてCT1レジスタの内容がCTレジ
スタの内容より大と判断されると、ステツプ
S32に移る。ステツプS32においてVFLAGレジ
スタに一括印字あるいは一括訂正終了を示す
“0”が書き込まれる。次いでステツプS33の実
行に移り、CTレジスタに“0”が書き込まれ
て初期値に設定され、この後ステツプS3に戻
る。
After any one of steps S 7 , S 9 , S 11 , S 19 , and S 25 is executed, step
Moving on to S26 . In step S26 , a determination is made as to whether "0" indicating a normal registration operation is stored in the VFLAG register, and if the determination is YES, the process moves to step S27 . At step S27 , "1" is added to the index data of the CT register. Next, in the execution of step S28 , the storage area of the code memory 7 specified by the index data of the CT register is
The key code of the X register is transferred to STACK (CT), and then the process returns to step S3 . In step S26 , the contents of the VFLAG register are “0”.
If it is determined that this is not the case, it is assumed that this is not a normal registration operation, and the process moves to step S29 . At step S29 , "1" is added to the index data of the CT1 register. Next, the process moves to step S30 , where it is determined whether or not the contents of the CT 1 register are less than or equal to the contents of the CT register.If it is determined as YES, reading of the key code related to batch correction or batch printing is completed. It is assumed that there has not been one, and the process moves to step S31 . Storage area of code memory 7 specified by index data of CT 1 register in step S31
The STACK (CT 1 ) key code is transferred to the X register, and then the process returns to step S6 . If it is determined in step S30 that the contents of the CT1 register are larger than the contents of the CT register, the step
Move on to S32 . At step S32 , "0" indicating the end of batch printing or batch correction is written in the VFLAG register. Next, the process moves to step S33 , where "0" is written to the CT register to set it to the initial value, and then the process returns to step S3 .

しかして、第7図に示すように売上金額1
00を部門01に登録すると、ステツプS3
S6、S10、S11、S26〜S28が順次3回繰り返し実
行され、この結果、コードメモリ7の記録領域
STACK(1)〜(3)に夫々操作された置数キーのキ
ーコードが記憶され、続けてステツプS3〜S6
S12〜S14、S16、S17、S19が順次実行される結
果、その売上データは部門別合計器6aの記憶
領域M01に累計され、さらにこの売上データは
プリンタ10によつて第7図に示すように記
録紙に印字される。さらに続けてステツプS26
〜S28が順次実行され、操作された部門コード
が記憶領域STACK(4)に記憶される。全く同様
な動作が売上金額200を部門02に登録した
場合も実行される。この後、前記部門登録が誤
まりであることに気づき、一括訂正キー23を
操作するとステツプS8、S9が順次実行れて前記
記録紙に「トリケシ」の印字が行なわれ、次い
でステツプS26、S29〜S31、S6、S10、S11が順次
3回繰り返し実行れ、記憶領域STACK(1)〜(3)
に記憶されたキーコードが順次読み出されてY
レジスタに売上データ「100」が記憶される。
この後続けてステツプS26、S29〜S31、S6
S12、S18が順次実行され、部門別合計器6aの
記憶領域M01に記憶された売上合計データから
Yレジスタの売上データが減算される。同様な
動作が続けて実行され、記憶領域M02の売上合
計データから売上データ「200」が減算され、
ステツプS30、S32、S33が実行されて一括訂正
動作を終了する。
Therefore, as shown in Figure 7, the sales amount 1
When you register 00 in department 01, step S3 ~
S 6 , S 10 , S 11 , S 26 to S 28 are repeated three times in sequence, and as a result, the recording area of the code memory 7
The key codes of the operated numeric keys are stored in STACK (1) to (3), and then steps S 3 to S 6 are stored.
As a result of sequentially executing S 12 to S 14 , S 16 , S 17 , and S 19 , the sales data is accumulated in the storage area M01 of the departmental totalizer 6a, and furthermore, this sales data is stored in the seventh section by the printer 10. It is printed on recording paper as shown in the figure. Continue to step S 26
-S28 are sequentially executed, and the operated department code is stored in the storage area STACK(4). Exactly the same operation is performed when the sales amount 200 is registered in the department 02. After this, when the user realizes that the department registration is incorrect and operates the batch correction key 23, steps S8 and S9 are sequentially executed to print "Torikeshi" on the recording paper, and then step S26 is executed. , S 29 to S 31 , S 6 , S 10 , and S 11 are repeated three times in sequence, and the storage area STACK(1) to (3) is
The key codes stored in are read out sequentially and Y
Sales data "100" is stored in the register.
After this, steps S 26 , S 29 to S 31 , S 6 ,
S 12 and S 18 are executed sequentially, and the sales data in the Y register is subtracted from the sales total data stored in the storage area M01 of the departmental totalizer 6a. The same operation is executed continuously, and sales data "200" is subtracted from the total sales data in storage area M02.
Steps S 30 , S 32 and S 33 are executed to complete the batch correction operation.

また、前記部門別キー02の操作に次いで
現/預かりキーを操作したとすると、ステツプ
S20〜S23、S25〜S28が順次実行され、このキー
コードが記憶領域STACK(9)に記憶されて一顧
客分の登録動作を終了する。このようにコード
メモリ7の記憶領域STACK(1)〜(9)には一顧客
分の登録操作によつて入力されたキーコードが
順次記憶される。この後、前記顧客から発行さ
れたレシート用紙とは別に所定の様式で領収書
を作成するよう要請されたとする。このとき、
オペレータはその様式の用紙をスリツププリン
タ11にセツトした後、一括印字キー22を操
作する。すると、ステツプS3〜S7、S26、S29
S31が順次実行され、さらに続けてステツプ
S10、S11、S26、S29〜S31が3回繰り返し実行さ
れ、Yレジスタに売上データ「100」が記憶さ
れる。この後、続けてステツプS6、S12〜S15
S19が順次実行され、この結果、スリツププリ
ンタ11によつて前記用紙にYレジスタの部門
01の売上データが印字される。続いて前述と
同様なステツプが実行されて記憶領域STACK
(5)〜(8)のキーコードが順次読み出され、前記用
紙に部門02の売上データ「200」が印字され
る。続いて記憶領域STACK(9)のキーコードが
読み出されてステツプS20、S24が実行され、前
記用紙に売上合計データが印字されて一顧客分
の一括印字を終了する。
Furthermore, if the current/custodial key is operated after operating the department key 02, the step
S 20 to S 23 and S 25 to S 28 are executed in sequence, and this key code is stored in the storage area STACK (9), thereby completing the registration operation for one customer. In this manner, the key codes inputted by the registration operation for one customer are sequentially stored in the storage areas STACK(1) to STACK(9) of the code memory 7. After that, assume that the customer requests that a receipt be created in a predetermined format separately from the issued receipt paper. At this time,
After setting the paper of the format into the slip printer 11, the operator operates the batch print key 22. Then, steps S 3 to S 7 , S 26 , S 29 to
S 31 is executed sequentially, and then steps
S 10 , S 11 , S 26 , S 29 to S 31 are repeatedly executed three times, and sales data “100” is stored in the Y register. After this, steps S 6 , S 12 to S 15 ,
S19 is sequentially executed, and as a result, the slip printer 11 prints the sales data of department 01 of the Y register on the paper. Subsequently, steps similar to those described above are executed to store the storage area STACK.
The key codes (5) to (8) are read out in sequence, and sales data "200" for department 02 is printed on the paper. Subsequently, the key code of the storage area STACK (9) is read out, steps S 20 and S 24 are executed, and the total sales data is printed on the paper, completing the batch printing for one customer.

〔発明の効果〕〔Effect of the invention〕

以上の説明で明らかなように本発明によれば、
取引開始後の操作データを記憶する操作データ記
憶手段を利用して一括印字のみならず取引訂正を
も行なうようにしたので、一括印字用のデータの
みを記憶する専用メモリを電子レジスタに設ける
必要は全くない。即ち、本発明においては上記操
作データを一括印字指令時においては一括印字用
の印字データを作成するためのデータとして利用
し、また取引訂正時においては訂正減算処理用の
データとして利用しているので、上記操作データ
を2種類の用途に共用することができる。従つて
データの利用効率を高めることができ、メモリの
小型化が計れる利点を有する。また、本発明によ
れば一括印字用の印字データを売上データ及び分
類指定データ等の入力操作時の操作データに基づ
いて作成しているので、取引中(入力操作時)に
レシート用紙上に印字されたデータと全く同一の
印字データを容易に、しかも忠実に再現して出力
できる利点を有する。
As is clear from the above description, according to the present invention,
Since we have made it possible to perform not only batch printing but also transaction correction using the operation data storage means that stores the operation data after the start of a transaction, there is no need to provide a dedicated memory in the electronic register to store only the data for batch printing. Not at all. That is, in the present invention, the above operation data is used as data for creating print data for batch printing when a batch printing command is issued, and is used as data for correction subtraction processing when a transaction is corrected. , the above operation data can be shared for two types of purposes. Therefore, it has the advantage that data utilization efficiency can be increased and memory can be made smaller. Furthermore, according to the present invention, the print data for batch printing is created based on the operation data during the input operation such as sales data and classification specification data, so that the print data can be printed on the receipt paper during the transaction (during the input operation). It has the advantage of being able to easily and faithfully reproduce and output print data that is exactly the same as the printed data.

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

第1図ないし第7図はこの発明の一実施例を示
し、第1図は電子レジスタの概略システム構成
図、第2図はCPUの詳細な回路構成図、第3図
はキーボードの平面図、第4図は部門別合計器の
フオーマツト、第5図はコードメモリのフオーマ
ツト、第6図はフローチヤート、第7図,は
キー操作手順および印字状態図であり、また第8
図は本発明の機能ブロツク図を示したものであ
る。 17…一括印字キー、18…一括訂正キー。
1 to 7 show an embodiment of the present invention, in which FIG. 1 is a schematic system configuration diagram of an electronic register, FIG. 2 is a detailed circuit configuration diagram of a CPU, and FIG. 3 is a plan view of a keyboard. Fig. 4 shows the format of the departmental totalizer, Fig. 5 shows the format of the code memory, Fig. 6 shows the flowchart, Fig. 7 shows the key operation procedure and printing status diagram, and Fig. 8 shows the format of the code memory.
The figure shows a functional block diagram of the present invention. 17... Batch print key, 18... Batch correction key.

Claims (1)

【特許請求の範囲】[Claims] 1 売上データ及び分類指定データを入力するデ
ータ入力手段と、分類別に売上累計データを記憶
する分類別記憶手段と、分類指定データの入力時
に入力された売上データを前記分類別記憶手段内
に累計処理する累計手段と、取引開始後に前記デ
ータ入力手段により入力された売上データ及び分
類指定データの入力データを入力操作順に記憶す
る操作データ記憶手段と、一取引における売上デ
ータの一括印字指令あるいは取引の取引訂正指令
を入力する指令入力手段と、この一括印字指令あ
るいは取引訂正指令の入力により前記操作データ
記憶手段内に記憶されたデータを入力操作順に読
み出す読出手段と、前記指令入力手段で入力され
た指令が取引訂正指令の際は前記読出手段により
読み出されるデータに基づいて印字データを作成
する印字データ作成手段と、この作成手段で作成
された印字データを印字する印字手段と、前記指
令入力手段で入力された指令が取引訂正指令の際
は前記読出手段により読み出されるデータに基づ
いて前記分類別記憶手段内の売上累計データに対
する訂正減算処理を行なう訂正手段とを具備する
ことを特徴とする電子レジスタ。
1. Data input means for inputting sales data and classification designation data, classification storage means for storing cumulative sales data for each classification, and cumulative processing of the sales data input at the time of inputting the classification designation data in the classification storage means. an operation data storage means for storing the input data of the sales data and classification designation data input by the data input means after the start of the transaction in the order of input operations; a command input means for inputting a correction command; a reading means for reading data stored in the operation data storage means in the order of input operations by inputting the batch printing command or transaction correction command; and a command input by the command input means. In the case of a transaction correction command, a print data creation means creates print data based on the data read by the reading means, a print means prints the print data created by this creation means, and input by the command input means. and correction means for performing a correction subtraction process on the cumulative sales data in the classification storage means based on the data read by the reading means when the issued command is a transaction correction command.
JP56167415A 1981-10-19 1981-10-19 Electronic register Granted JPS5868175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56167415A JPS5868175A (en) 1981-10-19 1981-10-19 Electronic register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56167415A JPS5868175A (en) 1981-10-19 1981-10-19 Electronic register

Publications (2)

Publication Number Publication Date
JPS5868175A JPS5868175A (en) 1983-04-22
JPS644228B2 true JPS644228B2 (en) 1989-01-25

Family

ID=15849267

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56167415A Granted JPS5868175A (en) 1981-10-19 1981-10-19 Electronic register

Country Status (1)

Country Link
JP (1) JPS5868175A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0318011U (en) * 1989-07-05 1991-02-22

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4761062A (en) * 1986-10-27 1988-08-02 Xerox Corporation Gradient index lens array with improved image quality due to stray light reduction
JP2542671B2 (en) * 1988-04-15 1996-10-09 株式会社テック Product sales data processing device
JP2637066B2 (en) * 1996-03-22 1997-08-06 株式会社テック Product sales data processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0318011U (en) * 1989-07-05 1991-02-22

Also Published As

Publication number Publication date
JPS5868175A (en) 1983-04-22

Similar Documents

Publication Publication Date Title
GB2089547A (en) Electronic register
JPH0368435B2 (en)
JPS63303495A (en) Transaction processor
JPS644228B2 (en)
JPH026119B2 (en)
JPS6235715B2 (en)
JPH0126119B2 (en)
JPS5913067B2 (en) electronic cash register
JP2561355B2 (en) Electronic cash register
JPS6262396B2 (en)
JPS6239464B2 (en)
JPS605428Y2 (en) Electronic register with return registration function
JPH0363120B2 (en)
JPS5847471Y2 (en) Electronic register with transaction-specific registration function
JPS5851305B2 (en) electronic cash register
JPS5836388B2 (en) electronic cash register
JPS642181Y2 (en)
JPH0119197B2 (en)
JPS5833983B2 (en) electronic cash register
JPS5860338A (en) Input system for numerical data
JPS62229494A (en) Merchandise sales data processor
JPH034958B2 (en)
JPS5833981B2 (en) electronic cash register
JPH0258671B2 (en)
JPS6262398B2 (en)