Background of the Invention
1. Field of the Invention
The field of the invention is automatic coin dispensing machines.
2. Description of the Prior Art
Until recent years coin dispensing machines have been constructed as electromechanical devices. Such machines included a keyboard, a number of electromechanical switches actuated through the keyboard, a coin magazine with a plurality of coin ejector solenoids having a finger that could be aligned to kick a coin out of a respective channel, and a motor for driving these coin dispensing fingers to kick out the required amount of change to a coin chute. The operator of these coin dispensers was required to "key in" either the amount of change to be dispensed, or in devices with simple calculating ability, was required to key the cents to be tendered which the coin dispenser subtracted from $1.00 to arrive at the change figure that was dispensed. These earlier devices are distinguishable from cash registers which had much greater calculating capability, but did not dispense change automatically.
Electromechanical cash registers have for the most part been replaced by smaller, lighter electronic machines incorporating digital circuitry. In some instances, the calculating and record-keeping functions of such cash registers have been expanded by substituting point of sale computer terminals such as disclosed in Asbo, et al., U.S. Pat. No. 3,631,403, issued Dec. 28, 1971. Where such expanded capability is not necessary, it is more economical to replace such cash registers with automatic coin dispensers with some calculating capability. These coin dispensers can also serve as peripheral units, which can be connected through cables to an electronic cash register.
Electronic coin dispensers still utilize some electromechanical elements such as coin ejector solenoids and a payment solenoid to dispense coins. It is also desirable to provide a printer, which is another electromechanical device to be interfaced with the digital electronics of a modern coin dispenser. Various technical problems are presented in interfacting digital control circuitry with such electromechanical devices. For example, the voltage to the print head must be carefully controlled to prevent the head from overheating, and the roll carrying the record-keeping tape must be operable to prevent slack from developing and to provide sufficient space between groups of numbers representing different transactions. As another example of an interface problem, a minimum time arrival must be maintained between payment operations to allow the electromechanical elements to recover after each operation.
Summary of the Invention
The invention is embodied in a coin dispenser with calculating capabilities and with a printer for recording calculations made prior to coin dispensing transactions.
The apparatus of the present invention more particularly includes a coin-holding means for holding coins in stacks of different denominations, a plurality of coin ejectors for selecting coins in individual stacks for ejection, and a payment driver for driving the coin ejectors to dispense the selected coins. The coin dispenser also includes a print head for forming alphanumeric characters in respective columns across the width of a record-keeping tape. Means are provided to enable portions of the print head to print characters in selected columns on the tape. A keyboard is provided for entering calculating and coin dispensing commands and operands associated with these commands. The printing and coin dispensing elements are controlled by a microcomputer which generates signals to actuate the printing and coin dispensing elements.
The coin dispenser employs a microcomputer and a minimal amount of hardware interfacing it with the printer, the coin ejectors, the payment driver, and a tape advance mechanism. With data being coupled between the microcomputer and a serial-to-parallel converter through a serial data line, the major portion of the I/O capacity of the microcomputer is reserved for othe functions. The serial-to-parallel converter can be loaded with both print and coin dispense data. Although the printing and coin dispensing elements are alternately operated the speed of the coin dispenser is such that it is not apparent to an operator.
The processing capabilities of the microcomputer are employed to great advantage by providing resident firmware in an on-board memory. As characterized by this firmware portion, the microcomputer provides the coin dispenser with an automatic "dispense on total" operation, where a calculated total is dispensed in response to the operation of the dispense key. The automatic operation is enhanced by the use of switches or jumper connections, which can be sensed at inputs of the microcomputer. One switch is set according to whether a dollar coin magazine or a triple quarter coin magazine is installed in the coin dispenser. Another switch is set to determine a limit of either $.99 or $4.99 to be dispensed. Selection of the $.99 limit allows the automatic dispensing of the cents portion of a grand total of dollars and cents shown on the display. The microcomputer then couples the dollars portion of the sum to the display, so that when necessary, dollars can be dispensed by the operator from another source. The microcomputer allows either limit to be used with the dollar coin magazine, but only the $.99 limit is permitted for the triple quarter magazine. The switches or jumper connections allow the manufacturer to provide machines with different options by presetting the switches or wiring the jumpers at the manufacturing facility.
In prior devices, additional special function keys were provided for split change operations. In this coin dispenser the "0/25" and "00/$" keys are dual function keys, which are used for split change dispensing of $.25 and $1.00, respectively. The microcomputer, with its on-board firmware, is able to examine different key operation sequences to distinguish split change operations from other operations where the "0" and "00" keys represent ordinary digits.
Besides controlling the printer, the coin dispensing elements and the LED display, the microcomputer is furtherutilized to receive data through a remote interface. Amounts that are dispensed as a result of a remote command are displayed in a manner distinguishable from amounts dispensed as a result of keyboard inputs.
The invention overcomes several problems in interfacing mechanical devices such as the printer, the tape advance mechanism and the coin dispensing mechanisms. In the specific embodiment described herein, the printer is of the thermal type in which the voltage applied to the print head must be carefully controlled to prevent overheating. A pulse-width converter in a print head enable circuit senses variations in supply voltage and adjusts the duration of the voltage to the print head to prevent overheating. When an automatic advance option is selected by the setting of a switch, the microcomputer controls the advance of the paper tape and insures that it is advanced sufficiently after each total operation, when a portion of tape is likely to be torn off. The tape is also advanced at an operator's discretion each time the paper advance key is depressed.
In the specific embodiment described below, the coin ejectors are actuated by a rotary solenoid. The coin ejectors then require an interval for spring recovery before the next dispense operation. The microcomputer times this interval and assures that voltage is not applied to the coin ejectors and the payment driver until they have recovered from a previous operation. A dashpot is connected to an arm on the rotary solenoid payment driver for smoother operation, because the payment solenoid is otherwise a snap-action device.
Another advantage of the invention is provided in the operation of the clear/clear entry (C/CE) key. When the C/CE key is operated in a clear entry mode before a function key has been struck, the printer will not mark on the tape, thereby conserving both tape and wear on the print head.
It is an object of the invention to provide a small, low-cost, calculating coin dispenser with a versatile printer.
It is another object of the invention to provide a number of operator-selected printing and dispensing options such as the automatic dispensing of the cents portion of a calculated sum, and the dispensing of amounts up to $4.99 including the dispensing of dollar coins. It is another object of the invention to provide dual function keys for directing split change operations.
Other objects and advantages, such as those discussed above, will be apparent to those skilled in the art from the description of the preferred embodiment of the invention which follows. In the description reference is made to the accompanying drawings, which form a part hereof, and which illustrate the preferred embodiment of the invention. Such embodiment does not, however, represent the full scope of the invention, which is defined by the claims following the description.
Brief Description of the Drawings
FIG. 1 is a perspective view of a calculating coin dispenser that embodies the present invention;
FIG. 2 is an enlarged fragmentary sectional view taken in the plane indicated by line 2--2 in FIG. 1;
FIGS.3-6 are schematic diagrams of the electronic portion of the coin dispenser of FIG. 1;
FIG. 7 is a flow chart of a start-up and key processing routine for the coin dispenser of FIG. 1;
FIGS. 8a, 8b and 9 are flow charts showing two branches of the routine of FIG. 7 for processing certain key entries;
FIGS. 10a and 10b are flow charts of a SERVICE interrupt routine performed by the coin dispenser of FIG. 1;
FIGS. 11a and 11b are flow charts showing a PRINT routine for operating the printer in the coin dispenser of FIG. 1;
FIGS. 12a and 12b are flow charts showing a DISPENSE routine during which coins are dispensed from the coin dispenser of FIG. 1; and
FIGS. 13a and 13b are flow charts showing a REMOTE routine for processing remote data received by the coin dispenser of FIG. 1.
Description of the Preferred Embodiment
Referring to FIG. 1, a calculating coin dispenser 10 of the present invention has a top cover 11, which is received over a chassis 12. A coin magazine 13 is inserted from the top and to the rear of the chassis 12 and stands against an upwardly extending rear portion of the cover 11. Upright channels 14 are formed in the coin magazine 13 to receive and hold stacks of coins 15 in denominations, from left to right, of one cent, one cent, one cent, five cents, ten cents, ten cents, 25 cents, 25 cents, and one dollar. Two cents are actually dispensed from two of the one-cent stacks. The coins are dispensed from the coin dispenser through a coin chute 16, the exit of the chute 16 being seen at the lower right side of the top cover 11.
The operator selects coins to be dispensed by operating keys 17 that form a keyboard 18 on an inclined top surface of the chassis 12. Digit keys 0-9 are arranged in standard calculator fashion except for the "0" key, which is positioned at the bottom of the 7-4-1 key column. A dollar key marked "00/$" is disposed at the bottom of the 8-5-2 key column, and a clear/clear entry key marked "C/CE" is disposed at the bottom of the 9-6-3 key column. The clear/clear entry key is one of three calculator keys. The other two are an addition key and a subtraction key, which are marked "=" and "=", respectively, and which are positioned to the right of the numerical section of the keyboard. Four control keys are provided, including the SUBTOTAL and TOTAL keys at the far right, a DISPENSE (DIS) key above the addition and subtraction keys, and a PAPER ADVANCE (PAPER ADV) key to the left of the numerical keys. A power on/off switch 9 is located to the upper left of the numerical keyboard.
Above the keyboard 18 is an eight-digit LED display 19 for displaying alphanumeric information to audit calculator and coin dispensing operations, the display 19 being visible through a rectangular aperture in the chassis 12. Data can also be received by the coin dispenser through a transmission cable 20, which connects another device such as an electronic cash register (not shown) through two mating remote interface connectors 21.
To the left of the keyboard 18 is a thermal printer including a platen (not shown) on which a roll of thermally-sensitive paper tape 23 is mounted. This recording tape 23 is fed part a thermal print head 24 along a transparent guide 25, and is then fed back on top of a printer access cover 22. The paper 23 can be pulled forward against a top edge of the guide 25 to tear a strip off the roll when desired. When an automatic tape advance option is selected and the TOTAL key is operated, the tape 23 will be advanced six and a fraction character lines to that the last printed line of characters will be positioned above the guide 25 for convenient tearing of the strip of printed matter.
Referring to FIG. 3, the calculating, coin dispensing and printing functions of the coin dispenser 10 are controlled by a microcomputer 26, which in this embodiment is the F3870 Micro-Machine .TM.2, manufactured by Fairchild Camera and Instrument Corporation. This single chip microcomputer 26 includes an on-board, 2048-byte, mask-programmable read-only memory (PROM) 26a and an on-board, 64-byte, scratchpad, random-access memory (RAM) 26b. This chip also includes four bidirectional I/O ports, P0, P1, P4 and P5. Each of these I/O ports, P0, P1, P4 and P5 has eight single-bit lines which can be used as either TTL compatible inputs or as latched outputs. The lines in the first I/O port, P0, are designated serially from P0-0, the least significant bit, to P0-7, the most significant bit. The other I/O ports are numbered accordingly. Port 6 (not shown) serves as an interrupt control port and port 7 (not shown) is a port for addressing a binary timer. Besides I/O ports, the microcomputer also includes a pair of time base inputs XTL.sub.1 and XTL.sub.2, a RESET output and a STROBE output. A 4.0 megahertz external clock crystal 27 is connected across the time base inputs XTL.sub.1 and XTL.sub.2. The connections to the I/O ports and other terminals on the microcomputer 26 will be described below.
The on-board PROM 26a stores a plurality of firmware instructions for directing the operation of the microcomputer 26 and the other circuitry in the coin dispenser 10. These instructions are listed in Appendix A and will be described in relation to FIGS. 7-13 which show the operation of the coin dispenser. The scratchpad RAM 26b provides 64 8-bit registers which are addressed through an indirect scratchpad address register (ISAR) included in the microcomputer chip 26. Appendix B shows a character look-up table and Appendix C shows the usage of the registers in the scratchpad RAM 26b, and these tables are of assistance in following the program listing provided in Appendix A. For further information concerning the architecture, the operation and the instruction set of the F3870 microcomputer 26, reference is made to a Preliminary Data Sheet on the subject, which was published in 1977 by Fairchild Camera and Instrument Corporation.
The microcomputer 26 controls a plurality of electro-mechanical output devices that actually perform the coin dispensing operation. The microcomputer also actuates the thermal print head 24 and the mechanism for advancing the thermally-sensitive tape 23 past the print head 24. It controls this apparatus while still providing I/O capacity for sensing keyboard inputs and remotely entered inputs that are received through the remote interface connector 21.
Referring to FIGS. 2 and 3, the coin dispensing mechanism includes a plurality of coin ejector mechanisms 28, each with a finger 28a that is positioned behind a respective channel 14 in the coin magazine 13. The finger 28a is lifted to become aligned with one or more coins 15 in the stack when a lifter solenoid 28b is energized. Such coin ejector mechanisms are more fully described in Buchholz, U.S. Pat. No. 2,988,093, issued June 13, 1961. Coins 15 are not actually dispensed, however, until a payment mechanism is actuated to drive the coin ejector mechanism 28, and to move the finger 28 forward to eject coins 15 in the coin chute 16. The coin ejector mechanism then requires a period of time to recover before the next dispense operation. In U.S. Pat. No. 2,988,093 a motor is coupled through a solenoid-actuated clutch to drive the coin ejector mechanism 28. In the coin dispenser 10 of the present invention, a rotary solenoid 30 is coupled through a drive linkage to the coin ejecting fingers 28a.
Use of a rotary solenoid 30 instead of a motor reduces size and weight of the electromechanical portion of the coin dispenser 10, however, the rotary solenoid 30 is a snapaction device, which is not, ordinarily, an ideal driving mechanism. To provide smooth operation when the rotary solenoid 30 is used as the sole driving means, a dashpot 31, seen in FIG. 2, is mounted on the inside of the chassis 12 next to the solenoid 30 and connected to a generally horizontal arm 28c in the drive linkage. The rotary solenoid 30 has a radially extending arm 30a which is connected to a plate 28d mounted on the horizontally disposed linkage arm 28c. The dashpot 31 has a plunger 31a which is also coupled to horizontal arm 28c through the plate 28d to damp the driving motion of the rotary solenoid 30.
Referring to FIG. 3, the lifter solenoids 28b which are seen in FIG. 3, and the payment solenoid 30 which is not seen in FIG. 3, are electrically driven by respective drivers 31 and 32. The lifter solenoids driver 31 is a relay and the payment solenoid driver 32 includes a relay driver and a solid state relay that controls the energization of the payment solenoid 30 in FIG. 2. The payment solenoid driver 32 is controlled from output P5-5, while the lifter solenoids driver 31 is controlled through a dispense one-shot multivibrator 33. On "power-up" signals from the RESET terminal on the microcomputer 26 are coupled through an inverter 34, a NAND gate driver 35 and a MASTER RESET line to a reset input R on the dispense one-shot multivibrator 33. Output P5-4 on the microcomputer 26 is connected to a triggering input T and when a triggering pulse is received, the multivibrator 33 generates an output pulse, which is coupled through one inverter 97 to the lifter solenoids driver 31, and which is connected through another inverter 98 to one input of a low true AND gate 36. The output 36a of this AND gate 36 is coupled to the P0-7 input on the microcomputer 26, to "lock out" the microcomputer from starting another dispense operation until the electromechanical devices have recovered from a previous dispense operation.
Selection of the lifter solenoids 28b to be energized is controlled by a shift register 37, which is also used with a second shift register 38 to select characters to be printed on the tape 23 in FIG. 1. Line P5-0 on the microcomputer 26 is connected to the A and B serial inputs on the first shift register 37. Lines P5-1 and P5-2 are connected to the clock pulse (CP) input and the master reset (MR) input on both shift registers 37 and 38. The high order output Q7 on the first shift register 37 is connected to the A and B serial inputs on the second shift register 38, so that the second shift register 38 provides eight outputs of higher order than those of the first shift register 37. Outputs Q0-Q7 of the first shift register are coupled through current sink drivers 39 and diodes (not shown) to the lifter solenoids 28b for all but the one-cent coin channel. The lowest order output Q0 is coupled to the one dollar dispense solenoid 28b while the highest order output Q7 in the first shift register is coupled to a lifter solenoid 28b for one of the two-cent coin channels 14. The low order output Q0 on the second shift register is coupled to a dispense solenoid 28b for the one-cent coin channel 14. The shift registers receive serial data from the microcomputer 26 through lines P5-0 and present parallel data at their outputs Q7-Q0 to select the coins to be dispensed. The coins 15 are then dispensed when signals are generated to the driver circuitry described below.
The shift registers 37 and 38 are also coupled to print head 24 to control printing operations. High order outputs Q7-Q3 on the second shift register 38 are each coupled through one of five AND gates 40, one of five line drivers 41, one of five resistors 42 and one of five Darlington transistors 43 to dot-making elements "1-5" for each digit in the print head 24. The print head 24 is twelve digits wide, with one digit being skipped to provide an empty column on the tape 23. Each set of five dot-making elements is enabled through a respective printer digit enable input corresponding to digits "1-10" and "12" in which characters are to be printed. Outputs Q0-Q7 on the first shift register are coupled to printer digit enable inputs "1-8", respectively. Outputs Q0-Q2 on the second shift register are connected to printer digit enable inputs "9", "10" and "12", respectively. Each character is printed as a matrix of dots that is five dots wide and seven lines high with 35 dot positions in all. When a line of data is to be printed the first dot is printed for all digits at once. The first dot-making element (DOT 1) for those digits for which the dot is to be printed are enabled, while the first dot-making elements those digits for which the dot is to be skipped are not. DOT 2 is then selected, the second dot-making element for each appropriate digit is enabled, and the cycle continues until five dots have been selected for the digits "1-10" and "12". When the AND gates 40 are not enabled the print head 24 is not operated. By selectively enabling either the coin dispenser driver circuits 31 and 32 or the AND gates 40 the microcomputer 26 determines whether data in the shift registers 37 and 38 selects coins to be dispensed or characters to be printed on the record-keeping tape 23.
The Darlington transistors 43 are supplied by a +18 supply voltage which is stepped down from an a-c power supply line (not seen). The power line voltage can vary with the result of unacceptable heating in the print head 24. The enable signal to the AND gate 40 is controlled by a print one-shot multivibrator 44 which receives its triggering input signal from output P5-3 on the microcomputer 26, and which has an output coupled to an enable input 40a on the AND gates 40. This output is also coupled through an inverter 45 to an input on the low true AND gate 36 that is coupled to line P0-7 to sense the duration of the DISPENSE and PRINT cycles. The output of the inverter 45 is also coupled through a pulse width converter circuit 46 to one input of another low true AND gate 47. The MASTER RESET line is coupled to the other input on this AND gate 47, which has its output connected to the reset (R) input on the print one-shot multivibrator 44. The pulse width converter circuit 46 senses the logic state of the output on the print one-shot multivibrator 44 together with any variations in the supply voltage. When the supply voltage varies by a predetermined amount from the rated voltage a signal from the pulse width converter circuit 46 enables the low true AND gate 47 to couple a reset pulse to the print one-shot multivibrator 44 to disable the AND gates 40 and prevent overheating in the print head 24.
How the pulse width converter circuit 46 senses variations in supply voltage is best explained in view of FIG. 4, where the output from the inverter 45 is received at an input on an oscillator-counter 48. An R-C coupling circuit 49 is connected to inputs .phi..sub.0, .phi..sub.0 and .phi..sub.I of the counter 48 to select the frequency of the count. Outputs Q4-Q7 are connected to a summing integrator circuit, and specifically to resistors R4-R7, which are connected in parallel to an inverting input on an operational amplifier 50. A resistor 51 and a capacitor 52 are connected in parallel between the inverting input and the output of this operational amplifier 50 to provide an integrator, while the noninverting input is pulled high through a resistor 53 to a +5 volt voltage supply. As the oscillator 48 counts up from zero, the output signal from the integrating operational amplifier 50 is positive and is coupled to a noninverting input on a voltage cmparator 54. A +18 volt supply voltage that is stepped down from the a-c supply line is impressed across a voltage divider 55 to be sampled at an inverting input on the voltage comparator 54. Normally the voltage at the noninverting input is more positive than the voltage at the inverting input. The output of the comparator 54 is pulled high through a pull-up resistor 56 with a high signal being coupled through the AND gate 47 in FIG. 3 to the reset input on the print one-shot multivibrator 44. If the power supply voltage rises a predetermined amount above the rated supply voltage the signal at the noninverting input of the comparator 54 will exceed the signal at the inverting input to couple a logic low signal from the output of the comparator 54 to the AND gate 47. This couples a logic low pulse to the reset input on the print one-shot multivibrator 44, resetting the multivibrator 44 before it has timed out to control the width of the pulse applied to the dots in the print head 24.
Besides controlling the print head 24, the microcomputer 26 also controls the paper advance mechanism. The roll of record-keeping tape 23 is mounted on a platen (not shown) that is driven by a stepper motor 57 seen in FIG. 3. The stepper motor 57 is a two phase, bipolar device with positive and negative poles for each phase. Lines P5-6 and P5-7 on the microcomputer 26 are coupled to four inputs on the stepper motor to select one of the four possible poles. When the next pole in a rotational sequence is selected, a rotor in the stepper motor advances 90.degree. which is equivalent to advancing one row of dots on the record-keeping tape 23. Since there are seven rows of dots in each character and two rows of dots that are skipped between rows of characters, the stepper motor 57 must be advanced nine 90.degree. increments to skip a row or line of characters, and fifty-nine 90.degree. increments to skip 6.55 character lines after printing a total amount. To select the poles on the stepper motor 57, output P5-6 on the microcomputer is coupled through two inverters 58 and 59 in parallel, one of the inverters 58 also having a line driver 60 in series with it, and then through a capacitor 63 to a third input on the stepper motor 57. The second and fourth inputs are connected to a +21 volt supply voltage. Output P5-7 on the microcomputer 26 is coupled through two parallel branches to the first on the stepper motor 57, one of these branches including an inverter 64 and the other branch including an inverter 65 and a line driver 66. These branches are connected through an a-c coupling circuit with a resistor 67 and a capacitor 68 to a fourth input on the stepper motor 57. With these connections the logic signals at outputs P5-6 and P5-7 can control the incremental movement of the stepper motor 57.
To control coin dispensing and printing operations, the microcomputer 26 reads input data from the keyboard 18 and through the cable 20 connected to the remote interface connectors 21. As seen in FIG. 5, the keys 17 of the key-board 18 are switches arranged in a matrix of rows and columns. When the keys in each row are operated, electrical connection is made between a line for the column and a line for the particular row in which the key 17 is located. The lines for rows 1-3 are connected through pull-down resistors 69-71 to a signal ground and are also connected through a set of drivers 72 to inputs P1-0, P1-1 and P1-2 on the microcomputer. When all the switches 17 in a particular row are open a logic low signal is coupled to the input for the respective row in FIG. 3. When one of the key switches 17 is closed, the voltage drop across the pull-down resistors 69-71 provides a logic high signal on the line for the respective row.
The columns of the keyboard 18 are sequentially scanned by a counter 73 with eight outputs connected through drivers 74 to the eight column lines in the keyboard matrix. Each column line is also connected through a second driver 93 to one of the digits in the alphanumeric display 19 so that the counter 73 is also used to sequentially enable the digits of the display 19 to receive updated information. The output of each driver 74 is connected through a diode 75 in its respective column line, so that drivers 74 and 93 are protected against a short circuit condition in the event that two keys 17 in the same row are depressed. Data is coupled to an enabled digit in the display 19 through segment lines a-g, which connect through a set of drivers 94 to outputs P4-0 through P4-6, respectively, on the microcomputer 26 in FIG. 3. Each line a-g carries a bit of data that determines one segment of each seven-segment display digit.
Referring to FIGS. 3 and 5 the counter 73 is driven and incremented through a CLOCK line originating in FIG. 3. The STROBE output on the microcomputer 26 is coupled through a low true NAND gate 76 to one input of another NAND gate 77, which couples the STROBE line and a line from the P4-7 output on the microcomputer 26 to the CLOCK line. As seen in FIG. 3, the MASTER RESET line and the output P0-1 on the microcomputer 26 are coupled through a low true NAND gate 78 to a COUNTER RESET line for resetting the counter 73 in FIG. 5.
Remote interface data is received through a remote interface circuit seen in FIG. 6, and in particular through one of the remote interface connectors 21 mounted on the coin dispenser 10. Binary-coded decimal data is received over four lines from a transmitting device, such as an electronic register, and a strobe signal is received on a fifth line. A BCD1 and BCD2 line in the transmission cable 20 are connected through the remote interface connector 21 and a dual optical isolating circuit 79 to the D1 and D2 inputs on a 6-bit latch 80. Similarly, the BCD4 and BCD8 lines in the transmission cable 20 are coupled through a second dual optical isolating circuit 81 to the D3 and D4 inputs on the latch 80. A DATA STROBE line in the transmission cable 20 is connected through one side of a third dual optical isolating circuit 82 and through a series of two NAND gates 83 and 84 to a clock input on the latch. BCD digits 1, 2, 4 and 8 are coupled from the Q1-Q4 outputs of the latch to the P1-4 through P1-7 inputs on the microcomputer 26 in FIG. 3.
Referring again to FIG. 6, when the power is turned on, a ready condition is signalled to a remote transmitting device, such as an electronic cash register, and the NAND gate 83 is enabled so that data on the BCD1, BCD2, BCD4 and BCD8 lines can be clocked into inputs D1-D4 of the latch 84. The Q0 output of the latch is coupled through a FLAG line and inverter 95 to a second input on the NAND gate 83. The enabling of this NAND gate 83 is then dependent upon power being applied to the machine 10 which generates an output signal on the FLAG line. The power-up condition sensed on the FLAG line not only enables the receipt of data by the remote interface circuit but it also signals a ready condition to the remote transmitting device through a READY line, to which the FLAG line is coupled through the inverter 95 and through one side of the fourth optical isolating circuit 89. The latch 84 is reset by a signal from the P0-3 output on the microcomputer 26 in FIG. 3, which is connected through a LATCH RESET line to a reset (R) input on the 6-bit latch.
When the coins 15 in any of the channels 14 of the coin magazine 13 are low, a low coin sense circuit 96 of a type well known in the art generates a signal to the P0-0 input on the microcomputer 26, and it also generates a signal through a LOW COIN line, seen in FIG. 6, which is coupled through a pair of inverters 87 and 88 and one side of a dual optical isolating circuit 89 to the remote interface connector 21. Thus a low coin supply condition is signalled to both the microcomputer 26 and any remote transmitting device. The P0-2 output on the microcomputer 26 is connected through an ALARM line to activate an audible alarm which is an operator-observed signal of the low coin condition.
Referring again to FIG. 3, three remaining inputs on the microcomputer 26, P0-4, P0-5 and P0-6 are connected to pairs of contacts 92 to sense various optional operating modes. One contact 92 in each pair is connected to ground and the other contact, which is connected to an input on the microcomputer 26, is also connected to a voltage source through a pull-up resistor 99. Thus when the contacts 92 are open, the input remains at a logic high signal and the option is not selected, and when the contacts 92 are closed, the line is switched to a logic low signal to select the option.
One option available with the coin dispenser 10 is a coin magazine (not the one seen in FIG. 1) with three 25-cent coin channels. The contacts 92 connected to the P0-4 input are closed when such a coin magazine is used as part of the coin dispenser 20, and the contacts 92 are left open when the dollar coin magazine 13 seen in FIG. 1 is used. The setting of the contacts 92 that are connected to the P0-5 input determines the maximum amount to be dispensed--either $.99 or $4.99. The resient firmware in the microcomputer provides for the automatic dispensing of coins from the displayed total when the DISPENSE key is operated after the TOTAL key. Where the total that is calculated and displayed exceeds the selected limit, only the limit is dispensed, and any overage is displayed in the left-most digits of the display.
The effect of combining the $.99 limit with either the triple quarter or dollar coin magazine 13, is the dispensing of the cents portion of each total amount and the display of the dollars portion in the left-most digits of the display 19. The firmware restricts the use of the $4.99 limit to the dollar coin magazine 13. Another option provides for the automatic advance of the tape 23 on each total operation. When the contacts 92 connected to the P0-6 are open, the tape 23 will be advanced 6.55 character lines after each total is printed. These options to the automatic operation of the coin dispenser 10 are preset at the manufacturing facility according to customer order.
The description thus far has referred to a number of circuit elements which are embodied in commercially available circuit chips. A listing of these components will be found in Appendix D. The operation of the hardware described above is controlled by the firmware instructions stored in the PROM 26a on-board the microcomputer 26. A detailed listing of these instructions is provided in Appendix A. A general description of this operation will be given with reference to flow charts in FIGS. 7-13 of the drawings. The flow charts are intended to cover only the significant points concerning operation, while the details have been left in the program listing for examination by those skilled in the art.
Referring to FIGS. 1 and 7, the operation begins with the setting of the power switch 9 in FIG. 1 to the ON position, which is represented by the starting block 100 in FIG. 7. The microcomputer 26 then executes a set of instructions to reset hardware such as the shift registers 37 and 38 in FIG. 3, and the remote latch 80 in FIG. 6, as represented by process block 101. The Indirect Scratchpad Address Register (ISAR) is then cleared, as represented by process block 102. The 6-bit number stored in the ISAR determines which register in the scratchpad RAM 26b is being addressed. The main operating routine of the coin dispenser 10 is interrupted every millisecond so that a SERVICE routine seen in FIGS. 10a and 10b can be performed. As represented in FIG. 7 by process block 102, an internal timer is initialized to time the one millisecond cycle to the next interrupt, and as shown by process blocks 103, a subroutine is called to advance the tape 23 one character line. In the listing of Appendix A an unconditional jump is made to a "START" address, to begin a key processing portion of the main routine. The microcomputer 26 is then ready to begin processing data in the key buffer.
Assuming an interrupt is not being processed, the microcomputer 26 enters a "show key buffer38 (SHOW KB) portion of its main routine, where it executes instructions to transfer data from the key buffer (scratchpad registers R30-R34) to the display buffer (scratchpad registers R20-R27), as represented by process block 104. The microcomputer 26 then enters a KEYSORT portion of the main routine in which entries from the keyboard are sorted and processed. Keyboard entries are initially processed during execution of the SERVICE routine, where they are stored in a key stack formed by R72-R75 (octal) in the scratchpad RAM 26b as seen in Appendix C. Before a key code is obtained from the key stack, however, the microcomputer 26 checks several conditions. As represented by decision block 105, several instructions are executed to check for "lockout" of the microcomputer 26 during the recovery cycle following a dispense operation. If the microcomputer 26 is locked out, no remote data is processed, and the microcomputer 26 goes on to check its P0-0 input for a low coin condition in decision block 106. When no low coin condition is detected, the display buffer is cleared and the "fill" and "short keep" flags are reset, as represented in process block 107. When a low coin condition in one or more of the coin channels is signalled from the sensing circuit 96 in FIG. 3, flags are set to activate the beeper alarm 86 during a service routine and the display buffer (R20-R27) is loaded with codes that will cause the display 19 to flash the message "FILL" in its four left-most digits, as represented in process block 108. Where the lockout is gone, or where the fill condition has been checked, the microcomputer 26 then checks for the presence of remote data sent from another device, as seen in decision block 109. If remote data is present the microcomputer 26 jumps to a REMOTE routine to be described below. Assuming no remote data is present, the microcomputer 26 proceeds as represented in process block 110 to get the key code from the first register in the key stack.
If a key is present in R72, it must first be determined whether the key is a control key, a calculator key or a digit key. The microcomputer 26 first determines whether a code for a control key has been entered as represented by decision block 111. If a control key code is detected the routine branches to a control (CTRL) branch represented in FIG. 8a. Otherwise, the microcomputer 26 proceeds to examine whether the code is for a calculator key as seen in decision block 112. If this check is affirmative the microcomputer 26 branches to execute a calculator key (CALC) branch of a KEYSORT routine that is represented in FIG. 9. If the code is for none of the above mentioned key types, then it must be a numerical digit key which is then processed as represented by process block 113. During this block 112 any "00" digit is checked to see if it is the first digit entered, signifying a dollar split operation, and any "0" digit is checked to see if it is the first digit entered, signifying a quarter split change operation. For either of these entries an appropriate flag is saved in R35. The microcomputer 26 then cycles back to the SHOW KB portion of the main routine.
Referring to FIG. 8a, the CTRL branch begins as represented by decision block 114 to determine whether the control key is a DISPENSE key. Where the control key is not a DISPENSE key in block 114, it is examined to determine whether it is the PAPER ADVANCE key, as represented by decision block 119. When the PAPER ADVANCE key is entered, the tape 23 is advanced 59 dot lines or 6.55 character lines through the execution of a subroutine, which is represented by process block 120 and listed in Appendix A. If the PAPER ADVANCE key has not been selected, the ENTER bit is checked, as represented by decision block 121, and assuming it is "on," an amount to be shown on the visual display 19 is loaded into the display buffer as represented by process block 122. The ENTER bit is significant because an error made during a numeric entry may be cleared without activating the printer, whereas operation of the C/CE key after the entry of a control key or a calculator key will result in the printing of ".00 T." If the ENTER bit is not "on," then the key cannot be either the SUBTOTAL key or the TOTAL key. In this event, the microcomputer 26 would return to the KEYSORT portion of the main routine in FIG. 7. If the ENTER bit is on, then the data in the total buffer is moved to the display buffer is represented by process block 122, and a check is made for the SUBTOTAL key, as represented by decision block 123. Where the SUBTOTAL key is found, a code for the letter "S" is saved for later entry in the print buffer, and any dispense flag is cleared, as represented by process block 125, since a dispense operation does not follow a subtotal operation as it does for a total operation. The "S" code is entered in the print buffer during the loading operation represented by process block 130 to be printed as a suffix to the subtotal amount. Where a SUBTOTAL key is not found as a result of the decision in block 123, then the key must be a TOTAL key and a code for the letter "T" is saved for later entry in the print buffer. The status of the P0-5 input is then checked, as represented by decision block 127, to determine whether the limit selected for the coin dispenser 10 is $4.99 or $.99. For either result an appropriate flag is saved with the other dispense flags in R35 as represented by process blocks 128 and 129. The sequence continues with the loading of the print buffer, as represented by process block 132, in preparation for execution of the PRINT routine in FIGS. 11a and 11b.
Where a DISPENSE key is detected in decision block 114 in FIG. 8a, the microcomputer 26 checks for a fill condition, for a minus sign in R27, and for a "no dispense" flag in R35, as represented by the blocks 115-118. If any of these conditions is present, the microcomputer 26 returns to the KEYSORT portion of the main routine. Otherwise, it proceeds as seen in FIG. 8b, where a REPEAT DISPENSE code in R35 is checked as shown by decision block 131. This flag will be set when dollar coins are repetitively dispensed. Where this code is found, the ENTER bit is set as represented by process block 132 and the microcomputer proceeds to the DISPENSE routine in FIGS. 12a and 12b. Where a NO REPEAT DISPENSE code is found, the key buffer is cleared as represented by process block 133 and the 25.cent. split change flag is checked in R35 as represented by decision block 134. If this flag is not set, then the dollar split change flag is checked as represented by decision block 135. If either of these flags is set, the appropriate amount to be dispensed is loaded into the key buffer as represented in process blocks 136 and 137, respectively. Bit data is then transferred from the key buffer to the display buffer as represented by process block 138, the ENTER bit is set as represented by process block 139 and the microcomputer proceeds to the DISPENSE routine in FIG. 12a.
Where none of these special operations is selected, preparation is made to dispense an amount entered in the normal fashion. As represented by process block 140, the first of several limits is examined. Because no more than $4.99 may be dispensed with either coin magazine, any dollar figure over $4.00 is an overage, and this amount is set up in the display buffer to be shown in the left four digits of the visual display 19. Next, as represented by decision block 141, a check is made for the presence of the triple quarter magazine, which has a practical effect of limiting the amount dispensed to 99.cent.. If the dollar coin magazine is being used with the coin dispenser 10, then the dispense flag for the 99.cent. limit is checked as represented in decision block 142. If this code is not present, the dispense limit is $4.99, and the fourth digit of the display buffer is blanked, as represented in process block 143. The right three digits of the display 19 will be used to show an amount dispensed, while the left four digits of the display will be used to show any overage that is keyed in but not dispensed. As represented in decision block 144, the dollar digit is tested to see whether it is a number less than five. Where the dollar digit is five or more, a "5" is placed in the units digit of the overage number and a remainder will occupy the dollar digit of the amount to be dispensed as represented in process block 145. Where the triple quarter magazine is present or the dispense 99.cent. flag is found, the one dollar and ten dollar digits for the amount to be dispensed are cleared from the display buffer as represented in process block 146. After the preparations made in blocks 143-145, or the alternate step provided in process block 146, the microcomputer sets the ENTER bit as represented in process block 151 and proceeds to the DISPENSE routine in FIG. 12a.
When the limit on the amount to be dispensed is $4.99 and a dollar digit is found to be less than five in decision block 134, a third sequence is executed before proceeding to the DISPENSE routine. The dollar digit is compared to zero. If the dollar digit is greater than zero but less than five the zero is entered in the units digit of the overage amount to be displayed as represented in process block 148. If the dollar digit is found to be zero, it must be determined whether it is part of a dollar figure in the tens, hundreds or thousands, as represented in decision block 149. If the zero dollar digit is the first digit in the amount to be dispensed, the units digit of the overage amount is blanked as represented in process block 150, the ENTER bit is set as represented in process block 151 and the microcomputer 26 proceeds to execute the dispense routine in FIG. 12a.
FIGS. 8a and 8b represent the processing of a control key found in the KEYSORT portion of the main routine in FIG. 7. When a calculator key is detected, the microcomputer 26 executes the sequence seen in FIG. 9. As seen in FIG. 9, a calculator key code is first checked to determine whether it is a minus key, as represented by decision block 152. If so, subtraction is performed as represented by process block 153 and, if no negative overflow is detected in the test represented in decision block 154, the result is loaded into the display and print buffers as represented by process block 163. Similarly, if a plus key is found in the check represented by decision block 155, addition is performed as represented by process block 156. If no positive overflow is detected in the test shown by decision block 157, the result is again loaded into the display and print buffers as represented by process block 163. On either subtraction underflow or addition overflow the ERROR bit is set, which will cause the display 19 to flash during the SERVICE interrupt routine.
After the display and print buffers are loaded the microcomputer 26 jumps to the PRINT routine in FIGS. 11a and 11b and prints the amount with a "-" or "+" suffix. If neither a minus key nor a plus key is found, the calculator key must be a clear/clear entry key. Therefore, the ENTER bit is checked as represented in decision block 158. If it is set, a CLEAR TOTAL command has been entered as represented by process block 159 and the display and print buffers are loaded with ".00 T" to be printed during execution of the PRINT routine. If the ENTER bit is not set, the key buffer is cleared, as represented by process block 161, and then the ENTER bit is set as represented by process block 162. The microcomputer 26 then returns to the SHOW KB portion of the main routine in FIG. 7. Each time a numerical digit is processed in block 113 of FIG. 7 the ENTER bit is reset until the next command key is entered.
As mentioned above, the main key processing routine in FIGS. 7-9 is interrupted by the SERVICE routine of FIGS. 10a and 10b every millisecond. Referring to FIG. 10a, after the SERVICE interrupt represented by start block 164 the ISAR and the status register are saved, as represented by process block 165. A check is then made, as shown by decision block 166 to determine whether a 600 millisecond interval has elapsed, which allows the coin ejector mechanisms 28 to recover. If not a counter maintained in R36 and R37 of the on-board RAM 26b is decremented. After the counter has been decremented (process block 167) a check is made as shown by decision block 168 to see if remote data is available. If available, the remote data is saved and the remote latch 80 is reset as shown by process block 169.
In the next portion of the SERVICE routine the keyboard 18 and the display 19 seen in FIG. 5 are scanned. During each interrupt one key column can be examined and a key transferred to the key buffer formed by registers R72-R75, and one digit in the LED display can be updated. As represented by decision block 170, a scan counter is examined to see whether a new scan of the keyboard 18 and display 19 is to begin. After each full scan a beep counter is checked as shown by decision block 171, and the alarm 86 in the remote interface circuit (FIG. 6) is turned on or off, as shown by process blocks 172 and 173, according to result of the decision in block 143.
During each cycle of the SERVICE routine except one in which the scan counter is reset, the scan counter is advanced as represented by process block 174. The display 19 is turned off before this scan counter is advanced and is turned on after the scan counter is advanced, to prevent ghosting on the display 19. A digit is then obtained from the display buffer as represented by process block 175, and is checked to determine whether it is a numeric digit as shown by decision block 176. Numeric digits are then displayed as represented by display block 178. In displaying alphanumeric characters, the microcomputer 26 gets data from a look-up table to actuate the segments of each digit in the display 14. This look-up table is stored with the firmware in the n-board PROM 26a, the look-up table starting at address 0700 (hexidecimal). As seen in Appendix B, the look-up table contains look-up data for actuating the printer and coin dispensing mechanisms as well. Non-numeric digits are part of a message. Messages are flashed on the visual display 19 by displaying them in one scan and blanking the message display digits in the next scan. As represented in decision block 177, a determination is made whether a message digit is to be displayed or blanked in the current scan. When the digit is blanked, the look-up and display operation is skipped.
After any available data in the display buffer is displayed, the keyboard is scanned as shown by decision block 179. Any key signals are checked for three successive passes to ensure that they are not generated from contact bounce. Then the contents of register R77 are examined to see if any key 17 is present for "debouncing" as represented by decision block 179. If not, row data is coupled through inputs P1-0 to P1-2 on the microcomputer 26 to determine if any key 17 is present in the column of the keyboard being examined. This decision is represented by decision block 180. A check is then made, as shown by decision block 181, to make sure that only one column is active, so that no ambiguous inputs will be processed. If no key is found, or if two columns generate signals, the microcomputer 26 jumps to NO KEY set of instructions represented in FIG. 10b by process block 196, where the ISAR, the accumulator and the status registers are stored.
Still referring to FIG. 10b, if a key 17 is found in the column being examined and debouncing is not required, the key and column data is saved, as represented by process block 182, for entry into the key stack. No dispense keys are processed during lockout, so the key is examined and lockout is tested as represented in decision blocks 183 and 184. The registers R72-R75 in the key stack are examined in decision blocks 185-188 to find an empty register to save the key and column data. When an empty register is found the data is saved in that register as represented by process block 189. If the key stack is full the micrcomputer 26 branches to restore the registers in process block 196 and returns from the service routine in terminal block 197.
When a key has been saved in a key stack, it must be checked to see that it is not the result of contact bounce. The key data is examined to see if the key in the stack came from the column currently being scanned, and this decision is represented by decision block 190. If the last key came from another column, the routine is exited via process block 196. Otherwise, the key in the current column is checked again as represented in decision block 191. If the key is found again the pass counter is decremented as shown by process block 192 and when three passes have been made the key data is cleared from R77, as represented by block 194 and the status registers are again restored in process block 196. On the next scan through the SERVICE routine the key data will be entered into the key stack. If another key is not found in decision block 191, it is the first scan of the column and the pass counter is loaded as shown by process block 195. The routine is again exited through blocks 196 and 197. Each key must be found during three scans of the eight columns of the keyboard 18 which requires a 24 millisecond period. Contact bounces of shorter duration are not entered into the key stack.
Referring to FIG. 11a, when the PRINT routine is entered from FIGS. 8a or 9, as represented by start block 198, a check must be made for past printer failures as represented by decision block 199. Where the printer has failed, the portion of the routine shown in FIG. 11b is executed. Providing there have been no failures, a check is made as shown by decision block 200 to determine whether the last entry was a TOTAL or SUBTOTAL entry. On these entries the tape 23 is advanced nine dot lines or one character line as represented by process block 201.
Each character that is printed on the tape 23 is really a matrix of dots having seven dot lines and five dot columns. The printer prints or skips a dot in one of thirty-five dot positions for each of the eleven active digit positions across the tape. Therefore, it is necessary to set up a dot column counter and a dot line counter as represented in process block 202 to keep track of which dot position in the matrix is being printed. In addition, data is set up to represent the eleven respective digits in the print head. A dot is selected as shown by process block 203 and the data in the print buffer is used to get data from the look-up table in Appendix B. This look-up data is used in determining whether a dot is to be printed for the currently indexed dot position in a respective digit position. Character data is checked for each of the eleven active columns and data is set up in the shift registers to enable the digits in which a dot is to be printed, as represented in process block 204. The print head 24 is then enabled as represented by process block 205. The print head 24 should not be enabled for longer than 15 milliseconds and a check is made as shown by decision block 206 to confirm the absence of a printer lockout signal. The continued presence of the lockout signals a printer failure as represented by process block 213, and when this occurs the remaining blocks in FIG. 11a are skipped and the routine continues through the blocks in FIG. 11b. Assuming the lockout is gone in 15 milliseconds, the shift registers are reset as shown by process block 207 and the next dot is selected as shown by process block 208. A check is then made to determine whether all five dots in a dot line have been completed as shown by decision block 209. If another dot is to be selected, blocks 203-209 are executed again. After each line of dots has been printed, a delay of two milliseconds is introduced to allow the print head to cool and the tape 23 is advanced one dot line as represented by process block 210. A check of the dot line counter is then made as represented by decision block 211. When a character line has been completed, the tape 23 is advanced two dot lines as represented by process block 179. Otherwise, the dot line counter is advanced one colunn and the microcomputer 26 returns to execute blocks 203-209.
Referring to FIG. 11b, after a character line has been printed, or a printer failure has been detected, the shift registers are reset as represented by process block 213. A check is then made as represented by decision block 214 to determine whether the last entry was a TOTAL or SUBTOTAL, and a flag is saved for such entries as represented by process block 215. A check is made for the CLEAR key as shown by decision block 216, and the tape is advanced one character row on a CLEAR key entry as represented by process block 217. If a SUBTOTAL is being printed, as determined during the execution of decision block 218, the tape 23 is advanced one character row as represented by process block 219. The routine continues as shown by decision blocks 220 and 221. Where a TOTAL amount is being printed and the automatic ADVANCE ON TOTAL option has been preselected at the P0-6 input on the microcomputer 26, the tape 23 is advanced 6.55 character lines as represented by process block 222. At the end of this routine the total buffer is cleared as represented by process block 223, and the overflow bit is checked as shown by decision block 224. Where overflow has occurred, a NO DISPENSE flag is set in R35 as represented by process block 225. The other dispense flags are then saved as represented by process block 226 before the microcomputer 26 returns to the KEYSORT portion of the main routine in FIG. 7.
Referring to FIG. 12a, the start of the DISPENSE routine is represented by start block 227. If a failure, overflow or fill condition is detected, as represented by decision block 228, the routine is exited for return to the KEYSORT portion of the main routine. The one dollar split change flag and the 25.cent. split change flag are then checked in decision blocks 229 and 230, and if either of these are present appropriate data is saved, as represented in process blocks 234 and 235, to be set up in the shift register as represented in process block 236. Where these split change operations are not to be performed, the one dollar, 10.cent. and 1.cent. digits in the display buffer are added together and checked to see whether an amount is present to be dispensed. This is represented by blocks 231-233. If there is no amount to be dispensed, the routine is exited to the KEYSORT portion of the main routine in FIG. 7. Where there is an amount present to be dispensed, the first bit is set up in the shift register as represented by process block 236. A check is then made, as shown by decision block 237, to determine whether all of the data for the dispense operation has been set up in the shift register 37. As shown by the next decision block 238, it is determined whether it is time for a dollar bit to be set up in the shift register 37. If not, the routine loops back through process block 236 to set up the next cents digit. When the dollar digit is to be set up, a check is made, as represented by decision block 239, to see whether the dollar magazine is present. In the preferred embodiment, the routine would then continue as shown in decision block 241 to determine whether any more dollars were to be set up in the shift register 37. If the result of this test were positive, the dollar count would be decremented as shown by process block 216 and a dollar digit would be set up in the shift register as represented by process block 236. If another dollar was not necessary, the routine would loop back to decision block 237 to determine whether all data had been set up in the shift register 37. In other embodiments with the third quarter magazine, the microcomputer would check for the third quarter magazine in decision block 240 and loop back to block 236 or 237, depending on whether the third quarter was necessary.
Referring to FIG. 12b, when all data has been set up in the shift register 37, the microcomputer 26 waits for the end of the 600 millisecond interval recovery cycle as represented by process block 243, before strobing the lifter solenoids 28b for 25 milliseconds as represented by process block 244. The lifter solenoids 28b are strobed to move the fingers 28a into position in the channels 14 in which coins 15 are to be selected. The payment solenoid 30 is then driven for a period not to exceed 300 milliseconds and this payment cycle is timed by the microcomputer 26 and checked as seen in decision block 245. If the lockout signal at input P0-7 is still present after 300 milliseconds, the payment solenoid has failed, an error flag will be set in the status register R0, and timing cycle will end. A check is also made for a previous printer failure by looking at the printer failure flag in the status register R0. Where a printer failure has preceded the dispense failure, the second failure flag is not set. The actions are represented by process block 246. After the payment cycle has been timed the shift registers are reset as represented by process block 247 and the 600 millisecond interval between payment cycles is initiated as represented by process block 248. The reset signal for the shift registers must be applied for 64 milliseconds and then removed as represented by process block 249. After the registers have been reset, the dollar magazine is sensed as represented by decision block 250 and a check is made to see whether more dollar coins are to be dispensed, as shown by decision block 252. Up to four dollar coin dispense cycles can be executed in this manner. Where no more dollars are to be dispensed, the routine is exited through process block 251 and terminal block 253.
As mentioned above, the coin dispenser 10 of the present invention performs coin dispensing operations and provides a printed record of such operations in response to either keyboard entries or entries received through a transmission cable 20 from a device that directs coin dispensing operations. Referring again to FIG. 7, where remote data is present at the time decision block 109 is executed, the microcomputer 26 branches to the REMOTE routine seen in FIGS. 13a and 13b. The start of this routine is represented by start block 254. A prompt signal must be detected in the remote buffer (R63-R67 in Appendix C) as represented in decision block 255, otherwise, the remote buffer is cleared as represented by process block 256. If a remote prompt is received, a check is made of register R67 in the remote buffer to determine if remote data has been accepted, and this is represented by decision block 257. A remote prompt must be received during a first scan of the REMOTE routine and remote data is accepted on a subsequent scan through the REMOTE routine. When remote data has been accepted, it is checked first for the dollar split change and quarter split change commands as represented in decision blocks 258 and 260. When these commands are present the appropriate data is entered into the remote buffer as shown by process blocks 259 and 261, respectively. A DISPENSE code found in decision block 262 is saved only after the fill, overflow and no remote data conditions are found to be absent as checked in decision block 263. Where a valid dispense code is present, a dispenser flag is saved with the other dispense flags as shown by process block 264. Where a remote prompt is found in decision block 265, or no "accept data" signal is detected in decision block 257, or an invalid dispense code is found in decision blocks 262 and 263, the microcomputer 26 jumps to a ROUT portion of the REMOTE routine seen in FIG. 13b.
Assuming that a DISPENSE operation is to be carried out, the key buffer is blanked as shown by process block 265 and the remote data is moved to the key buffer as shown by process block 266. Any dollar digit over four is then adjusted as shown by process block 267, and then the DISPENSE routine in FIGS. 12a and 12b is executed to dispense the amount of currency commanded through the remote interface. Upon return from the DISPENSE routine represented in block 268 a "no dispense" flag is set as represented in process block 269. Referring to FIG. 13b, after the proper amount has been dispensed, minus signs ae loaded under the top half of the display buffer so that an amount such as $1.45 would be displayed as "--1.45." The remote data and the remote prompt are then cleared as represented by process block 271. The ROUT portion of the REMOTE routine is then executed to clear remote data, as represented by process block 272, if it has not been done earlier, before returning to the KEYSORT portion of the main routine in FIG. 7.
It should be apparent from the above description that the coin dispenser 10 performs a great many varied operations under the control of digital circuitry mounted on circuit boards which are compact, lightweight and provide an electronic portion of the coin dispenser which has a relatively low cost of manufacture.