JP2020042455A - Calculator, electronic device, setting method, and program - Google Patents

Calculator, electronic device, setting method, and program Download PDF

Info

Publication number
JP2020042455A
JP2020042455A JP2018168368A JP2018168368A JP2020042455A JP 2020042455 A JP2020042455 A JP 2020042455A JP 2018168368 A JP2018168368 A JP 2018168368A JP 2018168368 A JP2018168368 A JP 2018168368A JP 2020042455 A JP2020042455 A JP 2020042455A
Authority
JP
Japan
Prior art keywords
tax
calculation
key
numerical value
total
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.)
Granted
Application number
JP2018168368A
Other languages
Japanese (ja)
Other versions
JP6593505B1 (en
Inventor
博明 吉澤
Hiroaki Yoshizawa
博明 吉澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2018168368A priority Critical patent/JP6593505B1/en
Application granted granted Critical
Publication of JP6593505B1 publication Critical patent/JP6593505B1/en
Publication of JP2020042455A publication Critical patent/JP2020042455A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

To provide a calculator that makes a user to easily recognize whether a setting value set by the user before its initialization is held also after the initialization when initialization processing of a device is performed, and that can reduce setting work of an initial value for the setting value, which setting work is performed before delivery of the device.SOLUTION: In a calculator that comprises a control section which can perform first calculation according to an input of an execution instruction, the control section is configured to: store first information indicating that certain processing has been performed, in a storage section of the calculator after performing the certain processing; and perform processing to set a numerical value used in the first calculation to a predetermined first numerical value and store second information indicating that the certain processing has not been performed, in the storage section in a case where the first information is stored in the storage section at an activation time when initialization processing of the calculator is involved.SELECTED DRAWING: Figure 2

Description

本発明は、税計算をする計算機、設定方法、及びプログラムに関する。   The present invention relates to a calculator for calculating tax, a setting method, and a program.

近年の税計算機(電卓)には、予め設定された税率を用いて税計算をする機能を設けたものがある。例えば、特許文献1に記載された税計算機には、複数の税率にそれぞれ対応する複数の税計算キー(税込み計算キー、税抜き計算キー)が設けられている。税計算機は、各税計算キーに対する操作に応じて、任意の四則計算などによる通常計算された数値、あるいは個別に入力された数値をもとに、各税計算キーに対応する税率による税込み額を算出して表示する。   In recent years, some tax calculators (calculators) have a function of calculating a tax using a preset tax rate. For example, the tax calculator described in Patent Document 1 is provided with a plurality of tax calculation keys (calculation key including tax, calculation key without tax) respectively corresponding to a plurality of tax rates. The tax calculator calculates the tax-inclusive amount at the tax rate corresponding to each tax calculation key based on the numerical value calculated normally by any four arithmetic calculations or the numerical value entered individually according to the operation on each tax calculation key. Calculate and display.

また、税計算に設けられた税計算キーには、所定のキー操作をすることで任意の税率を設定することができる。例えば、ユーザは、法律の改正により税率が変更された場合に変更後の税率に設定する、あるいは操作性の好みに合わせて、税計算に使用する頻度の高い税率を使いやすい位置の税計算キーに設定するなどの設定が可能である。   An arbitrary tax rate can be set by operating a predetermined key on the tax calculation key provided for the tax calculation. For example, when the tax rate is changed due to a revision of the law, the user sets the changed tax rate, or according to the preference of the operability, the tax calculation key at a position where the tax rate frequently used for tax calculation is easy to use. Can be set.

特開2017−174225号公報JP 2017-174225 A

税計算機は、工場から出荷される前に、税計算キーに対して初期値とする税率が設定されている。税計算キーに対して設定された税率は、電池から給電されている間には保持されているが、電池交換がされる際には失われてしまう。   Before the tax calculator is shipped from the factory, a tax rate is set as an initial value for a tax calculation key. The tax rate set for the tax calculation key is maintained while power is supplied from the battery, but is lost when the battery is replaced.

電池交換後に税計算キーに対して、自動的にプログラムにより予め設定された初期値とする税率を設定するようにした場合、ユーザが改めて税率の設定操作を行うことなく、税計算キーの操作により税計算が実行可能となる。一方、税計算キーに対して予め設定された初期値とは異なる任意の税率を設定して使用することを許容する税計算機の仕様であった場合、電池交換前にユーザが設定した任意の税率が電池交換後も保持されているかどうかを、ユーザが認識しづらい可能性があった。   When the tax rate is set to the initial value preset by the program automatically for the tax calculation key after the battery replacement, the user does not have to perform the tax rate setting operation again by operating the tax calculation key. Tax calculation becomes feasible. On the other hand, if the specification of the tax calculator allows the user to set and use an arbitrary tax rate different from the preset initial value for the tax calculation key, the arbitrary tax rate set by the user before battery replacement is used. There is a possibility that it is difficult for the user to recognize whether or not is retained even after the battery is replaced.

一方、電池交換後に、税計算キーに対して、電池交換前と異なる税率が設定されていることを認識できる数値であり、かつ、上記の予め設定された初期値ではない数値を必ず設定するようにした場合、ユーザは、電池交換前に自身が設定し直した税率が保持されていないことを認識しやすくなる。しかしながら、その場合、工場出荷前に電池交換した際には、税計算キーに対して正しい初期値とする税率を設定する作業が必要となり、工場出荷前の負担が増大するおそれがあった。   On the other hand, after replacing the battery, a value that can recognize that the tax rate different from that before the battery replacement is set for the tax calculation key, and a value that is not the preset initial value described above must be set. In this case, the user can easily recognize that the tax rate reset by the user before battery replacement is not maintained. However, in such a case, when the battery is replaced before shipment from the factory, it is necessary to set a tax rate that is a correct initial value for the tax calculation key, and the burden before shipment from the factory may increase.

本発明によれば、機器の初期化処理が実行された場合に、その初期化前にユーザが設定した設定値がその初期化後も保持されているかどうかをユーザが認識しやすくするとともに、機器の出荷以前に行われる上記設定値への初期値の設定作業を軽減できる計算機、設定方法、及びプログラムが提供される。   According to the present invention, when the initialization processing of the device is performed, the user can easily recognize whether or not the setting value set by the user before the initialization is retained after the initialization, and A computer, a setting method, and a program that can reduce the work of setting an initial value to the above-mentioned setting value performed before shipment of the program.

上記の課題を解決するために、本発明の計算機は、実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機であって、前記制御部は、ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させる。   In order to solve the above problem, a computer according to the present invention is a computer having a control unit capable of executing a first calculation in response to an input of an execution instruction, wherein the control unit performs, after performing a certain process, When first information indicating that a certain process has been executed is stored in the storage unit of the computer, and when the computer is started with an initialization process, the first information is stored in the storage unit. A process for setting a numerical value used for the first calculation to a predetermined first numerical value is executed, and second information indicating that the certain process has not been executed is stored in the storage unit.

本実施形態における税計算機の外観構成を示す正面図。The front view showing the appearance composition of the tax calculator in this embodiment. 本実施形態における電卓の電子回路の構成を示すブロック図。FIG. 2 is a block diagram showing a configuration of an electronic circuit of the calculator according to the embodiment. 本実施形態における電卓の税計算キーに対する税率設定処理の動作を説明するためのフローチャート。9 is a flowchart for explaining the operation of a tax rate setting process for a tax calculation key of the calculator according to the embodiment. 本実施形態における電卓の計算処理の動作を説明するためのフローチャート。5 is a flowchart for explaining the operation of the calculator in the present embodiment. 本実施形態における税計算キーに設定される税率の一例を示す図。The figure which shows an example of the tax rate set to the tax calculation key in this embodiment.

以下、図面により本発明の実施の形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本実施形態に係る税計算機の外観構成を示す正面図である。本実施形態では、税計算機を計算専用の電卓10として実現している。   FIG. 1 is a front view showing an external configuration of the tax calculator according to the present embodiment. In the present embodiment, the tax calculator is realized as a calculator 10 dedicated to calculation.

なお、税計算機は、電卓10として構成する他、計算機能を有する(計算処理プログラムが実装された)パーソナルコンピュータ、タブレット型コンピュータ、スマートフォン、携帯電話機、タッチパネル式PDA(personal digital assistants)、電子ブック、携帯ゲーム機等として構成することができる。なお、電卓10のような物理的なキー(ボタン)が実装されていない税計算機は、電卓10のキーと同様なソフトウェアキーボードを表示し、このソフトウェアキーボードに対するキー操作に応じて計算処理を実行する。   In addition, the tax calculator is configured as the calculator 10, and has a calculation function (a calculation processing program is mounted), such as a personal computer, a tablet computer, a smartphone, a mobile phone, a touch panel PDA (personal digital assistants), an electronic book, It can be configured as a portable game machine or the like. It should be noted that a tax calculator with no physical keys (buttons) such as the calculator 10 displays a software keyboard similar to the keys of the calculator 10 and executes calculation processing in accordance with key operations on the software keyboard. .

本実施形態における電卓10は、複数の税率、例えば5種類の税率により税計算をする税計算機能が設けられている。例えば、インドでは消費税として、5種類の税率(0%、5%、12%、18%、28%)が用いられている。従って、本実施形態における電卓10は、インドなどにおいて、5種類以下の複数の消費税が混在する商品の総額などを算出する税計算に好適である。   The calculator 10 according to the present embodiment is provided with a tax calculation function for calculating a tax at a plurality of tax rates, for example, at five different tax rates. For example, in India, five kinds of tax rates (0%, 5%, 12%, 18%, and 28%) are used as consumption tax. Therefore, the calculator 10 according to the present embodiment is suitable for tax calculation for calculating the total amount of a product in which a plurality of types of consumption tax of five or less are mixed in India and the like.

電卓10の筐体正面には、複数のキーを含むキー入力部11、表示部12およびソーラーパネル13が設けられる。キー入力部11には、数値キー、演算キー、税計算機能キー、機能キー、検算機能キーが設けられる。数値キーには、例えば[00][0]〜[9]のそれぞれに対応する複数のキーを含む。演算キーには、四則演算による通常計算に使用する、例えば[+](加算)キー11h1、[−](減算)キー11h2、[×](乗算)キー11h3、[÷](除算)キー11h4、[=](演算実行)キー11h0のそれぞれに対応する複数のキーを含む。   A key input unit 11 including a plurality of keys, a display unit 12, and a solar panel 13 are provided on the front of the housing of the calculator 10. The key input unit 11 is provided with numerical keys, calculation keys, tax calculation function keys, function keys, and check function keys. The numerical keys include, for example, a plurality of keys corresponding to [00] [0] to [9]. The operation keys include, for example, a [+] (addition) key 11h1, a [-] (subtraction) key 11h2, a [x] (multiplication) key 11h3, and a [算] (division) key 11h4, which are used for normal calculations by four arithmetic operations. , [=] (Calculation execution) key 11h0.

税計算機能キーには、税計算キー([GST+n(TAX−n)])11b、税計算合計キー([GST GT(GT)])11c、税計算モード切替キー([GST+/TAX−])11dが設けられる。ここで、GSTとは、インドの消費税を意味する「Goods and Service Tax」に対する略記号である。また、[ ]内の文字列(ただし、( )内の文字列を除く。)は、各税計算キー11bのキートップに印刷された文字列を示しており、[ ]内のさらに( )内の文字列は、電卓10の筐体正面に印刷された文字列を便宜的に示すものとする。本明細書では、税計算キー11bに限らず、同様の表記とする。   The tax calculation function keys include a tax calculation key ([GST + n (TAX-n)]) 11b, a tax calculation total key ([GST GT (GT)]) 11c, and a tax calculation mode switching key ([GST + / TAX-]). 11d is provided. Here, GST is an abbreviation for “Goods and Service Tax” which means Indian consumption tax. The character string in [] (however, the character string in () is excluded) indicates the character string printed on the key top of each tax calculation key 11 b, and further in () in []. Is a character string printed on the front of the housing of the calculator 10 for the sake of convenience. In this specification, not only the tax calculation key 11b but also the same notation is used.

税計算キー([GST+n(TAX−n)])11bには、税0計算キー([GST+0(TAX−0)])11b0、税1計算キー([GST+1(TAX−1)])11b1、税2計算キー([GST+2(TAX−2)])11b2、税3計算キー([GST+3(TAX−3)])11b3、税4計算キー([GST+4(TAX−4)])11b4が含まれる。税0計算キー([GST+0(TAX−0)])11b0は、税率0を用いた税計算の実行指示を入力するために操作される。同様にして、税1計算キー([GST+1(TAX−1)])11b1、税2計算キー([GST+2(TAX−2)])11b2、税3計算キー([GST+3(TAX−3)])11b3、税4計算キー([GST+4(TAX−4)])11b4は、それぞれ税率1、税率2、税率3、税率4を用いた税計算の実行指示を入力するために操作される。本明細書では、このように、税計算キー([GST+n(TAX−n)])11bと表現する場合、「n」は0〜4までの各数値の代わりに用いられる。本明細書では、税計算キー11bに限らず、「n」が取り得るすべての数値(0〜4の整数)のうち、いずれの数値であるかを特段限定しない場合には、具体的な数値ではなく「n」を用いて便宜的に説明する。   The tax calculation key ([GST + n (TAX-n)]) 11b includes a tax 0 calculation key ([GST + 0 (TAX-0)]) 11b0, a tax 1 calculation key ([GST + 1 (TAX-1)]) 11b1, and a tax 2 calculation keys ([GST + 2 (TAX-2)]) 11b2, tax 3 calculation keys ([GST + 3 (TAX-3)]) 11b3, and tax 4 calculation keys ([GST + 4 (TAX-4)]) 11b4. The tax 0 calculation key ([GST + 0 (TAX-0)]) 11b0 is operated to input a tax calculation execution instruction using the tax rate 0. Similarly, a tax 1 calculation key ([GST + 1 (TAX-1)]) 11b1, a tax 2 calculation key ([GST + 2 (TAX-2)]) 11b2, and a tax 3 calculation key ([GST + 3 (TAX-3)]) 11b3 and a tax 4 calculation key ([GST + 4 (TAX-4)]) 11b4 are operated to input a tax calculation execution instruction using the tax rate 1, the tax rate 2, the tax rate 3, and the tax rate 4, respectively. In this specification, as described above, when the tax calculation key ([GST + n (TAX-n)]) 11b is used, “n” is used instead of each numerical value from 0 to 4. In the present specification, not only the tax calculation key 11b but also a specific numerical value when there is no particular limitation on which numerical value (an integer from 0 to 4) can be taken by “n”. This will be described for convenience using “n” instead of “n”.

1つの税計算キー11b(税n計算キー11b0〜11b4)は、税込み計算キー[GST+n]と税抜き計算キー[TAX−n]を兼ねている。税計算キー11b(税n計算キー11b0〜11b4)は、税計算モード切替キー([GST+/TAX−])11dの操作に応じて切り替えられる税計算モードに応じて、税込み計算キー[GST+n]あるいは税抜き計算キー[TAX−n]として使用される。1つの税計算キー11bを税込み計算キー[GST+n]と税抜き計算キー[TAX−n]として共用することで、限られた筐体正面の面積を有効に利用して、複数(5種類)の税率のそれぞれに対応する税込み計算処理および税抜き計算処理を実行可能なキーを設けている。   One tax calculation key 11b (tax n calculation keys 11b0 to 11b4) also serves as a tax-inclusive calculation key [GST + n] and a tax-exempt calculation key [TAX-n]. The tax calculation key 11b (tax n calculation key 11b0 to 11b4) is a tax-inclusive calculation key [GST + n] or a tax-inclusive calculation key [GST + n] according to the tax calculation mode switched in response to the operation of the tax calculation mode switching key ([GST + / TAX-]) 11d. Used as a tax-excluding calculation key [TAX-n]. By sharing one tax calculation key 11b as a tax-inclusive calculation key [GST + n] and a tax-exclusive calculation key [TAX-n], a limited area of the front surface of the housing is effectively used, and a plurality of (five types) are used. A key is provided that can execute a tax-inclusive calculation process and a tax-excluding calculation process corresponding to each tax rate.

なお、税計算キー11b(税n計算キー11b0〜11b4)に割り当てられる税率(税率0〜税率4)は、電卓10の工場出荷時に予め設定されている。例えば、税n計算キー11b0〜11b4には、インドにおける使用に合わせて、5種類の税率(0%、5%、12%、18%、28%)がそれぞれ設定される。また、税n計算キー11b0〜11b4に割り当てられる税率(税率0〜税率4)は、ユーザ操作によって任意に設定することができる。   The tax rates (tax rates 0 to 4) assigned to the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) are preset when the calculator 10 is shipped from the factory. For example, five tax rates (0%, 5%, 12%, 18%, and 28%) are set in the tax n calculation keys 11b0 to 11b4, respectively, in accordance with use in India. The tax rates (tax rates 0 to 4) assigned to the tax n calculation keys 11b0 to 11b4 can be arbitrarily set by a user operation.

