Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6027434B2 - Aggregation method in electronic cash register - Google Patents
[go: Go Back, main page]

JPS6027434B2 - Aggregation method in electronic cash register - Google Patents

Aggregation method in electronic cash register

Info

Publication number
JPS6027434B2
JPS6027434B2 JP1733378A JP1733378A JPS6027434B2 JP S6027434 B2 JPS6027434 B2 JP S6027434B2 JP 1733378 A JP1733378 A JP 1733378A JP 1733378 A JP1733378 A JP 1733378A JP S6027434 B2 JPS6027434 B2 JP S6027434B2
Authority
JP
Japan
Prior art keywords
time
aggregation
register
memory
circuit
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
JP1733378A
Other languages
Japanese (ja)
Other versions
JPS54110753A (en
Inventor
哲夫 大塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP1733378A priority Critical patent/JPS6027434B2/en
Publication of JPS54110753A publication Critical patent/JPS54110753A/en
Publication of JPS6027434B2 publication Critical patent/JPS6027434B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Description

【発明の詳細な説明】 本発明は内部に時計機能を備え、指定時間帯内における
売上げ集計を自動的に行う電子式金銭登録機における集
計方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an aggregation method in an electronic cash register that has an internal clock function and automatically aggregates sales within a designated time period.

従来の電子式金銭登録機は、通常1日の終りの精算を行
なうので1日単位のデータ集計は可能であるが、任意の
時間単位の集計は行なうことができない。
Conventional electronic cash registers usually perform settlement at the end of the day, so data can be collected on a daily basis, but data cannot be collected on an arbitrary time basis.

このため1日単位ではどの様な商品がどの位売れたかを
知ることができるが、1日のうちの各時間帯における売
上げ状況については知ることができない。例えば2時間
毎における売上げ状況を知ることができれば、より細か
い資料を作成でき、経営、管理等に役立たせることがで
きる。本発明は上記の点に鑑みてなされたもので、時間
帯別集計を開始するスタート時刻と、時間帯の区分時間
を設定することにより、設定された各時間帯内における
集計を自動的に行なうことができる電子式金銭登録機に
おける集計方式を提供することを目的とする。以下図面
を参照して本発明の一実施例を説明する。
For this reason, although it is possible to know what kind of products sold and how much they sold on a daily basis, it is not possible to know the sales status at each time period of the day. For example, if you can know the sales status every two hours, you can create more detailed data and use it for management and management. The present invention has been made in view of the above points, and by setting the start time for starting aggregation by time zone and the division time of the time zone, the aggregation within each set time zone is automatically performed. The purpose of this invention is to provide an aggregation method in an electronic cash register that can perform the following tasks. An embodiment of the present invention will be described below with reference to the drawings.

まず第1図による電子式金銭登録機の前面操作部10の
構成について説明する。図中、11は商品の金額等を暦
数する金額キー、12は各商品に対する部門を指定する
部門別キー、13aは訂正キー、13bは減算キー、1
3cは現在登録中のデータの一時退避あるいは退避デー
タを呼出すキー、13dは不加算あるいは両替を指定す
るキー、13eは責任者番号を登録するキー、13fは
日時データ及び時間帯別集計のスタート時刻と区分時間
をセットするキー、13gは上記部門別キー12の各部
門及び時間帯別集計用レジスタに品番コードをプリセツ
トする品番キー、13Mまクリアキー、14は入金、出
金、クレジット等の信用売り、貸売りを指示する取引別
キー、15は加算あるいはトータルを求める場合の小計
キー、16は合計あるいは釣銭を求め、レシートを発行
するためのキーである。また、17はモードスイッチで
、「OFF」、「設定↓「登録」、「戻し↓「点検」、
「精算」の各機能を切換選択する。上記モードスイッチ
17における「OFF」は金銭登録機を使用していない
場合、「登録」は通常の金銭収受操作を行なう場合、「
戻し」は金銭登録機へ登録した金銭の一部を取消す場合
、「点検」は記憶データを破壊せずに謙出す場合、「精
算」は記憶データを読出した後にクリアする場合、「設
定」は時刻、品番等のプリセット用のデータを設定する
場合に使用される。次に第2図により本発明のシステム
構成について説明する。
First, the configuration of the front operation section 10 of the electronic cash register shown in FIG. 1 will be explained. In the figure, 11 is an amount key for calculating the amount of the product, 12 is a department key for specifying the department for each product, 13a is a correction key, 13b is a subtraction key, 1
3c is a key for temporarily saving data currently being registered or calling saved data; 13d is a key for specifying non-addition or exchange; 13e is a key for registering the person in charge number; 13f is a key for date and time data and the start time of aggregation by time zone. 13g is the product number key that presets the product number code in each department and time period aggregation register of the department key 12, 13M is the clear key, 14 is the credit for deposits, withdrawals, credits, etc. A key for each transaction instructs selling or lending, 15 is a subtotal key for calculating addition or total, and 16 is a key for calculating total or change and issuing a receipt. In addition, 17 is a mode switch, "OFF", "Setting ↓ "Registration", "Return ↓ "Inspection",
Switch and select each function of "Payment". The mode switch 17 is set to "OFF" when the cash register is not in use, and "registered" when performing normal money collection operations.
"Return" is used to cancel part of the money registered in the cash register, "Inspection" is used to remove the stored data without destroying it, "Payment" is used to clear the stored data after it has been read, and "Settings" is used to cancel part of the money registered in the cash register. Used to set preset data such as time and product number. Next, the system configuration of the present invention will be explained with reference to FIG.

図中21はCPU(中央処理装置)で、このCPU21
はメモリ回路22及び時計回路23が、データDを転送
するデータバスDB、行アドレスRAを転送する行アド
レスバスRB、列アドレスCAを転送する列アドレスバ
スCBを介して接続されている。上記〆モリ回路22及
び時計回路23はそれぞれ集積回路によって構成されて
おり、CPU21から送られてくるチップィネーブル信
号CE,,CE2によってチップ指定が行なわれると共
に、読出し/書込み信号R/W2によって読出しあるい
は書込みの指定が行なわれる。また、上記CPU21に
はデータバスDB及び列アドレスバスCBを介して1/
0ボート24が接続される。この1/0ボート24には
CPU21からオペレーション信号Jが与えられる。こ
のオペレーション信号Jは、列アドレスバスCBを介し
てCPU21から送られてくる信号が、アドレスか命令
かを区別するためのものである。そして、上記1/0ボ
ート24にはキー入力部25、表示部26、印字部27
が接続される。上記キー入力部25は、キー操作も行な
った場合、1/0ボート24からのタイミング信号KP
に従ってキー入力信号KIを1/0ボート24内の入力
用バッファ(図示せず)へ入力する。また、表示部26
は1/0ボート24からのデイジツト信号DG及び1/
0ボート24の表示用バッファ(図示せず)内のデータ
をデコードしたセグメント信号SGに従って表示動作を
行なう。印字部27は例えばラインプリンタから成り、
印字ドラムの印字位置信号Tを1/0ボート24へ送り
、この印字位置信号Tと1/0ボート24の印字用バッ
ファ(図示せず)内のデータとの一致によって生じたハ
ンマ駆動信号MDによりハンマを駆動し、レシート用紙
並びにジャーナル用紙に対する印字を行なっている。次
に第3図により上記CPU21の詳細について説明する
21 in the figure is a CPU (central processing unit), and this CPU21
A memory circuit 22 and a clock circuit 23 are connected via a data bus DB for transferring data D, a row address bus RB for transferring row addresses RA, and a column address bus CB for transferring column addresses CA. The clock circuit 22 and the clock circuit 23 are each formed of an integrated circuit, and the chips are specified by the chip enable signals CE, CE2 sent from the CPU 21, and read/write by the read/write signal R/W2. Alternatively, writing is specified. Further, the CPU 21 is connected to the 1/1/2
0 boat 24 is connected. This 1/0 boat 24 is given an operation signal J from the CPU 21. This operation signal J is used to distinguish whether the signal sent from the CPU 21 via the column address bus CB is an address or a command. The 1/0 boat 24 has a key input section 25, a display section 26, and a printing section 27.
is connected. When the key input section 25 also performs a key operation, the timing signal KP from the 1/0 boat 24 is output.
Accordingly, the key input signal KI is input to an input buffer (not shown) in the 1/0 port 24. In addition, the display section 26
is the digit signal DG from the 1/0 boat 24 and the 1/0
A display operation is performed according to a segment signal SG obtained by decoding data in a display buffer (not shown) of the 0 port 24. The printing section 27 consists of, for example, a line printer,
The print position signal T of the print drum is sent to the 1/0 boat 24, and the hammer drive signal MD generated by the coincidence of this print position signal T and the data in the print buffer (not shown) of the 1/0 boat 24 is used. The hammer is driven to print on receipt paper and journal paper. Next, details of the CPU 21 will be explained with reference to FIG.

図中31は各種マイクロ命令がストアされている制御部
である。
In the figure, numeral 31 is a control section in which various microinstructions are stored.

そして、該制御部31からは、後述する演算用メモリで
あるRAM32の被演算数を記憶しているレジスタの行
アドレスを指定する信号SU、演算数を記憶しているレ
ジスタの行アドレスを指定する信号FU、被演算数を記
憶しているレジスタの列アドレスあるいは処理開始列ア
ドレスを指定する信号SL及び演算数を記憶しているレ
ジスタの列アドレスあるいは処理終了列アドレスを指定
する信号FL、数値コード信号C○、演算命令、転送命
令等のオペレーションコードOP、自己の次アドレス指
定する信号NAが各々バスラィンa〜gを介して並列的
に出力している。そして、バスラインgを介して出力す
る信号NAは、アドレス変換回路30を介してバッファ
レジスタ33に一時的に記憶される。バッファレジスタ
33の出力は、アドレス部34に入力する。このアドレ
ス部34は、バッファレジスタ33から入力される信号
に従って制御部31のアドレス指定を行なう。またオペ
レーションコードOPはバスラインfを介してオペレー
ションデコーダ35に供給される。このオペレーション
デコーダ35はオペレーションコードOPをデコードし
てタイミング制御回路36へ与える。このタイミング制
御回路36は、オペレーションデコーダ35からの指令
及びタイミング信号発生回路37から与えられるタイミ
ング信号に従ってゲート制御信号を38,39等のゲー
ト回路へ、アップ/ダウンカウント指令をカウンタ40
へ、一致検出指令を一致回路41へ、加算/減算指令を
アダー回路46へ、判断指令をアドレス変換回路30へ
、議出し/書込み指令R/W,をRAM32へ各々出力
する。更に、読出し/書込み指令R/W2をメモリ回路
22及び時計回路23へ、オペレーション信号Jを1/
0ボート24へ出力する。しかして、上記制御部31か
ら出力される行指定アドレスSU及びFUは、各々バス
ラィンa,gを介してゲート回路38に印加され、これ
らゲート回路38の出力は、バスラインhを介してRA
M32の行アドレス入力端子UAに入力する。
Then, the control unit 31 sends a signal SU that specifies the row address of the register storing the operands of the RAM 32, which is a memory for calculations to be described later, and a signal SU specifying the row address of the register storing the operands. Signal FU, signal SL that specifies the column address of the register that stores the operand or the processing start column address, signal FL that specifies the column address of the register that stores the operand or the processing end column address, and a numerical code. A signal C○, an operation code OP such as an arithmetic command or a transfer command, and a signal NA specifying its own next address are output in parallel via bus lines a to g, respectively. The signal NA output via the bus line g is temporarily stored in the buffer register 33 via the address conversion circuit 30. The output of the buffer register 33 is input to the address section 34. The address section 34 specifies the address of the control section 31 according to a signal input from the buffer register 33. Further, the operation code OP is supplied to the operation decoder 35 via the bus line f. The operation decoder 35 decodes the operation code OP and supplies it to the timing control circuit 36. This timing control circuit 36 sends a gate control signal to gate circuits 38, 39, etc. according to a command from an operation decoder 35 and a timing signal given from a timing signal generation circuit 37, and sends an up/down count command to a counter 40.
, a match detection command is output to the match circuit 41, an addition/subtraction command is output to the adder circuit 46, a judgment command is output to the address conversion circuit 30, and a proposal/write command R/W is output to the RAM 32. Furthermore, the read/write command R/W2 is sent to the memory circuit 22 and the clock circuit 23, and the operation signal J is sent to the memory circuit 22 and the clock circuit 23.
Output to 0 port 24. The row designation addresses SU and FU outputted from the control section 31 are applied to the gate circuit 38 via bus lines a and g, respectively, and the outputs of these gate circuits 38 are applied to the RA via the bus line h.
It is input to the row address input terminal UA of M32.

また、制御部31から出力されるRAM32は列アドレ
スあるいは処理開始列指定アドレスSL及び列アドレス
あるいは処理終了列指定アドレスFLはそれぞれバスラ
インc,dを介してゲート回路39に加えられる。そし
て、上記ゲート回路39の出力はバスラインiに出力さ
れ、RAM32の列アドレス入力端子LAに入力すると
共に、列アドレスCAとして外部に出力される。また、
上記ゲート回路39の出力は、カウンタ40へ供給され
る。このカウンタ40は、所定のタイミング信号により
カウント動作を行なうもので、通常はタイミング信号が
入力される毎に1ずつカウントアップするが、上記タイ
ミング制御回路36からダウンカウント指令が与えられ
た場合にはタイミング信号が入力される毎に1ずつダウ
ンカウントする。そして、上記カウンタ40の出力はR
AM32の列アドレス入力端子LA及び上記外部へ送ら
れると共に一致回路41の一方の入力端に加えられる。
この一致回路41の他方の入力端には制御部31からバ
スラインdに出力される処理終了列指定アドレスFLが
与えられる。この一致回路41の一致出力はタイミング
制御回路36へ入力される。一方上記演算用メモリであ
るRAM32は、例えば第4図に示すような構成になっ
ており、その行は前記行指定アドレスFUあるいはSU
より出力される行アドレスによってアドレス指定される
Further, the column address or processing start column designation address SL and the column address or processing end column designation address FL outputted from the RAM 32 from the control section 31 are applied to the gate circuit 39 via bus lines c and d, respectively. The output of the gate circuit 39 is outputted to the bus line i, inputted to the column address input terminal LA of the RAM 32, and outputted to the outside as a column address CA. Also,
The output of the gate circuit 39 is supplied to a counter 40. This counter 40 performs a counting operation based on a predetermined timing signal, and normally counts up by one each time a timing signal is input, but when a down-count command is given from the timing control circuit 36, Each time a timing signal is input, it counts down by one. Then, the output of the counter 40 is R
It is sent to the column address input terminal LA of AM32 and the above-mentioned outside, and is also applied to one input terminal of the matching circuit 41.
The other input terminal of the matching circuit 41 is given a processing end column designation address FL output from the control section 31 to the bus line d. The coincidence output of this coincidence circuit 41 is input to the timing control circuit 36. On the other hand, the RAM 32, which is the arithmetic memory, has a configuration as shown in FIG.
Addressed by the row address output by

また、その桁は前記列指定アドレスFLあるいはSLに
よって指定され、謙出し、書込みはタイミング制御回路
36から出力される読出しノ書込み指令R/W,により
指定される。しかして、上記行及び列アドレスによりア
ドレス指定された演算数、被演算数、あるいは転送等の
ために謙出されたデータは、出力端子ODより並列4ビ
ットのデータとして出力され、ゲート回路42を介して
ラッチ回路43,44へ送られる。そして、上記ラツチ
回路43の出力は、ゲート回路45を介してアダー回路
46の入力端bに供給されると共にバッファ47へ送ら
れる。このバッファ47は所定のタイミング信号により
入力信号を読込むもので、その出力は行アドレスRAと
して外部に出力される。また、上記ラツチ回路44の出
力はゲート回路48を介してデータバスDBに出力され
ると共にアダー回路46の入力端a及び所定のタイミン
グ信号により議込み動作を行なうバッファ49に加えら
れる。このバッファ49に貯えられたデータはデコーダ
50によりデコ‐ドミれ、チップイネーブル信号CE,
,CB2として外部に出力される。このチップィネープ
ル信号CE,が出力されたときはメモリ回路22、CE
2が出力されたときは時計回路23がCPU21と接続
される。また、上記アダー回路46の出力端cから出力
されるキャリ−信号は、アダー回路46の出力端dから
オア回路51を介して取出されるデータと共にアドレス
変換回路30へ入力される。さらに、アダ−回路46の
出力端dから出力されるデータは、データバスDBを介
して外部から入力されるデータと共にゲート回路52に
加えられ、このゲート回路52の出力はRAM32のデ
ータ入力端mに加えられる。上記ゲート回路52及び前
記ゲート回路38,39,42,45,48は、タイミ
ング制御回路36から出力される信号によって制御され
る。第4図は上記RAM32の構成図である。
Further, the digit is designated by the column designation address FL or SL, and the reading and writing are designated by the read/write command R/W output from the timing control circuit 36. Therefore, the operands and operands addressed by the row and column addresses, or the data output for transfer, etc., are output as parallel 4-bit data from the output terminal OD, and are sent to the gate circuit 42. The signal is sent to latch circuits 43 and 44 via the signal. The output of the latch circuit 43 is supplied to the input end b of the adder circuit 46 via the gate circuit 45 and is also sent to the buffer 47. This buffer 47 reads an input signal according to a predetermined timing signal, and its output is outputted to the outside as a row address RA. Further, the output of the latch circuit 44 is output to the data bus DB via the gate circuit 48, and is also applied to the input terminal a of the adder circuit 46 and a buffer 49 which performs an interrupt operation according to a predetermined timing signal. The data stored in this buffer 49 is decoded by the decoder 50, and the chip enable signal CE,
, CB2. When this chip enable signal CE is output, the memory circuit 22, CE
When 2 is output, the clock circuit 23 is connected to the CPU 21. Further, the carry signal outputted from the output terminal c of the adder circuit 46 is inputted to the address conversion circuit 30 together with the data taken out from the output terminal d of the adder circuit 46 via the OR circuit 51. Furthermore, the data output from the output terminal d of the adder circuit 46 is applied to the gate circuit 52 along with the data input from the outside via the data bus DB, and the output of this gate circuit 52 is applied to the data input terminal m of the RAM 32. added to. The gate circuit 52 and the gate circuits 38, 39, 42, 45, and 48 are controlled by a signal output from the timing control circuit 36. FIG. 4 is a configuration diagram of the RAM 32.

4行2の行から成り、0行目のAcclは演算・表示用
レジスタで、キー入力部25で暦数されたデータはこの
Acclに入力される。
It consists of 4 lines and 2 lines, and the 0th line Accl is a calculation/display register, and the data entered by the calendar number using the key input section 25 is input to this Accl.

Acc2は演算補助用レジス夕である。またAcc3は
メモリ回路22との転送用レジスタで、メモリ回路22
内のデータ同士の演算はできないのでRAM32へ転送
してCPU21内で演算を行なう。3行目のADCはア
ドレスカウンタで、この内容は行アドレスバスRBを介
してメモリ回路22の行アドレスを指定する。
Acc2 is a calculation assisting register. Further, Acc3 is a register for transfer with the memory circuit 22.
Since it is not possible to perform arithmetic operations on the data within, the data is transferred to the RAM 32 and arithmetic operations are performed within the CPU 21. The ADC on the third row is an address counter, and its contents specify the row address of the memory circuit 22 via the row address bus RB.

CNTはメモリ回路22のレジス夕を順番に指定してい
くとき、メモリの本数をカウントするカウンタである。
またHINはメモリ回路22の品番コード記憶領域から
品番コードを呼び出して記憶する領域である。Kは、品
番コードを時間帯別集計用メモリにプリセットするとき
の初期状態判別用フラッグである。一方、時計回路23
は例えば水晶発振器の発振周波数を分周して時刻を計時
しており、CPU21からのチップネーブル信号CE2
によりCPU21と接続される。
CNT is a counter that counts the number of memories when registers of the memory circuit 22 are specified in order.
Further, HIN is an area for reading and storing a product number code from the product number code storage area of the memory circuit 22. K is a flag for determining the initial state when the product number code is preset in the memory for time period aggregation. On the other hand, the clock circuit 23
For example, the oscillation frequency of a crystal oscillator is divided to measure time, and the chip enable signal CE2 from the CPU 21
It is connected to the CPU 21 by.

そして同じくCPU21からの議出し/書込み命令R/
W2によりCPU21へデータ(計時情報すなわち現在
時刻)を読出すか、CPU21からデータ(時刻データ
)を書込むかを制御される。そのときの時計回路23内
のデータ記憶領域はCPU21からの行アドレスRAと
列アドレスCAによって指定され、時刻データはデータ
バスDBを介して授受される。第5図は第2図において
メモリ回路22の構成図である。
Similarly, the CPU 21 issues a proposal/write command R/
W2 controls whether data (timekeeping information, ie, current time) is read to the CPU 21 or data (time data) is written from the CPU 21. The data storage area in the clock circuit 23 at that time is designated by the row address RA and column address CA from the CPU 21, and time data is exchanged via the data bus DB. FIG. 5 is a block diagram of the memory circuit 22 in FIG. 2.

31行2の行から成り、0行目のSTMは時間帯別集計
のスタート時刻記憶領域、T,は区分時間記憶領域で、
TM,,TM2.P,Fは各々時間帯別集計動作に必要
な記憶領域である。
Consisting of 31 lines and 2 lines, STM in the 0th line is a storage area for the start time of aggregation by time zone, T is a storage area for segmented time,
TM,,TM2. P and F are storage areas required for the time period aggregation operation.

また1行目〜9行目は部門別合計レジスタで、1819
桁の「20」はこのレジスタが部門別合計用であること
を示すプログラムコード、12〜14桁の「101」〜
「108」は部門1〜部門8に対応する品番コードであ
る。KOSはその部門の売上げ個数、KINは売上げ金
額記憶用の領域である。10行目〜29行目は時間帯別
集計用レジスタで、「33」は時間帯別集計用であるこ
とを示すプログラムコード、TCDはその時間帯別集計
用レジスタにどの品番の部門の売上げを集計するかを示
す品番コード記憶用領域である。
Also, the 1st to 9th lines are the departmental total registers, 1819
The digit "20" is the program code indicating that this register is for departmental totals, and the 12th to 14th digits "101" ~
“108” is the product number code corresponding to departments 1 to 8. KOS is an area for storing the number of units sold in that department, and KIN is an area for storing the amount of sales. The 10th to 29th lines are registers for time period aggregation, "33" is the program code indicating that it is for time period aggregation, and TCD stores the sales of which product number department in the time period aggregation register. This is an area for storing a product number code indicating whether to total.

なお、3の;目の18〜19行の「99」は、ここで時
間帯別集計レジスタが終りであることを示すプログラム
コードである。上記1〜3の守目のレジスタを多目的メ
モリといい、プログラムコードを変えることにより種々
の用途に用いることができる。次に上記のように構成さ
れた本実施列の動作を第6〜第9図のフローチャートを
参照して説明する。
Note that "99" in the 18th and 19th lines of the 3rd column is a program code indicating that the time period total register ends here. The registers 1 to 3 above are called multipurpose memory, and can be used for various purposes by changing the program code. Next, the operation of this embodiment constructed as described above will be explained with reference to the flowcharts of FIGS. 6 to 9.

第6図は時間帯別集計用データのプリセット方法を示す
もので、初めに第1図のモードスイッチ17を設定の位
置にしておき、金額キー11により区分時間を2桁の分
単位で暦数する。
FIG. 6 shows a method of presetting data for time period aggregation. First, set the mode switch 17 shown in FIG. do.

続いてスタート時刻を4桁の時分で燈数する。例えば「
601030」と層数したとすると、10時30分から
60分間隔で時間帯別集計を行なうという意味になる。
そして日時キー13fを押すと、第6図のフローがスタ
ートする。つまり区分時間がキー入力部25から1/0
ボート24を介してCPU21のメモリ回路22内のT
,に、スタ−ト時刻がSTMに記憶される。第7図はど
の品番の品物について時間帯別集計を行なうかをプリセ
ットする方法を示すもので、まず金額キー11により品
番コード例えば「101」を直数し、品番キー13gを
押すと、1番最初の時間帯別集計用レジスタすなわちメ
モリ回路22の10行目が品番「101」の時間帯別集
計用レジスタとして指定され、スタート時刻と区分時闇
を上記プリセット例に従えば、1餌時30分〜11時3
0分までの60分間の売上げがこのレジス夕に集計され
ることになる。
Next, indicate the start time using four-digit hours and minutes. for example"
If we assume that the number of layers is ``601030'', this means that the data will be counted by time zone every 60 minutes starting at 10:30.
Then, when the date and time key 13f is pressed, the flow shown in FIG. 6 starts. In other words, the division time is 1/0 from the key input section 25.
T in the memory circuit 22 of the CPU 21 via the boat 24
, the start time is stored in the STM. FIG. 7 shows a method for presetting which product number is to be aggregated by time period. First, use the amount key 11 to directly enter the product number code, for example "101", and press the product number key 13g. The first register for counting by time period, that is, the 10th line of the memory circuit 22, is designated as the register for counting by time period for product number "101", and if the start time and division time are set according to the above preset example, then 30 at the time of one feeding. minutes to 11:03
Sales for the 60 minutes up to 0 minutes will be tallied this Regis evening.

続いて品番キー13gを押すと、11行目が指定される
。すなわち、品番キー13gを押した回数分のレジスタ
が、品番「101」の時間帯別集計用として用意される
わけである。第7図のフローは品番キー13gの操作に
よりスタートし、最初のS,でRAM32内のフラッグ
Kが初めは「0」であるからS2へ進み、同じくRAM
32内のアドレスカウンタADCにn0」をセットする
。アドレスカウンタADCはメモリ回路22の行アドレ
スを指定するものであるから、「10」をセットする意
味は、時間帯別集計用レジスタの一番上の行アドレス「
10」をセットすることである。S3はアドレスカウン
タADCに指定されたレジスタのプログラムコードPC
Dが「99」であるかを判断し、「99」であれが時間
帯別集計用レジスタが終っていることを示しているから
、エラーとなる。S4にてフラッグKに「K」を立て、
S5ではRAM32のAccl内にデータがあるか否か
を判断する。これは品番コード置換数の品番キーか、層
数なしの品番キーかを判断するためであり、1回目は「
101」を層数しているからS6でAccl内の品番コ
ードをメモIJ回路22のPに書込む。そしてS7でP
の内容をアドレスカウンタADCに指定されたレジスタ
のTCDに転送する。ただし、Pの内容を−亘CPU2
1内のRAM32(例えばAcc3)に転送してから、
TCDへ転送することは言うまでもない。以上の動作終
了後、アドレスカウンタADCを1加算して次の品番キ
ー13gの操作を待機する。この例では時間帯別集計用
レジスタが1の守目〜2玖;目まで20本あるので、そ
のうち16本を品番「101」用に設定したとする。
Next, when the product number key 13g is pressed, the 11th line is designated. In other words, registers corresponding to the number of times the product number key 13g is pressed are prepared for counting product number "101" by time period. The flow shown in Fig. 7 starts with the operation of the product number key 13g, and at the first S, the flag K in the RAM 32 is initially "0", so it advances to S2, and the RAM
"n0" is set in the address counter ADC in 32. Since the address counter ADC specifies the row address of the memory circuit 22, the meaning of setting "10" is to specify the top row address "10" of the register for counting by time period.
10". S3 is the program code PC of the register specified by the address counter ADC
It is determined whether D is ``99'', and since ``99'' indicates that the register for counting by time period has ended, an error occurs. Set "K" on flag K at S4,
In S5, it is determined whether there is data in Accl of the RAM 32. This is to determine whether it is a product number key with the number of product number code replacements or a product number key without the number of layers, and the first time is
Since the number of layers is "101", the product number code in Accl is written to P of the memo IJ circuit 22 in S6. And P in S7
The contents of are transferred to the TCD of the register specified by the address counter ADC. However, the contents of P -WataruCPU2
After transferring it to RAM32 (for example, Acc3) in 1,
Needless to say, it is transferred to TCD. After the above operations are completed, the address counter ADC is incremented by 1 and the next operation of the product number key 13g is awaited. In this example, there are 20 registers for counting by time zone from 1st to 2nd, so let us assume that 16 of them are set for product number "101".

つまり1の庁目は1畑時30分〜11時30分、11行
目は11時30分〜12時30分、そして23庁目は1
時30分〜2時30分の売上げが集計される。続いて第
8図のフローにより本発明の集計方式を説明する。
In other words, the 1st office is from 1 field: 30:30 to 11:30, the 11th office is from 11:30 to 12:30, and the 23rd office is from 1:30 to 11:30.
Sales from 1:30 p.m. to 2:30 p.m. are totaled. Next, the aggregation method of the present invention will be explained with reference to the flow shown in FIG.

モードスイッチ17を登録の位置にセットし、売上げが
あると金額キー11により金額を暦数した後、その品物
の品番が属する部門別キー12を押す。
The mode switch 17 is set to the registration position, and when there is a sale, the amount is counted using the amount key 11, and then the department key 12 to which the product number of the item belongs is pressed.

例えば品番「101」の品物だったとして、部門1に品
番「101」がプリセットされているから、部戸脇山キ
ー12の「01」のキーを押す。すると第8図のフロー
がスタートする。S,。
For example, if it is an item with the product number "101", the product number "101" is preset in the department 1, so the "01" key of the department wakiyama key 12 is pressed. Then, the flow shown in FIG. 8 starts. S.

では、部門1すなわちメモリ回路22の1行目の12〜
14行‘こプリセットされている品番コ−ド「101」
がRAM32の領域Hmに書込まれるS,.,S.2で
アドレスカウンタADCに「1」を、CNTに「0」を
セットする。S,3では、アドレスカウンタADCによ
って指定されたメモリ回路22のレジスタのプログラム
コードが33か否か、つまり時間帯別集計用レジスタか
否かを判断する。このレジスタでは上述した如く多目的
メモリ(プログラムにより種種の用途に使えるメモリ)
を1行目〜2餅守目としており、1〜9行目を部門別、
10〜2餅;目を時間帯別集計用として各々プログラム
によりプログラムコード(PCD)がプリセットされて
いる。従って多目的メモリの最初のアドレス「1」から
順番に、時間帯別集計用のプログラムコード「33」が
プリセツトされているか否かを調べるのである。ここで
は1行目はPCD=20であり、S,4へ進む。S,4
は上記S3と岡目的で設けたもので、PCDが「99」
でなければS,5へ進む。そしてアドレスカウンタAD
Cを1つカウントアップしてS,3へ戻る。次に2行目
のFCDを見ることになる。このようにして1の庁目ま
で来たとき、PCD=33を検出して、S,6へと進む
。S,6では、そのレジスタのTCDの内容が、RAM
32のHINの内容と一致しているか否かを判断する。
これは時間帯別集計用レジスタであっても、どの品種が
プリセットされているかわからないからである。第6図
のフローによりその時間帯的レジスタのTCDにプリセ
ットされたコードと、S,oにてHmに書込まれたコー
ドが一致しなければS,5で虹にをカウントアップして
次のレジスタを調べにかかる。ここでは一致するから、
S,7へ進む。ここからは、現在時刻がそのレジスタに
設定された時間帯の中にはいっているか判断するもので
ある。TM,にはそのレジスタに設定された時間帯の上
限、T地には下限がはいる。すなわち、S,7の演算を
行なうにあたって、CNTは「0」であるから、初めは
TM.にSTMの内容がはいる。次にS,8でCNTに
1加算した後S,9の演算により、TM2には上記ST
Mの内容に区分時間T,を加算したものがはいる。S2
。でフラッグFに「0」をセットしてからS2,で、T
M,の内容と現在時刻を比鮫する。現在時刻は、時計回
路23から、データバスDBを介してRAM32のAc
c2に転送されてくる。そしてTM,の内容がAcc3
に転送され、Acc2とAcc3とで比較が行なわれる
。現在時刻がTM,より大きければ、そのレジスタの時
間帯の中にはいっている可能性があり、S22でフラッ
グFを1加算する。更にまたS23にて現在時刻がTM
2より小さければそのレジスタの時間帯に現在時刻がは
いっていることが確定し、S24でフラッグFを「2」
とする。次に、S25で、TM,>TM2と判断された
場合は、その時間帯が2餌時をまたいでいることを意味
する。例えば19;目のレジスタは24時30分〜1時
30分が設定されており、TM,が2■馬30分、TA
2が1時3び分ということになる。この場合はS26に
てフラッグFを1加算し、現在時刻がその間にはいって
いながらS2,でTM,>現時刻と判断されてS滋を実
行しない場合に対する修正を行なう。従って、フラッグ
Fが「2」のときのみ、そのレジス夕の時間帯の中に現
在時刻がはいっていることになり、それをS27にて判
断し、フラッグFが「2」でなければS,5でアドレス
カウンタADCを1加算して次のレジスタを指定する。
フラッグFが「2」のときは、Accl内の個数をその
レジスタのKOSに加算し、金額をKINに加算してこ
の商品の登録が完了する。ところで、最近の電子式金銭
登録機には点検あるいは精算の際に記憶データを印字出
力する場合、レジスタの内容が「0」であるとそのレジ
スタの内容は印字しないゼロスキップ機能がついている
。しかし、本発明のように時間帯別集計を行なう電子式
金銭登録機においては、時間帯別集計データのみはゼロ
スキツブさせずに、すべて印字出力する必要がある。た
とえそのレジスタの内容が「0」であってもその時間帯
には売上げがなかったという情報となり、意味があるか
らである。そこで、点検あるいは精算のとき、第9図の
ようなフローを実行する。すなわちS3。で、プログラ
ムコードが「33」であればそれは時間帯別集計用レジ
スタであるから無条件に印字する。プログラムコードが
「33」でないレジスタについては、金額(KIN)も
個数(KOS)も「0」のもののみ印字しない(ゼロス
キップする)わけである。なお、本実施例においては、
説明の簡略化のために部門1の品物の売上げについての
み時間帯別集計を行なったが、複数の部門、或いは責任
者別、取引別売上げ等の時間帯別集計も可能である。ま
た、スタート時刻記憶領域と区分時間記憶領域を複数設
け、それぞれにプログラムコードを対応させ、集計演算
の毎に照会するようにすれば、例えば部門別売上げと責
任者別売上げを異なった時間帯別に集計するとか、同一
部門について複数の時間帯別に集計する等が可能である
。以上述べたように本発明によれば、時計機能を備え、
売上げ処理時に上記時計機能による計時時刻と設定時間
帯を比較して設定時間帯別に各種集計処理を行なうよう
にしたので、予め時間帯別集計スタート時刻及び区分時
間を設定するだけで、各々の時間帯の時刻を一々設定し
なくとも、自動的に区分時間毎に複数の時間帯を設定で
き、各設定時間帯内における売上げ集計を行なうことが
できる。このため、各時間帯における売上げ状況等を知
ることが出来、例えばオペレータの交代、あるいは商品
の補充等のより細かい資料を作成し得、経営、管理等に
極めて役立つものとすることが出来る等種々の利点を有
する。
Now, section 1, that is, 12 to 12 of the first row of the memory circuit 22.
Line 14: Preset product number code "101"
S, . are written in the area Hm of the RAM 32. ,S. At step 2, address counter ADC is set to "1" and CNT is set to "0". In S, 3, it is determined whether the program code of the register of the memory circuit 22 designated by the address counter ADC is 33, that is, whether it is a register for time period aggregation. As mentioned above, this register is a multi-purpose memory (memory that can be used for various purposes depending on the program).
The 1st to 2nd rows are Mochimori, and the 1st to 9th rows are divided by category.
A program code (PCD) is preset by a program for each of the 10 to 2 mochis to be counted by time period. Therefore, it is checked in order from the first address ``1'' of the multi-purpose memory whether or not the program code ``33'' for time period aggregation is preset. Here, the first line is PCD=20, and the process advances to S,4. S, 4
was created for the purpose of S3 and Oka, and the PCD is "99".
Otherwise, proceed to S, 5. and address counter AD
Count up C by 1 and return to S, 3. Next, we will look at the FCD on the second line. When the first position is reached in this way, PCD=33 is detected and the process proceeds to S, 6. In S,6, the contents of the TCD of that register are stored in RAM.
It is determined whether the contents match the contents of HIN No. 32 or not.
This is because even if it is a register for aggregation by time period, it is not known which product type is preset. If the code preset in the TCD of the time zone register and the code written in Hm at S, o do not match according to the flow shown in Fig. 6, the number is counted up at S, 5 and the next Start checking the register. Since it matches here,
Proceed to S, 7. From here, it is determined whether the current time is within the time zone set in the register. TM contains the upper limit of the time period set in that register, and T contains the lower limit. That is, when performing the operation of S,7, since CNT is "0", TM. contains STM contents. Next, after adding 1 to CNT at S, 8, the above ST is added to TM2 by the operation at S, 9.
The content of M plus the segment time T is included. S2
. Set flag F to "0" in S2, then T
Compare the contents of M and the current time. The current time is sent from the clock circuit 23 to the AC memory of the RAM 32 via the data bus DB.
It will be forwarded to c2. And the contents of TM, are Acc3
Acc2 and Acc3 are compared. If the current time is greater than TM, there is a possibility that the current time is within the time zone of that register, and the flag F is incremented by 1 in S22. Furthermore, in S23, the current time is changed to TM.
If it is smaller than 2, it is determined that the current time is in the time zone of that register, and flag F is set to "2" in S24.
shall be. Next, in S25, if it is determined that TM,>TM2, it means that the time period straddles two feeding times. For example, the 19;th register is set from 24:30 to 1:30, TM, is 2 ■ Horse 30 minutes, and TA
2 means 1 hour and 3 minutes. In this case, the flag F is incremented by 1 in S26, and a correction is made for the case where it is determined in S2 that TM>current time and S is not executed even though the current time is within that period. Therefore, only when the flag F is "2", the current time falls within the time zone of the register evening, and this is determined in S27, and if the flag F is not "2", the S. 5, the address counter ADC is incremented by 1 and the next register is specified.
When the flag F is "2", the number in Accl is added to the KOS of that register, and the amount is added to KIN, completing the registration of this product. By the way, recent electronic cash registers have a zero-skip function that does not print out the contents of the register if the contents of the register are "0" when printing out stored data at the time of inspection or payment. However, in an electronic cash register that performs time-based totals like the present invention, it is necessary to print out all the time-based total data without skipping zeros. This is because even if the contents of the register are "0", it is meaningful because it is information that there were no sales during that time period. Therefore, at the time of inspection or payment, the flow shown in FIG. 9 is executed. That is, S3. If the program code is "33", it is a register for counting by time zone, so it is printed out unconditionally. For registers whose program code is not "33", only those whose amount (KIN) and number (KOS) are "0" are not printed (zero skipped). In addition, in this example,
To simplify the explanation, only sales of items in department 1 were aggregated by time period, but it is also possible to aggregate sales by time period, such as by multiple departments, by person in charge, or by transaction. Also, if you create multiple start time storage areas and segment time storage areas, associate program codes with each, and query them every time you perform aggregation calculations, you can, for example, store sales by department and sales by manager in different time zones. It is possible to aggregate the information, or to aggregate the same department by multiple time periods. As described above, according to the present invention, the clock function is provided,
When processing sales, the time measured by the clock function described above is compared with the set time period, and various aggregation processes are performed for each set time period. Therefore, by simply setting the aggregation start time and segment time for each time period in advance, each time period can be calculated. A plurality of time slots can be automatically set for each time slot without setting the time for each slot, and sales can be totaled within each set time slot. Therefore, it is possible to know the sales status in each time period, and it is possible to create more detailed information such as changes in operators or replenishment of products, which can be extremely useful for management, etc. It has the following advantages.

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

図面は本発明の一実施例を示すもので、第1図は前面操
作部のキー類配置状態を示す図、第2図は全体的な回路
構成を示すシステム構成図、第3図は第2図における中
央処理装置(CPU)の詳細を示すブロック図、第4図
は上記CPU内のRAMの構成図、第5図は第2図にお
けるメモリ回路の構成図、第6図乃至第9図は本発明の
動作を説明するためのフローチャートである。 10・・・・・・操作部、21・・・・・・CPU、2
2・・・・・・メモリ回路、23・・・・・・時計回路
、24・・・・・・1/0ボート、STM・・・・・・
時間帯別集計スタート時刻記憶領域、T.・・・・・・
区分時間記憶領域。 第1図図 N 船 図 の 船 第4図 第5図 第6図 第7図 第8図 第9図
The drawings show one embodiment of the present invention; FIG. 1 is a diagram showing the arrangement of keys on the front operation section, FIG. 2 is a system configuration diagram showing the overall circuit configuration, and FIG. 4 is a block diagram showing the details of the central processing unit (CPU) in the figure, FIG. 4 is a configuration diagram of the RAM in the CPU, FIG. 5 is a configuration diagram of the memory circuit in FIG. 2, and FIGS. 6 to 9 are 3 is a flowchart for explaining the operation of the present invention. 10...Operation unit, 21...CPU, 2
2...Memory circuit, 23...Clock circuit, 24...1/0 boat, STM...
Time period aggregation start time storage area, T.・・・・・・
Partitioned time storage. Figure 1 Figure N Boat chart Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9

Claims (1)

【特許請求の範囲】[Claims] 1 売上げ商品に対する各種累積演算を行う電子式金銭
登録機において、現在時刻を計時する時計回路と、初期
設定された時間帯別集計の開始時刻と集計単位時間とを
記憶するメモリと、上記時間帯別集計開始時刻と集計単
位時間とから集計すべき時間帯の実時間を得る演算処理
手段と、この演算処理手段より得た時間長が等しい複数
の時間帯に応じて設定される複数の時間帯別集計用メモ
リと、登録操作時に、上記時計回路の現在時刻が上記実
時間のどの時間範囲内にあるか否かを判断する判断手段
と、この判断手段の結果に対応する時間帯別集計用メモ
リを選択し、該時間帯別集計用メモリに入力データを登
録集計する手段とを具備したことを特徴とする電子式金
銭登録機における集計方式。
1. In an electronic cash register that performs various cumulative calculations on sales products, a clock circuit that measures the current time, a memory that stores the initial set start time and aggregation unit time of aggregation by time zone, and A calculation processing means for obtaining the actual time of the time period to be aggregated from the separate aggregation start time and the aggregation unit time, and a plurality of time periods set according to the plurality of time periods having the same time length obtained by the calculation processing means. a separate memory for aggregation; a determination means for determining whether or not the current time of the clock circuit falls within the above-mentioned real time during a registration operation; and a time period-specific aggregation memory corresponding to the result of this determination means. 1. A counting method in an electronic cash register, comprising means for selecting a memory and registering and tallying input data in the memory for counting by time period.
JP1733378A 1978-02-17 1978-02-17 Aggregation method in electronic cash register Expired JPS6027434B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1733378A JPS6027434B2 (en) 1978-02-17 1978-02-17 Aggregation method in electronic cash register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1733378A JPS6027434B2 (en) 1978-02-17 1978-02-17 Aggregation method in electronic cash register

Publications (2)

Publication Number Publication Date
JPS54110753A JPS54110753A (en) 1979-08-30
JPS6027434B2 true JPS6027434B2 (en) 1985-06-28

Family

ID=11941120

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1733378A Expired JPS6027434B2 (en) 1978-02-17 1978-02-17 Aggregation method in electronic cash register

Country Status (1)

Country Link
JP (1) JPS6027434B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0196938A (en) * 1987-10-09 1989-04-14 Sanken Electric Co Ltd Capillary for wire bonding

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS553017A (en) * 1978-06-20 1980-01-10 Tokyo Electric Co Ltd Electronic cash register
JPS56127269A (en) * 1980-03-10 1981-10-05 Casio Comput Co Ltd Totalizing system based on time band
JPS5710864A (en) * 1980-06-23 1982-01-20 Sharp Corp Cash register
JPS5723170A (en) * 1980-07-17 1982-02-06 Sharp Corp Cash register
JP2557540B2 (en) * 1990-02-27 1996-11-27 シャープ株式会社 Electronic cash register

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0196938A (en) * 1987-10-09 1989-04-14 Sanken Electric Co Ltd Capillary for wire bonding

Also Published As

Publication number Publication date
JPS54110753A (en) 1979-08-30

Similar Documents

Publication Publication Date Title
JPS6027434B2 (en) Aggregation method in electronic cash register
JPS6057635B2 (en) Preset registration method
JPS6053360B2 (en) Aggregation method in cash register
JPS6235715B2 (en)
JPS6239465B2 (en)
JPS6226517B2 (en)
JPS6226516B2 (en)
JPH0668794B2 (en) Electronic cash register
JPS6246908B2 (en)
JPS5834521Y2 (en) electronic cash register
JP2589810B2 (en) Product sales data processing device
JPH0363120B2 (en)
JPH0658705B2 (en) Electronic cash register
JPS5831623B2 (en) electronic cash register
JPS6237796A (en) Cash register
JPS62164195A (en) POS terminal
JP2966237B2 (en) Product sales data processing device
JPH0258673B2 (en)
JPS58182759A (en) Calculation specification specification method
JPS5834524Y2 (en) electronic cash register
JPS5939062B2 (en) electronic cash register
JPS62164196A (en) electronic cash register
JPS59106072A (en) Designating system of read for every classification number in electronic register
JPS58112167A (en) Sales data cumulative device
JPS5851305B2 (en) electronic cash register