JPS6262395B2 - - Google Patents
Info
- Publication number
- JPS6262395B2 JPS6262395B2 JP1733178A JP1733178A JPS6262395B2 JP S6262395 B2 JPS6262395 B2 JP S6262395B2 JP 1733178 A JP1733178 A JP 1733178A JP 1733178 A JP1733178 A JP 1733178A JP S6262395 B2 JPS6262395 B2 JP S6262395B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- output
- data
- signal
- time
- 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
Links
- 238000000034 method Methods 0.000 claims description 13
- 238000001514 detection method Methods 0.000 description 21
- 238000006243 chemical reaction Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 9
- 238000007689 inspection Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Cash Registers Or Receiving Machines (AREA)
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は計時手段を備えた電子式金銭登録機に
関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic cash register equipped with a timekeeping means.
[従来の技術]
従来、例えば電子式金銭登録機等のデータ処理
装置の機能切換に関する技術は、特開昭50−
69950号公報に開示される技術がある。この従来
技術はオペレータが持つているキーによつて操作
可能なモードスイツチを備え、このモードスイツ
チの切換によつて例えば設定、登録、戻し、点
検、精算等の各機能を選択するようになつてい
る。すなわち、従来の電子金銭登録機は、モード
スイツチを例えば登録の位置に切換え、各部門等
への登録を行い、またモードスイツチを例えば戻
しの位置に切換え、以前に登録を行なつたデータ
の訂正等を行なつている。従つて、単にモードス
イツチを切換えるだけで、いつでもオペレータの
意志により各機能の選択切換ができるようになつ
ている。[Prior Art] Conventionally, technology related to switching functions of data processing devices such as electronic cash registers has been disclosed in Japanese Patent Application Laid-Open No. 1986-
There is a technique disclosed in Publication No. 69950. This conventional technology is equipped with a mode switch that can be operated by a key held by an operator, and by switching this mode switch, various functions such as setting, registration, return, inspection, and payment are selected. There is. That is, in conventional electronic cash registers, the mode switch is set to, for example, the registration position to register each department, and the mode switch is also set to, for example, the return position to correct the previously registered data. etc. Therefore, by simply switching the mode switch, the operator can select and change each function at any time according to his will.
[発明が解決しようとする問題点]
しかして、金銭登録機は、キーの誤操作等に伴
う金銭の出納処理に対する誤りを防止することが
重要であり、高い正確性が要求される。しかしな
がら、上記従来のように単にモードスイツチの操
作によりいつでも各機能の選択切換ができるもの
では、キーの操作ミス等によつて金銭登録機内の
記憶データに誤りを生じ、記憶データと出納金銭
との間で不一致を生じる虞れがあり、金銭の出納
処理に対する高い正確性を得ることができない。
また、いつでも各機能の選択切換が行えるため金
銭登録機の記憶内容の変更が自由に行なえる等不
正使用が簡単に行え、安全性の面においても問題
である。[Problems to be Solved by the Invention] However, it is important for a cash register machine to prevent errors in cash payment processing due to erroneous key operations, etc., and high accuracy is required. However, with the above-mentioned conventional devices in which each function can be selected at any time simply by operating a mode switch, errors in the stored data in the cash register may occur due to key operation errors, etc. There is a risk that discrepancies may occur between the parties, making it impossible to obtain a high degree of accuracy in the payment and disbursement processing of money.
Furthermore, since the selection of each function can be switched at any time, the contents stored in the cash register can be changed freely, making it easy for unauthorized use, which is also a problem in terms of security.
本発明の課題は、特定の処理が可能な時間帯を
記憶し、この時間帯において特定の処理を行うた
めの指示が行われた場合のみその特定の処理を行
えるようにすることである。 An object of the present invention is to store a time slot in which a specific process is possible, and to enable the specific process to be performed only when an instruction to perform the specific process is given during this time slot.
[問題点を解決するための手段] 本発明の手段は次の通りである。[Means for solving problems] The means of the present invention are as follows.
1(第8図の機能ブロツク図を参照、以下同
じ)は現在時刻を計時する計時手段、2は精算等
の特定の処理を行うことを指示するキー等の指示
手段、3はこの指示手段2からの指示による特定
の処理動作が可能な例えば19時〜19時30分等の時
間帯を記憶する時間帯記憶手段、4は上記指示手
段2により指示が行なわれた際に、上記計時手段
1から現在時刻を読み出すと共に、上記時間帯記
憶手段3から例えば19時〜19時30分等の時間帯を
読み出し、この時間帯に上記現在時刻が含まれる
か否かを判定する判定手段、5はこの判定手段4
により含まれないと判定された際に、上記指示手
段2による指示を無効とし、上記判定手段4によ
り含まれると判定された際に、上記指示手段2に
より指示された特定の処理を行う処理手段であ
る。 1 (see the functional block diagram in FIG. 8, the same applies hereinafter) is a timekeeping means for measuring the current time, 2 is an instruction means such as a key for instructing to perform a specific process such as payment, and 3 is this instruction means 2. 4 is a time zone storage means for storing a time zone such as 7:00 p.m. to 7:30 p.m. in which a specific processing operation can be performed according to an instruction from the timer means 1; A determining means 5 reads out the current time from the time zone storage means 3 and reads out a time zone such as, for example, 19:00 to 19:30 from the time zone storage means 3, and determines whether or not the current time is included in this time zone. This determination means 4
Processing means for invalidating the instruction by the instruction means 2 when it is determined that it is not included, and carrying out a specific process instructed by the instruction means 2 when it is determined that it is included by the determination means 4. It is.
[作用] 本発明の手段の作用は次の通りである。[Effect] The operation of the means of the invention is as follows.
計時手段1により現在時刻が計時されている。
この状態で指示手段2により特定の処理を行うた
めの指示が行われた際に、上記計時手段1より現
在時刻を読み出すと共に、時間帯記憶手段3に記
憶されている時間帯を読み出し、判定手段4によ
にこの時間帯に前記現在時刻が含まれるか否かの
判定を行い、判定手段4により含まれないと判定
された際に、処理手段5により上記指示手段2に
よる指示を無効とし、上記判定手段4により含ま
れると判定された際に、処理手段5により上記指
示手段2で指示された特定の処理を行う。 The current time is measured by the clock means 1.
In this state, when the instruction means 2 issues an instruction to perform a specific process, the current time is read out from the timekeeping means 1, the time zone stored in the time zone storage means 3 is read out, and the determination means 4, it is determined whether or not the current time is included in this time zone, and when the determination means 4 determines that the current time is not included, the processing means 5 invalidates the instruction by the instruction means 2; When the determination means 4 determines that the information is included, the processing means 5 performs the specific processing instructed by the instruction means 2.
従つて、記憶している時間帯でのみ特定の処理
が行え、不注意による誤りや、不正使用を防止で
きる。 Therefore, specific processing can be performed only during the memorized time period, and inadvertent errors and unauthorized use can be prevented.
[実施例]
以下、一実施例を第1図ないし第7図を参照し
ながら説明する。[Example] An example will be described below with reference to FIGS. 1 to 7.
まず第1図により電子式金銭登録機の前面操作
部10の構成について説明する。第1図において
11は商品の金額等を置数する金額キー、12は
各商品に対する部門を指定する部門別キー、13
aは訂正キー、13bは減算キー、13cは現在
登録中のデータを一時退避あるいは退避データを
呼出すキー、13dは不加算あるいは両替を指定
するキー、13eは責任者番号を登録するキー、
13fは日時データをセツトするキー、14は入
金、出金、クレジツト等の信用売り、貸売りを指
示する取引別キー、15は加算あるいはトータル
を求める場合の小計キー、16は合計あるいは釣
銭を求めるレシートを発行するためのキーであ
る。また、17はモードスイツチ「OFF」、「登
録」、「戻し」、「点検」、「精算」、「設定」の各機
能
を切換選択する。上記モードスイツチ17におけ
る「OFF」は金銭登録機を使用していない場
合、「登録」は通常の金銭収受操作を行う場合、
「戻し」は金銭登録機へ登録した金銭の一部を取
消す場合、「点検」は記憶データを破壊せずに読
み出す場合、「精算」は記憶データを読み出した
後にクリアする場合、「設定」はプリセツト用の
データを設定する場合に使用される。 First, the configuration of the front operation section 10 of the electronic cash register will be explained with reference to FIG. In FIG. 1, 11 is an amount key for entering the amount of the product, 12 is a department key for specifying the department for each product, and 13 is a department key for specifying the department for each product.
a is a correction key, 13b is a subtraction key, 13c is a key to temporarily save the data currently being registered or call up saved data, 13d is a key to specify non-addition or exchange, 13e is a key to register the responsible person number,
13f is a key for setting date and time data; 14 is a transaction key for instructing deposits, withdrawals, credit sales such as credit sales, and lending sales; 15 is a subtotal key for adding or calculating a total; 16 is a key for calculating a total or change. This is the key to issue a receipt. Further, a mode switch 17 switches and selects each function of "OFF", "Registration", "Return", "Inspection", "Payment", and "Setting". ``OFF'' in the mode switch 17 is when the cash register is not in use, and ``REGISTER'' is when performing normal money collection operations.
"Return" is used to cancel part of the money registered in the cash register, "Inspection" is used to read the stored data without destroying it, "Payment" is used to clear the stored data after reading it, and "Settings" is used to cancel part of the money registered in the cash register. Used when setting data for presets.
次に第2図により本発明のシステム構成につい
て説明する。第2図において21はCPU(演算
処理装置)で、このCPU21にはメモリ回路2
2及び時計回路23が、データDを転送するデー
タバスD8、行アドレスRAを転送する行アドレ
スバスRB、列アドレスCAを転送する列アドレス
バスCBを介して接続されている。上記メモリ回
路22及び時計回路23はそれぞれ集積回路によ
つて構成されており、CPU21から送られてく
るチツプイネーブル信号CE1,CE2によつてチツ
プ指定が行われると共に読み出し/書込み信号
R/W2によつて読み出しあるいは書込みの指定
が行なわれる。また上記CPU21はデータバス
DB及び列アドレスバスCBを介してI/Oポート
24が接続される。このI/Oポート24には
CPU21からオペレーシヨン信号Jが与えられ
る。そして上記I/Oポート24にはキー入力部
25、表示部26、印字部27が接続される、上
記キー入力部25は、キー操作を行つた場合、
I/Oポート24からのタイミング信号KPに従
つてキー入力信号KIをI/Oポート24内の入
力用バツフア(図示せず)へ入力する。また、表
示部26はI/Oポート24からのデイジツト信
号DG及びI/Oポート24の表示用バツフア
(図示せず)内のデータをデコードしたセグメン
ト信号SGに従つて表示動作を行う。印字部27
は例えばラインプリンタで印字ドラムの印字位置
信号TをI/Oポート24へ送り、この印字位置
信号TとI/Oポート24の印字用バツフア(図
示せず)内のデータとの一致によつて生じたハン
マ駆動信号MDによりハンマを駆動し、レシート
用紙並びにジヤーナル用紙に対する印字を行つて
いる。 Next, the system configuration of the present invention will be explained with reference to FIG. In Fig. 2, 21 is a CPU (arithmetic processing unit), and this CPU 21 includes a memory circuit 2.
2 and a clock circuit 23 are connected via a data bus D8 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 memory circuit 22 and clock circuit 23 are each formed of an integrated circuit, and chip designation is performed by chip enable signals CE 1 and CE 2 sent from the CPU 21, and read/write signals R/W. 2 specifies reading or writing. In addition, the above CPU21 is a data bus
An I/O port 24 is connected via DB and column address bus CB. This I/O port 24 has
An operation signal J is given from the CPU 21. A key input section 25, a display section 26, and a printing section 27 are connected to the I/O port 24. When the key input section 25 performs a key operation,
A key input signal KI is input to an input buffer (not shown) in the I/O port 24 in accordance with a timing signal KP from the I/O port 24 . Further, the display section 26 performs a display operation in accordance with the digit signal DG from the I/O port 24 and the segment signal SG obtained by decoding data in a display buffer (not shown) of the I/O port 24. Printing section 27
For example, a line printer sends a print position signal T of a print drum to the I/O port 24, and by matching this print position signal T with data in a print buffer (not shown) of the I/O port 24, The hammer is driven by the generated hammer drive signal MD to perform printing on receipt paper and journal paper.
次に第3図ないし第6図により上記CPU2
1、時計回路23、アラーム回路28、メモリ回
路22の詳細について説明する。第3図はCPU
21の詳細を示す回路ブロツク図で図中31は各
種マイクロ命令がストアされている制御部であ
る。そして、該制御部31からは、後述する演算
用メモリであるRAM32の被演算数を記憶して
いるレジスタの行アドレスを指定する信号SU、
演算数を記憶しているレジスタの列アドレスある
いは処理開始列アドレスを指定する信号SL及び
演算数を記憶しているレジスタの列アドレスある
いは処理終了列アドレスを指定する信号FL、数
値コード信号CO、演算命令、転送命令等のオペ
レーシヨンコード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/W1
がRAM32へ出力される。更に、読み出し/書
き込み指令R/W2がメモリ回路22及び時計回
路23へ、オペレーシヨン信号がI/Oポート2
4及びアラーム回路28へ出力される。 Next, according to Figures 3 to 6, the above CPU2
1. Details of the clock circuit 23, alarm circuit 28, and memory circuit 22 will be explained. Figure 3 shows the CPU
21 is a circuit block diagram showing the details of the circuit 21. In the figure, 31 is a control section in which various microinstructions are stored. Then, from the control unit 31, a signal SU designating a row address of a register storing an operand of a RAM 32, which is an arithmetic memory to be described later;
Signal SL that specifies the column address of the register that stores the operation number or the processing start column address; Signal FL that specifies the column address of the register that stores the operation number or the processing end column address; Numerical code signal CO; Operation An operation code OP such as a command or a transfer command, and a signal NA specifying the next address of the device are outputted 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 in accordance with 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. This operation decoder 35 is an operation code
OP is decoded and given to the timing control circuit 36. This timing control circuit 36 generates gate control signals to gate circuits 38 and 39 in accordance with a command from an operation decoder 35 and a timing signal given from a timing signal generation circuit 37.
To, up/down count command is counter 40
, a match detection command goes to the match circuit 41, an addition/subtraction command goes to the adder circuit 46, a judgment command goes to the address conversion circuit 30, a read/write command R/W 1
is output to RAM32. Furthermore, the read/write command R/W 2 is sent to the memory circuit 22 and the clock circuit 23, and the operation signal is sent to the I/O port 2.
4 and the alarm circuit 28.
しかして、上記制御部31から出力される行指
定アドレスSU及びFUは各々バスラインa,bを
介してゲート回路38に印加され、これらゲート
回路38の出力は、バスラインhを介してRAM
32の行アドレス入力端子UAに入力する。ま
た、制御部31から出力されるRAM32の列ア
ドレスあるいは処理開始列指定アドレスSL及び
列アドレスあるいは処理終了指定アドレスFLは
それぞれバスラインc,dを介してゲート回路3
9に加えられる。そして、上記ゲート回路39の
出力はバスラインiに出力され、RAM32の列
アドレス入力端子LAに入力すると共に、列アド
レスCAとして外部に出力される。また、上記ゲ
ート回路39の出力は、カウンタ40へ供給され
る。このカウンタ40は、所定のタイミング信号
によりカウント動作を行うもので、通常はタイミ
ング信号が入力される毎に1ずつカウントアツプ
するが、タイミング制御回路36からダウンカウ
ント指令が与えられた場合にはタイミング信号が
入力される毎に1ずつダウンカウントする。そし
て、上記カウンタ40の出力はRAM32の列ア
ドレス入力端子LA及び上記外部メモリへ加えら
れると共に一致回路41の一方の入力端に加えら
れる。この一致回路41の他方の入力端には制御
部31からバスラインdに出力される処理終了列
指定アドレスFLが与えられる。この一致回路4
1の一致出力はタイミング制御回路36へ入力さ
れる。 The row designation addresses SU and FU output from the control section 31 are applied to the gate circuit 38 via bus lines a and b, respectively, and the outputs of these gate circuits 38 are sent to the RAM RAM via the bus line h.
32 to the row address input terminal UA. Further, the column address or processing start column designation address SL and column address or processing end designation address FL of the RAM 32 output from the control unit 31 are sent to the gate circuit 3 via bus lines c and d, respectively.
Added to 9. 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 the column address CA. Further, 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, Counts down by 1 each time a signal is input. The output of the counter 40 is applied to the column address input terminal LA of the RAM 32 and the external memory, and is also applied to one input terminal of the matching circuit 41. The other input terminal of the matching circuit 41 is given the processing end column designation address FL output from the control section 31 to the bus line d. This matching circuit 4
The coincidence output of 1 is input to the timing control circuit 36.
一方上記演算用メモリであるRAM32は、例
えばA,B,Cのレジスタが設けられている。こ
のレジスタA,B,Cは前記行指定アドレスFU
あるいはSUより出力される行アドレスによつて
アドレス指定される。また、上記各レジスタの桁
は前記列指定アドレスFLあるいはSLによつて指
定され、読出し、書込みはタイミング制御回路3
6から出力される読出し/書込み指令R/W1に
より指定される。しかして、上記行及び列アドレ
スによりアドレス指定された演算数、被演算数、
あるいは転送等のために読出されたデータは、出
力端子ODより並列4ビツトのデータとして出力
され、ゲート回路42を介してラツチ回路43,
44へ送られる。そして、上記ラツチ回路43の
出力は、ゲート回路45を介してアダー回路46
の入力端bに供給されると共にバツフア47へ送
られる。このバツフア47は所定のタイミング信
号により入力信号を読込むもので、その出力は行
アドレスRAとして外部に出力される。また上記
ラツチ回路44の出力はゲート回路48を介して
データバスDBに出力されると共にアダー回路4
6の入力端a及び所定のタイミング信号により読
込み動作を行うバツフア49に加えられる。この
バツフア49に貯えられたデータはデコーダ50
によりデコードされ、チツプイネーブル信号
CE1,CE2として外部に出力される。また上記ア
ダー回路46の出力端cから出力されるキヤリー
信号はアダー回路46の出力端dからオア回路5
1を介して取出されるデータと共にアドレス変換
回路30へ入力される。さらに、アダー回路46
の出力端dから出力されるデータは、データバス
DBを介して外部から入力されるデータと共にゲ
ート回路52に加えられ、このゲート回路52の
出力はRAM32のデータ入力端IDに加えられ
る。上記ゲート回路52及び前記ゲート回路3
8,39,42,45,48は、タイミング制御
回路36から出力される信号によつて制御され
る。 On the other hand, the RAM 32, which is the arithmetic memory, is provided with registers A, B, and C, for example. These registers A, B, and C are the row specified address FU.
Alternatively, it is addressed by the row address output from SU. Furthermore, the digits of each of the above registers are designated by the column designation address FL or SL, and reading and writing are performed by the timing control circuit 3.
It is designated by the read/write command R/W 1 output from 6. Therefore, the operands and operands addressed by the above row and column addresses,
Alternatively, data read for transfer etc. is output as parallel 4-bit data from the output terminal OD, and is passed through the gate circuit 42 to the latch circuit 43,
Sent to 44. The output of the latch circuit 43 is sent to an adder circuit 46 via a gate circuit 45.
The signal is supplied to input terminal b of , and is also sent to 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 outputted to the data bus DB via the gate circuit 48, and is also output to the adder circuit 4.
6 and a predetermined timing signal to a buffer 49 that performs a read operation. The data stored in this buffer 49 is sent to the decoder 50.
decoded by chip enable signal
Output to the outside as CE 1 and CE 2 . Further, the carry signal output from the output terminal c of the adder circuit 46 is transmitted from the output terminal d of the adder circuit 46 to the OR circuit 5.
It is input to the address conversion circuit 30 together with the data taken out through the address conversion circuit 30. Furthermore, the adder circuit 46
The data output from the output terminal d of the data bus
It is applied to the gate circuit 52 together with data input from the outside via DB, and the output of this gate circuit 52 is applied to the data input terminal ID of the RAM 32. The gate circuit 52 and the gate circuit 3
8, 39, 42, 45, and 48 are controlled by a signal output from the timing control circuit 36.
第4図は時計回路23の詳細を示す回路で、図
中61は例えば32kHzの基準パルス信号を発生す
る発振器であり、その発振出力は、分周カウンタ
62へ送られて分周される。この分周カウンタ6
2は例えば15ビツトで構成され、入力される32k
Hzの信号を順次分周し、最終的に1Hzの信号まで
分周する。そして、上記分周カウンタ62におい
て分周された8kHz,4kHzのビツト出力はアンド
回路63、2kHz〜256Hzのビツト出力はアンド回
路64、128Hz〜32Hzのビツト出力はアンド回路
65、16Hz/1Hzのビツト出力はゼロ検出回路6
6に加えられる。このゼロ検出回路66は分周カ
ウンタ62の16Hz〜1Hzの全ビツト出力がゼロに
なつた状態を検出して“1”信号を出力するもの
で、その検出出力はアンド回路63〜65にゲー
ト制御信号として加えられる。そして、上記アン
ド回路63の出力はビツトデコーダ67、アンド
回路64の出力はデジツトデコーダ68、アンド
回路65の出力はワードデコーダ69に加えられ
る。しかして、上記デジツトデコーダ69の出力
はコントロール回路70へ入力される。そして、
デジツトデコーダ68の出力は、列アドレスとし
てCPU21から送られてくる列アドレスCAと共
にゲート回路71bへ入力される。また、ワード
デコーダ69はアンド回路66を介して入力され
る分周カウンタ62の128Hz及び64Hzのビツトを
出力する出力ラインa,bを備えており、出力ラ
インaから出力される信号は読出し/書込み命令
としてゲート回路71cへ加えられ、出力ライン
bから出力される信号は行アドレスとしてゲート
回路71aに加えられる。また上記ゲート回路7
1cにはCPU21からの読出し/書込み命令
R/W2及びチツプネーブル信号CE2がアンド回
路86を介して入力され、ゲート回路71aには
CPU21から行アドレスRAが入力される。上記
ゲート回路71a〜71cは、ゼロ検出回路66
から送られてくるゼロ検出信号によつてゲートの
切換えが行なわれるもので、ゼロ検出信号が
“0”の場合はCPU21からのCA,RA,R/W
2,CE2を選択して出力し、ゼロ検出信号が
“1”の場合はデジツトデコーダ68及びワード
デコーダ69からの信号を選択して出力する。上
記ゲート回路71a〜71cの出力はアラーム設
定データ及び現在時刻を記憶するRAM72へ入
力される。このRAM72は例えば第5図に示す
ように2行16列の構成となつており、0行目には
11列〜0列に年,月,日,時,分,秒の現在の日
付け及び時刻データが書込まれると共に15列〜12
列に10時,時,10分,分のタイマ設定データが書
込まれる。また、RAM72の1行目には15列,
14列に103時,102時のタイマ設定データ、13列〜
2列に3種のアラームAL3〜AL1の時及び分の
時刻データ、0行目にアラームフラグALFが書
込まれる。このアラームフラグALFは、アラー
ム設定データAL1〜AL3が現在時刻に一致した
か否かを示すもので、0列内の3ビツトを利用し
てアラーム設定データAL1〜AL3が現在時刻に
一致した場合にその対応するビツトに“1”信号
をセツトする。上記のように構成されたRAM7
2には第4図に示すようにデータバスDBにより
送られてくる書込みデータがゲート回路73aを
介して入力され、読出しデータはゲート回路73
bを介してP−S(並列−直列)変換回路74へ
送られると共にオール“1”書込み回路75へ入
力される。このオール“1”書込み回路75は前
記ゼロ検出回路66に同期して動作し、ゼロ検出
信号が“1”となり時計回路23がRAM72の
アクセスを行つている際にビジー信号を発生する
もので、その出力はデータバスDBに送り出され
る。CPU21は時計回路23のRAM72をアク
セスする際は、上記オール“1”書込み回路75
の出力信号から時計回路23の動作状態を制御
し、時計回路23がRAM72を使用していない
時にRAM72へのアクセスを行う。 FIG. 4 shows the details of the clock circuit 23. In the figure, 61 is an oscillator that generates a reference pulse signal of, for example, 32 kHz, and its oscillation output is sent to a frequency division counter 62 and frequency-divided. This frequency division counter 6
2 consists of 15 bits, for example, and the input 32k
The frequency of the Hz signal is divided sequentially, and finally the frequency is divided to a 1 Hz signal. The bit outputs of 8 kHz and 4 kHz divided by the frequency division counter 62 are sent to an AND circuit 63, the bit outputs of 2 kHz to 256 Hz are sent to an AND circuit 64, the bit outputs of 128 Hz to 32 Hz are sent to an AND circuit 65, and the bits of 16 Hz/1 Hz are sent to an AND circuit 65. Output is zero detection circuit 6
Added to 6. This zero detection circuit 66 detects the state in which all bit outputs of the frequency division counter 62 from 16Hz to 1Hz become zero and outputs a "1" signal, and the detection output is gate-controlled to the AND circuits 63 to 65. Added as a signal. The output of the AND circuit 63 is applied to a bit decoder 67, the output of the AND circuit 64 is applied to a digital decoder 68, and the output of the AND circuit 65 is applied to a word decoder 69. Thus, the output of the digital decoder 69 is input to the control circuit 70. and,
The output of the digital decoder 68 is input to the gate circuit 71b together with the column address CA sent from the CPU 21 as a column address. Further, the word decoder 69 is provided with output lines a and b that output the 128 Hz and 64 Hz bits of the frequency division counter 62 input through the AND circuit 66, and the signal output from the output line a is used for reading/writing. A signal applied to gate circuit 71c as a command and output from output line b is applied to gate circuit 71a as a row address. In addition, the gate circuit 7
The read/write command R/W2 from the CPU 21 and the chip enable signal CE2 are inputted to 1c via the AND circuit 86, and the gate circuit 71a is inputted to the gate circuit 71a.
A row address RA is input from the CPU 21. The gate circuits 71a to 71c include a zero detection circuit 66
Gate switching is performed by the zero detection signal sent from the CPU 21, and when the zero detection signal is "0", the
2, CE 2 is selected and output, and when the zero detection signal is "1", the signals from the digital decoder 68 and word decoder 69 are selected and output. The outputs of the gate circuits 71a to 71c are input to a RAM 72 that stores alarm setting data and current time. For example, this RAM 72 has a configuration of 2 rows and 16 columns as shown in FIG.
The current date and time data of year, month, day, hour, minute, and second are written in columns 11 to 0, and columns 15 to 12.
Timer setting data for 10 o'clock, hour, 10 minutes, and minutes is written in the column. In addition, the first row of RAM 72 has 15 columns,
10 3 o'clock, 10 2 o'clock timer setting data in column 14, column 13 ~
Hour and minute time data for three types of alarms AL3 to AL1 are written in the second column, and an alarm flag ALF is written in the 0th line. This alarm flag ALF indicates whether or not the alarm setting data AL1 to AL3 match the current time.The 3 bits in the 0 column are used to indicate whether or not the alarm setting data AL1 to AL3 match the current time. Set a "1" signal to the corresponding bit. RAM7 configured as above
As shown in FIG. 4, write data sent via the data bus DB is input to 2 through the gate circuit 73a, and read data is input to the gate circuit 73a.
The signal is sent to the P-S (parallel-to-serial) conversion circuit 74 via the P-S (parallel-to-serial) conversion circuit 74 via the signal line b, and is also input to the all "1" write circuit 75. This all "1" write circuit 75 operates in synchronization with the zero detection circuit 66, and generates a busy signal when the zero detection signal becomes "1" and the clock circuit 23 is accessing the RAM 72. Its output is sent to the data bus DB. When the CPU 21 accesses the RAM 72 of the clock circuit 23, it uses the all “1” write circuit 75.
The operating state of the clock circuit 23 is controlled from the output signal of the clock circuit 23, and the clock circuit 23 accesses the RAM 72 when the RAM 72 is not in use.
しかして、上記P−S変換回路74の出力は、
一致回路76に加えられると共に、ワードデコー
ダ69の出力によつて制御されるゲート回路77
を介して4桁のシフトレジスタ78aへ入力され
る。このシフトレジスタ78aの出力は一致回路
76へ送られると共に11桁のシフトレジスタ78
bへ入力される。このシフトレジスタ78bは、
各ビツト出力がコントロール回路70へ送られる
と共に最終ビツト出力がハーフアダー79の入力
端aに入力される。また、このハーフアダー79
の入力端bにはコントロール回路70から+1信
号がオア回路80を介して入力される。ハーフア
ダー79のキヤリー出力は、1ビツトの遅延回路
81及びオア回路80を介して自己の入力端bに
加えられる。そして、ハーフアダー79の加算出
力は、1桁(4ビツト)のシフトレジスタ78c
へ入力される。このシフトレジスタ78cは各ビ
ツト出力がコントロール回路70へ送られると共
に最終ビツト出力がゲート回路77を介してシフ
トレジスタ78aに戻される。上記各シフトレジ
スタ78a〜78cによつて時計レジスタ78が
構成され、前記ビツトデコーダ67から出力され
るタイミングパルスによつてシフト動作が制御さ
れる。そして、前記一致回路76の出力は一致出
力記憶用のフリツプフロツプ82a〜82cへ入
力される。これらのフリツプフロツプ82a〜8
2cはコントロール回路70からの信号によつて
動作タイミングが制御されるものでそれぞれ異な
るタイミングで動作するようになつている。すな
わち、RAM72に記憶させた3種のアラームデ
ータと現在時刻との一致不一致をフリツプフロツ
プ82a〜82cに記憶させるようにしている。
上記フリツプフロツプ82a〜82cの出力は、
コントロール回路70によつてゲート制御される
出力ゲート83及びゲート回路84を介してS−
P(直列−並列)変換回路85へ送られる。ま
た、このS−P変換回路85にはシフトレジスタ
78cの出力がゲート回路84を介して入力され
る。上記S−P変換回路85は入力される直列デ
ータを並列データに変換してゲート回路73aを
介してRAM72へ送出し、現在時刻及びアラー
ムフラグALFの書込みを行う。ゲート回路73
a,73bはゼロ検出回路66から送られてくる
ゼロ検出回路66によつてゲートの切換えが行わ
れるもので、ゼロ検出信号が“0”の場合はデー
タバスDBに対するデータの授受が行われるよう
にゲートを切換え、ゼロ検出信号が“1”の場合
はP−S変換回路74及びS−P変換回路85に
対するデータの授受が行われるようにゲートを切
換える。 Therefore, the output of the P-S conversion circuit 74 is
A gate circuit 77 is added to the match circuit 76 and is controlled by the output of the word decoder 69.
The signal is input to a 4-digit shift register 78a via the 4-digit shift register 78a. The output of this shift register 78a is sent to a matching circuit 76 and an 11-digit shift register 78
b. This shift register 78b is
Each bit output is sent to the control circuit 70, and the final bit output is input to the input terminal a of the half adder 79. Also, this half adder 79
A +1 signal is input from the control circuit 70 via the OR circuit 80 to the input terminal b of the control circuit 70 . The carry output of the half adder 79 is applied to its own input terminal b via a 1-bit delay circuit 81 and an OR circuit 80. The addition output of the half adder 79 is then sent to a 1-digit (4-bit) shift register 78c.
is input to. Each bit output of this shift register 78c is sent to the control circuit 70, and the final bit output is returned to the shift register 78a via the gate circuit 77. The shift registers 78a to 78c constitute a clock register 78, and the shift operation is controlled by the timing pulse output from the bit decoder 67. The output of the matching circuit 76 is input to flip-flops 82a to 82c for storing matching outputs. These flip-flops 82a-8
2c, the operation timing of which is controlled by a signal from the control circuit 70, so that they operate at different timings. That is, the coincidence or mismatch between the three types of alarm data stored in the RAM 72 and the current time is stored in the flip-flops 82a to 82c.
The outputs of the flip-flops 82a to 82c are:
S-
It is sent to a P (serial-parallel) conversion circuit 85. Further, the output of the shift register 78c is input to this S-P conversion circuit 85 via a gate circuit 84. The S-P conversion circuit 85 converts the input serial data into parallel data, sends it to the RAM 72 via the gate circuit 73a, and writes the current time and alarm flag ALF. Gate circuit 73
Gates a and 73b are switched by the zero detection circuit 66 sent from the zero detection circuit 66, and when the zero detection signal is "0", data is transferred to and from the data bus DB. When the zero detection signal is "1", the gate is switched so that data is transferred to and from the P-S conversion circuit 74 and the S-P conversion circuit 85.
上記のように構成された時計回路23は、最
初、キー入力部25におけるキー操作に従つて現
在の日付け及び時刻データが書込まれる。すなわ
ち、キー入力部25において、日付け及び時刻設
定のキー操作を行うことにより、I/Oポート2
4内の入力用バツフア(図示せず)にデータが入
力される。CPU21は前記入力用バツフア内の
データをRAM32へ書込み、時計回路23のオ
ール“1”書込み回路75からビジー信号が出力
されているか否かを検出する。この時、ビジー信
号が無ければCPU21からチツプネーブル信号
CE2、書込み命令R/W2、行アドレスRA、列
アドレスCAと共に日付け及び時刻データがRAM
72に入力され、0行目の11列〜0列に現在の
年,月,日,時,分,秒のデータが書込まれる。
また、RAM72には同様にしてアラームデータ
AL1〜AL3、タイマデータTM等の書込みが行
われる。そして、ゼロ検出回路66でオール
“0”が検出され、ゼロ検出信号が“1”となる
と、ゲート回路71a〜71c,73a,73b
が時計回路23内のデータを授受するように切換
えられ、計時動作が開始される。すなわち、発振
器61から出力される基準パルス信号は分周カウ
ンタ62で分周され、所定の分周出力がアンド回
路63〜65及びゼロ検出回路66へ入力され
る。このゼロ検出回路66は分周カウンタ62の
16Hz〜1Hzの全ビツト出力が“0”になつた状態
を検出して“1”信号を出力する。上記分周カウ
ンタ62の16Hz〜1Hzのビツト出力は、1秒毎に
1/32秒間だけ全ビツトが“0”となり、その時ゼ
ロ検出回路66から“1”信号が出力されてアン
ド回路63〜65のゲートが開かれる。この結果
分周カウンタ62の所定のビツト出力がアンド回
路63〜65を介してデコーダ67〜69へ入力
され、各デコーダ67〜69から回路へタイミン
グ信号、アドレスデータが送られる。すなわち、
ビツトデコーダ67の出力は時計レジスタ78へ
シフト信号として送られ、デジツトデコーダ68
の出力はコントロール回路70へタイミング信号
として送れると共にゲート回路71bを介して
RAM72へ列アドレスとして送られる。また、
ワードデコーダ69の出力はコントロール回路7
0及びゲート回路77へ制御信号として送られ
る。さらに、ワードデコーダ69のラインa,b
から出力される信号は読出し/書込み指令、行ア
ドレスとしてゲート回路71c,71aを介して
RAM72へ送られる。しかして、ゼロ検出回路
66から“1”信号が出力されている間、分周カ
ウンタ61の128Hz〜32Hzのビツト出力は「000」
〜「111」まで8段階変化する。この8段階のう
ち例えば最初の4段階のデータすなわち、128Hz
及び64Hzのビツトが「00」「10」「01」「11」と4
段階変化することを利用してRAM72に対する
データの読出し、書込みが行われる。ワードデコ
ーダ69は、分周カウンタ61の128Hz,64Hzの
ビツト出力に対応して出力ラインa,bから
「00」〜「11」までの4種の信号を出力する。ま
ず、最初はワードデコーダ69の出力ラインa,
bの出力は共に“0”であり、読出しモードで
RAMの0行目がアドレス指定されると共にデジ
ツトデコーダ68の出力により列アドレスが指定
される。このためRAM72の0行目の日付け及
び時刻データが読出され、ゲート回路73b及び
P−S変換回路74を介して直列データに変換さ
れ、ゲート回路77を介して計時レジスタ78へ
入力される。そして、コントロール回路70の制
御により、ハーフアダー回路79において秒デー
タに+1される。次にワードデコーダ69の出力
ラインaから出力される信号“1”になり、
RAM72に書き込み指令を与える。この結果計
時レジスタ78に読出されて+1秒された日付け
及び時刻データがRAM72に書込まれる。な
お、上記+1秒の動作によつて桁上げを生じた場
合はコントロール回路70の制御によつて桁上げ
処理が行われる。次にワードデコーダ69の出力
ラインa,bの出力が「01」に変化すると読出し
モードでRAM72の1行目が指定され、1行目
に記憶されているアラームデータAL1〜AL3が
読出される。このアラームデータAL1〜AL3は
ゲート回路73b及びP−S変換回路を介して一
致回路76へ加えられる。また、この時一致回路
76には計時レジスタ78のシフトレジスタ78
a部分にゲート回路77を介して循環保持されて
いる時及び分の現在時刻が入力される。一致回路
76はRAM72から読出したアラームデータAL
1〜AL3を現在時刻と順次比較し、一致した場
合に対応するフリツプフロツプ82a〜82cに
“1”をセツトする。次いでワードデコーダ69
の出力ラインa,bの出力が「11」に変化すると
RAM72は1行目が指定されている状態で書込
みモードに変わり、フリツプフロツプ82a〜8
2cの出力が出力ゲート83、ゲート回路84、
S−P変換回路85、ゲート回路73aを介して
RAM72へ送られ、その1行目0列のアームフ
ラグALFに書込まれる。従つてCPU21はこの
アラームフラグの内容を調べることによつて現在
時刻がアラーム時刻に達したか否かを判定するこ
とができる。以下同様にして1秒毎に+1秒の計
時動作及びアラームデータと現在時刻との一致検
出が行われる。 In the clock circuit 23 configured as described above, current date and time data are initially written in accordance with key operations on the key input section 25. That is, by performing key operations for setting the date and time on the key input unit 25, the I/O port 2
Data is input into an input buffer (not shown) in 4. The CPU 21 writes the data in the input buffer to the RAM 32, and detects whether a busy signal is output from the all "1" write circuit 75 of the clock circuit 23. At this time, if there is no busy signal, a chip enable signal is sent from the CPU21.
CE 2 , write command R/W2, row address RA, column address CA as well as date and time data are stored in RAM
72, and the current year, month, day, hour, minute, and second data are written in the 0th row, 11th column to 0th column.
Also, alarm data is stored in RAM72 in the same way.
Writing of AL1 to AL3, timer data TM, etc. is performed. Then, when the zero detection circuit 66 detects all "0" and the zero detection signal becomes "1", the gate circuits 71a to 71c, 73a, 73b
is switched to transmit and receive data within the clock circuit 23, and timekeeping operation is started. That is, the reference pulse signal outputted from the oscillator 61 is frequency-divided by the frequency division counter 62, and a predetermined frequency-divided output is inputted to the AND circuits 63 to 65 and the zero detection circuit 66. This zero detection circuit 66 is connected to the frequency division counter 62.
It detects the state in which all bit outputs from 16Hz to 1Hz become "0" and outputs a "1" signal. The 16Hz to 1Hz bit output of the frequency division counter 62 is output every second.
All bits become "0" for 1/32 second, and at that time a "1" signal is output from the zero detection circuit 66 and the gates of AND circuits 63 to 65 are opened. As a result, predetermined bit outputs of frequency division counter 62 are input to decoders 67-69 via AND circuits 63-65, and timing signals and address data are sent from each decoder 67-69 to the circuits. That is,
The output of the bit decoder 67 is sent to the clock register 78 as a shift signal, and the output is sent to the clock register 78 as a shift signal.
The output can be sent to the control circuit 70 as a timing signal and also via the gate circuit 71b.
It is sent to RAM 72 as a column address. Also,
The output of the word decoder 69 is sent to the control circuit 7
0 and the gate circuit 77 as a control signal. Furthermore, lines a and b of the word decoder 69
The signals outputted from are read/write commands and row addresses via gate circuits 71c and 71a.
Sent to RAM72. Therefore, while the zero detection circuit 66 is outputting a "1" signal, the bit output of the frequency division counter 61 from 128Hz to 32Hz is "000".
Changes in 8 steps from ~111. For example, the data of the first four stages of these eight stages, that is, 128Hz
and 64Hz bits are “00”, “10”, “01”, “11” and 4
Data is read from and written to the RAM 72 by utilizing the step change. The word decoder 69 outputs four types of signals "00" to "11" from output lines a and b in response to the 128 Hz and 64 Hz bit outputs of the frequency division counter 61. First, the output lines a of the word decoder 69,
Both outputs of b are “0”, and in read mode
The 0th row of the RAM is addressed and the output of the digital decoder 68 specifies the column address. Therefore, the date and time data on the 0th row of the RAM 72 is read out, converted to serial data via the gate circuit 73b and the P-S conversion circuit 74, and inputted to the time register 78 via the gate circuit 77. Then, under the control of the control circuit 70, the half adder circuit 79 adds 1 to the second data. Next, the signal becomes "1" which is output from the output line a of the word decoder 69.
Give a write command to RAM72. As a result, the date and time data read out to the clock register 78 and incremented by one second are written into the RAM 72. Note that if a carry occurs due to the operation for +1 second, the carry processing is performed under the control of the control circuit 70. Next, when the outputs of the output lines a and b of the word decoder 69 change to "01", the first row of the RAM 72 is designated in the read mode, and the alarm data AL1 to AL3 stored in the first row are read out. This alarm data AL1-AL3 is applied to the coincidence circuit 76 via the gate circuit 73b and the P-S conversion circuit. In addition, the time matching circuit 76 also includes a shift register 78 of the time register 78.
The current time in hours and minutes, which is cyclically held, is input to part a through the gate circuit 77. The coincidence circuit 76 reads the alarm data AL read from the RAM 72.
1 to AL3 are sequentially compared with the current time, and if they match, "1" is set in the corresponding flip-flops 82a to 82c. Then word decoder 69
When the output of output lines a and b changes to "11",
RAM 72 changes to write mode with the first row specified, and flip-flops 82a to 8
The output of 2c is the output gate 83, the gate circuit 84,
Via the S-P conversion circuit 85 and gate circuit 73a
It is sent to the RAM 72 and written to the arm flag ALF in the 1st row and 0th column. Therefore, the CPU 21 can determine whether the current time has reached the alarm time by checking the contents of this alarm flag. Thereafter, a clocking operation of +1 second is performed every second and a coincidence detection between the alarm data and the current time is performed in the same manner.
第6図は第2図におけるメモリ回路22の記憶
内容を示す図である。メモリ回路22は例えば16
行構成で0行目〜7行目に部門1〜部門8の売上
データが記憶される。例えば0〜7行目の15〜12
列目には売上商品の単価、11〜18列目には売上個
数、7〜0列目に部門別売上合計が記憶される。
また、メモリ回路22のその他の領域には例えば
入出金回数、入出金合計等の売上に関する種種の
データが記憶されると共に、8行目及び9行目の
15〜12列目に例えば精算等の指定キーに対する動
作可能時間帯を示す時刻RST1,RST2が記憶され
る。上記RST1は動作可能時間帯の開始時刻、
RST2は動作可能時間帯の終了時刻を示してい
る。しかして、CPU21は、特定キーにより機
能選択が行われた場合に現在時刻と上記動作可能
時間帯の設定時刻RST2,RST2との比較により動
作の可否を判断するものである。 FIG. 6 is a diagram showing the stored contents of the memory circuit 22 in FIG. 2. For example, the memory circuit 22 has 16
In the row structure, sales data for departments 1 to 8 are stored in the 0th to 7th lines. For example, 15 to 12 in lines 0 to 7
The unit price of the sold product is stored in the column, the number of sold items is stored in the 11th to 18th columns, and the total sales by department is stored in the 7th to 0th columns.
Further, in other areas of the memory circuit 22, data on various types of sales, such as the number of deposits and withdrawals, the total number of deposits and withdrawals, etc., are stored.
In the 15th to 12th columns, times RST 1 and RST 2 are stored, which indicate the operational time period for a specified key such as payment. RST 1 above is the start time of the operational time zone,
RST 2 indicates the end time of the operable time zone. Thus, when a function is selected using a specific key, the CPU 21 determines whether or not the operation is possible by comparing the current time with the set times RST 2 and RST 2 of the operable time zone.
以下その動作を第7図に示すフローチヤートに
より説明する。 The operation will be explained below with reference to the flowchart shown in FIG.
第7図は精算の機能に対して時間的なロツクを
行つた場合のフローチヤートを示すものである。
マスタースイツチ17を特定機能つまり精算の位
置に切換えた状態において、精算データを印字さ
せるキー16が操作されると、CPU21は第7
図のステツプAに示すように時計回路23の
RAM72内に記憶している現在時刻(時、分)
CLKを読出し、RAM32内のレジスタにセツト
する。次いでステツプBに進み、メモリ回路22
に記憶している動作可能時間帯の開始時刻RST1
を読出し、RAM32内のBレジスタにセツトす
ると共に、その記憶桁をステツプCに示すように
10桁分桁下げし、上記AレジスタとBレジスタの
データ記憶桁位置を一致させる。その後ステツプ
Dに進み、Aレジスタの記憶内容からBレジスタ
の記憶内容を減算し、Aレジスタに記憶させた現
在時刻CLKとBレジスタに記憶させた設定時刻
と何れが大きいか判定し、A<Bであればノーフ
アンクシヨンつまりキー入力データが無効である
と判定する。例えば閉店時間が19時で閉店後30分
の間に精算処理を行うものとすれば、RST1は19
時、RST2は19時30分に設定される。そして、今
例えば18時の時に誤つて精算キーが操作された場
合には、ステツプDにおいてA<B、つまり現在
時刻18時がRST1の設定時刻19時より小さいと判
定され、ノーフアンクシヨンとなる。また、スラ
ツプDにおいてA≧Bと判定された場合、つまり
19時以降において精算キーの操作が行われた場合
はステツプEに進み、メモリ回路22から設定時
刻RST2を読出してRAM32内のBレジスタにセ
ツトする。そして、ステツプFに示すようにBレ
ジスタの内容を10桁分桁下げし、Aレジスタの内
容と記憶桁を一致させる。その後ステツプGに進
み、「A−B」の減算を行つてAとBの大小を判
定する。その判定結果がA>B、つまり現在時刻
CLKが設定時刻RST2(19時30分を過ぎている場
合はノーフアンクシヨンとなる。しかし、ステツ
プGでA≦Bと判定された場合、つまり現在時刻
が設定時刻RST2(19時30分)以前であると判定
された場合はステツプHに進んで精算処理を行
う。このようにして精算キーを操作した時刻
CLKが設定時間範囲つまり「RST2≦CLK≦
RST1」の条件を満足する時のみ精算処理が行わ
れる。上記実施例では精算処理を行う場合につい
て説明したが、例えば点検用のキーなど、その他
のキーに対してもそのキーの動作可能な時間を設
定することができる。 FIG. 7 shows a flowchart when a time lock is applied to the payment function.
When the key 16 for printing payment data is operated with the master switch 17 switched to a specific function, that is, the payment position, the CPU 21
As shown in step A of the figure, the clock circuit 23
Current time (hours, minutes) stored in RAM72
Read CLK and set it in the register in RAM32. Then, proceeding to step B, the memory circuit 22
Start time of the operable time zone stored in RST 1
is read and set in the B register in the RAM 32, and the stored digits are read as shown in step C.
Shift down by 10 digits to match the data storage digit positions of the A register and B register. After that, proceed to step D, subtract the memory contents of the B register from the memory contents of the A register, and determine which is greater between the current time CLK stored in the A register and the set time stored in the B register, and A<B If so, it is determined that there is no answer, that is, the key input data is invalid. For example, if the closing time is 19:00 and payment processing is to be performed within 30 minutes after closing, RST 1 is 19:00.
time, RST 2 is set at 19:30. If the payment key is operated by mistake at, for example, 18:00, it is determined in step D that A<B, that is, the current time 18:00 is smaller than the set time of RST 1, 19:00, and the no-functions button is pressed. becomes. Also, if it is determined that A≧B at slap D, that is,
If the settlement key is operated after 7:00 pm, the process proceeds to step E, where the set time RST 2 is read from the memory circuit 22 and set in the B register in the RAM 32. Then, as shown in step F, the contents of the B register are incremented by 10 digits to match the contents of the A register with the stored digits. Thereafter, the process proceeds to step G, where "A-B" is subtracted to determine the magnitude of A and B. The judgment result is A>B, that is, the current time
If CLK is past the set time RST 2 (7:30 p.m.), a no-function occurs. However, if it is determined in step G that A≦B, that is, the current time is past the set time RST 2 (7:30 p.m. If it is determined that the time is before (minutes), proceed to step H and perform the payment process.The time when the payment key was operated in this way
CLK is within the set time range, that is, "RST 2 ≦CLK≦
Settlement processing is performed only when the conditions of ``RST 1 '' are satisfied. In the above embodiment, a case has been described in which payment processing is performed, but it is also possible to set the operating time for other keys, such as a key for inspection, for example.
[発明の効果]
本発明によれば、不注意に誤つたキー等の操作
を行つた場合でも誤動作する確率を著しく少なく
でき、データ処理に対する正確性を大きく向上す
ることができる。また、不正使用の防止に役た
ち、安全性の面においても有効である。[Effects of the Invention] According to the present invention, even if a key or the like is inadvertently operated, the probability of malfunction can be significantly reduced, and the accuracy of data processing can be greatly improved. It also helps prevent unauthorized use and is effective in terms of safety.
第1図ないし第7図は本発明の一実施例を示す
もので、第1図は前面操作部のキー類配置状態を
示す図、第2図は全体的な回路構成を示すシステ
ム図、第3図は第2図における演算処理装置
(CPU)の詳細を示す回路図、第4図は第2図に
おける時計回路の詳細を示す回路図、第5図は第
4図の時計回路におけるRAMの記憶内容の一例
を示す図、第6図は第2図におけるメモリ回路の
記憶内容を示す図、第7図は本発明の動作を説明
するためのフローチヤート、第8図は本発明の機
能ブロツク図である。
10……操作部、21……CPU、22……メ
モリ回路、23……時計回路、24……I/Oポ
ート。
Figures 1 to 7 show one embodiment of the present invention, with Figure 1 being a diagram showing the arrangement of keys on the front operation section, Figure 2 being a system diagram showing the overall circuit configuration, and Figure 2 being a system diagram showing the overall circuit configuration. Figure 3 is a circuit diagram showing details of the arithmetic processing unit (CPU) in Figure 2, Figure 4 is a circuit diagram showing details of the clock circuit in Figure 2, and Figure 5 is a circuit diagram showing details of the clock circuit in Figure 4. FIG. 6 is a diagram showing an example of the memory contents of the memory circuit in FIG. 2, FIG. 7 is a flowchart for explaining the operation of the present invention, and FIG. 8 is a functional block diagram of the present invention. It is a diagram. 10...Operation unit, 21...CPU, 22...Memory circuit, 23...Clock circuit, 24...I/O port.
Claims (1)
を行うことを指示する指示手段と、時間帯を記憶
する時間帯記憶手段と、上記指示手段により特定
の処理を行うための指示が行われた際に上記計時
手段から現在時刻を読み出すと共に上記時間体記
憶手段から時間帯を読み出し、この時間帯に上記
現在時刻が含まれるか否かを判定する判定手段
と、この判定手段により含まれないと判定された
際に、上記指示手段による指示を無効とし、上記
判定手段により含まれると判定された際に、上記
指示手段により指示された特定の処理を行う処理
手段とを具備することを特徴とする電子式金銭登
録機。1. A timekeeping means for measuring the current time, an instruction means for instructing to perform a specific process, a time zone storage means for storing a time zone, and an instruction for performing a specific process by the above-mentioned instruction means. determining means for reading the current time from the timekeeping means and reading a time zone from the time body storage means to determine whether or not the current time is included in the time zone; and processing means for invalidating the instruction by the instruction means when determined, and performing a specific process instructed by the instruction means when determined to be included by the determination means. Electronic cash register.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1733178A JPS54110751A (en) | 1978-02-17 | 1978-02-17 | Electronic cash register |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1733178A JPS54110751A (en) | 1978-02-17 | 1978-02-17 | Electronic cash register |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS54110751A JPS54110751A (en) | 1979-08-30 |
| JPS6262395B2 true JPS6262395B2 (en) | 1987-12-25 |
Family
ID=11941061
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1733178A Granted JPS54110751A (en) | 1978-02-17 | 1978-02-17 | Electronic cash register |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS54110751A (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5790776A (en) * | 1980-11-26 | 1982-06-05 | Sharp Corp | Electronic cash register |
| JPS57101969A (en) * | 1980-12-17 | 1982-06-24 | Casio Comput Co Ltd | Drawer control system in each time zone of electronic register |
| JPS57178554A (en) * | 1981-04-27 | 1982-11-02 | Casio Comput Co Ltd | Setting system for operation time zone by person in charge |
| JPH0760472B2 (en) * | 1985-07-10 | 1995-06-28 | カシオ計算機株式会社 | Input device |
-
1978
- 1978-02-17 JP JP1733178A patent/JPS54110751A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS54110751A (en) | 1979-08-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4245311A (en) | Electronic cash register | |
| US4424567A (en) | Electronic cash register with timekeeper | |
| JPS6057635B2 (en) | Preset registration method | |
| JPS6262395B2 (en) | ||
| JPS6053360B2 (en) | Aggregation method in cash register | |
| JPS6027434B2 (en) | Aggregation method in electronic cash register | |
| JPS5831623B2 (en) | electronic cash register | |
| JPS58114158A (en) | Electronic register with aggregation function by time zone | |
| JPS6226517B2 (en) | ||
| JPS6239465B2 (en) | ||
| JPS5813938B2 (en) | electronic cash register | |
| JPS5839367A (en) | Number management method | |
| KR830000624B1 (en) | Electronic cash register | |
| JPS5944662B2 (en) | Electronic register aggregate data comparison method | |
| JPS5847471Y2 (en) | Electronic register with transaction-specific registration function | |
| JPS5880763A (en) | Electronic cash register | |
| JPS5834524Y2 (en) | electronic cash register | |
| JPS6126955Y2 (en) | ||
| JPS6336462Y2 (en) | ||
| JPS594349Y2 (en) | electronic register | |
| JPS5942346B2 (en) | Mode specification method for electronic cash registers | |
| JPS5833979B2 (en) | electronic cash register | |
| JPH033276B2 (en) | ||
| JPS5939062B2 (en) | electronic cash register | |
| JPS5690365A (en) | Electronic register |