本実施形態における電卓10は、工場出荷前に電池交換された場合には、複数の税計算キー11b(税n計算キー11b0〜11b4)に対して、税率自動設定プログラムによって、予め設定された税率を設定する税率自動設定処理を実行する。これにより、工場出荷前における税計算キー11bに対する税率設定作業を効率化している。一方、電卓10は、工場出荷後のユーザの利用時に電池交換された場合には、税計算キー11bに設定された税率が電池交換前とは異なることが容易にわかる税率を設定する。本実施形態では、ユーザ使用時の電池交換時には、税計算キー11bに設定された税率を例えば「0%」に設定する(税率設定クリア)。これにより、税計算キー11bの操作により税計算を実行しても、入力した数値と税計算後の数値が同じとなり、税計算キー11bに対して正しい税率が設定されていないことを容易に認識することができる。   If the battery is replaced before shipment from the factory, the calculator 10 according to the present embodiment applies a tax rate preset to a plurality of tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) by an automatic tax rate setting program. Execute the tax rate automatic setting process to set. Thus, the tax rate setting work for the tax calculation key 11b before the factory shipment is made more efficient. On the other hand, when the battery is replaced when the user uses it after shipping from the factory, the calculator 10 sets a tax rate that makes it easy to see that the tax rate set in the tax calculation key 11b is different from that before the battery replacement. In the present embodiment, at the time of battery replacement when the user is in use, the tax rate set on the tax calculation key 11b is set to, for example, “0%” (tax rate setting clear). Thus, even if the tax calculation is performed by operating the tax calculation key 11b, the input numerical value and the numerical value after the tax calculation become the same, and it is easily recognized that the correct tax rate is not set for the tax calculation key 11b. can do.

税計算合計キー([GST GT(GT)])11cは、四則計算や定数計算などの通常計算(基本計算)について総合計を表示させるためのグランドトータルキー([GT]キー)と、税計算の計算結果について総合計を表示させるためのGSTグランドトータルキー([GST GT]キー)を兼ねる。なお、税計算合計キー11cがGSTグランドトータルキーとして機能する場合、税計算が実行されるとともに、電卓10の処理モードが税合計リコールモード(GST GTリコールモード)へ遷移する。一方、税計算合計キー11cがグランドトータルキーとして機能する場合、電卓10の処理モードは特に遷移するわけではなく、単に、合計メモリエリア22hに記憶されている数値が呼び出され、表示部12に表示される。   The tax calculation total key ([GST GT (GT)]) 11c includes a grand total key ([GT] key) for displaying a grand total for normal calculations (basic calculations) such as four arithmetic calculations and constant calculations, and a tax calculation key. Also serves as a GST grand total key ([GST GT] key) for displaying the total sum for the calculation result of. When the tax calculation total key 11c functions as a GST grand total key, the tax calculation is performed and the processing mode of the calculator 10 transits to the tax total recall mode (GST GT recall mode). On the other hand, when the tax calculation total key 11c functions as a grand total key, the processing mode of the calculator 10 does not particularly change, and the numerical value stored in the total memory area 22h is simply called and displayed on the display unit 12. Is done.

税計算合計キー11cは、税計算合計キー11cが操作された直前の動作状態に応じて、グランドトータルキー([GT]キー)あるいはGSTグランドトータルキー([GST GT]キー)の何れかとして機能する。つまり、例えば、税計算キー11bの操作によって税計算が実行された直後に税計算合計キー11cが押下された場合には、税計算キー11bは、税計算の計算結果について総合計を表示させるGSTグランドトータルキー([GST GT]キー)として機能する。また、例えば、演算実行キー([=]キー)11h0の操作によって通常計算が実行された直後に税計算合計キー11cが押下された場合、すなわち、税計算キー11bの操作によって税計算が実行された直後でない場合には、税計算キー11bは、通常計算(基本計算)について総合計を表示させるためのグランドトータルキー([GT]キー)として機能する。なお、ここでの税計算合計キー11cの押下時間は、予め定められた任意の時間よりも短い時間であり、次に述べる「長押し」よりも短い時間である。また、短い時間押下することを、本明細書では便宜的に「短押し」、または通常の押下する操作等と記述する。   The tax calculation total key 11c functions as either a grand total key ([GT] key) or a GST grand total key ([GST GT] key) depending on the operation state immediately before the tax calculation total key 11c is operated. I do. That is, for example, when the tax calculation total key 11c is pressed immediately after the tax calculation is performed by operating the tax calculation key 11b, the tax calculation key 11b is used to display the total amount of the tax calculation result on the GST. Functions as a grand total key ([GST GT] key). Further, for example, when the tax calculation total key 11c is pressed immediately after the normal calculation is performed by operating the calculation execution key ([=] key) 11h0, that is, the tax calculation is performed by operating the tax calculation key 11b. If it is not immediately after, the tax calculation key 11b functions as a grand total key ([GT] key) for displaying a grand total for a normal calculation (basic calculation). Here, the pressing time of the tax calculation total key 11c is shorter than an arbitrary predetermined time, and is shorter than the "long press" described below. Also, pressing for a short time is referred to as “short pressing” or a normal pressing operation in this specification.

さらに、税計算合計キー11cは、通常の押下する操作とは異なる操作(例えば、長押し)がされた場合には、前述とは逆のキーとして機能する。つまり、例えば、税計算キー11bの操作によって税計算が実行された直後に税計算合計キー11cが長押しされた場合には、税計算合計キー11cは、グランドトータルキー([GT]キー)として機能する。また、例えば、演算実行キー([=]キー)11h0の操作によって通常計算が実行された直後に税計算合計キー11cが長押しされた場合、すなわち、税計算キー11bの操作によって税計算が実行された直後でない場合には、税計算合計キー11cは、GSTグランドトータルキー([GST GT]キー)として機能する。なお、税計算合計キー11cに対する通常と異なる操作は、前述した長押しする操作(上述の予め定められた任意の時間以上、押下した状態を継続する操作)以外の他の操作を用いることも可能である。   Further, the tax calculation total key 11c functions as a key opposite to the above when an operation (for example, long press) different from a normal press operation is performed. That is, for example, when the tax calculation total key 11c is long-pressed immediately after the tax calculation is performed by operating the tax calculation key 11b, the tax calculation total key 11c is used as a grand total key ([GT] key). Function. Further, for example, when the tax calculation total key 11c is long-pressed immediately after the normal calculation is performed by operating the calculation execution key ([=] key) 11h0, that is, the tax calculation is performed by operating the tax calculation key 11b. If not, the tax calculation total key 11c functions as a GST grand total key ([GST GT] key). The operation different from the normal operation for the tax calculation total key 11c may be another operation other than the above-mentioned long-pressing operation (the operation of keeping the pressed state for a predetermined time or more). It is.

機能キーには、例えばオールクリアキー([AC]キー11a)、クリアキー([C]キー)、複数のメモリキー([MRC][M−][M+])、ルートキー([√]キー)、[%]キー11gなどが含まれる。[%]キー11gは、パーセント計算のために使用される他、税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに対応する税率をキー操作によって入力される値に設定するための税率設定処理を起動するために使用される。   The function keys include, for example, an all clear key ([AC] key 11a), a clear key ([C] key), a plurality of memory keys ([MRC] [M-] [M +]), and a root key ([√] key). ), [%] Key 11g and the like. The [%] key 11g is used not only for calculating the percentage, but also for setting a tax rate corresponding to each of the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) to a value input by key operation. Used to initiate the configuration process.

検算機能キーは、先に実行された計算の内容について確認/修正するための検算機能において使用されるキーである。検算機能キーには、確認キー([CHECK BACK]キー11e、[CHECK FOWARD]キー11f)と、修正キー([CORRECT]キー)11kが含まれる。[CHECK BACK]キー11e及び[CHECK FOWARD]キー11fは、先に実行された計算の内容(計算データ)をステップ単位で切り替えて表示させるためのキーである。[CHECK BACK]キー11eが操作された場合、ステップ数が少ない方向のステップの計算データに表示を切り替え、[CHECK FOWARD]キー11fが操作された場合、ステップ数が多い方向のステップの計算データに表示を切り替える。なお、1ステップは、計算のために入力された「置数+ファンクション」が単位となる。「ファンクション」には、四則計算、税込み計算、税抜き計算などのために操作されたキーのコードが記憶される。修正キー11kは、[CHECK BACK]キー11eあるいは[CHECK FOWARD]キー11fの操作により表示された計算の内容(「置数+ファンクション」)の修正を指示するためのキーである。修正キー11kの操作後に修正後の計算の内容を入力することで、表示された先に入力された計算データを修正することができる。   The check function key is a key used in the check function for confirming / correcting the contents of the calculation executed earlier. The verification function keys include a confirmation key ([CHECK BACK] key 11e, [CHECK FWARD] key 11f) and a correction key ([CORRECT] key) 11k. [CHECK BACK] key 11e and [CHECK FWARD] key 11f are keys for switching and displaying the contents (calculation data) of the previously executed calculation in units of steps. When the [CHECK BACK] key 11e is operated, the display is switched to the calculation data of the step in the direction in which the number of steps is small, and when the [CHECK FWARD] key 11f is operated, the calculation data in the direction in which the number of steps is large is displayed. Switch the display. In addition, one step is a unit of “numeric value + function” input for calculation. In the “function”, a code of a key operated for four arithmetic calculations, tax-inclusive calculations, tax-excluding calculations, and the like is stored. The correction key 11k is a key for instructing the correction of the content of the calculation (“the number input + function”) displayed by operating the [CHECK BACK] key 11e or the [CHECK FWARD] key 11f. By inputting the content of the corrected calculation after operating the correction key 11k, the displayed previously input calculation data can be corrected.

ラウンドセレクタ11yは、端数処理の計算方法を設定する。例えば、「F」設定は、表示部12に小数点以下を含む表示可能な最大桁の表示を指定する。「CUT」設定は、小数点セレクタ11zで指定された桁の切り捨てを指定する。「UP」設定は、小数点セレクタ11zで指定された桁の切り上げを指定する。「5/4」設定は、小数点セレクタ11zで指定した桁の四捨五入を指定する。小数点セレクタ11zは、小数点以下を何桁まで表示部12に表示させるかを設定する。なお、「ADD」設定は、入力された数値に対して所定の桁数への小数点設定を指定する。 The round selector 11y sets a calculation method of the fraction processing. For example, the “F” setting specifies the display of the maximum displayable digit including the decimal part on the display unit 12. The “CUT” setting specifies the truncation of the digit specified by the decimal point selector 11z. The “UP” setting specifies rounding of the digit specified by the decimal point selector 11z. The “5/4” setting specifies the rounding of the digit specified by the decimal point selector 11z. The decimal point selector 11z sets how many digits after the decimal point are displayed on the display unit 12. The “ADD 2 ” setting specifies the decimal point setting to a predetermined number of digits for the input numerical value.

表示部12は、ドットマトリクス型の液晶表示ユニットからなる。表示部12には、キー入力部11のキーに対する操作により入力された数値が表示される。表示部12には、限られた行数分(例えば1行)の数値が表示される。また、表示部12の辺に沿って設けられた状態表示エリアには、設定中の計算モードや各種設定状態を示す文字や記号(シンボル)が表示される。例えば、状態表示エリアには、ステップ数12a、税計算モードシンボル12b、税計算キーシンボル12c、税合計リコールモードシンボル12d、総合計表示シンボル12e、メモリシンボル12f、設定シンボル12g、[%]シンボル12hなどが表示される。なお、図1では、状態表示エリアを説明するため、表示可能なすべてのシンボルを同じ画面上に便宜的に示したが、電卓10が取り得る任意の状態において、このように多数のシンボルが同じ画面上に同時に表示されるとは限らない。   The display unit 12 includes a dot matrix type liquid crystal display unit. The display unit 12 displays numerical values input by operating the keys of the key input unit 11. The display unit 12 displays numerical values for a limited number of lines (for example, one line). Characters and symbols (symbols) indicating the calculation mode being set and various setting states are displayed in a state display area provided along the side of the display unit 12. For example, in the status display area, the number of steps 12a, the tax calculation mode symbol 12b, the tax calculation key symbol 12c, the tax total recall mode symbol 12d, the total display symbol 12e, the memory symbol 12f, the setting symbol 12g, and the [%] symbol 12h Is displayed. In FIG. 1, all displayable symbols are shown on the same screen for the sake of convenience in describing the status display area. However, in an arbitrary state that the calculator 10 can take, such a large number of symbols are the same. They are not always displayed on the screen at the same time.

ステップ数12aは、キー入力部11のキーに対する操作により入力された「置数+ファンクション」を1ステップとした、現在の表示対象としているステップの位置を示す。税計算モードシンボル12bは、現在の税計算モードを示すもので、税込み計算を実行する税込み計算モードの場合には例えば[GST+]を表示し、税抜き計算を実行する税抜き計算モードの場合には、例えば[TAX−]を表示する。   The step number 12a indicates the position of the current step to be displayed, with “numerical value + function” input by operating the key of the key input unit 11 as one step. The tax calculation mode symbol 12b indicates the current tax calculation mode. For example, [GST +] is displayed in the tax-inclusive calculation mode for executing the tax-inclusive calculation, and is displayed in the tax-exclusive calculation mode for executing the tax-independent calculation. Displays [TAX-], for example.

税計算キーシンボル12cは、税計算キー11bの操作により税計算が実行された場合に、税計算に用いた税率と、税込み計算あるいは税抜き計算の何れかを示すシンボルである。税計算キー11bが税込み計算キー[GST+n]として使用された場合、税率0〜4のそれぞれに対応する[GST+0]、[GST+1]、[GST+2]、[GST+3]、[GST+4]の何れかが表示される。また、税計算キー11bが税抜き計算キー[TAX−n]として使用された場合、税率0〜4のそれぞれに対応する[TAX−0]、[TAX−1]、[TAX−2]、[TAX−3]、[TAX−4]の何れかが表示される。   The tax calculation key symbol 12c is a symbol indicating the tax rate used for the tax calculation and either the tax-inclusive calculation or the tax-excluding calculation when the tax calculation is performed by operating the tax calculation key 11b. When the tax calculation key 11b is used as the tax included calculation key [GST + n], any one of [GST + 0], [GST + 1], [GST + 2], [GST + 3], and [GST + 4] corresponding to each of the tax rates 0 to 4 is displayed. Is done. When the tax calculation key 11b is used as the tax-excluded calculation key [TAX-n], [TAX-0], [TAX-1], [TAX-2], [TAX-2] corresponding to the tax rates 0 to 4, respectively. TAX-3] or [TAX-4] is displayed.

税合計リコールモードシンボル12dは、税計算合計キー([GST GT(GT)])11cの操作により税合計リコールモード(GST GTリコールモード)に遷移したことを示すシンボルであり、例えば「RCL」が表示される。税合計リコールモードでは、税計算合計キー11cに対するキー操作に応じて、各税率(税率0〜4)で計算した税計算の総合計として、税込総合計額、税抜総合計額、税額総合計額を切替表示させることができる。また、税合計リコールモードでは、税計算キー11bに対するキー操作により表示対象とする税率(税率0〜4)を指定し、指定した税率別の税計算の総合計として、税込合計額、税抜合計額、税額合計額を切替表示させることができる。   The tax total recall mode symbol 12d is a symbol indicating that a transition has been made to the tax total recall mode (GST GT recall mode) by operation of the tax calculation total key ([GST GT (GT)]) 11c, for example, "RCL" is displayed. Is displayed. In the tax total recall mode, a total sum of tax calculations calculated at each tax rate (tax rates 0 to 4) is calculated in accordance with a key operation on the tax calculation total key 11c. The amount can be switched and displayed. In the tax total recall mode, a tax rate to be displayed (tax rates 0 to 4) is specified by a key operation on the tax calculation key 11b. The amount and the total tax amount can be switched and displayed.

総合計表示シンボル12eは、演算実行キー[=]11h0の操作に応じて行われる通常計算の計算結果が合計メモリエリア22hに記憶されていることを示すシンボルであり、例えば「GT」が表示される。メモリシンボル12fは、メモリキー([M−][M+])の操作に応じて、メモリ機能により数値が記憶されていることを示すシンボルである。   The total display symbol 12e is a symbol indicating that the calculation result of the normal calculation performed in response to the operation of the calculation execution key [=] 11h0 is stored in the total memory area 22h. For example, "GT" is displayed. You. The memory symbol 12f is a symbol indicating that a numerical value is stored by a memory function in response to an operation of a memory key ([M-] [M +]).

設定シンボル12gは、税計算キー11bに対する税率を設定するための税率設定処理を実行するモードを示すシンボルであり、例えば[SET]が表示される。   The setting symbol 12g is a symbol indicating a mode for executing a tax rate setting process for setting a tax rate for the tax calculation key 11b, and for example, [SET] is displayed.

[%]シンボル12hは、パーセント計算のために[%]キー11gが操作された場合、及び税率設定処理において[%]キー11gが操作された場合に表示されるシンボルであり、例えば[%]が表示される。   The [%] symbol 12h is a symbol that is displayed when the [%] key 11g is operated for calculating the percentage and when the [%] key 11g is operated in the tax rate setting process, for example, [%] Is displayed.

ソーラーパネル13は、電卓10を使用する際の周辺環境光の照度がある程度明るいとき、発電する。ソーラーパネル13は、発電中、電卓10の電源部26(図2に示す)として機能し、電卓10の各部へ給電する。また、ソーラーパネル13が発電していないときは、電卓10が別途備える電源部26としての一次電池より電卓10の各部へ給電される。   The solar panel 13 generates electric power when the illuminance of ambient light when the calculator 10 is used is bright to some extent. The solar panel 13 functions as a power supply unit 26 (shown in FIG. 2) of the calculator 10 during power generation, and supplies power to each unit of the calculator 10. When the solar panel 13 is not generating power, power is supplied to each unit of the calculator 10 from a primary battery as a power supply unit 26 separately provided in the calculator 10.

図2は、本実施形態における電卓10の電子回路の構成を示すブロック図である。電卓10の電子回路は、CPU21を含む、コンピュータを構成する複数のユニットを備えている。   FIG. 2 is a block diagram illustrating a configuration of an electronic circuit of the calculator 10 according to the present embodiment. The electronic circuit of the calculator 10 includes a plurality of units constituting a computer including a CPU 21.

CPU21は、メモリ22に記憶された工場検査プログラム22a、計算処理プログラム22bなどのプログラムを実行することにより、回路各部の動作を制御する制御部として機能する。キー入力部11への入力操作が行われると、CPU21は、キー入力部11からのキー入力信号により入力操作がされたキーを検出し、検出された各キーに応じた各種の計算処理を実行する。電卓10は、CPU21が工場検査プログラム22aあるいは計算処理プログラム22bに記述された命令に従い回路各部の動作を制御し、ソフトウェアとハードウェアとが協働して動作することにより、以下の動作説明で述べる起動時の処理、計算機能による処理などを実現する。   The CPU 21 functions as a control unit that controls the operation of each unit of the circuit by executing programs such as the factory inspection program 22a and the calculation processing program 22b stored in the memory 22. When an input operation is performed on the key input unit 11, the CPU 21 detects a key on which an input operation has been performed based on a key input signal from the key input unit 11, and executes various calculation processes according to the detected keys. I do. The operation of the calculator 10 will be described in the following description of operations when the CPU 21 controls the operation of each part of the circuit in accordance with the instructions described in the factory inspection program 22a or the calculation processing program 22b, and the software and hardware operate in cooperation. Startup processing, processing by calculation function, etc. are realized.

工場検査プログラム22a及び計算処理プログラム22bは、予めメモリ22に記憶されていても良いし、記録媒体読取部24を介してメモリカード等の外部記録媒体23から読み込まれても良いし、あるいは通信部25を介して通信ネットワークN(インターネット等を含む)上のサーバ30からダウンロードされても良い。   The factory inspection program 22a and the calculation processing program 22b may be stored in the memory 22 in advance, may be read from an external recording medium 23 such as a memory card via a recording medium reading unit 24, or may be a communication unit. 25 may be downloaded from the server 30 on the communication network N (including the Internet or the like).

メモリ22には、工場検査プログラム22a及び計算処理プログラム22bが記憶される他に、工場検査プログラム22aによる工場検査処理が実行済み(処理完了)であるか否かを示す工場検査後フラグ(完了データ)を記憶する工場検査後フラグエリア22cが設けられる。工場検査後フラグエリア22cは、電池交換時などの電源部26(ソーラーパネル13)からの給電が停止された場合でも、工場検査後フラグの状態を保持することができる不揮発性の記憶エリアである。   The memory 22 stores a factory inspection program 22a and a calculation processing program 22b, and a post-factory inspection flag (completion data) indicating whether or not the factory inspection processing by the factory inspection program 22a has been executed (processing completed). ) Is stored in the post-factory inspection flag area 22c. The post-factory inspection flag area 22c is a non-volatile storage area that can hold the status of the post-factory inspection flag even when the power supply from the power supply unit 26 (solar panel 13) is stopped at the time of battery replacement or the like. .

また、メモリ22には、税計算の計算結果を記憶するエリア(税メモリ)、税率記憶エリア22e、税率別税合計メモリエリア22g、合計メモリエリア22h、税合計リコールモードエリア22k、税計算モードエリア22m、バッファメモリエリア22n、表示メモリエリア22pなど各データを記憶するエリアが設けられる。税メモリ(第1メモリ)には、税率別合計メモリエリア22d、税率別税合計メモリエリアが含まれる。税率別合計メモリエリア22dには、税率0〜4のそれぞれに対応する合計メモリエリア(税率0合計メモリエリア、税率1合計メモリエリア、税率2合計メモリエリア、税率3合計メモリエリア、税率4合計メモリエリア)が設けられる。税率別税合計メモリエリア22d
税率別合計メモリエリア22dの税率0合計メモリエリアは、税率0に基づいた税計算により算出されるデータを記憶するためのエリアである。税率0合計メモリエリアには、税率0の税込み計算の結果に基づく数値が記憶される。具体的には、最後に[AC]キー11aを入力操作してから後に1回以上行われた税率0の税込み計算の結果としての税込み額(第0税込み額)、税額(第0税額)、税抜き額(第0税抜き額)の各合計額が、第0税込合計額、第0税抜合計額、第0税合計額として、それぞれ記憶される。
In the memory 22, an area (tax memory) for storing the calculation result of the tax calculation, a tax rate storage area 22e, a tax total memory area by tax rate 22g, a total memory area 22h, a tax total recall mode area 22k, a tax calculation mode area An area for storing each data is provided, such as 22m, a buffer memory area 22n, and a display memory area 22p. The tax memory (first memory) includes a tax rate-based total memory area 22d and a tax rate-based tax total memory area. The total memory area 22d for each tax rate has a total memory area corresponding to each of the tax rates 0 to 4 (tax rate 0 total memory area, tax rate 1 total memory area, tax rate 2 total memory area, tax rate 3 total memory area, tax rate 3 total memory area). Area) is provided. Total tax memory area 22d by tax rate
The tax rate 0 total memory area of the tax rate-based total memory area 22d is an area for storing data calculated by tax calculation based on the tax rate 0. The tax rate 0 total memory area stores a numerical value based on the result of the tax-inclusive calculation of the tax rate 0. More specifically, the tax amount (the 0th tax amount), the tax amount (the 0th tax amount), and the tax amount as a result of the tax-inclusive calculation of the tax rate 0 performed at least once after the input operation of the [AC] key 11a, The total amount of the tax-excluded amount (the 0th tax-excluded amount) is stored as the 0th tax-included total amount, the 0th tax-excluded total amount, and the 0th tax total amount.

税率1合計メモリエリア、税率2合計メモリエリア、税率3合計メモリエリア、税率4合計メモリエリアは、前述した税率0合計メモリエリアと同様にして、それぞれの税率1〜4に基づいた税計算により算出されるデータを記憶するためのエリアである。詳細な説明については省略する。   The tax rate 1 total memory area, the tax rate 2 total memory area, the tax rate 3 total memory area, and the tax rate 4 total memory area are calculated by the tax calculation based on the respective tax rates 1 to 4 in the same manner as the tax rate 0 total memory area described above. This is an area for storing data to be processed. Detailed description is omitted.

税率記憶エリア22eは、税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに設定された税率0〜4を示す数値が記憶される。例えば、税n計算キー11b0〜11b4には、工場出荷時に、インドにおける使用に合わせて、5種類の税率(0%、5%、12%、18%、28%)が設定される。この場合、税率記憶エリア22eには、税n計算キー11b0〜11b4に対応する税率0〜4のそれぞれに対して、「0」、「5」、「12」、「18」、「28」の数値が記憶される。   The tax rate storage area 22e stores numerical values indicating the tax rates 0 to 4 set for the respective tax calculation keys 11b (tax n calculation keys 11b0 to 11b4). For example, five tax rates (0%, 5%, 12%, 18%, and 28%) are set in the tax n calculation keys 11b0 to 11b4 at the time of shipment from the factory in accordance with use in India. In this case, the tax rate storage area 22e stores "0", "5", "12", "18", and "28" for each of the tax rates 0 to 4 corresponding to the tax n calculation keys 11b0 to 11b4. The numerical value is stored.

税率別税合計メモリエリア22gは、全ての税率0〜4に基づいた税計算により算出される数値の合計を示すデータを記憶するためのエリアである。税率別税合計メモリエリア22gには、税計算合計キー11cの入力操作に応じて、第0〜第4税込合計額を合計した税込総合計額、税込総合計額に対応する税抜総合計額、税込総合計額に対応する税総合計額が記憶される。   The tax rate-specific tax total memory area 22g is an area for storing data indicating a total of numerical values calculated by tax calculations based on all tax rates 0 to 4. In the tax total memory area 22g according to the tax rate, the total tax-included total amount including the 0 to 4th tax-inclusive total amount and the total tax-excluded total amount corresponding to the tax-inclusive total total amount are stored in the tax total memory area 22g according to the input operation of the tax calculation total key 11c. , The total tax amount corresponding to the total tax amount is stored.

合計メモリエリア22hは、通常計算により算出される数値の合計を示すデータを記憶するためのエリアである(第2メモリ)。合計メモリエリア22hには、演算実行キー[=]11h0の操作に応じて通常計算の計算結果が算出されることにより、計算結果とする数値が合計メモリエリア22hに記憶された数値に加算される。   The total memory area 22h is an area for storing data indicating a total of numerical values calculated by the normal calculation (second memory). In the total memory area 22h, the calculation result of the normal calculation is calculated according to the operation of the calculation execution key [=] 11h0, and the numerical value as the calculation result is added to the numerical value stored in the total memory area 22h. .

税合計リコールモードエリア22kは、税計算合計キー11cに対する入力操作に応じて、リコールモードの状態にあるか否かを示す税合計リコールモードフラグが、オン状態またはオフ状態に設定される。税合計リコールモードは、税計算キー11bの操作による税計算の直後に税計算合計キー11cが押下された場合、あるいは通常計算の直後に税計算合計キー11cが長押しされた場合にオンされる(税合計リコールモードへの遷移)。また、税合計リコールモードは、税合計リコールモードをオフするための予め定められた指示として、例えば[AC]キー11aが操作された場合にオフされる。なお、税合計リコールモードのオン/オフの切り替えは、税計算合計キー11cと[AC]キー11aの操作に限られるものではない。例えば、別のキー操作に応じて、あるいは電卓10の処理結果に応じて、税合計リコールモードのオン/オフを切り替えるようにしても良い。   In the total tax recall mode area 22k, a total tax recall mode flag indicating whether or not the user is in a recall mode in accordance with an input operation on the total tax calculation key 11c is set to an ON state or an OFF state. The tax total recall mode is turned on when the tax calculation total key 11c is pressed immediately after the tax calculation by operating the tax calculation key 11b, or when the tax calculation total key 11c is pressed and held immediately after the normal calculation. (Transition to tax total recall mode). The tax total recall mode is turned off when, for example, the [AC] key 11a is operated as a predetermined instruction for turning off the tax total recall mode. The switching of the tax total recall mode on / off is not limited to the operation of the tax calculation total key 11c and the [AC] key 11a. For example, on / off of the tax total recall mode may be switched according to another key operation or the processing result of the calculator 10.

税合計リコールモードがオン状態の場合には、税計算合計キー11cが操作(押下)される毎に、税率別税合計メモリエリア22gに記憶された税込総合計額、税抜総合計額、税総合計額を切り替えて表示させることができる。また、税合計リコールモードがオン状態の場合には、税計算キー11b(税n計算キー11b0〜11b4)が操作(押下)される毎に、税率別税率別税合計メモリエリア22dに記憶された、税込合計額、税抜合計額、税合計額を切り替えて表示させることができる。   When the tax total recall mode is ON, every time the tax calculation total key 11c is operated (pressed), the total tax-included total amount, the total tax-excluded total amount, and the tax stored in the tax total memory area 22g by tax rate are operated. The total amount can be switched and displayed. Further, when the tax total recall mode is in the ON state, each time the tax calculation key 11b (the tax n calculation keys 11b0 to 11b4) is operated (pressed), the data is stored in the tax rate-specific tax rate-specific tax total memory area 22d. , The total amount including tax, the total amount without tax, and the total amount of tax can be switched and displayed.

税合計リコールモードのオン状態は、キー入力部11の数値キー及び演算キーの入力がされた場合も維持される。従って、税計算合計キー11cあるいは税計算キー11b(11b0〜11b4)の入力操作によって税計算の結果を表示させて確認しながら、数値キー及び演算キーを用いた通常計算を実行することができる。税合計リコールモードのオン状態における通常計算では、税計算の結果とする数値を表示部12に表示させて、表示部12に表示された置数に対して、四則計算などを実行することができる。   The ON state of the tax total recall mode is maintained even when the numerical keys and the calculation keys of the key input unit 11 are input. Therefore, the normal calculation using the numerical keys and the operation keys can be executed while displaying and confirming the result of the tax calculation by the input operation of the tax calculation total key 11c or the tax calculation key 11b (11b0 to 11b4). In the normal calculation in the ON state of the total tax recall mode, a numerical value as a result of the tax calculation is displayed on the display unit 12, and four arithmetic calculations can be executed on the number displayed on the display unit 12. .

税計算モードエリア22mは、税計算モード切替キー11dに対する入力操作に応じて切り替えられる、税込み計算モードあるいは税抜き計算モードの何れの状態にあるかを示す税計算モードデータが記憶される。   The tax calculation mode area 22m stores tax calculation mode data that is switched according to an input operation on the tax calculation mode switching key 11d and that indicates the state of the tax included calculation mode or the tax excluded calculation mode.

バッファメモリエリア22nは、最後に入力されたファンクションと組になって単位をなすように入力された置数が記憶される。また、表示メモリエリア22pは、そのときに表示部12に表示されている数値が記憶される。例えば、数値キーの操作により置数として数値「100」と、ファンクションとして税1計算キー([GST+1(TAX−1)])11b1とが順次操作された場合、バッファメモリエリア22nには置数としての数値「100」が記憶され、表示メモリエリア22pには税率1の税込み計算の結果として表示部12にも表示されている数値「105」が記憶されている(ただし、税率1を5%とした場合)。このように、バッファメモリエリア22nおよび表示メモリエリア22pに記憶されている各数値は、最新の入力操作に応じて、順次上書き更新される。   The buffer memory area 22n stores the numbers entered so as to form a unit in combination with the last input function. The display memory area 22p stores the numerical value displayed on the display unit 12 at that time. For example, when the numerical value “100” is operated as a numerical value by operating a numerical key and the tax 1 calculation key ([GST + 1 (TAX-1)]) 11b1 is sequentially operated as a function, the numerical value is stored in the buffer memory area 22n as the numerical value. Is stored in the display memory area 22p, and the numerical value “105” also displayed on the display unit 12 as a result of the tax-inclusive calculation of the tax rate 1 is stored (however, the tax rate 1 is 5%). if you did this). As described above, the numerical values stored in the buffer memory area 22n and the display memory area 22p are sequentially overwritten and updated according to the latest input operation.

次に、本実施形態における電卓10の動作について説明する。図3は、本実施形態における電卓10の起動時における税率設定処理を示すフローチャート、図4は、本実施形態における電卓10の計算処理の動作を説明するためのフローチャートである。図5は、税率記憶エリア22eに記憶される税率0〜4を示す数値の一例を示す図である。   Next, the operation of the calculator 10 in the present embodiment will be described. FIG. 3 is a flowchart showing a tax rate setting process when the calculator 10 is activated in the present embodiment, and FIG. 4 is a flowchart for explaining the operation of the calculation process of the calculator 10 in the present embodiment. FIG. 5 is a diagram showing an example of numerical values indicating the tax rates 0 to 4 stored in the tax rate storage area 22e.

本実施形態における電卓10は、工場から出荷される前、工場検査プログラム22aを実行済みでない状態(後述の工場検査後フラグがオフ)が初期状態である。電卓10は、工場検査処理により各種の動作チェックがされた後、電源部26における電池が新しいものに交換されてから、出荷される。   Before the calculator 10 is shipped from the factory, a state in which the factory inspection program 22a has not been executed (a post-factory inspection flag described later is off) is an initial state. After various operations are checked by the factory inspection process, the calculator 10 is shipped after the batteries in the power supply unit 26 are replaced with new ones.

まず、工場出荷前に電卓10により実行される処理から説明を始める。   First, the description starts with the processing executed by the calculator 10 before shipment from the factory.

CPU21は、電池交換に伴って起動されたかどうかを判別する(ステップS1)。この判別は、電源部26から供給される電圧を検知した結果に基づいて行われてよい。ここで、電池交換に伴う起動でない場合(ステップS1:No)、CPU21は、後述するステップS6の処理を実行する。一方、電池交換に伴って起動された場合(ステップS1:Yes)、全初期化処理を実行する(ステップS2)。   The CPU 21 determines whether or not it has been started with the replacement of the battery (step S1). This determination may be made based on the result of detecting the voltage supplied from the power supply unit 26. Here, if it is not the activation due to the battery replacement (Step S1: No), the CPU 21 executes the processing of Step S6 described later. On the other hand, when it is started with the battery replacement (Step S1: Yes), the entire initialization process is executed (Step S2).

全初期化処理において、CPU21は、税率記憶エリア22eを含めた、メモリ22の全ての内容と表示部12の表示内容とをクリアする。即ち、CPU21は、全初期化処理において、メモリ22の税率別税合計メモリエリア22d、税率記憶エリア22e、税合計メモリエリア22g、合計メモリエリア22h、バッファメモリエリア22n、表示メモリエリア22pを全てクリアする。また、CPU21は、税合計リコールモードエリア22kに記憶された税合計リコールモードフラグをオフする。CPU21は、先の税計算結果などの数値が表示された状態から電池交換が行われた場合には、先に表示された数値をクリアして「0」を表示する。また、CPU21は、表示部12の状態表示エリアに先のシンボルが表示された状態から電池交換が行われた場合には、先に表示されたシンボルをクリアして非表示にする。   In the entire initialization process, the CPU 21 clears all the contents of the memory 22 and the display contents of the display unit 12, including the tax rate storage area 22e. That is, the CPU 21 clears all the tax rate-specific tax memory areas 22d, the tax rate storage area 22e, the tax total memory area 22g, the total memory area 22h, the buffer memory area 22n, and the display memory area 22p of the memory 22 in the entire initialization process. I do. Further, the CPU 21 turns off the tax total recall mode flag stored in the tax total recall mode area 22k. When the battery is replaced from the state where the numerical value such as the tax calculation result is displayed, the CPU 21 clears the previously displayed numerical value and displays “0”. Further, when battery replacement is performed from a state where the previous symbol is displayed in the status display area of the display unit 12, the CPU 21 clears the previously displayed symbol and hides it.

このように、電池交換を伴う全初期化処理では、税率記憶エリア22eもクリアされるため、複数の税計算キー11bに対して設定される税率0〜4もクリアされる。ここで、税率記憶エリア22eがクリアされることで、税率0〜4の全てが「0」となるものとする。   As described above, the tax rate storage area 22e is also cleared in the entire initialization process involving battery replacement, so that the tax rates 0 to 4 set for the plurality of tax calculation keys 11b are also cleared. Here, it is assumed that all the tax rates 0 to 4 become “0” by clearing the tax rate storage area 22e.

次に、CPU21は、工場検査後フラグエリア22cを参照して、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグがオン)を示しているか判別する(ステップS3)。ここで、上述の通り、工場検査後フラグがオンでないので(ステップS3:No)、CPU21は、入力操作の待機状態となる。   Next, the CPU 21 refers to the post-factory inspection flag area 22c and determines whether the post-factory inspection flag indicates that the factory inspection process has been executed (the post-factory inspection flag is on) (step S3). Here, as described above, since the post-factory inspection flag is not on (step S3: No), the CPU 21 enters a standby state for an input operation.

ここで、キー入力部11に対する操作によって工場検査処理の実行が指示されると(ステップS6:Yes)、CPU21は、工場検査処理を実行する(ステップS7)。なお、工場検査処理の実行は、例えばユーザが電卓10を通常使用している場合には操作される可能性が極めて低い、例えば、複数のキー(例えば3キー以上)の組合せ、さらには長押しキー操作([AC]キー11aを長押しなど)を組合せて操作することで指示されるものとする。すなわち、工場検査処理は、出荷前の工場内のみで実行されるようにしている。   Here, when the execution of the factory inspection process is instructed by operating the key input unit 11 (step S6: Yes), the CPU 21 executes the factory inspection process (step S7). The execution of the factory inspection process is extremely unlikely to be performed when the user normally uses the calculator 10, for example, a combination of a plurality of keys (for example, three or more keys) or a long press. It is assumed that an instruction is given by operating in combination with a key operation (such as long press of the [AC] key 11a). That is, the factory inspection process is executed only in the factory before shipment.

CPU21は、工場検査処理によって、電卓10を構成する各部が正常に動作しているかを確認するための動作を各ユニットに実行させる。例えば、CPU21は、表示部12を構成する液晶表示ユニットに対して、点灯、点滅、消灯などを実行させて動作チェックをする。また、CPU21は、動作クロックを高速/低速に切り替えて、それぞれの動作状態をチェックする。その他、CPU21は、各ユニットの動作チェックを実行する。   The CPU 21 causes each unit to execute an operation for confirming whether each unit configuring the calculator 10 is operating normally by the factory inspection process. For example, the CPU 21 performs an operation check by causing the liquid crystal display unit constituting the display unit 12 to execute lighting, blinking, turning off, and the like. Further, the CPU 21 switches the operation clock between high speed and low speed and checks the respective operation states. In addition, the CPU 21 performs an operation check of each unit.

CPU21は、工場検査処理が完了すると、工場検査処理が実行済みであることを示すように、工場検査後フラグエリア22cの工場検査後フラグをオンする(ステップS8)。   When the factory inspection process is completed, the CPU 21 turns on the post-factory inspection flag in the post-factory inspection flag area 22c to indicate that the factory inspection process has been executed (step S8).

こうして、工場検査処理によって動作チェックされた後、電卓10は、出荷される前に電池が交換される。電池交換後、前述の税率設定処理が再度実行される。その場合の処理については後述する。   After the operation is checked by the factory inspection process, the battery of the calculator 10 is exchanged before being shipped. After the battery replacement, the above-described tax rate setting process is executed again. The process in that case will be described later.

一方、ステップS6において、工場検査処理の実行が指示されず(ステップS6:No)、[AC]キー11aが操作された場合(ステップS9:Yes)、CPU21は、計算処理プログラム22bによる計算処理に移行して、[AC]キー11aの操作に応じた処理を実行する(後述する)。   On the other hand, in step S6, when the execution of the factory inspection process is not instructed (step S6: No) and the [AC] key 11a is operated (step S9: Yes), the CPU 21 proceeds to the calculation process by the calculation process program 22b. The process proceeds to execute a process corresponding to the operation of the [AC] key 11a (described later).

なお、この状態では、税計算キー11bに対して正しい税率が設定されていないため、税計算キー11bの操作により正しい税計算をすることができない。図5には、工場検査後の税率記憶エリア22eに記憶される税率0〜4の値40を示している。図5に示すように、税率記憶エリア22eがクリアされることで税率0〜4の全てが「0」の状態にある場合、入力された数値に対して税計算キー11bの操作に応じて税計算を実行したとしても、税計算の結果として表示される数値は入力された数値と同じとなる。また、複数の税計算キー11bの何れを操作して税計算の実行を指示しても、同様にして税計算の結果として表示される数値は入力された数値と同じとなる。   In this state, since a correct tax rate is not set for the tax calculation key 11b, a correct tax calculation cannot be performed by operating the tax calculation key 11b. FIG. 5 shows values 40 of the tax rates 0 to 4 stored in the tax rate storage area 22e after the factory inspection. As shown in FIG. 5, when the tax rate storage area 22e is cleared and all of the tax rates 0 to 4 are in the state of “0”, the input numerical value is changed according to the operation of the tax calculation key 11b. Even if the calculation is executed, the numerical value displayed as a result of the tax calculation is the same as the input numerical value. Also, no matter which one of the plurality of tax calculation keys 11b is operated to instruct the execution of the tax calculation, the numerical value displayed as the result of the tax calculation is the same as the input numerical value.

次に、工場出荷前に、工場検査処理によって動作チェックされた後、電卓10の電池が交換された場合に、電卓10により実行される処理について説明する。   Next, a process executed by the calculator 10 when the battery of the calculator 10 is replaced after the operation is checked by the factory inspection process before shipment from the factory will be described.

次に、CPU21は、工場検査後フラグエリア22cを参照して、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグがオン)を示しているか判別する(ステップS3)。上述の通り、ステップS8において、工場検査後フラグをオンにしたので(ステップS3:Yes)、CPU21は、入力操作の待機状態となる。   Next, the CPU 21 refers to the post-factory inspection flag area 22c and determines whether the post-factory inspection flag indicates that the factory inspection process has been executed (the post-factory inspection flag is on) (step S3). As described above, since the post-factory inspection flag is turned on in step S8 (step S3: Yes), the CPU 21 enters a standby state for an input operation.

CPU21は、電池交換に伴って起動されると(ステップS1:Yes)、再度、全初期化処理を実行する(ステップS2)。   When the CPU 21 is started with the battery replacement (step S1: Yes), the CPU 21 executes the all initialization process again (step S2).

次に、CPU21は、工場検査後フラグエリア22cを参照して、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグがオン)を示しているか、再度判別する(ステップS3)。この場合、前述の通り、ステップS7、S8が実行されたことにより、工場検査処理が実行済みであるため、工場検査後フラグがオンに設定されている。CPU21は、工場検査後フラグがオンであるので(ステップS3:Yes)、税率自動設定処理を実行する(ステップS4)。   Next, the CPU 21 refers to the post-factory inspection flag area 22c and determines again whether the post-factory inspection flag indicates that the factory inspection process has been executed (the post-factory inspection flag is on) (step S3). In this case, as described above, since steps S7 and S8 have been executed and the factory inspection process has been executed, the post-factory inspection flag is set to ON. Since the post-factory inspection flag is on (step S3: Yes), the CPU 21 executes an automatic tax rate setting process (step S4).

税率自動設定処理では、CPU21は、税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに対して予め設定された税率0〜4を設定する。本実施形態では、CPU21は、インドにおいて使用される5種類の税率(0%、5%、12%、18%、28%)に合わせて、税率0〜4のそれぞれに対して「0」、「5」、「12」、「18」、「28」の数値を、税率3合計メモリエリア22eに記憶させる。図5には、工場検査後に電池交換された場合の税率0〜4の値41を示している。税率記憶エリア22eが税率自動設定処理において設定される税率0〜4を示す数値は、例えば計算処理プログラム22aに予め設定されており、計算処理プログラム22aによる処理によって自動的に設定される。   In the automatic tax rate setting process, the CPU 21 sets a preset tax rate 0 to 4 for each of the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4). In the present embodiment, the CPU 21 sets “0” for each of the tax rates 0 to 4 in accordance with the five types of tax rates (0%, 5%, 12%, 18%, and 28%) used in India. The numerical values of “5”, “12”, “18”, and “28” are stored in the tax rate 3 total memory area 22e. FIG. 5 shows values 41 of the tax rates 0 to 4 when the battery is replaced after the factory inspection. Numerical values indicating the tax rates 0 to 4 for which the tax rate storage area 22e is set in the automatic tax rate setting process are set in advance in the calculation processing program 22a, for example, and are automatically set by the processing by the calculation processing program 22a.

従って、電卓10を工場から出荷する前に、工場検査処理を実行した場合には、操作者が電卓10に対してキー操作などをして、複数の税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに対して、正しい初期値とする税率を設定する作業をする必要がない。   Therefore, when the factory inspection process is performed before the calculator 10 is shipped from the factory, the operator operates the calculator 10 by performing key operations or the like to obtain a plurality of tax calculation keys 11b (tax n calculation keys 11b0 to 11b0). 11b4), there is no need to set a tax rate that is a correct initial value.

CPU21は、税率自動設定処理を完了した後、税率1合計メモリエリア22cの工場検査後フラグをオフする(ステップS5)。すなわち、工場検査後フラグをオフすることで、今後、電池交換に伴って起動されたとしても税率自動設定処理が実行されないようにする。工場検査後フラグをオンする処理は、工場検査処理後のみに実行され、工場検査処理は、ユーザ使用時には実行されないようにしている。従って、電卓10が出荷された後、ユーザ使用時に工場検査後フラグをオンされることがない。   After completing the tax rate automatic setting process, the CPU 21 turns off the post-factory inspection flag in the tax rate 1 total memory area 22c (step S5). That is, by turning off the post-factory inspection flag, the automatic tax rate setting process is prevented from being executed even if the process is started in connection with battery replacement in the future. The process of turning on the post-factory inspection flag is executed only after the factory inspection process, and the factory inspection process is not executed when the user uses it. Therefore, after the calculator 10 is shipped, the post-factory inspection flag is not turned on when the user uses the calculator.

その後、CPU21は、入力操作の待機状態となる。これ以降の処理は、前述と同様であるので、記述を省略する。   Thereafter, the CPU 21 enters a standby state for an input operation. Subsequent processes are the same as those described above, and a description thereof will be omitted.

この状態では、税計算キー11bに対して正しい税率が設定されているため、税計算キー11bの操作により正しい税計算をすることができる。すなわち、電卓10は、複数の税計算キー11bに対して正しい税率0〜4が設定された、出荷が可能な状態となる。また、電卓10は、工場検査後フラグエリア22cの工場検査後フラグがオフされた状態で出荷される。   In this state, since a correct tax rate is set for the tax calculation key 11b, a correct tax calculation can be performed by operating the tax calculation key 11b. That is, the calculator 10 is set in a state where correct tax rates 0 to 4 are set for the plurality of tax calculation keys 11b and can be shipped. The calculator 10 is shipped with the post-factory inspection flag in the post-factory inspection flag area 22c turned off.

次に、電卓10が出荷された後、ユーザにより使用される場合について説明する。   Next, a case where the calculator 10 is used by a user after being shipped will be described.

まず、ユーザは、計算を開始前に、税率記憶エリア22eを除くメモリの内容と表示部12の表示内容とをクリアするため、[AC]キー11aを操作(押下)する。CPU21は、[AC]キー11aが操作されると(ステップA9:Yes)、メモリ22の税率別税合計メモリエリア22d、税合計メモリエリア22g、合計メモリエリア22h、バッファメモリエリア22n、表示メモリエリア22pを全てクリアする(ステップA12)。また、CPU21は、税合計リコールモードエリア22kに記憶された税合計リコールモードフラグをオフする(ステップA13)。CPU21は、先の税計算結果などの数値が表示された状態で[AC]キー11aが操作された場合には、先に表示された数値をクリアして「0」を表示する。また、CPU21は、表示部12の状態表示エリアに先のシンボルが表示された状態で[AC]キー11aが操作された場合には、先に表示されたシンボルをクリアして非表示にする。   First, before starting the calculation, the user operates (presses) the [AC] key 11a in order to clear the contents of the memory excluding the tax rate storage area 22e and the contents displayed on the display unit 12. When the [AC] key 11a is operated (Step A9: Yes), the CPU 21 calculates the tax total memory area 22d by tax rate, the tax total memory area 22g, the total memory area 22h, the buffer memory area 22n, and the display memory area in the memory 22. 22p are all cleared (step A12). Further, the CPU 21 turns off the tax total recall mode flag stored in the tax total recall mode area 22k (step A13). When the [AC] key 11a is operated in a state where the numerical value such as the tax calculation result is displayed, the CPU 21 clears the previously displayed numerical value and displays “0”. When the [AC] key 11a is operated in a state where the previous symbol is displayed in the status display area of the display unit 12, the CPU 21 clears the previously displayed symbol and hides it.

このように、電池交換を伴わないメモリ及び表示のクリア処理では、税率記憶エリア22eはクリアされないので、前述の税率自動設定処理(ステップS4)において税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに対して設定された税率0〜4の各数値はクリアされず、保持されたままである。   As described above, since the tax rate storage area 22e is not cleared in the memory and display clearing process that does not involve battery replacement, the tax calculation key 11b (tax n calculation keys 11b0 to 11b4) is used in the tax rate automatic setting process (step S4). Each of the numerical values of the tax rates 0 to 4 set for each of them is not cleared and remains held.

ここで、[AC]キー11aの入力操作の直後に、税計算キー11b(税n計算キー11b0〜11b4の何れか)に対する入力操作を検出した場合(ステップA19:Yes)、A117:Yes)、CPU21は、入力操作が行われた税n計算キー11b0〜11b4の何れかに対して設定された税率をメモリ22の税率記憶エリア22eから読み出して表示部12において表示させる(ステップA118)。例えば、[AC]キー11aの入力操作の直後に税1計算キー11b1が操作された場合、CPU21は、税1計算キー11b1に設定された税率1(5%)を示す数値を、税率記憶エリア22eから読み出して表示部12に「5」を表示させる。   Here, if an input operation on the tax calculation key 11b (any of the tax n calculation keys 11b0 to 11b4) is detected immediately after the input operation of the [AC] key 11a (step A19: Yes), A117: Yes) The CPU 21 reads out the tax rate set for any of the tax n calculation keys 11b0 to 11b4 for which the input operation has been performed from the tax rate storage area 22e of the memory 22 and causes the display unit 12 to display the tax rate (step A118). For example, when the tax 1 calculation key 11b1 is operated immediately after the input operation of the [AC] key 11a, the CPU 21 stores the numerical value indicating the tax rate 1 (5%) set in the tax 1 calculation key 11b1 in the tax rate storage area. Read out from 22e and display “5” on the display unit 12.

なお、[AC]キー11aの入力操作の直後に、続けて、税計算キー11b以外の他のキー操作をすることなく、税計算キー11b(税n計算キー11b0〜11b4の何れか)に対する入力操作を検出した場合(ステップA19:Yes、A117:Yes)、すなわち、税計算キー11bのキー操作が連続する限り、CPU21は、入力操作がされた税計算キー11bに対して設定された税率0〜4の何れかを、前述と同様にしてメモリ22から読み出して表示部12に表示させる(ステップA118)。   Immediately after the input operation of the [AC] key 11a, the input to the tax calculation key 11b (any one of the tax n calculation keys 11b0 to 11b4) is performed without operating any key other than the tax calculation key 11b. When an operation is detected (Step A19: Yes, A117: Yes), that is, as long as the key operation of the tax calculation key 11b is continued, the CPU 21 sets the tax rate 0 set for the tax calculation key 11b on which the input operation is performed. 4 is read from the memory 22 and displayed on the display unit 12 in the same manner as described above (step A118).

すなわち、[AC]キー11aの入力操作の直後であれば、税計算キー11b(税n計算キー11b0〜11b4)の何れかを連続して操作することで、それぞれの税計算キー11bに対して設定された税率0〜4を連続的に切り替えて表示させることができる。なお、最後に[AC]キー11aを入力操作してから後、税計算キー11bの入力操作のみが2回以上連続して行われているとき、2回目以降の税計算キー11bの入力操作は、厳密には、[AC]キー11aの入力操作の直後に行われたものではないが、本明細書では、そのような入力操作も[AC]キー11aの入力操作の直後に行われたものとみなす。また、最後に[AC]キー11aを入力操作してから後、税計算キー11b以外の入力操作が一度でも行われれば、それ以降に行われる税計算キー11bの入力操作は、[AC]キー11aの入力操作の直後に行われたものではないものとみなす。   That is, immediately after the input operation of the [AC] key 11a, one of the tax calculation keys 11b (the tax n calculation keys 11b0 to 11b4) is continuously operated, so that each of the tax calculation keys 11b is operated. The set tax rates 0 to 4 can be continuously switched and displayed. After the last input operation of the [AC] key 11a, if only the input operation of the tax calculation key 11b is performed twice or more consecutively, the input operation of the tax calculation key 11b after the second time is performed. Strictly speaking, it is not performed immediately after the input operation of the [AC] key 11a, but in the present specification, such an input operation is also performed immediately after the input operation of the [AC] key 11a. Consider Further, after the last input operation of the [AC] key 11a, if an input operation other than the tax calculation key 11b is performed even once, the input operation of the tax calculation key 11b performed thereafter will be the [AC] key. It is assumed that the operation is not performed immediately after the input operation of 11a.

次に、計算の対象とする数値を入力するためにユーザにより数値キーが操作されると(ステップA10:Yes)、CPU21は、入力操作された数値キーに応じた数値(数値コード)を入力し、入力された数値を表示メモリエリア22pに記憶させるとともに、表示部12において表示させる(ステップA15)。   Next, when a numerical key is operated by the user to input a numerical value to be calculated (step A10: Yes), the CPU 21 inputs a numerical value (numerical code) corresponding to the input numerical key. The input numerical value is stored in the display memory area 22p and displayed on the display unit 12 (step A15).

続いて、演算キーが操作されると(ステップA11:Yes)、CPU21は、入力操作された演算キーに応じた演算(演算コード)を入力して、入力された演算の演算(記号)シンボルを表示部12の状態表示エリアにおいて表示させる(ステップA16)。   Subsequently, when the operation key is operated (Step A11: Yes), the CPU 21 inputs an operation (operation code) corresponding to the operated operation key, and changes the operation (symbol) symbol of the input operation. It is displayed in the status display area of the display unit 12 (step A16).

また、CPU21は、入力された演算コードと入力済みの数値コードをもとに演算を実行し、演算途中の結果の数値を表示メモリエリア22pに記憶させるとともに、表示部12に表示させる。以下、同様にして、数値コードと演算コードの入力が繰り返されることにより、CPU21は、入力された数値コードと演算コードとを順次記憶していく。そして、ユーザ操作により演算実行キー「=」(イコール)11h0が操作されると(ステップA17:Yes)、CPU21は、入力操作された演算実行キー(「=」キー)11h0に応じた演算コードを入力し、それまでに入力された数値コードと演算コードに応じた計算を実行し、計算結果の数値を表示メモリエリア22pに記憶させるとともに、表示部12に表示させる。また、CPU21は、数値コードと演算コードに応じた通常計算の結果とする数値を合計メモリエリア22hに記憶させる(ステップA18)。合計メモリエリア22hに既に数値が記憶されている場合には、CPU21は、先に記憶された数値に通常計算の結果とする数値を加算してメモリ22に記憶させる。ユーザ操作により演算実行キー「=」(イコール)11h0が操作されていない場合(ステップA17:No)、CPU21は、入力操作の待機状態へ戻る。   Further, the CPU 21 performs an operation based on the input operation code and the input numerical code, stores the numerical value of the result of the operation in the display memory area 22p, and causes the display unit 12 to display the numerical value. Hereinafter, similarly, by repeatedly inputting the numerical code and the operation code, the CPU 21 sequentially stores the input numerical code and the operation code. Then, when the operation execution key “=” (equal) 11h0 is operated by a user operation (step A17: Yes), the CPU 21 calculates an operation code corresponding to the input operation execution key (“=” key) 11h0. The calculation is performed in accordance with the input numerical code and the operation code, and the numerical value of the calculation result is stored in the display memory area 22p and displayed on the display unit 12. Further, the CPU 21 stores a numerical value as a result of the normal calculation according to the numerical code and the operation code in the total memory area 22h (Step A18). When a numerical value has already been stored in the total memory area 22h, the CPU 21 adds a numerical value obtained as a result of the normal calculation to the previously stored numerical value and stores the result in the memory 22. When the calculation execution key “=” (equal) 11h0 is not operated by the user operation (step A17: No), the CPU 21 returns to the standby state of the input operation.

[AC]キー11aの入力操作の直後以外に、表示部12に数値が表示された状態において、税計算キー11bの入力操作を検出した場合(ステップA19:Yes→A117:No)、CPU21は、表示部12に表示された数値(置数)、即ち、表示メモリエリア22pに記憶されている数値に対して、入力操作が行われた税n計算キー11b0〜11b4の何れかに設定された税率を用いて税計算を実行する。なお、税計算の対象とする数値は、通常計算によって表示された数値に限らず、単に数値キーの入力操作により入力された数値を対象とすることができる。   If the input operation of the tax calculation key 11b is detected in a state where the numerical value is displayed on the display unit 12 other than immediately after the input operation of the [AC] key 11a (step A19: Yes → A117: No), the CPU 21 With respect to the numerical value (numeric value) displayed on the display unit 12, that is, the numerical value stored in the display memory area 22p, the tax rate set in any of the tax n calculation keys 11b0 to 11b4 for which the input operation has been performed. Perform tax calculation using. It should be noted that the numerical value to be calculated is not limited to the numerical value displayed by the normal calculation, but may be a numerical value input simply by inputting a numerical key.

税計算キー11b(税n計算キー11b0〜11b4のそれぞれ)は、税込み計算を実行するためのキーと税抜き計算を実行するためのキーを兼ねている。CPU21は、税計算キー11bが操作された場合に、税計算モードエリア22mを参照して、現在の税計算モードが、税込み計算モードと税抜き計算モードの何れであるかを判別する。ここで、現在の税計算モードが税込み計算モードである場合(ステップA110、税込み)、CPU21は、表示部12に表示中の数値を税抜き額として、その数値と税計算キー11bに対応する税率とを用いて税込み計算を実行して、税計算の結果をキー操作に応じて表示させる税込み計算処理を実行する(ステップA111)。また、現在の税計算モードが税抜き計算モードである場合(ステップA110、税抜き)、CPU21は、表示部12に表示中の数値を税込み額として、その数値と税計算キー11bに対応する税率とを用いて税抜き計算を実行して、税計算の結果をキー操作に応じて表示させる税抜き計算処理を実行する(ステップA112)。   The tax calculation key 11b (each of the tax n calculation keys 11b0 to 11b4) serves both as a key for executing a tax-inclusive calculation and a key for executing a tax-excluded calculation. When the tax calculation key 11b is operated, the CPU 21 refers to the tax calculation mode area 22m to determine whether the current tax calculation mode is the tax-inclusive calculation mode or the tax-excluding calculation mode. Here, when the current tax calculation mode is the tax-inclusive calculation mode (step A110, including tax), the CPU 21 sets the numerical value displayed on the display unit 12 as the tax-excluded amount, and sets the numerical value and the tax rate corresponding to the tax calculation key 11b. And a tax-inclusive calculation process of displaying the result of the tax calculation in response to a key operation (step A111). When the current tax calculation mode is the tax-excluding calculation mode (step A110, excluding tax), the CPU 21 sets the numerical value displayed on the display unit 12 as the tax-inclusive amount, and sets the numerical value and the tax rate corresponding to the tax calculating key 11b. And a tax exclusion calculation process of displaying the result of the tax calculation in response to the key operation (step A112).

なお、税計算モードは、税計算モード切替キー11dの操作によって切り替えられる。CPU21は、税計算モード切替キー11dの操作を検出した場合(ステップA14:Yes)、税計算モードエリア22mを参照して、現在の税計算モードが、税込み計算モードと税抜き計算モードの何れであるかを判別する。   The tax calculation mode is switched by operating the tax calculation mode switching key 11d. When detecting the operation of the tax calculation mode switching key 11d (step A14: Yes), the CPU 21 refers to the tax calculation mode area 22m to determine whether the current tax calculation mode is the tax-inclusive calculation mode or the tax-excluding calculation mode. Determine if there is.

ここで、現在の税計算モードが税込み計算モードである場合(ステップA113、税込み)、CPU21は、税計算モードエリア22mに税抜き計算モードを示す税計算モードデータを記憶させる(ステップA114)。また、CPU21は、税抜き計算モードを示す税計算モードシンボル12b([TAX−])を、表示部12の状態表示エリアに表示させる(ステップA116)。   Here, when the current tax calculation mode is the tax-inclusive calculation mode (step A113, including tax), the CPU 21 stores the tax calculation mode data indicating the tax-excluding calculation mode in the tax calculation mode area 22m (step A114). Further, the CPU 21 displays the tax calculation mode symbol 12b ([TAX-]) indicating the tax-excluding calculation mode in the status display area of the display unit 12 (step A116).

一方、現在の税計算モードが税抜き計算モードである場合(ステップA113、税抜き)、CPU21は、税計算モードエリア22mに税込み計算モードを示す税計算モードデータを記憶させる(ステップA115)。また、CPU21は、税込み計算モードを示す税計算モードシンボル12b([GST+])を、表示部12の状態表示エリアに表示させる(ステップA116)。   On the other hand, when the current tax calculation mode is the tax-excluding calculation mode (step A113, excluding tax), the CPU 21 stores the tax calculation mode data indicating the tax-inclusive calculation mode in the tax calculation mode area 22m (step A115). Further, the CPU 21 displays the tax calculation mode symbol 12b ([GST +]) indicating the tax-inclusive calculation mode in the status display area of the display unit 12 (step A116).

