CN108121517B - Computing device, computing printing method, and recording medium having program recorded thereon - Google Patents
Computing device, computing printing method, and recording medium having program recorded thereon Download PDFInfo
- Publication number
- CN108121517B CN108121517B CN201711226557.7A CN201711226557A CN108121517B CN 108121517 B CN108121517 B CN 108121517B CN 201711226557 A CN201711226557 A CN 201711226557A CN 108121517 B CN108121517 B CN 108121517B
- Authority
- CN
- China
- Prior art keywords
- data
- calculation
- function
- total
- stored
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1205—Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1224—Client or server resources management
- G06F3/1225—Software update, e.g. print driver, modules, plug-ins, fonts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1254—Automatic configuration, e.g. by driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/128—Direct printing, e.g. sending document file, using memory stick, printing from a camera
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Calculators And Similar Devices (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Provided are a computing device, a computing printing method, and a recording medium having a program recorded thereon. In a computing device with a print function, data including also calculation result data can be reliably printed. When printing of the calculation data is instructed by a [ REPRINT ] button in a state where the calculation data composed of numerical data and calculation data is input and sequentially stored in the calculation data memory, it is determined whether or not the total of the stored calculation data is determined by including the total function (result output function) data "" at the end of the calculation data stored in the calculation data memory. When it is determined that the end of the stored calculation data does not include the determination that the total function (result output function) data ". sup.") is not to be added, the total function (result output function) data ". sup.") and the total data stored in the total memory are additionally stored at the end of the calculation data, and the calculation data further including the total data is printed on the recording paper P.
Description
Technical Field
The present invention relates to a computing device having a function of calculating change, a computing method, and a control program thereof.
The present invention relates to a computing device such as an electronic desktop calculator (calculator with printer) having a printing function, a computational printing method, and a control program therefor.
Background
Conventionally, in an electronic calculator having a function of performing a verification operation and printing a result thereof, it has been considered that a series of input arithmetic expression data and a newly input arithmetic expression data are printed together with a verification end flag after a match between the series of input arithmetic expression data and the arithmetic expression data is detected.
This makes it possible to save printing paper since printing is not performed in the previous calculation and printing is performed after it is confirmed that all the data of the previous and current calculations match. Further, since the calculation result is printed together with the verification end mark, it is clear that the content that can be printed is the result of the verification (see, for example, japanese patent application laid-open No. h 08-241285).
An electronic calculator having a printing function prints the prices of respective commodities purchased by a customer and the total amount of money thereof in a store, for example, and uses the printed recording paper as a stub for the customer or the store.
In such a conventional electronic calculator, for example, when calculation data including a plurality of numerical value data and arithmetic data of addition, subtraction, multiplication, and division is input and a print instruction is given without performing an operation for specifying (displaying/printing instruction) the total, the total of the calculation data is not printed even when the calculation data is printed, and therefore, the printing becomes useless.
Particularly, in an electronic calculator of an addition calculation method, when a series of calculation data such as "10 [ + ]20[ + ] …" is input, for example, every time the [ + ] is input, the total of the input calculation data is displayed as "10" "30" …. At this time, the total value is stored in the display buffer and displayed, but is not yet printed. Therefore, the user may not perform an operation (operation of the sum function key [ ]) for specifying (displaying/printing instruction) the sum (not yet printing the sum), but may see that the sum "30" is displayed, and may erroneously assume that the sum is printed to the last, and instruct to print the already printed content again. In accordance with the print instruction herein, only the above calculation data "10 +20 +" is printed on the recording paper, and the calculation result data (total "30") is not printed, resulting in useless printing.
Disclosure of Invention
The present invention has been made in view of the above problems, and an object thereof is to provide a computing device, a computing printing method, and a control program thereof, which can reliably print data including computing result data when an instruction to print is made.
A computing device of the present invention includes: a calculation data accepting unit that accepts numerical data input according to a user operation and an operator input according to the user operation as calculation data; a result output function storage unit that stores, when a user operation of a result output function for outputting calculation result data is accepted, the result output function in association with the calculation data accepted by the calculation data acceptance unit, the calculation result data being a result of calculation of the calculation data accepted by the calculation data acceptance unit; a printing operation accepting unit that accepts a printing operation according to a user operation; and a stored data print control unit configured to print the calculated print data including the calculated result data when the result output function is stored in association with the calculated data received by the calculated data receiving unit when the printing operation is received by the printing operation receiving unit, and also print the calculated print data including the calculated result data when the result output function is not stored in association with the calculated data received by the calculated data receiving unit.
Drawings
Fig. 1 is a front view showing an external configuration of a calculator with printer 10 according to an embodiment of the calculating apparatus of the present invention.
Fig. 2 is a block diagram showing the circuit configuration of the calculator 10 with printer.
Fig. 3a1, 3B1, 3a2, 3B2, 3A3, and 3B3 show specific examples of the calculation data stored in the calculation data memory 22c of the calculator 10 with a printer.
Fig. 4 is a flowchart showing the calculation data printing process (1) of the calculator 10 with printer.
Fig. 5 is a flowchart showing the calculation data printing process (2) of the calculator 10 with printer.
Fig. 6 is a flowchart showing the total function key (r) process in the calculation data printing process (2) of the calculator 10 with printer.
Fig. 7 is a flowchart showing the process of the sum function key [ G ] in the calculation data printing process (2) of the calculator 10 with printer.
Fig. 8 is a flowchart showing the total/total-sum additional print processing in the calculation data print processing (2) of the calculator 10 with printer.
Fig. 9 shows a display/print operation according to a user operation in embodiment 1 of the above-described calculation data print processing.
Fig. 10 shows a display/print operation according to a user operation in embodiment 2 of the above-described calculation data print processing.
Fig. 11 shows a display/print operation according to a user operation in embodiment 3 of the above-described calculation data print processing.
Detailed Description
Embodiments of the present invention will be described with reference to the following drawings.
Fig. 1 is a front view showing an external configuration of a calculator with printer 10 according to an embodiment of the calculating apparatus of the present invention.
The calculator 10 with a printer may be configured as a calculator 10 dedicated to calculation, or may be configured as a personal calculator, a tablet pc, a smartphone, a mobile phone, a touch panel PDA (personal digital assistant), an electronic book, a portable game machine, or the like having a calculation function and a print function (in which a calculation data print processing program is installed).
Note that a computing device not equipped with physical keys (buttons) such as the calculator 10 displays the same software keyboard as the keys of the calculator 10, and executes computing processing in accordance with key operations on the software keyboard. A computing device not equipped with a printing device such as the calculator 10 with a printer is connected to an external printing device by communication such as short-range wireless communication, and executes a printing process by transmitting a print control signal and print data to the printing device.
The calculator 10 with a printer according to the present embodiment includes, in addition to a normal calculation function such as addition, subtraction, multiplication, and division, a display function, and a print function, a calculation data storage function for storing a series of calculation data including a combination of numerical data input by a user operation and arithmetic data of "+" - "×" "" + "-" "-", a total function data (result output function) "for specifying a calculation result of the total (calculation result) data (display/print instruction), and a total function data" G "for specifying a calculation of the total (display/print instruction), and a stored data print function for printing the calculation data stored by the calculation data storage function. More specifically, numerical data input by a user operation, addition function data "+" - ", or other operation function data" × "+", input by a user operation to the total memory 22e are stored as calculation data in the calculation data memory 22c described later, and when a key operation of the total function (result output function) "data" input by a user operation is received, the total function (result output function) "data is stored in association with the calculation data stored in the calculation data memory 22 c. When a key operation of the sum function "G" is received by a user operation, the sum function "G" data is stored in association with the calculation data stored in the calculation data memory 22 c. The calculation data stored in the calculation data memory 22c is printed by the stored data printing function, and the total (calculation result) data obtained by adding up the calculation data corresponding to the total function (result output function) "stored in association with the calculation data and obtained by adding up the total (calculation result) data in the calculation data corresponding to the total function (result output function)" is printed, and the total data obtained by adding up the total (calculation result) data in the calculation data corresponding to the total function (result output function) ".
The calculator 10 with a printer includes a key input unit 11 on the front side of a main body casing of a desktop calculator that is easily handled by being placed on a desk, and a display unit 12 and a printing unit 13 on the back side of the key input unit 11.
The key input unit 11 is provided with a numeric key, an arithmetic key, a total function (result output function) key, a sum function key, a print function key, and other function keys.
The numeric keys include, for example, a plurality of keys corresponding to [00] [0] to [9 ]. The operation keys include, for example, a plurality of keys corresponding to a [ + ] (addition) key, a [ - ] (subtraction) key, an [ × ] (multiplication) key, a [ div ] (division) key, and an [ ═ equal key, respectively. In the calculator 10 with a printer (adder type calculator), whenever numerical data is input and the [ + ] (addition) button is operated, the numerical data is added to a sum memory described later, the addition result is displayed, and the numerical data and [ + ]areprinted. When the sum function (result output function) key "x" is pressed, the numerical data of the displayed sum memory is printed as the sum (calculation result) data. When numerical value data is input and the [ minus ] button is operated, the numerical value data is subtracted from a sum memory described later, the subtraction result is displayed, and the numerical value data and the [ minus ] are printed. When the [ x ] (multiplication) key or the [ division ] (division) key is pressed after the numerical data of the operand is input, the numerical data of the operand and the [ x ] or the [ division ] are printed, and then, when the [ x ] key is pressed after the numerical data of the operand is input, the numerical data and the [ division ] are printed, the result of the multiplication and division is printed, and the result of the multiplication and division is added to the numerical data of the sum memory (at this time, the addition result is not displayed). Since addition and subtraction are performed to the sum memory as in the case of the minus (subtraction) key and the plus (addition) key, the minus (subtraction) key and the plus (addition) key can be included in the addition function key, as in the case of the plus (addition) key.
The totaling function (result output function) key includes an [ x ] (totaling function (result output function)) key 11c for specifying (displaying/printing instruction) the calculation of the total, and a [ G (total sum function) key 11d for specifying (displaying/printing instruction) the calculation of the total.
The print function keys include a power (print mode) switch 11a and a [ REPRINT ] (save data print) key 11 e. The power supply (print mode) switch 11a has a switching position for switching power off, power on (print mode off), and power on (print mode on).
The other function keys include, for example, a clear all key ([ CA ] key 11b), a clear key ([ C ] key), and the like.
The display unit 12 is constituted by a segment fluorescent tube display unit or a dot matrix type liquid crystal display unit. Numerical data input by operating the keys of the key input unit 11 and numerical data of calculation results are displayed on the display unit 12. In the state display area provided along the side of the display unit 12, numerals, characters, symbols (symbols) indicating various states, such as an operation mode in setting and contents of numerical data in display (TOTAL ") are displayed.
The printing unit 13 includes, for example, a thermal transfer printing mechanism, and prints and outputs calculation data including input numerical data and operation data, and calculation result data such as total (calculation result) data or sum data obtained by calculating the calculation data, on the recording paper P based on a setting state of the print mode off/on corresponding to the operation of the power supply (print mode) switch 11a and an operation state of the [ REPRINT ] button 11 e.
Fig. 2 is a block diagram showing the configuration of the circuit of the calculator 10 with printer.
The circuit of the calculator 10 with a printer includes a CPU (processor) 21 as a computer. The CPU21 controls the operations of the circuit units in accordance with a calculator control program stored in the memory 22, and executes various calculation functions and a function of printing calculation data in accordance with the user operation on the key input unit 11.
The CPU (processor) 21 is connected to the key input unit 11, the display unit 12, the printing unit 13, and the memory 22, as well as to a recording medium reading unit 24 for reading data recorded on an external recording medium 23 such as a memory card and a communication unit 25 for communicating with an external device (30).
The computer control program is stored in the memory 22 in advance, or the computer control program is read from an external recording medium 23 by a recording medium reading unit 24 and stored in the memory 22, or downloaded from a Web server (program server) 30 on a communication network N via the communication unit 25 and stored in the memory 22.
The calculator control program includes a calculation data print processing program 22a for printing calculation data of calculation processing performed according to the calculation processing program, in addition to various calculation processing programs operated by a user.
The memory 22 includes a print mode memory 22b, a calculation data memory 22c, a line number memory 22d, a total memory 22e, and a sum memory 22 f.
In the PRINT mode memory 22b, the setting data of the PRINT mode off is stored in a state where the power supply (PRINT mode) switch 11a is switched to the position of [ on ], and the setting data of the PRINT mode on is stored in a state where the power supply (PRINT mode) switch is switched to the position of [ PRINT ]. In addition, in a state where the print mode is on, printing is performed every time input, totalization, or total of calculation data is determined (display/print instruction).
The calculation data memory 22c receives a series of calculation data input by a user operation and stores the calculation data in a storage area corresponding to a line number that sequentially increases.
Fig. 3a1 to 3B3 show specific examples of the calculation data stored in the calculation data memory 22c of the calculator 10 with a printer. Fig. 3a1 and 3B1 show a specific example (embodiment 1) when the total function (result output function) [ ] and the total (calculation result) data thereof are automatically added to the input calculation data by the [ REPRINT ] key 11e, fig. 3a2 and 3B2 show a specific example (embodiment 2) when the sum function [ gazette ] and the total data thereof are automatically added to the input calculation data by the [ REPRINT ] key 11e, and fig. 3A3 and 3B3 show a specific example (embodiment 3) when the total function (result output function) [ ] and the total (calculation result) data thereof, the sum function [ gazette ] and the total sum data thereof are automatically added to the input calculation data by the [ REPRINT ] key 11 e.
In each of a calculation data storage mode for receiving and storing a series of calculation data including the numerical data and arithmetic data and a REPRINT mode (stored data print mode) corresponding to the operation of the [ REPRINT ] key 11e, the line number memory 22d stores data of the line number of the storage area to be processed in the calculation data memory 22 c.
When the calculation data composed of a combination of the numerical value data and the calculation data "+" "-" "×" "+" "-" "" - "is input, the total memory 22e stores the total (calculation result) data obtained by adding the calculation result data up to the numerical value input immediately before the input operation data" + "or" - "is input.
Here, the arithmetic data "+" - "", in addition to its original arithmetic function, also functions as addition instruction data for the calculation result data in the total memory 22e, and is therefore defined as addition function data.
The total (calculation result) data stored in the total memory 22e is erased at the time of initial setting processing at the time of power-on, at the time of operation of the [ CA ] (all clear) key 11b, or at the time of input of the first numerical data after operation of the [ x ] (total function (result output function)) key 11 c.
The sum memory 22f stores sum data obtained by adding the sum (calculation result) data stored in the sum memory 22e each time the sum function (result output function) "is input in accordance with the operation of the (sum function (result output function)) key 11 c.
The sum data stored in the sum memory 22f is erased during an initial setting process when the power is turned on or when the [ CA ] (all clear) key 11b is operated.
In the calculator 10 with a printer configured as described above, the CPU21 controls the operations of the respective circuit units in accordance with commands described in the calculator control program (including the calculation data print processing program 22a), and realizes various calculation functions and calculation data print functions described in the following operation description by cooperating software and hardware.
Next, the operation of the calculator 10 with a printer configured as described above will be described.
Fig. 4 and 5 are flowcharts showing the calculation data printing process (1, 2) of the calculator 10 with printer.
Fig. 6 is a flowchart showing the total function key (r) process in the calculation data printing process (2) of the calculator 10 with printer.
Fig. 7 is a flowchart showing the process of the sum function key [ G ] in the calculation data printing process (2) of the calculator 10 with printer.
Fig. 8 is a flowchart showing the total/total-sum additional print processing in the calculation data print processing (2) of the calculator 10 with printer.
(embodiment 1)
Fig. 9 is a diagram showing a display/print operation according to a user operation in embodiment 1 of the above-described calculation data print processing.
In the calculator 10 with a printer, when the power is turned on (here, the power (PRINT mode) switch 11a is switched to the position of PRINT mode on) in response to a user operation, the CPU21 stores setting data of the PRINT mode (on) in the PRINT mode memory 22b, sets the operation mode to the calculation data storage mode, and stores data of line number "0" in the line number memory 22d as a process of initial setting corresponding to the power on (step S1).
When the power supply (print mode) switch 11a is switched to the position of on (print mode off) in the print mode (on) (yes in step S2), the setting data of the print mode (on) is switched to the setting data of the print mode (off) (step S3).
In this manner, in the calculator 10 with a printer, whether the operation state is the print mode (on) or the operation state is the print mode (off) can be switched and set by the power supply (print mode) switch 11 a.
As shown in fig. 9a 1, when [ CA ] key 11b is operated (yes in step S4), the data of the line number is cleared again to "0", and the total data of the total memory 22e and the total data of the total memory 22f are cleared to "0" (step S5).
Here, when the CPU21 determines that the state is the print mode (on) (yes in step S6), as shown in fig. 9(B1), the printing section 13 prints a normal print start mark "· · 0 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ″ on the recording paper P (step S7), which indicates printing corresponding to the operation of the [ CA ] (all clear) key 11B in the print mode (on) state.
Then, as shown in fig. 9a 2, when numerical value data "50" as a product price is input by a user operation of the numerical value button (yes in step S8), the data (+1) of the line number is changed to "01", and the input numerical value data "50" is displayed on the display unit 12 (step S9). At this time, when the data of the line number is "0", the content of the calculation data memory 22c is cleared and the line number is updated to "01".
Here, when the [ + ] (addition) key is operated (yes in step S10), calculation data including the displayed numerical value data "50" and the arithmetic data "+" input by the "+" (addition) key are stored in the storage area of the calculation data memory 22c (see fig. 3a1) corresponding to the current line number "01" stored in the line number memory 22d (step S11).
Then, the calculation corresponding to the calculation data "50 +" is executed, and the data of the calculation result (here, "50") is displayed on the display unit 12. The input numerical data "50" is added to the total (calculation result) data (currently "0") in the total memory 22e based on the input operation data "+" (addition) and stored as the total (calculation result) data "50" (step S12).
Then, when it is determined that the state is the print mode (on) (yes in step S13), as shown in fig. 9(B1), the numerical data "50" and the arithmetic data "+" stored in the calculation data memory 22c in correspondence with the current line number "01" are printed on the recording paper P (step S14).
Thereafter, as shown in fig. 9(a3), when numerical value data "48" as the next product price is input and the [ + ] key is operated, the row number (+1) stored in the row number memory 22d is updated to "02" in the same manner as described above, and the input numerical value data "48" and the arithmetic data "+" corresponding to the [ + ] key are stored in the storage area of the row number "02" in the arithmetic data memory 22c (steps S8 to S11).
Then, the calculation corresponding to the calculation data "50 +48 +" in the calculation data memory 22c is executed, and the data of the calculation result (here, "98") is displayed on the display unit 12. Further, the input numerical data "48" is added to the total (calculation result) data (currently, "50") in the total memory 22e based on the input arithmetic data "+" (addition) and stored as total (calculation result) data "98" (step S12).
Then, as described above, it is determined that the state is the print mode (on) (yes in step S13), and as shown in fig. 9(B1), the numerical data "48" and the arithmetic data "+" stored in the calculation data memory 22c in association with the current line number "02" are printed on the recording paper P (step S14).
As shown in fig. 9a 4, when numerical data "100" as the next product price is input and the [ + ] key is operated, the row number (+1) is updated to "03" in the same manner as described above, and the input numerical data "100" and the arithmetic data "+" are stored in the storage area of the row number "03" in the calculation data memory 22c (steps S8 to S11).
Then, a calculation corresponding to the calculation data "50 +48+100 +" in the calculation data memory 22c is executed, and the data of the calculation result (here, "198") is displayed on the display unit 12. Further, the input numerical data "100" is added to the total (calculation result) data (currently "98") in the total memory 22e based on the input arithmetic data "+" (addition) and stored as the total (calculation result) data "198" (step S12).
Then, similarly to the above, it is determined that the state is the print mode (on) (yes in step S13), and the numerical data "100" and the arithmetic data "+" stored in the calculation data memory 22c in association with the current line number "03" are printed on the recording paper P (step S14).
Here, in order to receive a series of calculation data "50 +48+100 +" inputted by the user operation and to specify the total (display/print instruction) (total specification), when the [ up ] (total function (result output function)) key 11c is operated (yes in step S15), the process proceeds to the [ up ] process of the [ up ] function (result output function) key in fig. 6 (step SA), although not shown.
In the above-described sum function (result output function) key (h) processing, first, the current row number "03" (+1) stored in the row number memory 22d is changed to "04". Then, in the storage area of the updated row number "04" in the calculation data memory 22c, a total function (result output function) "corresponding to the [. sup. ] (total function (result output function)) key 11c and total (calculation result) data" 198 "stored in the total memory 22e according to the step S12 are stored. Further, the total data "198" stored in the total memory 22e and the total data stored in the total memory 22f are added to each other and stored (rewritten and stored) in the total memory 22f (step a 1).
Then, the total (calculation result) data "198" stored in the total memory 22e is displayed on the display unit 12 (step a2), and if the print mode is on (yes in step A3), the total (calculation result) data "198" and the total function (result output function) "stored in the calculation data memory 22e are printed on the recording paper P (step a 4).
On the other hand, as shown in fig. 9(a4), when numerical data "100" and calculation data "+" are input as the last product price calculated this time, a series of calculation data "50 +48+100 +" received and input by the user operation is displayed on the display unit 12 as the corresponding data "198" of the calculation result (total). Therefore, even if the user forgets to operate the [ q ] (total function (result output function)) key 11c for specifying (displaying/printing instruction) the total (total specification), when the [ REPRINT ] (save data print) key 11e is operated (yes in step S18) as shown in fig. 9a 5) to obtain the stub of the print including the calculation result (total) "198" (step SE) in order to obtain the total, the process proceeds to the total/total additional print process in fig. 8.
In the above-described totaling/total adding print processing, first, it is determined whether or not the end of the series of calculation data "50 +48+100 +" stored (received) in the calculation data memory 22c (see fig. 3a1) is a totaling function (result output function) [ ] (in other words, it is determined whether or not the totaling function (result output function) [ ] is stored in association with the series of calculation data) (step E1).
Here, when it is determined that the end of the series of calculation data is not the aggregation function (result output function) [ ] (the aggregation function (result output function) [ ] is not stored in association with the series of calculation data) (no in step E1), it is determined whether or not there is addition function data ("+", "-", "═ for") for which the determination (display/print instruction) (aggregation determination) is not performed in the series of calculation data (step E2).
Then, when it is determined that all the pieces of arithmetic data "+" … in the series of pieces of arithmetic data "50 +48+100 +" stored (received) in the arithmetic data memory 22c (see fig. 3a1) are addition function data for which the total determination (display/print instruction) is not performed (yes in step E2), the process proceeds to the total function (result output function) key [ ] processing in fig. 6, and the determination of the total (display/print instruction) is performed (step SA).
That is, the current line number "03" (+1) stored in the line number memory 22d is updated to "04", and as shown in fig. 3B1, the sum function (result output function) "and the sum (calculation result) data" 198 "stored in the sum memory 22e are stored in the storage area of the line number" 04 "in the calculation data memory 22c (step a 1).
Then, as shown in fig. 9a 5, the total (calculation result) data "198" in the total memory 22e is displayed on the display unit 12 (step a2), and when the print mode is on (step A3 (yes)), as shown in fig. 9B 2, the total (calculation result) data "198" and the total function (result output function) "stored in the calculation data memory 22e are printed on the recording paper P (step a 4).
Then, in the total/total sum additional printing process shown in fig. 8, it is determined whether or not the end of the series of calculation data "50 +48+100+ [ ] 198" stored (received) in the calculation data memory 22c (see fig. 3B1) is a total sum function (result output function) [ gay ] (in other words, whether or not the total sum function (result output function) [ gay ] is stored in association with the series of calculation data) (step E3), and it is determined that the total sum function [ gay ] (the total sum function [ gay ] is not stored in association with the series of calculation data) (step E3 (no)).
Then, it is determined whether or not a plurality of total functions (step E4) are included in the series of calculation data "50 +48+100+ [ ] 198", and it is determined that a plurality of total functions (result output functions) [ ] are not included (step E4 (no)).
Then, in the calculation data printing process (2) shown in fig. 5, as shown in fig. 9(B3), a stored data print start mark "· · 0 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ″ is printed on the recording paper P (step S19), which storage data print start mark" · · · · · · · · 0 · · · · · · · · · · · · · · · · · ·.
Then, a series of calculation data stored (received) in the calculation data memory 22c (see fig. 3B1) is read, and the recording paper P is reprinted as "50 +" "48 +" "100 +" "198" as shown in fig. 9(B3) (step S20).
In the above description, when the total function (result output function) key [ section EA (fig. 6)) in the total/total addition print process (see fig. 8) is finished, that is, when the total (calculation result) data "198" and the total function (result output function) "are printed on the recording paper P as shown in fig. 9(B2) in accordance with the judgment of the print mode (on), the stored data print start flag" ·0 · 0 · · · · · · S20 "and the series of calculation data" 50+48+100+ [ ]198 "are successively printed in sequence as shown in fig. 9(B3) in accordance with the processes of steps S19, S20 in the calculation data print process (see fig. 2) (see fig. 5).
On the other hand, when the printing mode is the print mode (on) (yes in step S19 a) at the end of the total function (result output function) key [ h ] process (step EA (fig. 6)) in the total/total sum additional printing process (see fig. 8), that is, as shown in FIG. 9B 1(B2), when a series of calculation data including the total (calculation result) data "198" and the total function (result output function) "are printed on the recording paper P, the reprinting process of the calculation data to the above-described steps S19, S20 is not immediately shifted, but as shown in fig. 9(a6), a guide ("REPRINT" mark or blinking of "-P-" mark) is displayed on the display unit 12 (step S19b), the guide prompting the user to cut (cut) the printed portion of the recording paper P and to operate the [ REPRINT ] key 11e again.
Further, after cutting off the printed portion of the series of calculation data "50 +48+100+ 198" printed on the recording paper P in accordance with the calculation data printing process in the print mode (on), the stored data printing start flag "· · 0 · · · · · · · · and the series of calculation data" 50+48+100+198 "· may be printed on the recording paper P as shown in fig. 9(a7) by operating the [ REPRINT ] (stored data printing) key 11e again (or operating an arbitrary key) (step S19c) as shown in fig. 9(B3) (steps S19, S20).
Accordingly, the printed portion of the recording paper P on which the series of calculation data are sequentially printed in accordance with the input of the calculation data in the print mode (on) state is cut off, and is delivered to the customer as a stub of the customer, for example, and then the series of calculation data are printed again on the next recording paper P, thereby making it easy to use the stub as a user.
Therefore, according to the calculation data printing process of the calculator 10 with a printer of the above configuration according to embodiment 1, a series of calculation data including numerical data and calculation data is input, and when printing of the series of calculation data is instructed by the [ REPRINT ] (stored data printing) key 11e in a state where the series of input calculation data is sequentially stored in the calculation data memory 22c, it is determined whether or not a total function (result output function) "is included at the end of the calculation data stored in the calculation data memory 22c, and the total of the stored calculation data is determined (display/print instruction). When it is determined that the total function (result output function) "is not included at the end of the stored calculation data and the determination (display/print instruction) of the total amount of the stored calculation data is not performed, the total function (result output function)" and the total (calculation result) data stored in the total memory 22e are additionally stored at the end of the calculation data, and the series of calculation data including the total (calculation result) data is printed on the recording paper P. Further, the above-described total function (result output function) ", and the total (calculation result) data stored in the total memory 22e may be additionally stored at the end of the above-described calculation data, and after the series of calculation data including the total (calculation result) data is printed, the printing may be temporarily stopped, and then the additionally stored total (calculation result) data may be printed.
Thus, even when the [ REPRINT ] key 11e is operated without specifying the total of a series of calculation data input by the user (display/print instruction), the series of calculation data including the total (calculation result) data can be printed on the recording paper P, and wasteful printing can be avoided.
(embodiment 2)
Fig. 10 is a diagram showing a display/print operation according to a user operation in embodiment 2 of the above-described calculation data print processing.
In embodiment 2, for example, a case will be described in which the total amount of money is confirmed for each of a plurality of product categories purchased by a customer, and then the total amount of money is confirmed.
First, in the calculator 10 with a printer set in the print mode (on) as in the above-described embodiment 1, when the [ CA ] key 11B is operated as shown in fig. 10(a1), a normal print start flag "· · 0 · · · · · · · · · · · · · · · · · · · · · · · · · · S7 is printed on the recording paper P as shown in fig. 10(B1) (steps S1 to S7).
As shown in fig. 10(a2) to a4), for example, when calculation data "50 +" "48 +" "100 +" consisting of numerical data and arithmetic data is input to 3 product prices included in the 1 st product category (food) by user operation of a numerical key and an arithmetic key, the input calculation data "50 +" "48 +" "100 +" is sequentially stored in the calculation data memory 22c as shown in fig. 3a2 while updating the data of the row number stored in the row number memory 22c to "01" → "02" → "03" as in the 1 st embodiment (steps S8 to S11).
Every time the above-described arithmetic data "+" (addition) is input, a calculation corresponding to the input calculation data "50 +" "48 +" "100 +" is executed, and the data of the calculation result is displayed as "50" → "98" → "198" on the display unit 12. The input numerical data "50", "48", "100" and the total (calculation result) data in the total memory 22e are sequentially added based on the input operation data "+" (addition) to be stored as total (calculation result) data "50" → "98" → "198" (step S12).
Then, as shown in fig. 10(B1), the calculation data "50 +" "48 +" "100 +" composed of numerical data and arithmetic data sequentially stored in the calculation data memory 22c is sequentially printed on the recording paper P (steps S13, S14).
Here, in order to specify (display/print instruction) (total specification) the total of a series of calculation data "50 +48+100 +" corresponding to, for example, the 1 st product category (food) inputted by the user operation, as shown in fig. 10 a5, when the [ up ] (total function (result output function)) key 11c is operated (yes in step S15), the process proceeds to the total function (result output function) key [ up ] process in fig. 6 as described above (step SA).
Then, the current line number "03" stored in the line number memory 22d is updated to "04", and the total function (result output function) "corresponding to the [ plus ] (total function (result output function)) key 11c and the total (calculation result) data" 198 "stored in the total memory 22e in accordance with the step S12 are stored in the storage area of the updated line number" 04 "in the calculation data memory 22c (step a 1).
Then, the total (calculation result) data "198" stored in the total memory 22e is displayed on the display unit 12 (step a2), and the total (calculation result) data "198" and the total function (result output function) "stored in the calculation data memory 22e are printed on the recording paper P (steps A3 and a 4).
When the [ x ] (the totaling function (result output function)) key 11c is operated, the total (calculation result) data "198" stored in the totaling memory 22e is added to the total data (currently "0") stored in the total memory 22f, and is stored as the total data "198".
Next, as shown in fig. 10(a6) to (A8), for example, when calculation data "50 +" "25 ×" "3 ═ composed of numerical value data and calculation data is input by user operation of a numerical value key and a calculation key for 4 product prices (3 out of 4 items are the same price) included in the 2 nd product category (grocery), the data of the row number stored in the row number memory 22c is updated to" 05 "→" 06 "→" 07 ", and the input calculation data" 50+ "" 25 × "3 ═" is sequentially stored in the calculation data memory 22c as shown in fig. 3a2 (steps S8 to S11).
When the above-described arithmetic data "+" (addition) is input, the calculation corresponding to the input calculation data "50 +" is executed, and the data of the calculation result is displayed as "50" on the display unit 12. The input numerical data "50" is added to the total (calculation result) data in the total memory 22e based on the input operation data "+" (addition), and is stored as the total (calculation result) data "50" (step S12).
When the arithmetic data "equal to" is input after the arithmetic data "x" (multiplication), the calculation corresponding to the input arithmetic data "25 × 3" of the multiplication is executed, and the data "75" of the calculation result is displayed on the display unit 12. In addition, the data "75" of the calculation result is added to the total (calculation result) data in the total memory 22e based on the input calculation data "(equal to) and stored as the total (calculation result) data" 125 "(step S12).
As shown in fig. 10(B1), calculation data "50 +" "25 ×" "3 ═ constituted by the numerical data and the arithmetic data stored in the calculation data memory 22c in this order and data" 75 "of the calculation result corresponding to the calculation data" 25 × 3 ═ "multiplied by them are sequentially printed next to the calculation data of the 1 st classification of products and the sum (calculation result) data" 198 "thereof printed on the recording paper P (steps S13, S14).
Here, as in the case of the above-described product category 1 (food product), when the [ product ] (the aggregation function (result output function)) key 11c is operated (yes in step S15) as shown in fig. 10(a9) to specify (display/print instruction) (aggregate specification) the total of a series of calculation data "50 +25 × 3 ═ corresponding to the above-described product category 2 (grocery product)) (aggregate specification), the process proceeds to the aggregate function (result output function) key [ product ] (step SA) shown in fig. 6.
Then, the current line number "07" stored in the line number memory 22d is updated to "08", and the total function (result output function) "corresponding to the [ plus ] (total function (result output function)) key 11c and the total (calculation result) data" 125 "stored in the total memory 22e are stored in the storage area of the updated line number" 08 "in the calculation data memory 22c (step a 1).
Then, the total (calculation result) data "125" stored in the total memory 22e is displayed on the display unit 12 (step a2), and the total (calculation result) data "125" and the total function (result output function) "stored in the calculation data memory 22c are printed on the recording paper P (steps A3 and a 4).
Here, when the [ x ] (the totaling function (result output function)) key 11c is operated, the total (calculation result) data "125" stored in the totaling memory 22e is added to the total data (currently, "198") stored in the totaling memory 22f to be the total data "323" and stored as the calculation data of the 2 nd product category (grocery goods).
Here, in order to specify (display/print instruction) (sum specifying) the sum of a series of calculation data "50 +48+100 +" "" "" "," 50+25 × 3 "" "" including the 1 st product classification and the 2 nd product classification inputted by the user operation, when the [ G ] (sum function) key 11d is operated (yes in step S16), it is determined whether or not the state of the [ CA ] key 11b being operated and then the [ q ] (sum function (result output function)) key 11c being operated, that is, whether or not there is sum (calculation result) data to be an object of the sum (step S17) based on the series of calculation data stored in the calculation data memory 22c (see fig. 3a2), although not shown.
Then, the series of calculation data stored in the calculation data memory 22c includes a total function (result output function) ", and it is determined that the state is the state in which the [ CA ] key 11b is operated and then the [ q ] (total function (result output function)) key 11c is operated (yes in step S17), and the process proceeds to the total function key [ G ] process in fig. 7 (step SB).
In the sum function key [ G ], first, the current line number "08" (+1) stored in the line number memory 22d is updated to "09". Then, the total function "gao" corresponding to the [ gao ] (total function) key 11d and the total data "323" stored in the total memory 22f are stored in the memory area of the updated line number "09" in the calculation data memory 22c (step B1).
The total data "323" in the total memory 22f is displayed on the display unit 12 (step B2), and the total data "323" and the total function "G" stored in the calculation data memory 22c are printed on the recording paper P (steps B3, B4).
On the other hand, as shown in fig. 10(a1) to (a9), even if the user forgets to operate the [ gao ] (sum function) key 11d for specifying (displaying/printing instruction) (sum specifying) the sum in a state where the sum of the 1 st product category and the sum of the 2 nd product category are specified (displaying/printing instruction), when the [ REPRINT ] (save data print) key 11e is operated (yes in step S18) to obtain the printed stub including the sum data "323" (step S10), the process proceeds to the sum/sum additional printing process in fig. 8 (step SE).
In the above-described total/total addition printing process, first, it is determined that the end of the series of calculation data "50 +48+100 +" "", "50 +25 × 3 ═" and "", which is stored (received) in the calculation data memory 22c (see fig. 3a2), is a total function (result output function) [ "(the total function (result output function) [") is stored in association with the series of calculation data) (step E1 (yes)), and it is determined whether the end thereof is a total function [ G ] (whether the total function [ G ] is stored in association with the series of calculation data) (step E3).
If it is determined that the end of the series of calculation data is not the sum function [ G (the sum function [ G ] is not stored in association with the series of calculation data ]) (no in step E3), it is determined whether or not the plurality of sum functions (result output functions) are included in the calculation data (step E4).
Here, when it is determined that a plurality (2 in this case) of total functions (result output functions) are included in the series of calculation data "50 +48+100 +" "" "" "," 50+25 × 3 "" (yes in step E4), the process proceeds to the total function key [ G ] process in fig. 7, and a total is specified (display/print instruction) (step SB).
That is, the current line number "08" (+1) stored in the line number memory 22d is updated to "09", and as shown in fig. 3B2, the sum function "G" and the sum data "323" stored in the sum memory 22f are stored in the storage area of the line number "09" in the calculation data memory 22c (step B1).
Then, as shown in fig. 10(a10), the total data "323" stored in the total memory 22f is displayed on the display unit 12 (step B2), and as shown in fig. 10(B2), the total data "323" and the total function "G" stored in the calculation data memory 22c are printed on the recording paper P (step a 4).
Then, in the calculation data printing process (2) shown in fig. 5, as shown in fig. 10(B3), the save data print start mark "· · 0 · · · · · · · · · · · · · · · · · · · · · ″ corresponding to the operation of the [ REPRINT ] key 11e described above is printed to the recording paper P (step S19).
Then, a series of calculation data stored (received) in the calculation data memory 22c (see fig. 3B2) is read out, and as shown in fig. 10(B3), the recording paper P is reprinted as "50 +" "48 +" "100 +" "198" or "50 +" "25 x" "" 3 "" "75" "125" or "323G" (step S20).
In the case of reprinting in embodiment 2, similarly to the case of reprinting in embodiment 1, when the sum function key [ G ] process (step EB (fig. 7)) in the sum/sum-total additional printing process (see fig. 8) is finished, if the printing mode is the print mode (on) (yes in step S19 a), that is, if a series of calculation data including the sum data "323" and the sum function "G" is printed on the recording paper P as shown in fig. 10(B1) (B2), the reprinting process of the calculation data in steps S19 and S20 is not immediately shifted to, and as shown in fig. 10(a11), a guide ("REPRINT" mark or a "— P" mark is blinked) is displayed on the display unit 12 (step S19B), the guide prompting the user to cut off (cut off) the printed portion of the recording paper P and to operate the REPRINT key [ r ] again (see fig. 10(a 11)) 11e (or operate any one of the keys).
Further, after cutting off the printed portion of the series of calculation data "50 +48+ … h 50+25 x … h 323G" printed on the recording paper P according to the calculation data printing processing in the printing mode (on), the stored data printing start mark "· · 0 · · h · S" and the series of calculation data "50 +48+ … h 50+25 x … h 323G" may be printed on the recording paper P (steps S19, S20) by operating the [ REPRINT ] (stored data printing) key 11e (or operating an arbitrary key) or automatically after a certain time (step S19c) as shown in fig. 10 (B3).
Therefore, according to the calculated data printing process of embodiment 2 of the calculator 10 with a printer configured as described above, while the total is determined (display/print instruction) for each calculated data divided into a plurality of categories, a series of calculated data composed of numerical data and arithmetic data is input, in a state where the series of input calculation data are sequentially stored in the calculation data memory 22c, including a totaling function (result output function) inputted for specifying (displaying/printing instruction) the total, when printing of the above-mentioned series of calculation data is instructed by the [ REPRINT ] (save data print) key 11e, it is determined whether or not the above-described total function (result output function) "is stored in association with the calculation data stored in the calculation data memory 22c, and whether or not a plurality of total functions (result output functions)" are included in the calculation data. When it is determined that the total function (result output function) "is stored in association with the stored calculation data and that a plurality of total functions (result output functions)" are included in the calculation data, the total function "G" and the total data stored in the total memory 22f are additionally stored at the end of the calculation data, and the series of calculation data including the total data is printed on the recording paper P.
Thus, even when the [ REPRINT ] key 11e is operated without specifying (displaying/printing instruction) the total of a series of pieces of calculation data input by the user, the series of pieces of calculation data including the total data can be printed on the recording paper P, and wasteful printing can be avoided.
(embodiment 3)
Fig. 11 shows a display/print operation according to a user operation in embodiment 3 of the above-described calculation data print processing.
In embodiment 3, similarly to embodiment 2, a case will be described in which after the total amount of money is determined (display/print instruction) for each of a plurality of product categories, the total amount of money is determined (display/print instruction), the determination of the total amount of the final product category (display/print instruction) input as calculation data and the determination of the total amount thereafter (display/print instruction) are forgotten, and the [ REPRINT ] (save data print) button 11e is operated.
That is, as shown in fig. 11(a1) to (a4), when the [ CA ] button 11b is operated to input a series of calculation data including numerical data and arithmetic data corresponding to the 1 st product category as "50 +" "48 +" "100 +", the series of calculation data is sequentially stored in the calculation data memory 22c (see fig. 3A3) in the same manner as in the above-described embodiment 2 (steps S4 to S11).
In addition, each time the arithmetic data "+" (addition) in the series of calculation data is input, the total of the numerical data up to immediately before the calculation is calculated, and the data of the calculation result is displayed as "50" → "98" → "198" on the display unit 12 (step S12), and as shown in fig. 11(B1), the numerical data and the arithmetic data sequentially stored in the calculation data memory 22c are sequentially printed as "50 +" "48 +" "100 +" on the recording paper P after the normal print start flag "· · 0 · · · · · · · · · · then (steps S13, S14).
Here, as in the case of the above-described embodiment 2, in order to specify (display/print instruction) (total specification) the total of a series of calculation data "50 +48+100 +" corresponding to the above-described 1 st article classification input by the user operation, when the [ product ] (total function (result output function)) key 11c is operated (yes in step S15) as shown in fig. 11a 5, the process proceeds to the total function (result output function) key [ product ] process in fig. 6 (step SA), as described above.
Then, the current line number "03" stored in the line number memory 22d is updated to "04", and the total function (result output function) "corresponding to the [ q ] (total function (result output function)) key 11c and the total (calculation result) data" 198 "stored in the total memory 22e according to the step S12 are stored in the storage area of the updated line number" 04 "in the calculation data memory 22c (step a 1).
Then, the display unit 12 displays the total (calculation result) data "198" stored in the total memory 22e (step a2), and prints the total (calculation result) data "198" and the total function (result output function) "stored in the calculation data memory 22e on the recording paper P (steps A3 and a 4).
When the [ x ] (the totaling function (result output function)) key 11c is operated, the totaling (calculation result) data "198" stored in the totaling memory 22e is added to the total data (currently "0") stored in the total memory 22f, and stored as the total data "198".
Next, as shown in fig. 11(a6) to (A8), for example, when calculation data "30 +" "25 +" "70 +" consisting of numerical data and arithmetic data thereof is input by a user operation on a numerical key and an arithmetic key for 3 product prices included in the 2 nd product category, the data of the row number stored in the row number memory 22d is updated to "05" → "06" → "07", and as shown in fig. 3A3, the input calculation data "30 +" "25 +" "70 +" is sequentially stored in the calculation data memory 22c (steps S8 to S11).
Every time the above-described arithmetic data "+" (addition) is input, a calculation corresponding to the input calculation data "30 +" "25 +" "70 +" is executed, and the data of the calculation result is displayed as "30" → "55" → "125" on the display unit 12. Further, the input numerical data "30", "25", and "70" are added to the total (calculation result) data in the total memory 22e based on the input arithmetic data "+" (addition) and stored as the total (calculation result) data "125" (step S12).
Next, as shown in fig. 11(B1), calculation data "30 +" "25 +" "70 +" composed of numerical data and arithmetic data sequentially stored in the calculation data memory 22c is sequentially printed after the calculation data of the 1 st classification of commodities and the total (calculation result) data "198" thereof printed on the recording paper P (steps S13, S14).
As described above, as shown in fig. 11(a1) to (A8), in a state where the calculation data of the 2 nd product category is input after the sum of the 1 st product category is specified (display/print instruction), but the sum is not specified (display/print instruction), even if the user forgets to operate not only the [ q ] (sum function (result output function)) key 11c for specifying (display/print instruction) (total specification) the sum but also the [ G (sum function) key 11d for specifying (display/print instruction) (total specification) the sum, the [ REPRINT ] (save data print) key 11e is operated (yes in step S18) in order to obtain a printed stub including the sum as shown in fig. 11(a 9). Then, the process proceeds to the total/total sum additional printing process in fig. 8 (step SE).
In the above-described total/total-sum additional print processing, first, it is determined that the end of the series of calculation data "50 +48+ … a 198 … 25+70 +" stored (received) in the calculation data memory 22c (see fig. 3a3) is not the total function (result output function) [ ] (the total function (result output function) [ ] is not stored in association with the series of calculation data) (step E1 (no)), and it is determined whether or not there is addition function data ("+", "-", ") that does not specify (display/print instruction) (total specification) in the series of calculation data (step E2).
When it is determined that the calculated data "+" … after the total function (result output function) "198 … 25+70 +" in the series of calculated data "50 +48+ … [. sup.22 c (see fig. 3a3) stored (received) in the calculated data memory 22c is added function data for which the total determination (display/print instruction) is not performed (yes in step E2), the process proceeds to the total function (result output function) key [. sup. ] process in fig. 6, and the determination (display/print instruction) of the total is performed in the same manner as described above (step SA).
That is, the current line number "07" (+1) stored in the line number memory 22d is updated to "08", and as shown in fig. 3B3, the sum function (result output function) "and the sum (calculation result) data" 125 "stored in the sum memory 22e are stored in the storage area of the line number" 08 "in the calculation data memory 22c (step a 1).
Then, as shown in fig. 11a 9, the total (calculation result) data "125" stored in the total memory 22e is displayed on the display unit 12 (step a2), and as shown in fig. 11B 2, the total (calculation result) data "125" and the total function (result output function) "stored in the calculation data memory 22e are printed on the recording paper P (step a 4).
Here, when the calculation data of the 2 nd product category is stored in the calculation data memory 22c as the sum function (result output function) ", and the sum (calculation result) data" 125 ", the sum (calculation result) data" 125 "stored in the sum memory 22e is added to the sum data (currently," 198 ") stored in the sum memory 22f to be the sum data" 323 "and stored.
Then, in the total/total sum additional printing process shown in fig. 8, it is determined that the end of the series of calculation data "50 +48+ … [ ]198 … 25+70+ [ ] 125" stored (received) in the calculation data memory 22c (see fig. 3B3) is not the total sum function [ G ] or (the total sum function [ G ] is not stored in association with the series of calculation data) (step E3 (no)), and it is determined that a plurality of (here, 2) total sum functions (result output functions) [ ] are included in the series of calculation data "50 +48+ … [ ]198 … 25+70+ [ ] 125" (step E4 (yes)).
Then, the process proceeds to the sum function button [ G ] process in FIG. 7, and the sum is determined (display/print instruction) (step SB).
That is, similarly to the above-described embodiment 2, the current line number "08" (+1) stored in the line number memory 22d is updated to "09", and as shown in fig. 3B3, the sum function "G" and the sum data "323" stored in the sum memory 22f are stored in the storage area of the line number "09" in the calculation data memory 22c (step B1).
Then, as shown in fig. 11(a12), the total data "323" stored in the total memory 22f is displayed on the display unit 12 (step B2), and as shown in fig. 11(B2), the total data "323" and the total function "G" stored in the calculation data memory 22c are printed on the recording paper P (step a 4).
Then, in the calculation data printing process (2) shown in fig. 5, as shown in fig. 11(B3), the save data print start mark "· · 0 · · · · · · · · · · · · · · · · · · · · · ″ corresponding to the operation of the [ REPRINT ] key 11e described above is printed to the recording paper P (step S19).
Then, a series of calculation data stored (received) in the calculation data memory 22c (see fig. 3B3) is read, and as shown in fig. 11(B3), the recording paper P is reprinted as "50 +" "48 +" … "198" "" 30+ "" 25+ "…" 125 "" "323G" "(step S20).
In addition, in the case of reprinting in embodiment 3, similarly to the case of reprinting in embodiments 1 and 2, when the sum function key [ G ] process (step EB (fig. 7)) in the sum/sum-total additional printing process (see fig. 8) is finished, if the printing mode is the print mode (on) (yes in step S19 a), that is, if a series of calculation data including the sum data "323" and the sum function "G" is printed on the recording paper P as shown in fig. 11(B1) (B2), the reprinting process of the calculation data in steps S19 and S20 is not immediately performed, and a guide ("REPRINT" mark or a blinking of "-P-" mark) is displayed on the display unit 12 as shown in fig. 11(a11) (step S19B) for urging the user to cut off (cut) the printed portion of the recording paper P and to operate the key [ rint ] 11 [ rint ] rept ] in fig. 11 .
Further, after cutting off the printed portion of the series of calculation data "50 +48+ … h 30+25+ … h 323G" printed on the recording paper P by the calculation data printing processing in the printing mode (on), the stored data printing start mark "· · 0 · · S" and the series of calculation data "50 +48+ … h 30+25+ … h 323G" may be printed on the recording paper P automatically (step S19, S20) after a certain time (step S19c) as shown in fig. 11(B3) by operating the [ REPRINT ] (stored data printing) key 11e (or operating an arbitrary key).
Therefore, according to the calculation data printing process of the calculator 10 with a printer of the above configuration of embodiment 3, while specifying (displaying/printing instructions) a total for each calculation data divided into a plurality of categories, a series of calculation data composed of numerical data and calculation data is inputted, and the calculation data is instructed to be printed by the [ REPRINT ] (stored data printing) key 11e in a state where the inputted calculation data is sequentially stored in the calculation data memory 22c including a total function (result output function) [ ] inputted for specifying (displaying/printing instructions) the total. Then, the above-mentioned total function (result output function) "is stored in association with the calculation data stored in the calculation data memory 22c, and it is determined whether or not a plurality of total functions (result output functions)" are included in the calculation data.
First, when it is determined that the total function (result output function) "is not stored in association with the stored calculation data, the total function (result output function)" and the total (calculation result) data stored in the total memory 22e are additionally stored in association with the end of the calculation data. Then, since it is determined that the end of the calculation data stored in the calculation data memory 22c is the above-mentioned total function (result output function) ", which is stored in association with each other, and that the calculation data includes a plurality of total functions (result output functions)", the series of calculation data including the total data is printed on the recording paper P by adding the total function "G", which is stored in association with each other, and the total data stored in the total memory 22f to the end of the calculation data.
Thus, even when the [ REPRINT ] key 11e is operated without specifying (displaying/printing instruction) the sum of the final classification of a series of calculation data including a plurality of classifications input by the user, the calculation data including the final sum (calculation result) data and the sum data can be printed on the recording paper P, and wasteful printing can be avoided.
The methods of the processes of the calculator 10 with printer described in the above embodiments, that is, the calculation data print process shown in the flowcharts of fig. 4 and 5, the sum function (result output function) key process in the calculation data print process shown in the flowchart of fig. 6, the sum function [ G ] key process in the calculation data print process shown in the flowchart of fig. 7, the sum/sum additional print process in the calculation data print process shown in the flowchart of fig. 8, and the like, can be distributed as programs executable by the calculator and stored in media of external recording devices such as memory cards (ROM cards, RAM cards, and the like), magnetic disks (floppy disks (registered trademark), hard disks, and the like), optical disks (CD-ROMs, DVDs, and the like), semiconductor memories, and the like. The Computer (CPU) of the electronic calculator having the printing function reads a program recorded in a medium of the external recording device into the storage device, and controls the operation according to the read program, thereby realizing the calculated data printing function described in each of the above embodiments and executing the same processing as the above method.
The above-described calculation data printing function can also be realized by transferring data of a program for realizing each of the above-described methods to a communication network (N) as a program code, reading the data of the program from a computer device (program server) connected to the communication network (N) to an electronic calculator having a printing function, and storing the data in a storage device.
The present invention is not limited to the above embodiments, and various modifications can be made in the implementation stage without departing from the gist thereof. The embodiments described above include inventions in various stages, and various inventions can be extracted by appropriate combinations of a plurality of disclosed constituent elements. For example, when the problem to be solved by the invention can be solved by deleting some of the constituent elements from all the constituent elements shown in the respective embodiments or by combining some of the constituent elements in different ways, and the above-described effects of the invention are obtained, a configuration in which the constituent elements are deleted or combined can be extracted as the invention.
Claims (9)
1. A computing device is provided with:
a calculation data accepting unit that accepts numerical data input according to a user operation and an operator input according to the user operation as calculation data;
a result output function storing unit that stores, when a user operation of result output function data for outputting calculation result data that is a result of calculation performed on the calculation data received by the calculation data receiving unit is received, result output function data in correspondence with the calculation data received by the calculation data receiving unit;
a printing operation accepting unit that accepts a printing operation according to a user operation;
and a stored data print control unit configured to print calculated print data including the calculated data and the calculated result data when the result output function data is stored in association with the calculated data received by the calculated data receiving unit when the printing operation is received by the printing operation receiving unit, and also print calculated print data including the calculated data and the calculated result data when the result output function data is not stored in association with the calculated data received by the calculated data receiving unit.
2. The computing device of claim 1,
the stored data print control means, when the result output function data is not stored in association with the calculation data received by the calculation data receiving means, additionally stores the result output function data in association with the calculation data received by the calculation data receiving means, and then prints the calculation print data including the calculation result data based on the additionally stored result output function data.
3. The computing device according to claim 1 or 2, comprising:
a sum function accepting unit that accepts an operation of a sum function according to a user operation;
a total function storage unit that stores a total function in association with the received calculation data when an operation of the total function for outputting total data obtained by summing up a plurality of the calculation result data is received,
when the print operation is accepted by the print operation accepting means, the saved data print control means prints the calculated print data including the sum data when the sum function is saved in association with the calculated data accepted by the calculated data accepting means, and prints the calculated print data including the sum data when the sum function is not saved in association with the calculated data accepted by the calculated data accepting means.
4. The computing device of claim 3,
when the operation of the sum function is accepted by the sum function accepting unit, the sum function holding unit holds the sum function in correspondence with the calculation data accepted by the calculation data accepting unit,
the stored data print control means, when the sum function is not stored in association with the calculation data received by the calculation data receiving means, additionally stores the sum function in association with the calculation data received by the calculation data receiving means, and then prints the calculation print data including the sum data based on the additionally stored sum function.
5. The computing device according to claim 2 or 4, comprising:
a calculation data print control unit that prints the received calculation data each time the calculation data is received by the calculation data receiving unit; and
a calculation result data printing control unit that prints calculation result data that is a result of calculation performed on the calculation data accepted by the calculation data accepting unit when accepting an operation of the result output function,
the stored data print control means includes calculation result data additional print control means for additionally printing calculation result data based on the additionally stored result output function data when the result output function data based on the operation of receiving the result output function is not stored.
6. The computing device of claim 5,
the saved data print control means includes a temporary stop means for temporarily stopping the printing of the calculation result data by the calculation result data additional print control means after the additional printing of the calculation result data, and then printing the calculation print data including the calculation result data based on the total of the additionally saved result output function data.
7. The computing device of claim 1 or 2,
the operators include addition, subtraction, multiplication, division, and equality.
8. A computational printing method for a computational device having a printing function, the computational printing method comprising:
accepting numerical data input according to a user operation and an operator input according to the user operation as calculation data;
when a user operation of the result output function data is accepted, storing the result output function data in correspondence with the accepted calculation data, the result output function data being used for outputting calculation result data which is a result obtained by calculating the accepted calculation data;
accepting a printing operation according to a user operation;
when the printing operation is accepted, the calculation print data including the calculation data and the calculation result data is printed in a case where the result output function data is stored in association with the accepted calculation data, and the calculation print data including the calculation data and the calculation result data is also printed in a case where the result output function data is not stored in association with the accepted calculation data.
9. A recording medium on which a program for controlling a computer of a computing apparatus having a printing function is recorded, the program being readable by the computer,
characterized in that the computer is caused to function as means for,
a calculation data accepting unit that accepts numerical data input according to a user operation and an operator input according to the user operation as calculation data;
a result output function saving unit that, when a user operation of a result output function is accepted, saves result output function data in correspondence with the calculation data accepted by the calculation data accepting unit, the result output function being for outputting calculation result data that is a result of calculation performed on the calculation data accepted by the calculation data accepting unit;
a printing operation accepting unit that accepts a printing operation according to a user operation;
and a stored data print control unit configured to print calculated print data including the calculated data and the calculated result data when the result output function data is stored in association with the calculated data received by the calculated data receiving unit when the printing operation is received by the printing operation receiving unit, and also print calculated print data including the calculated data and the calculated result data when the result output function data is not stored in association with the calculated data received by the calculated data receiving unit.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016231355A JP6915263B2 (en) | 2016-11-29 | 2016-11-29 | Arithmetic logic unit, calculation printing method, and program |
JP2016-231355 | 2016-11-29 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108121517A CN108121517A (en) | 2018-06-05 |
CN108121517B true CN108121517B (en) | 2021-01-26 |
Family
ID=62228619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711226557.7A Active CN108121517B (en) | 2016-11-29 | 2017-11-29 | Computing device, computing printing method, and recording medium having program recorded thereon |
Country Status (2)
Country | Link |
---|---|
JP (2) | JP6915263B2 (en) |
CN (1) | CN108121517B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201212993Y (en) * | 2008-05-27 | 2009-03-25 | 金宝电子工业股份有限公司 | Multifunctional computer |
CN101462421A (en) * | 2007-12-18 | 2009-06-24 | 夏普株式会社 | Image forming apparatus and method |
JP2009282924A (en) * | 2008-05-26 | 2009-12-03 | Casio Electronics Co Ltd | Printer |
CN104105602A (en) * | 2012-02-28 | 2014-10-15 | 夏普株式会社 | Printer, printing method, program and recording medium therefor |
CN105984242A (en) * | 2015-03-23 | 2016-10-05 | 卡西欧计算机株式会社 | Printing device and printing method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5259538A (en) * | 1975-11-11 | 1977-05-17 | Tokyo Electric Co Ltd | Electronic register |
JPS55147750A (en) * | 1979-05-08 | 1980-11-17 | Casio Comput Co Ltd | Printing system for electronic register |
JPS6384654U (en) * | 1986-11-20 | 1988-06-03 | ||
JPS63300384A (en) * | 1987-05-30 | 1988-12-07 | 東芝テック株式会社 | Electronic cash register |
JPH05108574A (en) * | 1991-10-11 | 1993-04-30 | Canon Inc | Desk-top calculator with printer |
JPH0714074A (en) * | 1993-06-28 | 1995-01-17 | Tec Corp | Article sale data processor |
JPH08221660A (en) * | 1995-02-10 | 1996-08-30 | Nitsuko Corp | Pos system |
JP3503251B2 (en) * | 1995-03-03 | 2004-03-02 | カシオ計算機株式会社 | Electronic computer |
JP5515759B2 (en) * | 2010-01-18 | 2014-06-11 | セイコーエプソン株式会社 | Printer system control method, printer system, and printer |
-
2016
- 2016-11-29 JP JP2016231355A patent/JP6915263B2/en active Active
-
2017
- 2017-11-29 CN CN201711226557.7A patent/CN108121517B/en active Active
-
2021
- 2021-07-14 JP JP2021116240A patent/JP7196958B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101462421A (en) * | 2007-12-18 | 2009-06-24 | 夏普株式会社 | Image forming apparatus and method |
JP2009282924A (en) * | 2008-05-26 | 2009-12-03 | Casio Electronics Co Ltd | Printer |
CN201212993Y (en) * | 2008-05-27 | 2009-03-25 | 金宝电子工业股份有限公司 | Multifunctional computer |
CN104105602A (en) * | 2012-02-28 | 2014-10-15 | 夏普株式会社 | Printer, printing method, program and recording medium therefor |
CN105984242A (en) * | 2015-03-23 | 2016-10-05 | 卡西欧计算机株式会社 | Printing device and printing method |
Also Published As
Publication number | Publication date |
---|---|
JP2021166097A (en) | 2021-10-14 |
JP2018088143A (en) | 2018-06-07 |
JP7196958B2 (en) | 2022-12-27 |
JP6915263B2 (en) | 2021-08-04 |
CN108121517A (en) | 2018-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107239431B (en) | Tax computer, tax calculating method and recording medium for recording program | |
JP6759766B2 (en) | Tax calculators, tax calculators, and programs | |
CN107870888B (en) | Computing device, control method, and recording medium | |
US10684982B2 (en) | Calculating device, calculating method, and computer readable recording medium | |
CN107844452B (en) | Arithmetic device, arithmetic printing method, and arithmetic program storage medium | |
CN108121517B (en) | Computing device, computing printing method, and recording medium having program recorded thereon | |
JP7176603B2 (en) | Computing device, computing method, and program | |
JP6593505B1 (en) | Computer, electronic device, setting method, and program | |
CN107562677B (en) | Calculation device, calculation method, and recording medium having program recorded thereon | |
JP7192342B2 (en) | ELECTRONIC DEVICE, ELECTRONIC DEVICE CONTROL METHOD, AND ELECTRONIC DEVICE CONTROL PROGRAM | |
JP7020528B2 (en) | Data print control device, computer, data print control method, and data print control program | |
JP6926556B2 (en) | Arithmetic logic units, calculation methods, and programs | |
JP7416138B2 (en) | Calculator, setting support method and program | |
US11366587B2 (en) | Electronic device, electronic device control method, and recording medium | |
JP6950344B2 (en) | Arithmetic logic units, calculation methods, and programs | |
JP6620907B1 (en) | Computer, setting method, and program | |
JPH041890A (en) | Receipt issuing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |