The present invention relates to computer systems for cash registers. In particular, it relates to computer systems wherein both the total price of articles involved in one particular transaction and the category of the articles in the transaction will be determined automatically.
In the conventional operation of a cash register, each article purchased by a customer has a ticket indicating its price to the cashier. The cashier then totals the prices of all the articles on a calculator. Such computations by a cashier is time consuming and also tends to introduce errors into the computation.
The present invention provides a cash register computing system for furnishing first and second output signals respectively signifying the total price of the plurality of items in a transaction and the total number of items in each of a determined plurality of categories in the transaction. It comprises a ticket for each item, the ticket having machine readable markings signifying the price and the category of the item. The system comprises read-out means for reading out the price and category markings and furnishing corresponding price and category marking signals. It comprises first and second buffer storage means connected to the readout means for storing the price and category marking signals, respectively. It further comprises price adder means connected to the buffer storage means for adding stored price marking signals read from each of the tickets to stored price marking signals read from previous tickets in the transaction and furnishing the first output signals following addition of stored price marking signals read from the last of the tickets in the transaction. The system further comprises a plurality of category adder means connected to the second buffer storage means, each for counting category marking signals signifying a predetermined one of the categories, whereby each category adder means furnishes a signal signifying the total number of items in the associated category in the transaction.
It will be noted that a system in accordance with this invention completely eliminates the need for the cashier to carry out any operation other than the insertion of the ticket into a slot carrying it past the read-out means. This, in turn, reduces the waiting time for each customer and prevents the introduction of human error into the price charged the customer.
It should further be noted that the tickets for each item are not restricted to tickets attached in a department store but may equally well be tickets utilized in a restaurant to indicate the type of food sold to a customer. The tickets may further be tickets used, for example, in a manufacture's inventory proceedings.
Additional advantages and features of the present invention will be more clearly understood from the following detailed description, taken in connection with the accompanying drawing, in which:
FIG. 1 shows a meal ticket usable in the system of the invention;
FIG. 2 is a block diagram of the overall system;
FIG. 3 is a more detailed diagram of one of the pulse generating circuits of FIG. 2;
FIG. 4 is a more detailed diagram of the clock pulse generating circuit (J) of FIG. 2;
FIG. 5a is a more detailed diagram of the counter output gating circuit (K) of FIG. 2;
FIG. 5b is a table showing the outputs of the circuit of FIG. 5a in response to price markings of the ticket shown in FIG. 1, and the associated clock pulses;
FIG. 5c is a timing diagram corresponding to FIG. 5b;
FIG. 6a is a more detailed diagram of the pulse sequence furnishing means (L) of FIG. 2;
FIG. 6b is a more detailed diagram of the comparator (550) of FIG. 5a;
FIG. 6c is a timing diagram illustrating the operation of the circuit of FIG. 6a;
FIG. 7 is a diagram showing the control circuit (N) for driving the print-out in display means;
FIG. 8 is a more detailed circuit diagram of the category counter control circuit (X) of FIG. 2; and
FIG. 9 shows the code converter and category counters associated with units H.sub.1 and H.sub.2 of FIG. 2.
A preferred embodiment of the present invention will now be described with reference to the drawing.
FIG. 1 shows a meal ticket usable in the present invention. It is a beverage ticket and the price of the beverage is 120 yen. The ticket shown in FIG. 1 has areas 2 and 2' showing the name of the item purchased, and areas 3 and 4 showing the price of the item. Machine readable markings are present in a region 5 which is subdivided into a first region 7, carrying the price markings, and a second region 6, carrying the category markings. Region 5 is divided into three columns A, B, C. The columns each represent a decimal place in the price of the item, each horizontal line in colunn A representing 1,000 yen, each horizontal line in column B representing 100 yen and each horizontal line in column C representing 10 yen. Thus the price representing 120 yen is represented by two horizontal lines 9 in column C, one line in column B and no lines in column A.
The category marking region 6 comprises several horizontal lines, two in the example, and also three columns. Each catagory is signified by a different combination of horizontal lines 8, such as the lines in column A and in column C shown in FIG. 1. While the horizontal lines shown in FIG. 1 are in particularly suitable for read-out by optical means, other category and price markings, such as pumched holes, magnetic marks, etc., may be used to replace these optical markings. Dotted line 10 indicates machine perforations which may be provided if necessary. Horizontal lines 11, 11', 12 and 12' are also suitable for optical read-out.
A diagram of the overall system is shown in FIG. 2. The read-out means 13 comprises three light-emitting diodes a, b and c energized from a power supply E. These diodes are positioned so that each illuminates a corresponding one of the columns A, B, C of ticket 1 as the ticket passes along its predetermined path. As shown, ticket 1 is inserted into a slit 14 and then transported along a predetermined path extending in the direction of columns A, B and C by ticket drive D. In the preferred embodiment of the present invention, this ticket drive is a conveyor belt. After the ticket has been transported in the direction of the arrow past the readout means, it is released from the path through an outlet 14'. During the transport of the ticket along the predetermined path, the circuit operates as follows:
When the lower edge p of the ticket first passes point Q just below inlet 14, a first position detector switch (part of the position control means) 21 disposed at point Q will operate. The signal for operating switch 21 may, for example, be produced by interrupting the light beam generated by a light-emitting diode disposed on one side of the ticket and falling on a photoelectric element or phototransistor disposed on the other side of the ticket by the bottom edge of ticket 1. Alternatively, it may be supplied by operating a lever or limit switch or by sensing a punched hole or magnetic mark provided on the ticket. In any case, operation of the detector switch 21 causes an output signal to be applied through amplifier 31 to the ticket driving motor D. The ticket is then transported downward until horizontal line 11' passes through the read-out location where light-emitting diodes a, b, c and corresponding photoreceivers a', b', c' are positioned. At this point, the bottom end p of the ticket will pass position R where a second position control switch 22 will be activated to produce an output signal which, after amplification by amplifier 32, is applied to a pulse generator circuit F.sub.1. The latter circuit is shown in more detail in FIG. 3. Let it suffice to say here that application of a pulse to circuit F.sub.1 causes a clear pulse C.sub.1 to be applied to the first buffer storage means which comprises counters 4a, b, c. Further, a gating pulse G.sub.1 is generated which causes gate F to become conductive.
As the ticket passes the read-out location, the light beams from light-emitting diodes a, b and c illuminate columns A, B and C, respectively, in such a manner that the respective reflected light will be incident on photo-transistor a', b' and c', respectively. The absence of such light will thus indicate the presence of price markings 9. These price markings in each column will thus be read out in series, applied to the respective amplifiers 5a, 5b and 5c and then, respectively, to pulse forming circuits 6a, 6b, and 6c. Since gate F is conductive, the read-out pulses will be applied to counters 4a, 4b and 4c, respectively. The count in each of the counters thus represents the number of price markings read out in the corresponding decimal place or column.
When horizontal line 11 separating the price and category regions passes read-out location .alpha., the bottom end p of the ticket will pass by point S. This causes the third position control switch 23 to be actuated. The resulting position control signal, after amplification in amplifier 33, is applied to pulse generating circuit F.sub.1 to cancel gating signal G.sub.1. It is further applied to the input of pulse generating circuit F.sub.2, which causes this pulse generating circuit to generate a clear signal C.sub.2 for clearing the part H.sub.1 of the second buffer storage means. Further, a gating signal G.sub.2 is generated for enabling the counter which is comprised in the second buffer storage means to respond to the signals applied at the counting input.
When the category markings, including, first, mark 8 in line e, pass the read-out location, any signals read from any of the columns will be amplified by amplifier circuits 5a, 5b and 5c and again formed into pulses by pulse forming circuit 6a, 6b and 6c. The signals at the outputs of pulse forming circuit 6a, 6b and 6c are then applied to the inputs of unit H.sub.1 where they are stored. Specifically, since unit H.sub.1 is a binary counter, the output signals of unit H.sub.1 signify 2.sup.0, 2.sup.1 and 2.sup.2, respectively.
At the time line 12 passes the read-out location, bottom p of the ticket passes point T. The fourth position control switch 24 is thus activated and a signal is applied through amplifier 34 to the input of a pulse generating circuit F.sub.3. Also, a signal is applied to circuit F.sub.2 to stop gating pulse G.sub.2 and thereby block the input to unit H.sub.1. The pulse applied to unit F.sub.3 causes a clear pulse C.sub.3 to be applied to unit H.sub.2 which is the second counter in the second buffer storage means. Further, a signal G.sub.3 which enables counter H.sub.2 is also applied.
When line 8 passes the read-out means, the resulting signal at the output of pulse former 6c will be applied to the counting input of counter H.sub.2. It should be noted that this again is a binary counter, the outputs of this counter signifying 2.sup.3, 2.sup.4 and 2.sup.5, respectively.
When line 12' passes the read-out location, the bottom end p of ticket 1 will pass point U, activating position control switch 25. After amplification in amplifier 35, the pulse furnished by switch 25 is applied to a pulse generator F.sub.4, causing the generation of pulses R.sub.1 and R.sub.2 which will be further discussed below. It is also applied to pulse generator F.sub.3 to stop the generation of gating signal G.sub.3, thereby preventing any further inputs to counter H.sub.2.
When the top edge p' of the ticket passes switch U, a pulse is furnished at the output of amplifier 35, which stops ticket drive D. The ticket is then released from outlet 14'.
FIG. 3 shows a preferred embodiment of pulse generator F.sub.1. When the output of amplifier 32 changes from a high to a low level, a short pulse generating circuit which, in a preferred embodiment is a monostable multivibrator, furnishes a negative going pulse of relatively short time duration. This pulse passes an inverter (NOT circuit) the output of which is a positive going pulse C.sub.1. Pulse C.sub.1 is also used to set a flip-flop FF.sub.1 which is reset when the output of amplifier 33 makes the transistion from positivve to negative. The "1" output of flip-flop FF.sub.1 is gating pulse G.sub.1. Pulse generator circuits F.sub.2, F.sub.3, F.sub.4 are identical to the circuit shown in FIG. 3 and will not individually be shown here.
Again referring to FIG. 2, the above mentioned pulse R.sub.1 from the output of pulse generator F.sub.4 is used to release the cash box in the cash register (I, FIG. 2). Pulse R.sub.2 is used to initiate the transfer of the data stored in counters 4a, 4b and 4c to the price adder means MT. It must be kept in mind that counter 4c stores a binary coded number having bits A, B, C, D and representing the tens place of the price of the item. Similarly counters 4b and 4a store binary coded decimal signals respectively representing the hundreds and thousands decimal place of the price of the item. It is now desired that the signals stored in counters 4c, 4b and 4a be gated in a predetermined order to the output k of circuit K. This will be discussed in greater detail with reference to FIG. 5a. The .times. 10, .times. 100 .times. 1000 signals required for this gating are generated in block J of FIG. 2 which is shown in greater detail in FIG. 4.
FIG. 4 shows a pulse generator 15 furnishing signals T.sub.1. Signals T.sub.1 are applied to counter 16 whose output signals control display unit N, as will be discussed in greater detail below. The counter counts in accordance with a binary code, a change of state in the last bit D being applied to monostable multivibrator 17 which furnishes a relatively short duration output pulse t. Pulse t is applied to one input of an AND gate 18 whose other input is supplied the 1 output of a flip-flop 19. Flip-flop 19 is switched to the SET state (wherein a signal appears at its 1 output) by position control signal R.sub.2. Pulses T'.sub.1 at the output AND gate 18 are applied to a second counter 20. Counter 20 is a two bit counter whose outputs are connected in pairs to form the inputs for AND gates 40, 41 and 42. The outputs of AND gates 40, 41 and 42, are respectively the .times. 10, .times. 100 and .times. 1000 gating pulses T.sub.2. It will be noted that, when the count on counter 20 is zero, that is with signals 2.sup.0 and 2' energized, no pulse T.sub.2 is furnished. For a count of 1 on counter 20, signals 2.sup.0 and 2' are present simultaneously, thereby causing AND gate 40 to furnish an output signal. For a count of 2 on counter 20 signals 2.sup.0 and 2' are simultaneously present, causing AND gate 41 to furnish its output. Finally, AND gate 42 furnishes an output for count 3 on counter 20. As the count on counter 20 changes from a count of 3 to a count zero, a change in state of stage 2' of counter 20 is used to switch monostable multivibrator 43 to the unstable state where it furnishes a short pulse T.sub.4 suitable for resetting flip-flop 19. No further pulse T.sub.2 will thus be generated until receipt of the next position control signal R.sub.2 following inserting of the next ticket.
The gating pulses T.sub.2 generated in unit J described above are applied to the counter output gating circuit of FIG. 5a.
FIG. 5a comprises four sets of three AND gates each, the outputs of each set of AND gates being connected to the inputs of an OR gate. The outputs of the OR gates constitute the desired signals k. Each set of AND gates has one AND gate gated by the .times. 10 pulse, one gated by the .times. 100 pulse and one gated by the .times. 1000 pulse. Thus, application of the .times. 10 pulse causes a signal to be applied to the second input of AND gate 46 in the first set of AND gates and of the corresponding AND gates in the remaining sets. The output of OR gate 47 will thus be the A bit of counter 4c while the outputs of the remaining OR gates will be the B, C, and D bits of counter 4c.
As shown in FIG. 5b, the signal stored in counter 4a, corresponding to the markings in FIG. 1, is a zero. Thus all bits k.sub.A, k.sub.B, k.sub.C and k.sub.D will have a low output in response to the .times. 1000 gating signal. For counter 4b, having a stored count of one, k.sub.A will have a high output while k.sub.B, k.sub.C and k.sub.D will all have low outputs. Similarly, counter 4c, having a stored count of two, will have a high output from the k.sub.B and low outputs from k.sub.A, k.sub.C and k.sub.D. The resulting k outputs are shown in FIG. 5c plotted with respect to time. Thus, under control of the .times. 10 t.sub.2 pulse, OR gate 48 will all have a high output while OR gates 47, 49 and 50 will all have a low output. At the time of the .times. 100 pulse k.sub.A will have a high output while k.sub.B, k.sub.C and k.sub.D will all have low outputs. At the time of the .times. 1000 T.sub.2 pulse, no pulses will be furnished at any of the k outputs. The signals at the k outputs in FIG. 5a are herein referred to as the counting signals.
Each of the counting signals is now to be used to control the furnishing of a corresponding pulse sequence to the price adder means, namely counter MT. The relevant circuit is shown in FIG. 6a. The pulses furnished by pulse generator 15 of FIG. 4 are applied to one input of an AND gate 51. To its other input is applied the 1 output of a flip-flop 48. Flip-flop 48 is set by pulse T'.sub.1, that is a pulse syynchronized with pulses T.sub.2. The output of AND gate 51 is a pulse sequence MC which is applied to the input of counter MT and to the input of a further counter 49. The output of counter 49 is compared in a comparator 50 to the k signals, that is the counting signals. Upon coincidence, a signal is furnished at the output MS of counter 50 which is used to reset flip-flop 48. It is also used to reset counter 49. The pulse sequence MC thus has a number of pulses equal to the number signified by each counting signal k.
A preferred embodiment of comparator 50a is shown in FIG. 6b. As shown in FIG. 6b, the ABCD bits of counting signals k are each applied to one input of an OR gate 61, 62, 63 and 64, respectively. The corresponding bits of the output of counter 49 are applied to the second inputs of these OR gates. The output of each OR gate is inverted and applied to the input of an AND gate 65. The coincidence signal MS appears at the output or AND gate 65. OR gate 61-64 are exclusive OR gates, that is a signal is furnished as their outputs only when one of the other of the inputs is high and not when both inputs are either high or low. Thus, a signal MS can appear only when the output signal of counter 49 is exactly equal to the counting signal k, that is when each bit of the output of counter 49 is equal to the corresponding bit in the counting signal.
The resulting pulse sequences MC are shown on the so-labeled line in FIG. 6c. Two pulses are generated on line MC during the time of gating by signal .times. 10. The .times. 100 signal causes one pulse to appear on line MC since signal MS resets counter 49 and flip-flop 48 after the appearance of one pulse. Similarly, the .times. 1000 T.sub.2 signal causes no pulse to appear on line MC. These pulses are then added to previous totals stored in counter MT. The signal stored in counter MT is thus a signal signifying the sum of the prices of all items since the last time the counter was cleared. Clearing of the counter takes place by a pulse CL.sub.2. This is one of the pulses resulting from the activation by the cashier of switch s.sub.3, which will be discussed below.
The signals on line MC are also applied to the counting input of the grand total counting circuit GT. Since the latter is to furnish a signal indicating the sum of the prices of all items sold, for example, during a day, the clear signal CL.sub.2 is not applied thereto.
The circuit of FIG. 7 shows the multiplexers required to furnish the display signals DP and the printing signals PR required to effect a print-out and a display of the numbers stored in counter MT. Let it be assumed that counter MT has six columns while counter GT has eight columns. This is more than adequate to store the day's total and the total for each transaction since each column represents a particular decimal place. Since the numbers are stored in a binary coded decimal form, the signal in each column will be represented by four bits. Thus, four multiplexers m.sub.1 -m.sub.4 are assigned to the GT counter and four multiplexers m.sub.5 -m.sub.8 are assigned to the MT counter. The information is entered into the multiplexers in parallel, that is the first bits in columns 0-7 of counter GT are entered into multiplexer m.sub.1 simultaneously, the second bits into multiplexer m.sub.2, etc. Similarly, the first bits in columns 0-5 of counter MT are entered simultaneously into multiplexer m.sub.5, the second bits into multiplexer m.sub.6, etc. The display contemplated for the present invention is a display wherein an indicator is furnished for each decimal place. The indicators are not continuously energized, but are energized cyclically at a sufficiently rapid rate so that persistence of vision causes the output to appear steady. This cyclical output of the digits of each decimal place is accomplished under control of the signals T.sub.3. Specifically, the A, B and C counts from counter 16 of FIG. 3 are used to gate all the bits in each column 0-5 in sequence. The D signal of pulses T.sub.3 is used to control the output, that is it is used as a strobe so that output signals DP appear only when the D signal is low.
The total stored in counter MT and the total in counter GT are also to be available for printout. For this purpose, NAND gates 71-74 each have one input connected to receive one bit in the DT signal and a second input connected to the D signal of signals T.sub.3. The output NAND gates 71-74 are applied to the first input further NAND gates 81-84. The second inputs of NAND gates 81-84 are connected to the multiplexer outputs of multiplexers m.sub.1 -m.sub.4, that is the multiplexer storing GT totals. Since the multiplexers operate to furnish a low signal from the "out" terminal or a high signal from the "out" terminal in response to a high "strobe", signals from counter MT will appear to constitute the PR signals when the D signal is high and the PR signals will represent the grand total decimal places when the strobe is low. This results from the fact that the output of NAND gates 71-74 is high when the strobe is high, independent of the DP signal values, while no output is furnished from the GT multiplexers when the strobe is low.
The start of the printer operation is controlled by activation of switch S.sub.3 of FIG. 2. Activation of the switch causes a pulse furnishing circuit CL similar to circuit F.sub.1, to furnish signals CL.sub.1 and CL.sub.2. Signal CL.sub.1 is applied to the starting circuit ST of the printer. This furnishes the ST signal which starts the printer by first advancing the paper by one line and then printing out in accordance with the PR signals furnished, as described above, from the multiplexer unit. Pulse CL.sub.2 clears counter MT after the print-out has been finished.
Further, FIG. 2 shows a switch S.sub.1. Activation of switch S.sub.1 causes the paper in the printer to be advanced by one line without subsequent printing.
Switch PW on FIG. 2 is a power switch activation of which will serve to clear both counters MT and GT. When switch PW is on, power is supplied to all circuits.
If an error has been made, and the price of the next subsequent ticket is to be subtracted from the total in adders MT and GT, switch S.sub.2 is pressed. This causes the updown control circuit UD to furnish a signal switching both counters to the down-counting state. Upon insertion of the next subsequent meal ticket, the counters MT and GT will subtract input signals MC from previous totals. When the count has been completed, signal T.sub.4 (see FIG. 4) is used to reset the up-down control circuit so that the insertion of the next subsequent ticket will again cause counters MT and GT to count up. In a preferred embodiment, the up-down control circuit is a flip-flop which is set by activation of switch S.sub.2 and reset upon receipt of pulse T.sub.4.
The transfer of signals from the second buffer storage means H.sub.1 and H.sub.2 to a plurality of counters, each counting the number of items in a particular category, must still be discussed. Referring first to FIG. 9, it is seen that the signal outputs of the buffer storage means are applied to the inputs of decoder 191 which has 64 outputs, each associated with one of the catagories. Each of these outputs P.sub.1 -P.sub.64 is applied to the first input of two AND gates A.sub.1, A.sub.1 ' . . . A.sub.64, A'.sub.64. The second input to AND gates A.sub.1 -A.sub.64 is a signal x.sub.u, while the second input to AND gates A'.sub.1 -A'.sub.64 is a signal X.sub.d. The output of AND gate A.sub.1 is applied to the forward counting input of a counter 101 while the output of AND gate A'.sub.1 is applied to the reverse (down) counting input of the same counter. The outputs of the remaining AND gates are similarly connected, all A gates furnishing signals to the forward counting inputs and all A' gates furnishing signals to the reverse counting inputs of the corresponding counters.
The circuit operates as follows: The category marking signals stored in counters H1 and H2 cause energization of one of the outputs P.sub.1 -P.sub.64. The so-energized output serves to gate the associated AND gate to the conductive state. For each ticket, a single pulse is furnished on either line X.sub.d or line X.sub.u, as will be discussed with reference to FIG. 8. Thus, the count on whichever counter is associated with the energized output of the decoder is either advanced or set back by one count. As a consequence the number of articles in the particular category is signified by the count on each of the counters 101-164. Under normal conditions and if no error is made by the cashier, the counters will count up. The down counting capability is provided only in case of an error.
The generation of the signals X.sub.u and X.sub.d will now be discussed with reference to FIG. 8. FIG. 8 shows two AND gates 201 and 202, each having three inputs. The first input to each of the AND gate is signal R.sub.1. The second input of AND gate 201 is signal UD which indicates that a down counting is to take place, while the second input of both AND gates is a signal SM. Signal SM is an inhibit signal which is furnished when switch S4 of FIG. 2 is activated. Switch S4 is activated when the system of FIG. 2 is to act as a calculator. This will be discussed further below. In any case, signal X.sub.d is furnished in the simultaneous presence of signals UD, R.sub.1 and SM. The signal X.sub.u is a single pulse generated in response to signal R.sub.1 in the presence of the inverted signal UD and SM. Pulses X.sub.d and X.sub.u, when applied to the category counters of FIG. 9, cause these counters to be properly advanced or decreased, as described in reference to FIG. 9.
If it is desired that the system of FIG. 2 serve as a calculator only, switch S4 is closed, causing a generation of signal SM. Signal SM causes the cashier box I to be locked and further inhibits the start signal ST for printer PR and, as mentioned with reference to FIG. 9, the generation of the pulses for application to the category counters. Signal SM further blocks gate M, serving as an input to counter GT, thereby blocking signals MC from counter GT. Activation of switch S4 thus causes counts to be added to counter MT only. These counts are then displayed in display unit DP but are not printed. The 0 output (DP.sub.off) of flip-flop 19 in FIG. 4 is introduced to display unit DP to gate the drive signal of display circuit and to operate to cut off the display while the signal in unit MT is changing.
It will be evident from the foregoing discussion that the present system, as shown in FIG. 2 in a preferred embodiment, is equally adaptable to meal tickets in restaurants and to price tags on items being sold in a department store as well as many other applications. If a price tag is, for example pasted on the article to be sold, the machine perforations 10 may be used to detach a portion of the price tag and this portion may be then inserted into the system of the present invention. The different storage units as well as the counters and electric circuits interconnecting the same may also be embodied in circuits other than those shown in the figures without in any way departing from the spirit of the present invention. What is claimed as new and desired to be protected by letters patent is set forth in the appended claims.