CPU21は、税計算モード切替キー11dの操作に応じて税計算モードを切り替えた場合、税率別税合計メモリエリア22dに記憶された計算結果(税抜合計額、税込合計額、税合計額)をそのまま維持する。従って、税込み計算と税抜き計算を混在して実行する場合に、税計算モードを切り替えたとしても、計算途中の計算結果が保持される。   When switching the tax calculation mode in accordance with the operation of the tax calculation mode switching key 11d, the CPU 21 stores the calculation results (total tax, total tax, and total tax) stored in the tax total memory area 22d by tax rate. Keep it as it is. Therefore, when the tax-inclusive calculation and the tax-exclusive calculation are performed in a mixed manner, the calculation result in the middle of the calculation is retained even if the tax calculation mode is switched.

なお、前述した説明では、税計算キー11bに対して出荷時に設定された税率0〜4を用いて税計算(税込み計算、税抜き計算)を実行する例について説明しているが、税計算キー11b(税n計算キー11b0〜11b4)に対してユーザ操作によって任意の税率を設定することができる。   In the above description, an example is described in which the tax calculation (calculation including tax and calculation without tax) is performed using the tax rates 0 to 4 set at the time of shipment for the tax calculation key 11b. An arbitrary tax rate can be set by user operation for 11b (tax n calculation keys 11b0 to 11b4).

CPU21は、入力操作の待機状態において、税率設定指示を示すキー操作を検出すると(ステップA119:Yes)、税率設定処理を実行する(ステップA120)。税率設定指示は、例えば、[AC]キー11aの入力操作の直後に[%]キー11gが長押し(例えば2秒以上)されることにより指示される。CPU21は、税率設定処理を開始すると、表示部12の状態表示エリアに、設定シンボル12g[SET]と[%]キー11gに対応する[%]シンボル12hを表示させる。   When detecting a key operation indicating a tax rate setting instruction in a standby state of the input operation (step A119: Yes), the CPU 21 executes a tax rate setting process (step A120). The tax rate setting instruction is given, for example, by pressing and holding (for example, 2 seconds or more) the [%] key 11g immediately after the input operation of the [AC] key 11a. When the tax rate setting process is started, the CPU 21 displays the set symbol 12g [SET] and the [%] symbol 12h corresponding to the [%] key 11g in the status display area of the display unit 12.

CPU21は、ユーザによるキー操作に応じて、税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに対応する税率0〜4を設定する。税率設定のための操作方法としては、例えば、税率を示す数値の数値キーの操作による入力と、[%]キー11gの操作による数値の入力完了の指示を、複数の税n計算キー11b0〜11b4について順番に入力することで実行が可能である。また、税n計算キー11b0〜11b4の何れかのキーを操作して、数値を変更したい所望の税率を表示部12に表示させた状態において、税率を示す数値を数値キーの操作により入力し、[%]キー11gの操作により入力した数値を確定する指示を行うことでも、実行が可能である。さらに、他の税率設定のための操作方法としては、税率を示す数値の数値キーの操作による入力と、[%]キー11gの操作による数値の入力完了の指示の後に、税率の設定対象とする税n計算キー11b0〜11b4の何れかのキーを操作することでも、実行可能である。図5には、ユーザ設定された税率0〜4の値42の一例を示している。すなわち、税率0〜4は、それぞれ「28」、「18」、「12」、「8」、「5」に変更されている。このように、ユーザは、所望の税n計算キー11b0〜11b4に対して新たな税率を設定したり、税n計算キー11b0〜11b4に各設定された税率を入れ替えたりすることで、使い勝手良くカスタマイズした上で、電卓10を使用することができる。   The CPU 21 sets the tax rates 0 to 4 corresponding to the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) according to the key operation by the user. As an operation method for setting the tax rate, for example, an input by operating a numerical value key indicating a tax rate and an instruction to complete the input of a numerical value by operating the [%] key 11g are issued by a plurality of tax n calculation keys 11b0 to 11b4. Can be executed by inputting in order. Further, by operating any one of the tax n calculation keys 11b0 to 11b4 to display a desired tax rate whose value is to be changed on the display unit 12, input a numerical value indicating the tax rate by operating the numeric key, Execution is also possible by giving an instruction to fix the numerical value input by operating the [%] key 11g. Further, as another operation method for setting the tax rate, the tax rate is set after the input of the numerical value indicating the tax rate by operating the numerical keys and the instruction of the completion of the input of the numerical value by operating the [%] key 11g are set. It can also be executed by operating any of the tax n calculation keys 11b0 to 11b4. FIG. 5 shows an example of the value 42 of the tax rates 0 to 4 set by the user. That is, the tax rates 0 to 4 have been changed to “28”, “18”, “12”, “8”, and “5”, respectively. As described above, the user sets the new tax rate for the desired tax n calculation keys 11b0 to 11b4, or replaces the set tax rates for the tax n calculation keys 11b0 to 11b4, thereby making it easy to customize. Then, the calculator 10 can be used.

次に、電卓10が出荷された後にユーザにより電池が交換された場合について説明する。CPU21は、電池交換に伴って起動されたかどうかを判別する(ステップS1)。ここでは、電池交換に伴って起動されたので(ステップS1:Yes)、前述と同様、CPU21は、電池交換を伴わないメモリ及び表示のクリア処理を実行する(ステップS2)。この時、税率記憶エリア22eもクリアされるため、ユーザの入力操作により設定された税率0〜4もクリアされる。ここで、税率記憶エリア22eがクリアされることで、税率0〜4の全てが「0」となる。図5には、出荷後に電池交換された場合の税率記憶エリア22eに記憶される税率0〜4の値43を示している。   Next, a case where the user replaces the battery after the calculator 10 is shipped will be described. The CPU 21 determines whether or not it has been started with the replacement of the battery (step S1). Here, since the CPU 21 is started with the battery replacement (Step S1: Yes), the CPU 21 executes the memory and display clearing process without the battery replacement (Step S2) as described above. At this time, since the tax rate storage area 22e is also cleared, the tax rates 0 to 4 set by the user's input operation are also cleared. Here, when the tax rate storage area 22e is cleared, all of the tax rates 0 to 4 become “0”. FIG. 5 shows values 43 of tax rates 0 to 4 stored in the tax rate storage area 22e when the battery is replaced after shipping.

次に、CPU21は、工場検査後フラグエリア22cを参照して、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグがオン)を示しているか判別する。ここで、工場検査後フラグがオンでないため(ステップS3:No)、CPU21は、入力操作の待機状態となる。ここで、前述の通り、工場検査処理の実行を指示する操作がユーザにより行われる可能性は極めて低いので、工場検査処理の実行は指示されず(ステップS6:No)、[AC]キー11aが操作される(ステップS9:Yes)。[AC]キー11aが操作されたことに応じて、CPU21は、計算処理プログラム22bによる計算処理に移行して、[AC]キー11aの操作に応じた処理を実行する。このように、電卓10は、税率記憶エリア22eに設定された税率0〜4が全て「0」の状態でユーザにより使用される。   Next, the CPU 21 determines whether or not the post-factory inspection flag indicates that the factory inspection process has been executed (the post-factory inspection flag is on) with reference to the post-factory inspection flag area 22c. Here, since the post-factory inspection flag is not on (step S3: No), the CPU 21 enters a standby state for an input operation. Here, as described above, it is extremely unlikely that an operation for instructing the execution of the factory inspection process is performed by the user, so that the execution of the factory inspection process is not instructed (step S6: No), and the [AC] key 11a is It is operated (Step S9: Yes). In response to the operation of the [AC] key 11a, the CPU 21 shifts to calculation processing by the calculation processing program 22b and executes processing corresponding to the operation of the [AC] key 11a. As described above, the calculator 10 is used by the user in a state where the tax rates 0 to 4 set in the tax rate storage area 22e are all “0”.

電池交換により税率記憶エリア22eがクリアされることで税率0〜4の全てが「0」の状態にある場合、ユーザは、入力した数値に対して税計算キー11bの操作に応じて税計算を実行したとしても、税計算の結果として表示される数値が入力された数値と同じとなる。また、複数の税計算キー11bの何れを操作して税計算の実行を指示しても、同様にして税計算の結果として表示される数値は入力された数値と同じとなる。このため、ユーザは、税計算が正しく実行されていないことを容易に認識することができる。   When the tax rate storage area 22e is cleared by battery replacement and all of the tax rates 0 to 4 are in the state of "0", the user performs the tax calculation according to the operation of the tax calculation key 11b on the input numerical value. Even if executed, the numerical value displayed as a result of the tax calculation is the same as the input numerical value. Also, no matter which one of the plurality of tax calculation keys 11b is operated to instruct the execution of the tax calculation, the numerical value displayed as the result of the tax calculation is the same as the input numerical value. For this reason, the user can easily recognize that the tax calculation has not been correctly performed.

また、ユーザは、入力した数値に対する税計算の結果が、入力した数値と同じことから税率が0%となっていることを認識できるため、前述した税率設定処理により、改めてユーザ設定した税率を設定することで、電池交換前と同じ税計算を実行することができる。   In addition, since the user can recognize that the tax calculation result for the input numerical value is the same as the input numerical value and the tax rate is 0%, the user sets the tax rate set by the user again by the tax rate setting process described above. By doing so, the same tax calculation as before the battery replacement can be performed.

本実施形態における電卓10は、出荷後のユーザによる使用時には、電池交換に伴う起動時に、工場内で実行された税率自動設定処理を実行しない。電池交換後に、税率自動設定処理によって税率0〜4を初期値に自動設定した場合、ユーザが入力した数値に対して税計算を実行した場合、初期値の税率を用いた税計算結果とする数値が表示される。この場合、ユーザは、税率設定処理によって変更した税率をもとにした税計算の結果であるか、あるいは初期値の税率をもとにした税計算の結果であるかを容易に識別することができない。   The calculator 10 according to the present embodiment does not execute the automatic tax rate setting process executed in the factory when the user uses the calculator after shipping, at the time of startup due to battery replacement. If the tax rate is automatically set to the initial value by the tax rate automatic setting process after replacing the battery, if the tax calculation is performed on the numerical value entered by the user, the numerical value as the tax calculation result using the tax rate of the initial value Is displayed. In this case, the user can easily identify whether the result is the tax calculation based on the tax rate changed by the tax rate setting process or the result of the tax calculation based on the default tax rate. Can not.

本実施形態の電卓10は、電池交換時には、税率自動設定処理によって設定される税率0〜4とは明らかに異なる税率(ここでは全て「0」)にするので、税計算キー11bの操作による税計算をすることで、税計算キー11bに設定された税率が正しい状態にないことを容易に把握できる。   The calculator 10 according to the present embodiment has a different tax rate (all “0” here) from the tax rates 0 to 4 set by the automatic tax rate setting process at the time of battery replacement, so that the tax by operating the tax calculation key 11b. By performing the calculation, it can be easily grasped that the tax rate set in the tax calculation key 11b is not in a correct state.

なお、前述した説明では、出荷後の電池交換時には、税率0〜4を全て「0」にするとしているが、税計算をした結果、税計算の結果が明らかに正しくないことをユーザが認識可能な数値であれば「0」以外の数値に設定することも可能である。例えば、税率としては使用されることがない大きな数値(例えば、3桁あるいは4桁以上の数値)とすることも可能である。   In the above description, all the tax rates 0 to 4 are set to “0” at the time of battery replacement after shipment. However, as a result of the tax calculation, the user can recognize that the result of the tax calculation is clearly incorrect. It is also possible to set a numerical value other than “0” as long as it is a reasonable numerical value. For example, it is also possible to use a large numerical value that is not used as a tax rate (for example, a numerical value of three digits or four or more digits).

また、出荷後の電池交換時には、計算の結果が明らかに正しくないことをユーザが認識可能な数値を設定すれば、税率0〜4が全て同じでなくても良い。   Further, at the time of battery replacement after shipment, if the user sets a numerical value that allows the user to recognize that the result of the calculation is clearly incorrect, the tax rates 0 to 4 may not be all the same.

このようにして、本実施形態における電卓10は、工場出荷前では税計算キー11bに対する税率の設定を工場検査プログラム22aによる自動設定により実行するので、税計算に使用する税率の数が多くなったとしても(税計算キー11bのキー数が多くなったとしても)、税率設定のための作業の負担を増大させることがない。また、工場での税率自動設定をする一方で、出荷後のユーザによる使用時では、電池交換時に税率自動設定を行わず、税計算の実行時に税計算キー11bに対して税率が変更されたことを容易に認識できるようにしたので、ユーザによる誤った税計算を防止することができる。   In this manner, the calculator 10 in the present embodiment executes the setting of the tax rate for the tax calculation key 11b by the automatic setting by the factory inspection program 22a before the factory shipment, so that the number of tax rates used for the tax calculation is increased. Even if the number of the tax calculation keys 11b is increased, the burden of the operation for setting the tax rate is not increased. Also, while the tax rate is automatically set at the factory, the tax rate is not automatically set at the time of battery replacement when the user uses the product after shipment, and the tax rate is changed for the tax calculation key 11b when executing the tax calculation. Can be easily recognized, so that incorrect tax calculation by the user can be prevented.

なお、実施形態において記載した手法、すなわち図3、図4のフローチャートに示す処理等の各手法は、コンピュータに実行させることができるプログラムとして、メモリカード(ROMカード、RAMカード等)、磁気ディスク(フレキシブルディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記録媒体に格納して配布することができる。そして、コンピュータは、外部記録媒体に記録されたプログラムを読み込み、このプログラムによって動作が制御されることにより、実施形態において説明した機能と同様の処理を実現することができる。   The method described in the embodiment, that is, each method such as the processing shown in the flowcharts of FIGS. 3 and 4 is a program that can be executed by a computer, such as a memory card (ROM card, RAM card, etc.), a magnetic disk ( It can be stored and distributed on a recording medium such as a flexible disk, a hard disk, an optical disk (CD-ROM, DVD, etc.), and a semiconductor memory. Then, the computer reads the program recorded on the external recording medium, and the operation is controlled by the program, whereby the same processing as the function described in the embodiment can be realized.

また、各手法を実現するためのプログラムのデータは、プログラムコードの形態としてネットワーク(インターネット)上を伝送させることができ、このネットワーク(インターネット)に接続されたコンピュータ(サーバ装置等)からプログラムデータを取り込み、前述した実施形態と同様の機能を実現することもできる。   Also, program data for implementing each method can be transmitted over a network (Internet) in the form of a program code. Program data is transmitted from a computer (server device or the like) connected to the network (Internet). It is also possible to realize the same function as the above-described embodiment by taking in.

なお、本願発明は、実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。さらに、実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜な組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件から幾つかの構成要件が削除されたり、幾つかの構成要件が組み合わされても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除されたり組み合わされた構成が発明として抽出され得るものである。   The present invention is not limited to the embodiment, and can be variously modified in an implementation stage without departing from the scope of the invention. Further, the embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed components. For example, even if some components are deleted from all the components shown in the embodiments or some components are combined, the problem described in the section of the problem to be solved by the invention can be solved. In the case where the effect described in the section of the effect can be obtained, a configuration in which this component is deleted or combined can be extracted as an invention.

以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。   Hereinafter, the invention described in the claims of the present application is additionally described.

[1]実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機であって、
前記制御部は、
ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、
前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させる、計算機。
[1] A computer having a control unit capable of executing a first calculation in response to input of an execution instruction,
The control unit includes:
After execution of a certain process, the first information indicating that the certain process has been executed is stored in a storage unit of the computer,
When the computer is started with an initialization process, if the first information is stored in the storage unit, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed; And,
A computer that stores second information indicating that the certain process has not been executed in the storage unit.

[2]前記制御部は、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する、[1]記載の計算機。
[2] The control unit includes:
If the first information is not stored in the storage unit at the time of the start including the initialization process, a numerical value used for the first calculation is set to a second numerical value different from the first numerical value, [1] The calculator described.

[3]前記制御部は、前記初期化処理として、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する、[1]又は[2]記載の計算機。   [3] The computer according to [1] or [2], wherein the control unit sets, as the initialization processing, a numerical value used for the first calculation to a second numerical value different from the first numerical value.

[4]前記制御部は、前記計算機の電池交換に伴い、前記初期化処理を実行する、[1]乃至[3]の何れか一項記載の計算機。   [4] The computer according to any one of [1] to [3], wherein the control unit executes the initialization processing in accordance with battery replacement of the computer.

[5]前記制御部は、実行指示の入力に応じて第2計算を実行可能であり、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第2計算に用いる数値を、予め決められた第3数値に設定する処理を実行する、[1]乃至[4]の何れか一項記載の計算機。
[5] The control unit can execute the second calculation in response to the input of the execution instruction,
When the first information is stored in the storage unit at the time of the start including the initialization process, a process of setting a numerical value used for the second calculation to a predetermined third numerical value is executed. ] The computer according to any one of [4] to [4].

[6]前記制御部は、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第2計算に用いる数値を、前記第2数値に設定する、[5]記載の計算機。
[6] The control unit includes:
The computer according to [5], wherein at the time of the startup involving the initialization processing, if the first information is not stored in the storage unit, a numerical value used for the second calculation is set to the second numerical value.

[7]実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機の制御部により実行される設定方法であって、
ある処理の実行後に前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、
前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させる、設定方法。
[7] A setting method executed by a control unit of a computer having a control unit capable of executing the first calculation in response to input of an execution instruction,
After executing a certain process, the first information indicating that the certain process has been executed is stored in the storage unit of the computer,
When the computer is started with an initialization process, if the first information is stored in the storage unit, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed; And,
A setting method, wherein second information indicating that the certain process has not been executed is stored in the storage unit.

[8]実行指示の入力に応じて第1計算を実行可能な計算機のコンピュータによって、
ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、
前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させるためのプログラム。
[8] By a computer of a computer capable of executing the first calculation in response to the input of the execution instruction,
After execution of a certain process, the first information indicating that the certain process has been executed is stored in a storage unit of the computer,
When the computer is started with an initialization process, if the first information is stored in the storage unit, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed; And,
A program for causing the storage unit to store second information indicating that the certain process has not been performed.

10…電卓、11…キー入力部、11b0…税0計算キー、11b1…税1計算キー、11b2…税2計算キー、11b3…税3計算キー、11b4…税4計算キー、11c…税計算合計キー、11d…税計算モード切替キー、12…表示部、21…CPU、22…メモリ、22a…工場検査プログラム、22b…計算処理プログラム、22c…工場検査後フラグエリア、22d…税率別税合計メモリエリア、22e…税率記憶エリア、22g…税率別税合計メモリエリア、22h…合計メモリエリア、22k…税合計リコールモードエリア、22m…税計算モードエリア、22n…バッファメモリエリア、22p…表示メモリエリア。   10 Calculator, 11 Key input section, 11b0 Tax 0 calculation key, 11b1 Tax 1 calculation key, 11b2 Tax 2 calculation key, 11b3 Tax 3 calculation key, 11b4 Tax 4 calculation key, 11c Tax calculation total Key, 11d: Tax calculation mode switching key, 12: Display unit, 21: CPU, 22: Memory, 22a: Factory inspection program, 22b: Calculation processing program, 22c: Flag area after factory inspection, 22d: Tax total memory by tax rate Area, 22e: Tax rate storage area, 22g: Tax total memory area by tax rate, 22h: Total memory area, 22k: Tax total recall mode area, 22m: Tax calculation mode area, 22n: Buffer memory area, 22p: Display memory area.

本発明は、税計算をする計算機、電子機器、設定方法、及びプログラムに関する。 The present invention relates to a calculator for calculating a tax, an electronic device, a setting method, and a program.

本発明によれば、機器の初期化処理が実行された場合に、その初期化前にユーザが設定した設定値がその初期化後も保持されているかどうかをユーザが認識しやすくするとともに、機器の出荷以前に行われる上記設定値への初期値の設定作業を軽減できる計算機、電子機器、設定方法、及びプログラムが提供される。 According to the present invention, when the initialization processing of the device is performed, the user can easily recognize whether or not the setting value set by the user before the initialization is retained after the initialization, and A computer, an electronic device, a setting method, and a program that can reduce the work of setting an initial value to the above set value performed before shipment of a computer.

Claims (8)

実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機であって、
前記制御部は、
ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、
前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させる、
計算機。
A computer having a control unit capable of executing a first calculation in response to an input of an execution instruction,
The control unit includes:
After execution of a certain process, the first information indicating that the certain process has been executed is stored in a storage unit of the computer,
When the computer is started with an initialization process, if the first information is stored in the storage unit, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed; And,
Causing the storage unit to store second information indicating that the certain process has not been performed;
calculator.
前記制御部は、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する、請求項1記載の計算機。
The control unit includes:
The numerical value used for the first calculation is set to a second numerical value different from the first numerical value when the first information is not stored in the storage unit at the time of the start including the initialization processing. The calculator described.
前記制御部は、前記初期化処理として、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する、請求項1又は請求項2記載の計算機。   The computer according to claim 1, wherein the control unit sets a numerical value used for the first calculation to a second numerical value different from the first numerical value as the initialization processing. 前記制御部は、前記計算機の電池交換に伴い、前記初期化処理を実行する、請求項1乃至請求項3の何れか一項記載の計算機。   The computer according to any one of claims 1 to 3, wherein the control unit executes the initialization process in accordance with battery replacement of the computer. 前記制御部は、実行指示の入力に応じて第2計算を実行可能であり、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第2計算に用いる数値を、予め決められた第3数値に設定する処理を実行する、請求項1乃至請求項4の何れか一項記載の計算機。
The control unit can execute the second calculation in response to the input of the execution instruction,
At the time of startup accompanied by the initialization process, when the first information is stored in the storage unit, a process of setting a numerical value used for the second calculation to a predetermined third numerical value is executed. The computer according to any one of claims 1 to 4.
前記制御部は、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第2計算に用いる数値を、第2数値に設定する、請求項5記載の計算機。
The control unit includes:
The computer according to claim 5, wherein, at the time of starting with the initialization processing, if the first information is not stored in the storage unit, a numerical value used for the second calculation is set to a second numerical value.
実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機により実行される設定方法であって、
前記制御部は、
ある処理の実行後に前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、
前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させる、設定方法。
A setting method executed by a computer having a control unit capable of executing a first calculation in response to input of an execution instruction,
The control unit includes:
After executing a certain process, the first information indicating that the certain process has been executed is stored in the storage unit of the computer,
When the computer is started with an initialization process, if the first information is stored in the storage unit, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed; And,
A setting method, wherein second information indicating that the certain process has not been executed is stored in the storage unit.
実行指示の入力に応じて第1計算を実行可能な計算機のコンピュータによって、
ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、
前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させるためのプログラム。
By a computer of a computer capable of executing the first calculation in response to the input of the execution instruction,
After execution of a certain process, the first information indicating that the certain process has been executed is stored in a storage unit of the computer,
When the computer is started with an initialization process, if the first information is stored in the storage unit, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed; And,
A program for causing the storage unit to store second information indicating that the certain process has not been performed.
JP2018168368A 2018-09-07 2018-09-07 Computer, electronic device, setting method, and program Active JP6593505B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018168368A JP6593505B1 (en) 2018-09-07 2018-09-07 Computer, electronic device, setting method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018168368A JP6593505B1 (en) 2018-09-07 2018-09-07 Computer, electronic device, setting method, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019171527A Division JP6620907B1 (en) 2019-09-20 2019-09-20 Computer, setting method, and program

Publications (2)

Publication Number Publication Date
JP6593505B1 JP6593505B1 (en) 2019-10-23
JP2020042455A true JP2020042455A (en) 2020-03-19

Family

ID=68314051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018168368A Active JP6593505B1 (en) 2018-09-07 2018-09-07 Computer, electronic device, setting method, and program

Country Status (1)

Country Link
JP (1) JP6593505B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7184068B2 (en) 2020-09-17 2022-12-06 カシオ計算機株式会社 Calculator, calculation method and calculation program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016224706A (en) * 2015-05-29 2016-12-28 キヤノン株式会社 Information processing apparatus, image forming apparatus, control method, and program
JP2017174225A (en) * 2016-03-24 2017-09-28 カシオ計算機株式会社 Tax calculator, tax calculation method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016224706A (en) * 2015-05-29 2016-12-28 キヤノン株式会社 Information processing apparatus, image forming apparatus, control method, and program
JP2017174225A (en) * 2016-03-24 2017-09-28 カシオ計算機株式会社 Tax calculator, tax calculation method and program

Also Published As

Publication number Publication date
JP6593505B1 (en) 2019-10-23

Similar Documents

Publication Publication Date Title
CN107239431B (en) Tax computer, tax calculating method and recording medium for recording program
US10235328B2 (en) Calculation device, calculation method, and storage medium
JP6593505B1 (en) Computer, electronic device, setting method, and program
JP7487755B2 (en) calculator
JP6635132B2 (en) Tax calculator, tax calculation method and tax calculation program
JP6620907B1 (en) Computer, setting method, and program
JP7383902B2 (en) Calculators, calculation methods, and programs
JP7416138B2 (en) Calculator, setting support method and program
JP7031691B2 (en) Electronics, control methods, and programs
JP6915669B2 (en) Tax calculator, tax calculation method, and tax calculation program
JP7163705B2 (en) Calculators, calculation methods, and programs
JP7487828B2 (en) Electronic device, calculation support method and program
JP7279355B2 (en) Calculator, display method, and program
JP6528483B2 (en) Computation processing device and program
JP6028329B2 (en) Mathematical expression display device and mathematical expression display program
JP2020057374A (en) Computer, computing method, and program
JP2022115562A (en) Computing machine and calculation program
JP2021092973A (en) Electronic apparatus, control method for electronic apparatus, and control program for electronic apparatus
JP2016177489A (en) Calculation processing apparatus and program
JP2021166097A (en) Computing apparatus, print control method, and program
JP5381152B2 (en) Formula arithmetic device and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190620

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190620

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20190620

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20190708

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190716

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190805

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190827

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190909

R150 Certificate of patent or registration of utility model

Ref document number: 6593505

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150