JP6593505B1 - Computer, electronic device, setting method, and program - Google Patents

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

Info

Publication number
JP6593505B1
JP6593505B1 JP2018168368A JP2018168368A JP6593505B1 JP 6593505 B1 JP6593505 B1 JP 6593505B1 JP 2018168368 A JP2018168368 A JP 2018168368A JP 2018168368 A JP2018168368 A JP 2018168368A JP 6593505 B1 JP6593505 B1 JP 6593505B1
Authority
JP
Japan
Prior art keywords
numerical value
calculation
tax
electronic device
tax rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018168368A
Other languages
Japanese (ja)
Other versions
JP2020042455A (en
Inventor
博明 吉澤
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

【課題】機器の初期化処理が実行された場合に、その初期化前にユーザが設定した設定値がその初期化後も保持されているかどうかをユーザが認識しやすくするとともに、機器の出荷以前に行われる上記設定値への初期値の設定作業を軽減できる計算機を提供する。【解決手段】実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機であって、記制御部は、ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させる。【選択図】図2When device initialization processing is executed, it is easy for a user to recognize whether a setting value set by a user before the initialization is retained after the initialization, and before the device is shipped. Provided is a computer that can reduce the initial value setting operation to the set value. 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 indicates that a certain process has been executed after the execution of a certain process. 1 information is stored in the storage unit of the computer, and when the first information is stored in the storage unit at the time of startup accompanied by the initialization process of the computer, a numerical value used for the first calculation is determined in advance. The second value indicating that the certain process has not been executed is stored in the storage unit. [Selection] Figure 2

Description

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

近年の税計算機(電卓)には、予め設定された税率を用いて税計算をする機能を設けたものがある。例えば、特許文献1に記載された税計算機には、複数の税率にそれぞれ対応する複数の税計算キー(税込み計算キー、税抜き計算キー)が設けられている。税計算機は、各税計算キーに対する操作に応じて、任意の四則計算などによる通常計算された数値、あるいは個別に入力された数値をもとに、各税計算キーに対応する税率による税込み額を算出して表示する。   Some recent tax calculators (calculators) are provided with a function for 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 (tax included calculation key, tax excluded calculation key) respectively corresponding to a plurality of tax rates. Depending on the operation for each tax calculation key, the tax calculator will calculate the tax-included amount at the tax rate corresponding to each tax calculation key based on the numerical value calculated by any four basic calculations etc. or the numerical value entered individually. Calculate and display.

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

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

税計算機は、工場から出荷される前に、税計算キーに対して初期値とする税率が設定されている。税計算キーに対して設定された税率は、電池から給電されている間には保持されているが、電池交換がされる際には失われてしまう。   Before the tax calculator is shipped from the factory, the initial tax rate is set for the 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 automatically set to the tax calculation key after the battery replacement as the initial value set in advance by the program, the user does not need to set the tax rate again. Tax calculation is feasible. On the other hand, if it is a specification of a tax calculator that allows an arbitrary tax rate different from the preset initial value to be used for the tax calculation key and used, an arbitrary tax rate set by the user before battery replacement There is a possibility that it is difficult for the user to recognize whether or not the battery is retained even after the battery is replaced.

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

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

上記の課題を解決するために、本発明の計算機は、実行指示の入力に応じて第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, and the control unit performs the process after executing a certain process. When the first information indicating that a certain process has been executed is stored in the storage unit of the computer, and the first information is stored in the storage unit at the time of startup accompanied by the initialization process of the computer, A process of 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 which shows the external appearance structure of the tax calculator in this embodiment. 本実施形態における電卓の電子回路の構成を示すブロック図。The block diagram which shows the structure of the electronic circuit of the calculator in this embodiment. 本実施形態における電卓の税計算キーに対する税率設定処理の動作を説明するためのフローチャート。The flowchart for demonstrating the operation | movement of the tax rate setting process with respect to the tax calculation key of the calculator in this embodiment. 本実施形態における電卓の計算処理の動作を説明するためのフローチャート。The flowchart for demonstrating the operation | movement of the calculation process of the calculator in this 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 a tax calculator according to the present embodiment. In this 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 a calculator 10 and has a calculation function (a computer program is installed), 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. Note that a tax calculator such as the calculator 10 that is not equipped with physical keys (buttons) 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 in the present embodiment is provided with a tax calculation function for performing tax calculation at a plurality of tax rates, for example, five types of tax rates. For example, in India, five types of tax rates (0%, 5%, 12%, 18%, 28%) are used as consumption taxes. Therefore, the calculator 10 according to the present embodiment is suitable for a tax calculation for calculating the total amount of products in which a plurality of five or less types of consumption taxes 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 surface of the case of the calculator 10. The key input unit 11 is provided with numeric keys, calculation keys, tax calculation function keys, function keys, and verification function keys. Numeric keys include a plurality of keys corresponding to, for example, [00] [0] to [9]. For the calculation keys, for example, a [+] (addition) key 11h1, a [−] (subtraction) key 11h2, a [×] (multiplication) key 11h3, and a [÷] (division) key 11h4 are used for normal calculation by four arithmetic operations. , [=] (Calculation execution) keys 11h0, each of which includes a plurality of keys.

税計算機能キーには、税計算キー([GST+n(TAX−n)])11b、税計算合計キー([GST GT(GT)])11c、税計算モード切替キー([GST+/TAX−])11dが設けられる。ここで、GSTとは、インドの消費税を意味する「Goods and Service Tax」に対する略記号である。また、[ ]内の文字列(ただし、( )内の文字列を除く。)は、各税計算キー11bのキートップに印刷された文字列を示しており、[ ]内のさらに( )内の文字列は、電卓10の筐体正面に印刷された文字列を便宜的に示すものとする。本明細書では、税計算キー11bに限らず、同様の表記とする。   The tax calculation function key includes 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. In addition, the character string in [] (excluding the character string in ()) indicates the character string printed on the key top of each tax calculation key 11 b, and in () For convenience, the character string printed on the front surface of the casing of the calculator 10 is indicated. In this specification, not only the tax calculation key 11b but 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」を用いて便宜的に説明する。   Tax calculation key ([GST + n (TAX-n)]) 11b includes tax 0 calculation key ([GST + 0 (TAX-0)]) 11b0, tax 1 calculation key ([GST + 1 (TAX-1)]) 11b1, tax 2 calculation key ([GST + 2 (TAX-2)]) 11b2, a tax 3 calculation key ([GST + 3 (TAX-3)]) 11b3, and a tax 4 calculation key ([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, tax 1 calculation key ([GST + 1 (TAX-1)]) 11b1, tax 2 calculation key ([GST + 2 (TAX-2)]) 11b2, tax 3 calculation key ([GST + 3 (TAX-3)]) 11b3, tax 4 calculation key ([GST + 4 (TAX-4)]) 11b4 is operated to input an instruction to execute tax calculation using tax rate 1, tax rate 2, tax rate 3, and tax rate 4, respectively. In this specification, when expressed as the tax calculation key ([GST + n (TAX−n)]) 11b, “n” is used instead of each numerical value from 0 to 4. In this specification, not only the tax calculation key 11b but also a specific numerical value when not specifically limiting which numerical value among all the numerical values (integers of 0 to 4) that “n” can take. Instead, “n” is used for convenience.

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) serves as both a tax-included calculation key [GST + n] and a tax-excluded calculation key [TAX-n]. The tax calculation key 11b (tax n calculation keys 11b0 to 11b4) is a tax calculation key [GST + n] or a tax calculation key that is switched according to the operation of the tax calculation mode switching key ([GST + / TAX−]) 11d. Used as tax-exclusion calculation key [TAX-n]. By sharing one tax calculation key 11b as a tax-included calculation key [GST + n] and a tax-excluded calculation key [TAX-n], a limited area of the front face of the casing can be used effectively, and a plurality of (five types) Keys capable of executing tax-inclusive calculation processing and tax-exclusive calculation processing corresponding to each tax rate are provided.

なお、税計算キー11b(税n計算キー11b0〜11b4)に割り当てられる税率(税率0〜税率4)は、電卓10の工場出荷時に予め設定されている。例えば、税n計算キー11b0〜11b4には、インドにおける使用に合わせて、5種類の税率(0%、5%、12%、18%、28%)がそれぞれ設定される。また、税n計算キー11b0〜11b4に割り当てられる税率(税率0〜税率4)は、ユーザ操作によって任意に設定することができる。   A tax rate (tax rate 0 to tax rate 4) assigned to the tax calculation key 11b (tax n calculation keys 11b0 to 11b4) is set in advance when the calculator 10 is shipped from the factory. For example, five types of tax rates (0%, 5%, 12%, 18%, and 28%) are set in the tax n calculation keys 11b0 to 11b4 in accordance with usage in India. Further, the tax rate (tax rate 0 to tax rate 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に対して正しい税率が設定されていないことを容易に認識することができる。   When the battery 10 is replaced before shipment from the factory, the calculator 10 according to the present embodiment has a tax rate preset by a tax rate automatic setting program for a plurality of tax calculation keys 11b (tax n calculation keys 11b0 to 11b4). Execute the automatic tax rate setting process to set. As a result, the tax rate setting work for the tax calculation key 11b before factory shipment is made more efficient. On the other hand, when the battery is replaced at the time of use by the user after shipment from the factory, the calculator 10 sets a tax rate that makes it easy to recognize 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 at the time of use by the user, the tax rate set in the tax calculation key 11b is set to, for example, “0%” (tax rate setting clear). As a result, even if tax calculation is executed by operating the tax calculation key 11b, the input numerical value and the numerical value after tax calculation are 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 calculation (basic calculation) such as four arithmetic calculations and constant calculation, and tax calculation. It also serves as a GST grand total key ([GST GT] key) for displaying the grand total for the calculation results of (1). When the tax calculation total key 11c functions as a GST grand total key, tax calculation is executed and the processing mode of the calculator 10 transitions 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 change in particular, 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. To do. In other words, for example, when the tax calculation total key 11c is pressed immediately after the tax calculation is executed by operating the tax calculation key 11b, the tax calculation key 11b displays the total sum for the calculation result of the tax calculation. It 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 executed by the operation of the calculation execution key ([=] key) 11h0, that is, the tax calculation is executed by the operation of 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 the grand total for the 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 “long pressing” described below. In addition, pressing for a short time is referred to as “short pressing” or a normal pressing operation for the sake of convenience in this specification.

さらに、税計算合計キー11cは、通常の押下する操作とは異なる操作(例えば、長押し)がされた場合には、前述とは逆のキーとして機能する。つまり、例えば、税計算キー11bの操作によって税計算が実行された直後に税計算合計キー11cが長押しされた場合には、税計算合計キー11cは、グランドトータルキー([GT]キー)として機能する。また、例えば、演算実行キー([=]キー)11h0の操作によって通常計算が実行された直後に税計算合計キー11cが長押しされた場合、すなわち、税計算キー11bの操作によって税計算が実行された直後でない場合には、税計算合計キー11cは、GSTグランドトータルキー([GST GT]キー)として機能する。なお、税計算合計キー11cに対する通常と異なる操作は、前述した長押しする操作(上述の予め定められた任意の時間以上、押下した状態を継続する操作)以外の他の操作を用いることも可能である。   Furthermore, the tax calculation total key 11c functions as a key opposite to the above when an operation (for example, long pressing) different from the normal pressing operation is performed. That is, for example, when the tax calculation total key 11c is pressed and held 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 pressed for a long time immediately after the normal calculation is executed by operating the calculation execution key ([=] key) 11h0, that is, the tax calculation is executed by operating the tax calculation key 11b. If not immediately after, the tax calculation total key 11c functions as a GST grand total key ([GST GT] key). In addition, the operation different from the normal operation for the tax calculation total key 11c can be performed by using an operation other than the above-described long pressing operation (the operation for continuing the pressed state for an arbitrary predetermined time as described above). 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 +]), a root key ([√] key) ), [%] Key 11g and the like. [%] Key 11g is used for percent calculation, and tax rate for setting the tax rate corresponding to each of tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) to a value input by key operation. Used to start the setting 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 verification function key is a key used in the verification function for confirming / correcting the content of the previously executed calculation. The verification function key includes a confirmation key ([CHECK BACK] key 11e, [CHECK FOWARD] key 11f) and a correction key ([CORRECT] key) 11k. The [CHECK BACK] key 11e and the [CHECK FOWARD] 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 having the smaller number of steps, and when the [CHECK FOWARD] key 11f is operated, the calculation data of the step having the larger number of steps is displayed. Switch the display. Note that one step is based on “numerical value + function” input for calculation. In the “function”, codes of keys operated for the four arithmetic calculations, the tax-included calculation, the tax-excluded calculation, and the like are stored. The correction key 11k is a key for instructing correction of the content of the calculation (“numerical value + function”) displayed by operating the [CHECK BACK] key 11e or the [CHECK FOWARD] key 11f. By inputting the contents of the calculation after correction after the operation of the correction key 11k, the calculation data input earlier can be corrected.

ラウンドセレクタ11yは、端数処理の計算方法を設定する。例えば、「F」設定は、表示部12に小数点以下を含む表示可能な最大桁の表示を指定する。「CUT」設定は、小数点セレクタ11zで指定された桁の切り捨てを指定する。「UP」設定は、小数点セレクタ11zで指定された桁の切り上げを指定する。「5/4」設定は、小数点セレクタ11zで指定した桁の四捨五入を指定する。小数点セレクタ11zは、小数点以下を何桁まで表示部12に表示させるかを設定する。なお、「ADD」設定は、入力された数値に対して所定の桁数への小数点設定を指定する。 The round selector 11y sets a calculation method for fraction processing. For example, the “F” setting designates display of the maximum displayable digit including the decimal point on the display unit 12. The “CUT” setting designates truncation of the digit designated by the decimal point selector 11z. The “UP” setting designates rounding up of the digit designated by the decimal point selector 11z. The “5/4” setting designates rounding of digits 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 designates a 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 is a dot matrix type liquid crystal display unit. The display unit 12 displays a numerical value input by an operation on the key of the key input unit 11. The display unit 12 displays numerical values for a limited number of lines (for example, one line). In the state display area provided along the side of the display unit 12, characters and symbols (symbols) indicating the calculation mode being set and various setting states are displayed. For example, in the status display area, the number of steps 12a, tax calculation mode symbol 12b, tax calculation key symbol 12c, tax total recall mode symbol 12d, grand total display symbol 12e, memory symbol 12f, setting symbol 12g, [%] symbol 12h Etc. are displayed. In FIG. 1, all the symbols that can be displayed are shown on the same screen for convenience in order to describe the state display area. However, in any state that the calculator 10 can take, a large number of symbols are the same. It is 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 step that is the current display target, where “numerical value + function” input by operating the key of the key input unit 11 is one step. The tax calculation mode symbol 12b indicates the current tax calculation mode. In the tax-included calculation mode for executing the tax-included calculation, for example, [GST +] is displayed, and in the tax-exclusive calculation mode for executing the tax-exclusive 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 included calculation or the tax excluded calculation when the tax calculation is executed by operating the tax calculation key 11b. When the tax calculation key 11b is used as a tax-included calculation key [GST + n], any one of [GST + 0], [GST + 1], [GST + 2], [GST + 3], and [GST + 4] corresponding to 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], [ One of [TAX-3] and [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 the tax calculation total key ([GST GT (GT)]) 11c is changed to the tax total recall mode (GST GT recall mode). For example, “RCL” is “RCL”. Is displayed. In the tax total recall mode, the tax calculation total sum, tax-excluded total amount, tax total total amount as the total sum of the tax calculation calculated at each tax rate (tax rate 0-4) according to the key operation to the tax calculation total key 11c The amount can be switched and displayed. In the tax total recall mode, the tax rate (tax rate 0 to 4) to be displayed is specified by key operation on the tax calculation key 11b. The total amount and tax amount can be switched and displayed.

総合計表示シンボル12eは、演算実行キー[=]11h0の操作に応じて行われる通常計算の計算結果が合計メモリエリア22hに記憶されていることを示すシンボルであり、例えば「GT」が表示される。メモリシンボル12fは、メモリキー([M−][M+])の操作に応じて、メモリ機能により数値が記憶されていることを示すシンボルである。   The grand 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. The The memory symbol 12f is a symbol indicating that a numerical value is stored by the memory function in accordance with the operation of the 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. For example, [SET] is displayed.

[%]シンボル12hは、パーセント計算のために[%]キー11gが操作された場合、及び税率設定処理において[%]キー11gが操作された場合に表示されるシンボルであり、例えば[%]が表示される。   The [%] symbol 12h is a symbol that is displayed when the [%] key 11g is operated for percent calculation 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 power when the illuminance of ambient ambient light when using the calculator 10 is somewhat bright. The solar panel 13 functions as a power source unit 26 (shown in FIG. 2) of the calculator 10 during power generation, and supplies power to each unit of the calculator 10. In addition, when the solar panel 13 is not generating power, power is supplied to each part of the calculator 10 from a primary battery as a power supply unit 26 provided separately 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 that constitute 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 part of the circuit by executing programs such as the factory inspection program 22 a and the calculation processing program 22 b stored in the memory 22. When an input operation is performed on the key input unit 11, the CPU 21 detects a key that has been input based on a key input signal from the key input unit 11, and executes various calculation processes corresponding to each detected key. To do. In the calculator 10, the CPU 21 controls the operation of each part of the circuit in accordance with the instructions described in the factory inspection program 22 a or the calculation processing program 22 b, and the software and hardware operate in cooperation with each other. Realize processing at startup and processing by calculation function.

工場検査プログラム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 the external recording medium 23 such as a memory card via the 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)からの給電が停止された場合でも、工場検査後フラグの状態を保持することができる不揮発性の記憶エリアである。   In addition to storing the factory inspection program 22a and the calculation processing program 22b, the memory 22 stores a factory inspection flag (completion data) indicating whether or not the factory inspection processing by the factory inspection program 22a has been executed (processing completed). ) Stores a post-inspection flag area 22c. The post-inspection flag area 22c is a non-volatile storage area that can hold the state of the post-inspection flag even when power supply from the power supply unit 26 (solar panel 13) is stopped during battery replacement. .

また、メモリ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税合計額として、それぞれ記憶される。
The memory 22 also includes an area (tax memory) for storing calculation results of tax calculation, a tax rate storage area 22e, a tax total memory area 22g by tax rate, a total memory area 22h, a tax total recall mode area 22k, and a tax calculation mode area. An area for storing data such as 22m, a buffer memory area 22n, and a display memory area 22p is provided. The tax memory (first memory) includes a tax rate total memory area 22d and a tax rate tax total memory area. The total memory area 22d by tax rate includes total memory areas corresponding to each of 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 4 total memory Area). Tax total memory area 22d by tax rate
The tax rate 0 total memory area of the tax rate total memory area 22d is an area for storing data calculated by tax calculation based on the tax rate 0. In the tax rate 0 total memory area, a numerical value based on the result of calculation including tax rate 0 is stored. Specifically, the tax-included amount (0-tax-included amount), the tax amount (0-tax-included amount), the tax-included amount (0-tax-included) as a result of the tax-included calculation at the tax rate of 0 performed one or more times after the last [AC] key 11a is input Each 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 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」の数値が記憶される。   In the tax rate storage area 22e, numerical values indicating the tax rates 0 to 4 set in the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) are stored. For example, five types of tax rates (0%, 5%, 12%, 18%, and 28%) are set in the tax n calculation keys 11b0 to 11b4 according to use in India at the time of factory shipment. In this case, in the tax rate storage area 22e, “0”, “5”, “12”, “18”, and “28” are assigned to the tax rates 0 to 4 corresponding to the tax n calculation keys 11b0 to 11b4, respectively. 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 the sum of numerical values calculated by tax calculation based on all tax rates 0 to 4. In the tax total memory area 22g by tax rate, the total amount including tax and the total amount excluding tax corresponding to the total amount including tax according to the input operation of the tax calculation total key 11c. The total tax amount corresponding to the total amount including tax is stored.

合計メモリエリア22hは、通常計算により算出される数値の合計を示すデータを記憶するためのエリアである(第2メモリ)。合計メモリエリア22hには、演算実行キー[=]11h0の操作に応じて通常計算の計算結果が算出されることにより、計算結果とする数値が合計メモリエリア22hに記憶された数値に加算される。   The total memory area 22h is an area for storing data indicating the sum of numerical values calculated by 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 tax total recall mode area 22k, a tax total recall mode flag indicating whether or not the tax total recall mode area 22k is in the recall mode is set to an on state or an off state in response to an input operation to the tax calculation total key 11c. The tax total recall mode is turned on when the tax calculation total key 11c is pressed immediately after tax calculation by operating the tax calculation key 11b, or when the tax calculation total key 11c is pressed and held immediately after normal calculation. (Transition to tax total recall mode). Further, the tax total recall mode is turned off, for example, when the [AC] key 11a is operated as a predetermined instruction for turning off the tax total recall mode. The on / off switching of the tax total recall mode is not limited to the operation of the tax calculation total key 11c and the [AC] key 11a. For example, the tax total recall mode may be switched on / off according to another key operation or according to the processing result of the calculator 10.

税合計リコールモードがオン状態の場合には、税計算合計キー11cが操作(押下)される毎に、税率別税合計メモリエリア22gに記憶された税込総合計額、税抜総合計額、税総合計額を切り替えて表示させることができる。また、税合計リコールモードがオン状態の場合には、税計算キー11b(税n計算キー11b0〜11b4)が操作(押下)される毎に、税率別税率別税合計メモリエリア22dに記憶された、税込合計額、税抜合計額、税合計額を切り替えて表示させることができる。   When the tax total recall mode is on, each time the tax calculation total key 11c is operated (pressed), the total amount including tax, the total amount excluding tax, and the tax stored in the tax total memory area 22g by tax rate The total amount can be switched and displayed. In addition, when the tax total recall mode is on, each time the tax calculation key 11b (tax n calculation keys 11b0 to 11b4) is operated (pressed), it is stored in the tax total by tax rate memory area 22d. The total amount including tax, the total amount excluding 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 numeric key and the calculation key of the key input unit 11 are input. Accordingly, the normal calculation using the numeric keys and the calculation keys can be executed while displaying and checking the tax calculation result 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 tax total recall mode, the numerical value that is the result of the tax calculation can be displayed on the display unit 12, and four arithmetic calculations can be performed on the numbers displayed on the display unit 12. .

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

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

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

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

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

CPU21は、電池交換に伴って起動されたかどうかを判別する(ステップS1)。この判別は、電源部26から供給される電圧を検知した結果に基づいて行われてよい。ここで、電池交換に伴う起動でない場合(ステップS1:No)、CPU21は、後述するステップS6の処理を実行する。一方、電池交換に伴って起動された場合(ステップS1:Yes)、全初期化処理を実行する(ステップS2)。   CPU21 discriminate | determines whether it was started with battery replacement (step S1). This determination may be performed based on the result of detecting the voltage supplied from the power supply unit 26. Here, when it is not the start accompanying battery exchange (step S1: No), CPU21 performs the process of step S6 mentioned later. On the other hand, when activated with 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 all 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 total memory area 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 in the memory 22 in all initialization processes. To do. Further, the CPU 21 turns off the tax total recall mode flag stored in the tax total recall mode area 22k. CPU21 clears the numerical value displayed previously and displays "0", when a battery exchange is performed from the state where numerical values, such as the previous tax calculation result, were displayed. Further, when the battery is exchanged from the 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」となるものとする。   In this way, in the all initialization process involving battery replacement, the tax rate storage area 22e is also cleared, 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 of 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 flag after factory inspection 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, if execution of the factory inspection process is instructed by an operation on the key input unit 11 (step S6: Yes), the CPU 21 executes the factory inspection process (step S7). Note that the factory inspection process is very unlikely to be operated when the user normally uses the calculator 10, for example, a combination of a plurality of keys (for example, three keys or more), or a long press. It is instructed by operating in combination with key operations (such as long pressing 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は、各ユニットの動作チェックを実行する。   CPU21 makes each unit perform the operation | movement for confirming whether each part which comprises the calculator 10 is operate | moving normally by factory inspection process. For example, the CPU 21 performs an operation check by turning on, blinking, and turning off the liquid crystal display unit constituting the display unit 12. Further, the CPU 21 switches the operation clock between high speed and low speed and checks each operation state. 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 factory inspection flag in the post factory inspection flag area 22c to indicate that the factory inspection process has been executed (step S8).

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

一方、ステップS6において、工場検査処理の実行が指示されず(ステップS6:No)、[AC]キー11aが操作された場合(ステップS9:Yes)、CPU21は、計算処理プログラム22bによる計算処理に移行して、[AC]キー11aの操作に応じた処理を実行する(後述する)。   On the other hand, if the execution of the factory inspection process is not instructed in step S6 (step S6: No) and the [AC] key 11a is operated (step S9: Yes), the CPU 21 performs the calculation process by the calculation process program 22b. The process proceeds to execute processing according 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 the correct tax rate is not set for the tax calculation key 11b, correct tax calculation cannot be performed by operating the tax calculation key 11b. FIG. 5 shows values 40 of tax rates 0 to 4 stored in the tax rate storage area 22e after 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 “0” state, a tax is applied to the input numerical value 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. Even if any of the plurality of tax calculation keys 11b is operated to instruct execution of tax calculation, the numerical value displayed as a result of tax calculation is the same as the input numerical value.

次に、工場出荷前に、工場検査処理によって動作チェックされた後、電卓10の電池が交換された場合に、電卓10により実行される処理について説明する。   Next, processing performed by the calculator 10 when the battery of the calculator 10 is replaced after the operation is checked by factory inspection processing 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 flag after factory inspection is turned on in step S8 (step S3: Yes), the CPU 21 enters a standby state for input operation.

CPU21は、電池交換に伴って起動されると(ステップS1:Yes)、再度、全初期化処理を実行する(ステップS2)。   When the CPU 21 is activated along with 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 the factory inspection process has been executed by executing steps S7 and S8, the post-factory inspection flag is set to ON. Since the post-factory inspection flag is on (step S3: Yes), the CPU 21 executes a tax rate automatic 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 tax rate automatic 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 this embodiment, the CPU 21 sets “0” for each of the tax rates 0 to 4 in accordance with five types of tax rates (0%, 5%, 12%, 18%, and 28%) used in India. The numerical values “5”, “12”, “18”, and “28” are stored in the tax rate 3 total memory area 22e. In FIG. 5, the value 41 of the tax rates 0-4 at the time of battery replacement | exchange after factory inspection is shown. Numerical values indicating the tax rates 0 to 4 set in the tax rate storage area 22e in the tax rate automatic 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)のそれぞれに対して、正しい初期値とする税率を設定する作業をする必要がない。   Accordingly, when the factory inspection process is executed before the calculator 10 is shipped from the factory, the operator performs key operations on the calculator 10 to perform a plurality of tax calculation keys 11b (tax n calculation keys 11b0 to 11b0). It is not necessary to set a tax rate as a correct initial value for each of 11b4).

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

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

この状態では、税計算キー11bに対して正しい税率が設定されているため、税計算キー11bの操作により正しい税計算をすることができる。すなわち、電卓10は、複数の税計算キー11bに対して正しい税率0〜4が設定された、出荷が可能な状態となる。また、電卓10は、工場検査後フラグエリア22cの工場検査後フラグがオフされた状態で出荷される。   In this state, since the correct tax rate is set for the tax calculation key 11b, correct tax calculation can be performed by operating the tax calculation key 11b. That is, the calculator 10 is in a state where shipment is possible with the correct tax rates 0 to 4 set for the plurality of tax calculation keys 11b. The calculator 10 is shipped with the post-factory flag in the post-factory 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 to clear the contents of the memory excluding the tax rate storage area 22e and the display contents of the display unit 12. When the [AC] key 11a is operated (step A9: Yes), the CPU 21 makes a tax total memory area 22d, a tax total memory area 22g, a total memory area 22h, a total memory area 22h, a buffer memory area 22n, and a display memory area. All 22p are 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 numerical values such as the previous tax calculation result are displayed, the CPU 21 clears the previously displayed numerical value and displays “0”. Further, when the [AC] key 11a is operated while 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の各数値はクリアされず、保持されたままである。   In this way, in the memory and display clear process without battery replacement, the tax rate storage area 22e is not cleared. Therefore, the tax calculation key 11b (tax n calculation keys 11b0 to 11b4) in the tax rate automatic setting process (step S4) described above. The numerical values of the tax rates 0 to 4 set for each of these are not cleared and are kept.

ここで、[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, immediately after the input operation of the [AC] key 11a, when an input operation for the tax calculation key 11b (any one of the tax n calculation keys 11b0 to 11b4) is detected (step A19: Yes), A117: Yes), The CPU 21 reads the tax rate set for any of the tax n calculation keys 11b0 to 11b4 on which the input operation has been performed from the tax rate storage area 22e of the memory 22 and displays it on the display unit 12 (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 displays a numerical value indicating the tax rate 1 (5%) set in the tax 1 calculation key 11b1 in the tax rate storage area. The data is read from 22e and “5” is displayed 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, input to the tax calculation key 11b (any one of the tax n calculation keys 11b0 to 11b4) is performed without performing any other key operation than the tax calculation key 11b. When the operation is detected (step A19: Yes, A117: Yes), that is, as long as the key operation of the tax calculation key 11b continues, the CPU 21 sets the tax rate 0 set for the input tax calculation key 11b. Are read out from the memory 22 and displayed on the display unit 12 (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, if it is immediately after the input operation of the [AC] key 11a, any one of the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) is continuously operated, so that each tax calculation key 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, when only the input operation of the tax calculation key 11b is continuously performed twice or more, the input operation of the tax calculation key 11b for the second and subsequent times is Strictly speaking, it is not performed immediately after the input operation of the [AC] key 11a, but in this specification, such an input operation is also performed immediately after the input operation of the [AC] key 11a. It is considered. In addition, 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 is the [AC] key. It is assumed that it was not performed immediately after the input operation of 11a.

次に、計算の対象とする数値を入力するためにユーザにより数値キーが操作されると(ステップA10:Yes)、CPU21は、入力操作された数値キーに応じた数値(数値コード)を入力し、入力された数値を表示メモリエリア22pに記憶させるとともに、表示部12において表示させる(ステップA15)。   Next, when the user operates a numerical key 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 input operation key and inputs an 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は、入力操作の待機状態へ戻る。   In addition, the CPU 21 performs a calculation based on the input calculation code and the input numerical code, and stores the numerical value as a result of the calculation in the display memory area 22p and also displays it on the display unit 12. Similarly, the CPU 21 stores the input numerical code and the operation code sequentially by repeating the input of the numerical code and the operation code. When the operation execution key “=” (equal) 11h0 is operated by the user operation (step A17: Yes), the CPU 21 generates an operation code corresponding to the input operation execution key (“=” key) 11h0. The calculation is performed according to the numerical code and the operation code input so far, 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 normal calculation according to the numerical code and the operation code in the total memory area 22h (step A18). When the numerical value is already stored in the total memory area 22h, the CPU 21 adds the numerical value that is the result of the normal calculation to the previously stored numerical value and stores it 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の何れかに設定された税率を用いて税計算を実行する。なお、税計算の対象とする数値は、通常計算によって表示された数値に限らず、単に数値キーの入力操作により入力された数値を対象とすることができる。   When the input operation of the tax calculation key 11b is detected in the 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 Tax rate set in any of the tax n calculation keys 11b0 to 11b4 in which the input operation has been performed on the numerical value (numerical value) displayed on the display unit 12, that is, the numerical value stored in the display memory area 22p Perform tax calculation using. It should be noted that the numerical value targeted for tax calculation is not limited to the numerical value displayed by the normal calculation, but can be a numerical value simply input by a numerical key input operation.

税計算キー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 the tax-included calculation and a key for executing the tax-excluded calculation. When the tax calculation key 11b is operated, the CPU 21 refers to the tax calculation mode area 22m and determines whether the current tax calculation mode is the tax calculation mode or the tax-exclusion calculation mode. Here, when the current tax calculation mode is the tax-included calculation mode (step A110, including tax), the CPU 21 sets the numerical value displayed on the display unit 12 as a tax-excluded amount, and the tax rate corresponding to the numerical value and the tax calculation key 11b. The tax-included calculation process is executed to display the result of the tax calculation in accordance with the key operation (step A111). When the current tax calculation mode is the tax-exclusion calculation mode (step A110, tax-excluded), the CPU 21 sets the numerical value being displayed on the display unit 12 as the tax-included amount, and the tax rate corresponding to the numerical value and the tax calculation key 11b. Is used to execute the tax-exclusion calculation, and the tax-exclusion calculation process for displaying the result of the tax calculation according to the key operation is executed (step A112).

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

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

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

なお、前述した説明では、税計算キー11bに対して出荷時に設定された税率0〜4を用いて税計算(税込み計算、税抜き計算)を実行する例について説明しているが、税計算キー11b(税n計算キー11b0〜11b4)に対してユーザ操作によって任意の税率を設定することができる。   In the above description, an example is described in which tax calculation (calculation including tax, 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 a 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 the CPU 21 detects a key operation indicating a tax rate setting instruction in the standby state of the input operation (step A119: Yes), it executes a tax rate setting process (step A120). The tax rate setting instruction is instructed, for example, by pressing and holding the [%] key 11g (for example, 2 seconds or more) immediately after the input operation of the [AC] key 11a. When starting the tax rate setting process, the CPU 21 displays a set symbol 12g [SET] and a [%] symbol 12h corresponding to the [%] key 11g in the state 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 tax rates 0 to 4 corresponding to the tax calculation keys 11b (tax n calculation keys 11b0 to 11b4) according to key operations by the user. As an operation method for setting the tax rate, for example, an input by operating a numeric key indicating a tax rate and an instruction to complete the numerical input by operating the [%] key 11g include a plurality of tax n calculation keys 11b0 to 11b4. It is possible to execute by inputting in order. In addition, by operating any of the tax n calculation keys 11b0 to 11b4 and displaying the desired tax rate to be changed on the display unit 12, a numerical value indicating the tax rate is input by operating the numerical key. Execution is also possible by giving an instruction to confirm the numerical value input by operating the [%] key 11g. Furthermore, as another operation method for setting a tax rate, a tax rate is to be set after an input by operating a numeric key indicating a tax rate and an instruction to complete the input of a numeric value by operating the [%] key 11g. It can also be executed by operating any of the tax n calculation keys 11b0 to 11b4. FIG. 5 shows an example of a value 42 of tax rates 0 to 4 set by the user. That is, the tax rates 0 to 4 are changed to “28”, “18”, “12”, “8”, and “5”, respectively. In this way, the user can customize the user-friendly by setting a new tax rate for the desired tax n calculation keys 11b0 to 11b4 or replacing the set tax rates for the tax n calculation keys 11b0 to 11b4. In addition, 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 battery is replaced by the user after the calculator 10 is shipped will be described. CPU21 discriminate | determines whether it was started with battery replacement (step S1). Here, since it was started with battery replacement (step S1: Yes), the CPU 21 executes memory and display clear processing without battery replacement as described above (step S2). 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, all of the tax rates 0 to 4 become “0” by clearing the tax rate storage area 22e. 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 shipment.

次に、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 refers to the post-inspection flag area 22c and determines whether the post-inspection flag indicates that the factory inspection process has been executed (the post-inspection flag is on). Here, since the post-factory inspection flag is not on (step S3: No), the CPU 21 enters a standby state for input operation. Here, as described above, since it is very unlikely that an operation for instructing execution of factory inspection processing is performed by the user, execution of factory inspection processing is not instructed (step S6: No), and the [AC] key 11a is pressed. It is operated (step S9: Yes). In response to operation of the [AC] key 11a, the CPU 21 shifts to calculation processing by the calculation processing program 22b and executes processing according to the operation of the [AC] key 11a. Thus, the calculator 10 is used by the user in a state where all the tax rates 0 to 4 set in the tax rate storage area 22e are “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 “0” state, the user performs tax calculation according to the operation of the tax calculation key 11b for the input numerical value. Even if it is executed, the numerical value displayed as a result of tax calculation is the same as the input numerical value. Even if any of the plurality of tax calculation keys 11b is operated to instruct execution of tax calculation, the numerical value displayed as a result of tax calculation is the same as the input numerical value. For this reason, the user can easily recognize that the tax calculation is not correctly executed.

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

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

本実施形態の電卓10は、電池交換時には、税率自動設定処理によって設定される税率0〜4とは明らかに異なる税率(ここでは全て「0」)にするので、税計算キー11bの操作による税計算をすることで、税計算キー11bに設定された税率が正しい状態にないことを容易に把握できる。   The calculator 10 of the present embodiment has a tax rate that is clearly different from the tax rates 0 to 4 set by the tax rate automatic setting process at the time of battery replacement (here, all “0”). By calculating, 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, when the battery is replaced after shipment, the tax rates 0 to 4 are all set to “0”. However, as a result of the tax calculation, the user can recognize that the tax calculation result is clearly incorrect. It is also possible to set a numerical value other than “0” as long as the numerical value is small. For example, it may be a large numerical value (for example, a numerical value of 3 digits or 4 digits or more) that is not used as a tax rate.

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

このようにして、本実施形態における電卓10は、工場出荷前では税計算キー11bに対する税率の設定を工場検査プログラム22aによる自動設定により実行するので、税計算に使用する税率の数が多くなったとしても(税計算キー11bのキー数が多くなったとしても)、税率設定のための作業の負担を増大させることがない。また、工場での税率自動設定をする一方で、出荷後のユーザによる使用時では、電池交換時に税率自動設定を行わず、税計算の実行時に税計算キー11bに対して税率が変更されたことを容易に認識できるようにしたので、ユーザによる誤った税計算を防止することができる。   In this way, the calculator 10 according to 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 keys of the tax calculation key 11b is increased, the burden of work for setting the tax rate is not increased. In addition, while the tax rate is automatically set at the factory, the tax rate is not automatically set at the time of battery replacement when used by the user after shipment, and the tax rate is changed with respect to the tax calculation key 11b when executing the tax calculation. Can be easily recognized, and erroneous tax calculation by the user can be prevented.

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

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

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

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

[1]実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機であって、
前記制御部は、
ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、
前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させる、計算機。
[1] A computer having a control unit capable of executing a first calculation in response to an input of an execution instruction,
The controller is
After the execution of 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 first information is stored in the storage unit at the time of startup accompanied by initialization processing of the computer, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed. And,
The computer which memorize | stores in the said memory | storage part the 2nd information which has not performed the said certain process.

[2]前記制御部は、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する、[1]記載の計算機。
[2] The control unit
When the first information is not stored in the storage unit at the time of starting with 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] Listed calculator.

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

[4]前記制御部は、前記計算機の電池交換に伴い、前記初期化処理を実行する、[1]乃至[3]の何れか一項記載の計算機。   [4] The computer according to any one of [1] to [3], wherein the control unit executes the initialization process 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 an input of an execution instruction,
When the first information is stored in the storage unit at the time of starting with the initialization process, a process of setting a numerical value used for the second calculation to a predetermined third numerical value is executed. [1 ] The computer as described in any one of [4].

[6]前記制御部は、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第2計算に用いる数値を、前記第2数値に設定する、[5]記載の計算機。
[6] The control unit
The computer according to [5], wherein when starting with the initialization process, 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 a first calculation in response to an input of an execution instruction,
Storing first information indicating that the certain process has been executed after the execution of the certain process in the storage unit of the computer;
When the first information is stored in the storage unit at the time of startup accompanied by initialization processing of the computer, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed. And,
A setting method for storing, in the storage unit, second information indicating that the certain process has not been executed.

[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 the execution of 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 first information is stored in the storage unit at the time of startup accompanied by initialization processing of the computer, 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 executed.

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…表示メモリエリア。   DESCRIPTION OF SYMBOLS 10 ... Calculator, 11 ... Key input part, 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.

Claims (34)

実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機であって、
前記制御部は、
ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させ、
前記初期化処理を伴う起動時に、前記第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 controller is
After the execution of 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 first information is stored in the storage unit at the time of startup accompanied by initialization processing of the computer, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed. And the 2nd information which shows that the said certain process has not been performed is memorize | stored in the said memory | storage part ,
When the first information is not stored in the storage unit at the time of starting with the initialization process, a numerical value used for the first calculation is set to a second numerical value different from the first numerical value.
calculator.
前記制御部は、前記初期化処理として、前記第1計算に用いる数値を、前記第2数値に設定する、請求項1記載の計算機。 Wherein, as the initialization process, a numerical value used for the first calculation is set to the second number, computer according claim 1. 前記制御部は、前記計算機の電池交換に伴い、前記初期化処理を実行する、請求項1又は請求項2記載の計算機。 Wherein, with the battery replacement of the computer, it executes the initialization process, according to claim 1 or claim 2 according computer. 前記制御部は、実行指示の入力に応じて第2計算を実行可能であり、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第2計算に用いる数値を、予め決められた第3数値に設定する処理を実行する、請求項1乃至請求項3の何れか一項記載の計算機。
The control unit can execute the second calculation in response to an input of an execution instruction,
The processing for setting a numerical value used for the second calculation to a predetermined third numerical value is executed when the first information is stored in the storage unit at the time of starting with the initialization process. The computer according to any one of claims 1 to 3 .
前記制御部は、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第2計算に用いる数値を、前記第2数値に設定する、請求項4記載の計算機。
The controller is
5. The computer according to claim 4 , wherein a numerical value used for the second calculation is set to the second numerical value when the first information is not stored in the storage unit at the time of starting with the initialization process.
実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機であって、
前記制御部は、
ある処理の実行後、最初に電池交換を伴って前記計算機を起動する時、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、
前記ある処理の実行後、2回目以降に電池交換を伴って前記計算機を起動する時、前記第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 controller is
After the execution of a certain process, when starting the computer with battery replacement for the first time, the numerical value used for the first calculation is set to a predetermined first numerical value,
After the execution of the certain process, when starting the computer with battery replacement for the second time or later, a process of setting a numerical value used for the first calculation to a second numerical value different from the first numerical value is executed.
calculator.
前記制御部は、実行指示の入力に応じて前記第1計算とは異なる第2計算を実行可能であり、
前記ある処理の実行後、最初に電池交換を伴って前記計算機を起動する時、前記第2計算に用いる数値を、前記第1数値とは異なる予め決められた第3数値に設定する処理を実行する、
請求項6記載の計算機。
The control unit can execute a second calculation different from the first calculation according to an input of an execution instruction,
After the execution of the certain process, when starting the computer with battery replacement for the first time, a process for setting a numerical value used for the second calculation to a predetermined third numerical value different from the first numerical value is executed. To
The computer according to claim 6 .
前記制御部は、
前記ある処理の実行後、2回目以降に電池交換を伴って前記計算機を起動する時、前記第2計算に用いる数値を、前記第2数値に設定する、
請求項7記載の計算機。
The controller is
After the execution of the certain process, when starting the computer with battery replacement after the second time, the numerical value used for the second calculation is set to the second numerical value,
The computer according to claim 7 .
実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機により実行される設定方法であって、
前記設定方法は、
ある処理の実行後に前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させ、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する、
ことを含む、設定方法。
A setting method executed by a computer having a control unit capable of executing a first calculation in response to an input of an execution instruction,
The setting method is as follows:
Storing first information indicating that the certain process has been executed after the execution of the certain process in the storage unit of the computer;
When the first information is stored in the storage unit at the time of startup accompanied by initialization processing of the computer, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed. And the 2nd information which shows that the said certain process has not been performed is memorize | stored in the said memory | storage part ,
When the first information is not stored in the storage unit at the time of starting with the initialization process, a numerical value used for the first calculation is set to a second numerical value different from the first numerical value.
A setting method including that.
実行指示の入力に応じて第1計算を実行可能な制御部を有する計算機により実行される設定方法であって、
前記設定方法は、
ある処理の実行後、最初に電池交換を伴って前記計算機を起動する時、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、
前記ある処理の実行後、2回目以降に電池交換を伴って前記計算機を起動する時、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する処理を実行する、
ことを含む、設定方法。
A setting method executed by a computer having a control unit capable of executing a first calculation in response to an input of an execution instruction,
The setting method is as follows:
After the execution of a certain process, when starting the computer with battery replacement for the first time, the numerical value used for the first calculation is set to a predetermined first numerical value,
After the execution of the certain process, when starting the computer with battery replacement for the second time or later, a process of setting a numerical value used for the first calculation to a second numerical value different from the first numerical value is executed.
A setting method including that.
実行指示の入力に応じて第1計算を実行可能な計算機のコンピュータによって、
ある処理の実行後に、前記ある処理を実行済みであることを示す第1情報を前記計算機の記憶部に記憶させ、
前記計算機の初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されている場合、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行し、かつ、前記ある処理を実行済みでないことを示す第2情報を前記記憶部へ記憶させ、
前記初期化処理を伴う起動時に、前記第1情報が前記記憶部に記憶されていない場合、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定させる、
ためのプログラム。
By a computer of a computer capable of executing the first calculation in response to an input of an execution instruction,
After the execution of 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 first information is stored in the storage unit at the time of startup accompanied by initialization processing of the computer, a process of setting a numerical value used for the first calculation to a predetermined first numerical value is executed. And the 2nd information which shows that the said certain process has not been performed is memorize | stored in the said memory | storage part ,
When the first information is not stored in the storage unit at the time of starting with the initialization process, the numerical value used for the first calculation is set to a second numerical value different from the first numerical value.
Program for.
実行指示の入力に応じて第1計算を実行可能な計算機のコンピュータによって、
ある処理の実行後、最初に電池交換を伴って前記計算機を起動する時、前記第1計算に用いる数値を、予め決められた第1数値に設定する処理を実行させ、
前記ある処理の実行後、2回目以降に電池交換を伴って前記計算機を起動する時、前記第1計算に用いる数値を、前記第1数値とは異なる第2数値に設定する処理を実行させる、
ためのプログラム。
By a computer of a computer capable of executing the first calculation in response to an input of an execution instruction,
After the execution of a certain process, when starting the computer with battery replacement for the first time, the numerical value used for the first calculation is set to a predetermined first numerical value.
After the execution of the certain process, when starting the computer with battery replacement after the second time, the numerical value used for the first calculation is set to a second numerical value different from the first numerical value.
Program for.
第1計算を実行可能な制御部を有する電子機器であって、
前記制御部は、
初期化処理を伴う前記電子機器の起動処理が、当該電子機器の工場検査処理の実行後、最初に実行される第1の場合、当該初期化処理を伴う前記電子機器の起動中に、前記第1計算に用いる数値を第1数値に設定し、
前記初期化処理を伴う前記電子機器の起動処理が、前記工場検査処理の実行後、2回目以降に実行される第2の場合、当該初期化処理を伴う前記電子機器の起動中に、前記第1計算に用いる数値を前記第1数値とは異なる第2数値に設定する処理を実行する、
電子機器。
An electronic device having a control unit capable of executing the first calculation,
The controller is
In the first case where the startup process of the electronic device accompanied by the initialization process is first executed after the factory inspection process of the electronic device is performed, during the startup of the electronic device accompanied by the initialization process, Set the numerical value used for one calculation to the first numerical value,
In the second case where the startup process of the electronic device accompanied by the initialization process is executed after the factory inspection process is performed for the second time or later, during the startup of the electronic device accompanied by the initialization process, A process of setting a numerical value used for one calculation to a second numerical value different from the first numerical value;
Electronics.
第1計算を実行可能な制御部を有する電子機器であって、
前記制御部は、
前記電子機器の工場検査処理の実行後に、前記工場検査処理を実行済みであることを示す第1情報を、前記電子機器の記憶部に記憶させ、
前記電子機器の初期化処理の際、前記第1計算に用いる数値を、第2数値に設定し、 前記第1情報が前記記憶部に記憶されていると、前記初期化処理を伴う前記電子機器の起動中に判定される第1の場合、前記第1計算に用いる数値を、前記第2数値とは異なる第1数値に設定し、かつ、前記工場検査処理を実行済みであることを示さない第2情報を、前記第1情報の代わりに、前記記憶部に記憶させ、
前記第1情報が前記記憶部に記憶されていないと、前記初期化処理を伴う前記電子機器の起動中に判定される第2の場合、前記第1計算に用いる数値を、前記第2数値のままに維持する、
電子機器。
An electronic device having a control unit capable of executing the first calculation,
The controller is
After the execution of the factory inspection process of the electronic device, the first information indicating that the factory inspection process has been performed is stored in the storage unit of the electronic device,
When the electronic device is initialized, a numerical value used for the first calculation is set to a second numerical value. When the first information is stored in the storage unit, the electronic device is accompanied by the initialization process. In the first case that is determined during the start-up, the numerical value used for the first calculation is set to a first numerical value different from the second numerical value, and the factory inspection process has not been executed. Second information is stored in the storage unit instead of the first information,
If the first information is not stored in the storage unit, the second numerical value used for the first calculation is determined as the second numerical value in the second case that is determined during the activation of the electronic device with the initialization process. Keep it,
Electronics.
前記制御部は、
前記第1計算とは異なる第2計算を実行可能であり、
前記第1の場合、前記初期化処理を伴う前記電子機器の起動中に、前記第2計算に用いる数値を前記第1数値とは異なる第3数値に設定し、
前記第2の場合、前記初期化処理を伴う前記電子機器の起動中に、前記第2計算に用いる数値を前記第2数値に設定する、
請求項13又は請求項14記載の電子機器。
The controller is
A second calculation different from the first calculation can be performed;
In the first case, the numerical value used for the second calculation is set to a third numerical value different from the first numerical value during startup of the electronic device with the initialization process,
In the second case, a numerical value used for the second calculation is set to the second numerical value during startup of the electronic device with the initialization process.
The electronic device according to claim 13 or claim 14 .
前記制御部は、
前記第1計算とは異なる第2計算を実行可能であり、
前記初期化処理中に、前記第2計算に用いる数値を前記第2数値に設定し、
前記初期化処理を伴う前記電子機器の起動中に、
前記第1の場合、前記第2計算に用いる数値を第3数値に設定し、
前記第2の場合、前記第2計算に用いる数値を前記第2数値のままに維持する、請求項13又は請求項14記載の電子機器。
The controller is
A second calculation different from the first calculation can be performed;
During the initialization process, the numerical value used for the second calculation is set to the second numerical value,
During startup of the electronic device with the initialization process,
In the first case, the numerical value used for the second calculation is set to a third numerical value,
The electronic device according to claim 13 or 14 , wherein in the second case, a numerical value used for the second calculation is maintained as the second numerical value.
前記制御部は、
前記第1計算として、第1税率を用いた税計算を実行可能であり、
前記第1の場合、前記第1税率を前記第1数値に設定し、
前記第2の場合、前記第1税率を前記第2数値に設定する、請求項15又は請求項16の電子機器。
The controller is
As the first calculation, a tax calculation using a first tax rate can be executed,
In the first case, the first tax rate is set to the first numerical value,
The electronic device according to claim 15 or 16 , wherein in the second case, the first tax rate is set to the second numerical value.
前記電子機器はさらに表示部を備え、
前記制御部は、
数値の入力操作および前記第1税率を用いた前記税計算の実行指示の両方を受け付けたことに応じて、入力された前記数値と、第1税率として設定された前記第1数値および前記第2数値の何れかの数値とに基づく前記第1税率を用いた前記税計算を実行することで、前記第1税率を用いた前記税計算の結果の数値を取得し、
前記第1税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第1の場合、入力された前記数値および前記第1税率としての前記第1数値に基づく第1の結果の数値を、前記第1税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示し、
前記第1税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第2の場合、入力された前記数値および前記第1税率としての前記第2数値に基づく第2の結果の数値を、前記第1税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示する、請求項17に記載の電子機器。
The electronic device further includes a display unit,
The controller is
In response to receiving both the numerical value input operation and the tax calculation execution instruction using the first tax rate, the input numeric value, the first numerical value set as the first tax rate, and the second tax rate By executing the tax calculation using the first tax rate based on any one of the numerical values, obtain a numerical value as a result of the tax calculation using the first tax rate,
In response to receiving an instruction to execute the tax calculation using the first tax rate, in the first case, the first result based on the input numerical value and the first numerical value as the first tax rate A numerical value is displayed on the display unit as a numerical value obtained by the tax calculation using the first tax rate,
In response to receiving an instruction to execute the tax calculation using the first tax rate, in the second case, the second result based on the input numerical value and the second numerical value as the first tax rate The electronic device according to claim 17 , wherein a numerical value is displayed on the display unit as a numerical value obtained as a result of the tax calculation using the first tax rate.
前記制御部は、
前記第2計算として、第2税率を用いた税計算を実行可能であり、
前記第1の場合、前記第2税率を前記第3数値に設定し、
前記第2の場合、前記第2税率を前記第2数値に設定する、請求項17に記載の電子機器。
The controller is
As the second calculation, a tax calculation using a second tax rate can be executed,
In the first case, the second tax rate is set to the third numerical value,
The electronic device according to claim 17 , wherein in the second case, the second tax rate is set to the second numerical value.
前記電子機器はさらに表示部を備え、
前記制御部は、
数値の入力操作および前記第1税率を用いた前記税計算の実行指示の両方を受け付けたことに応じて、入力された前記数値と、第1税率として設定された前記第1数値および前記第2数値の何れかの数値とに基づく前記第1税率を用いた前記税計算を実行することで、前記第1税率を用いた前記税計算の結果の数値を取得し、
数値の入力操作および前記第2税率を用いた前記税計算の実行指示の両方を受け付けたことに応じて、入力された前記数値と、第2税率として設定された前記第3数値および前記第2数値の何れかの数値とに基づく前記第2税率を用いた前記税計算を実行することで、前記第2税率を用いた前記税計算の結果の数値を取得し、
前記第1税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第2の場合、入力された前記数値および前記第1税率としての前記第2数値に基づく第2の結果の数値を、前記第1税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示し、
前記第2税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第2の場合、入力された前記数値および前記第2税率としての前記第2数値に基づく第3の結果の数値を、前記第2税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示する、ここで、前記第3の結果の数値は、前記第2の結果の数値と同じ数値として算出される、請求項19に記載の電子機器。
The electronic device further includes a display unit,
The controller is
In response to receiving both the numerical value input operation and the tax calculation execution instruction using the first tax rate, the input numeric value, the first numerical value set as the first tax rate, and the second tax rate By executing the tax calculation using the first tax rate based on any one of the numerical values, obtain a numerical value as a result of the tax calculation using the first tax rate,
In response to receiving both the numerical value input operation and the execution instruction of the tax calculation using the second tax rate, the input numerical value, the third numerical value set as the second tax rate, and the second tax rate By executing the tax calculation using the second tax rate based on any one of the numerical values, obtain a numerical value as a result of the tax calculation using the second tax rate,
In response to receiving an instruction to execute the tax calculation using the first tax rate, in the second case, the second result based on the input numerical value and the second numerical value as the first tax rate A numerical value is displayed on the display unit as a numerical value obtained by the tax calculation using the first tax rate,
In response to receiving an instruction to execute the tax calculation using the second tax rate, in the second case, a third result based on the input numerical value and the second numerical value as the second tax rate A numerical value is displayed on the display unit as a numerical value of the result obtained by the tax calculation using the second tax rate, wherein the numerical value of the third result is the same as the numerical value of the second result The electronic device according to claim 19 , wherein the electronic device is calculated as a numerical value.
前記制御部は、
電池交換されたことに応じて、前記初期化処理を実行する、請求項13乃至請求項20の何れか一項記載の電子機器。
The controller is
21. The electronic device according to any one of claims 13 to 20 , wherein the initialization process is executed in response to battery replacement.
前記電子機器は計算機である、請求項13乃至請求項21の何れか一項記載の電子機器。 The electronic device according to any one of claims 13 to 21 , wherein the electronic device is a computer. 第1計算を実行可能な制御部を有する電子機器により実行される設定方法であって、
前記設定方法は、
初期化処理を伴う前記電子機器の起動処理が、当該電子機器の工場検査処理の実行後、最初に実行される第1の場合、当該初期化処理を伴う前記電子機器の起動中に、前記第1計算に用いる数値を第1数値に設定し、
前記初期化処理を伴う前記電子機器の起動処理が、前記工場検査処理の実行後、2回目以降に実行される第2の場合、当該初期化処理を伴う前記電子機器の起動中に、前記第1計算に用いる数値を前記第1数値とは異なる第2数値に設定する処理を実行する、
ことを含む、設定方法。
A setting method executed by an electronic device having a control unit capable of executing a first calculation,
The setting method is as follows:
In the first case where the startup process of the electronic device accompanied by the initialization process is first executed after the factory inspection process of the electronic device is performed, during the startup of the electronic device accompanied by the initialization process, Set the numerical value used for one calculation to the first numerical value,
In the second case where the startup process of the electronic device accompanied by the initialization process is executed after the factory inspection process is performed for the second time or later, during the startup of the electronic device accompanied by the initialization process, A process of setting a numerical value used for one calculation to a second numerical value different from the first numerical value;
A setting method including that.
第1計算を実行可能な制御部を有する電子機器により実行される設定方法であって、 前記設定方法は、
前記電子機器の工場検査処理の実行後に、前記工場検査処理を実行済みであることを示す第1情報を、前記電子機器の記憶部に記憶させ、
前記電子機器の初期化処理の際、前記第1計算に用いる数値を、第2数値に設定し、 前記第1情報が前記記憶部に記憶されていると、前記初期化処理を伴う前記電子機器の起動中に判定される第1の場合、前記第1計算に用いる数値を、前記第2数値とは異なる第1数値に設定し、かつ、前記工場検査処理を実行済みであることを示さない第2情報を、前記第1情報の代わりに、前記記憶部に記憶させ、
前記第1情報が前記記憶部に記憶されていないと、前記初期化処理を伴う前記電子機器の起動中に判定される第2の場合、前記第1計算に用いる数値を、前記第2数値のままに維持する、
ことを含む、設定方法。
A setting method executed by an electronic device having a control unit capable of executing a first calculation, wherein the setting method includes:
After the execution of the factory inspection process of the electronic device, the first information indicating that the factory inspection process has been performed is stored in the storage unit of the electronic device,
When the electronic device is initialized, a numerical value used for the first calculation is set to a second numerical value. When the first information is stored in the storage unit, the electronic device is accompanied by the initialization process. In the first case that is determined during the start-up, the numerical value used for the first calculation is set to a first numerical value different from the second numerical value, and the factory inspection process has not been executed. Second information is stored in the storage unit instead of the first information,
If the first information is not stored in the storage unit, the second numerical value used for the first calculation is determined as the second numerical value in the second case that is determined during the activation of the electronic device with the initialization process. Keep it,
A setting method including that.
前記設定方法は、
前記第1計算とは異なる第2計算を実行可能であり、
前記第1の場合、前記初期化処理を伴う前記電子機器の起動中に、前記第2計算に用いる数値を前記第1数値とは異なる第3数値に設定し、
前記第2の場合、前記初期化処理を伴う前記電子機器の起動中に、前記第2計算に用いる数値を前記第2数値に設定する、
ことを含む、請求項23又は請求項24記載の設定方法。
The setting method is as follows:
A second calculation different from the first calculation can be performed;
In the first case, the numerical value used for the second calculation is set to a third numerical value different from the first numerical value during startup of the electronic device with the initialization process,
In the second case, a numerical value used for the second calculation is set to the second numerical value during startup of the electronic device with the initialization process.
The setting method of Claim 23 or Claim 24 including this.
前記設定方法は、
前記第1計算とは異なる第2計算を実行可能であり、
前記初期化処理中に、前記第2計算に用いる数値を前記第2数値に設定し、
前記初期化処理を伴う前記電子機器の起動中に、
前記第1の場合、前記第2計算に用いる数値を第3数値に設定し、
前記第2の場合、前記第2計算に用いる数値を前記第2数値のままに維持する、
ことを含む、請求項23又は請求項24記載の設定方法。
The setting method is as follows:
A second calculation different from the first calculation can be performed;
During the initialization process, the numerical value used for the second calculation is set to the second numerical value,
During startup of the electronic device with the initialization process,
In the first case, the numerical value used for the second calculation is set to a third numerical value,
In the second case, the numerical value used for the second calculation is maintained as the second numerical value.
The setting method of Claim 23 or Claim 24 including this.
前記設定方法は、
前記第1計算として、第1税率を用いた税計算を実行可能であり、
前記第1の場合、前記第1税率を前記第1数値に設定し、
前記第2の場合、前記第1税率を前記第1数値に設定する、
ことを含む、請求項25又は請求項26記載の設定方法。
The setting method is as follows:
As the first calculation, a tax calculation using a first tax rate can be executed,
In the first case, the first tax rate is set to the first numerical value,
In the second case, the first tax rate is set to the first numerical value.
27. The setting method according to claim 25 or claim 26 , further comprising:
前記電子機器はさらに表示部を備え、
前記設定方法は、
数値の入力操作および前記第1税率を用いた前記税計算の実行指示の両方を受け付けたことに応じて、入力された前記数値と、第1税率として設定された前記第1数値および前記第2数値の何れかの数値とに基づく前記第1税率を用いた前記税計算を実行することで、前記第1税率を用いた前記税計算の結果の数値を取得し、
前記第1税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第1の場合、入力された前記数値および前記第1税率としての前記第1数値に基づく第1の結果の数値を、前記第1税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示し、
前記第1税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第2の場合、入力された前記数値および前記第1税率としての前記第2数値に基づく第2の結果の数値を、前記第1税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示する、
ことを含む、請求項27に記載の設定方法。
The electronic device further includes a display unit,
The setting method is as follows:
In response to receiving both the numerical value input operation and the tax calculation execution instruction using the first tax rate, the input numeric value, the first numerical value set as the first tax rate, and the second tax rate By executing the tax calculation using the first tax rate based on any one of the numerical values, obtain a numerical value as a result of the tax calculation using the first tax rate,
In response to receiving an instruction to execute the tax calculation using the first tax rate, in the first case, the first result based on the input numerical value and the first numerical value as the first tax rate A numerical value is displayed on the display unit as a numerical value obtained by the tax calculation using the first tax rate,
In response to receiving an instruction to execute the tax calculation using the first tax rate, in the second case, the second result based on the input numerical value and the second numerical value as the first tax rate A numerical value is displayed on the display unit as a numerical value obtained as a result of the tax calculation using the first tax rate.
The setting method according to claim 27 , further comprising:
前記設定方法は、
前記第2計算として、第2税率を用いた税計算を実行可能であり、
前記第1の場合、前記第2税率を前記第3数値に設定し、
前記第2の場合、前記第2税率を前記第2数値に設定する、
ことを含む、請求項28に記載の設定方法。
The setting method is as follows:
As the second calculation, a tax calculation using a second tax rate can be executed,
In the first case, the second tax rate is set to the third numerical value,
In the second case, the second tax rate is set to the second numerical value.
Comprising, setting method of claim 28.
前記設定方法は、
数値の入力操作および前記第1税率を用いた前記税計算の実行指示の両方を受け付けたことに応じて、入力された前記数値と、第1税率として設定された前記第1数値および前記第2数値の何れかの数値とに基づく前記第1税率を用いた前記税計算を実行することで、前記第1税率を用いた前記税計算の結果の数値を取得し、
数値の入力操作および前記第2税率を用いた前記税計算の実行指示の両方を受け付けたことに応じて、入力された前記数値と、第2税率として設定された前記第3数値および前記第2数値の何れかの数値とに基づく前記第2税率を用いた前記税計算を実行することで、前記第2税率を用いた前記税計算の結果の数値を取得し、
前記第1税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第2の場合、入力された前記数値および前記第1税率としての前記第2数値に基づく第2の結果の数値を、前記第1税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示し、
前記第2税率を用いた前記税計算の実行指示を受け付けたことに応じて、前記第2の場合、入力された前記数値および前記第2税率としての前記第2数値に基づく第3の結果の数値を、前記第2税率を用いた前記税計算により取得された結果の数値として、前記表示部に表示する、ここで、前記第3の結果の数値は、前記第2の結果の数値と同じ数値として算出される、
ことを含む、請求項29に記載の設定方法。
The setting method is as follows:
In response to receiving both the numerical value input operation and the tax calculation execution instruction using the first tax rate, the input numeric value, the first numerical value set as the first tax rate, and the second tax rate By executing the tax calculation using the first tax rate based on any one of the numerical values, obtain a numerical value as a result of the tax calculation using the first tax rate,
In response to receiving both the numerical value input operation and the execution instruction of the tax calculation using the second tax rate, the input numerical value, the third numerical value set as the second tax rate, and the second tax rate By executing the tax calculation using the second tax rate based on any one of the numerical values, obtain a numerical value as a result of the tax calculation using the second tax rate,
In response to receiving an instruction to execute the tax calculation using the first tax rate, in the second case, the second result based on the input numerical value and the second numerical value as the first tax rate A numerical value is displayed on the display unit as a numerical value obtained by the tax calculation using the first tax rate,
In response to receiving an instruction to execute the tax calculation using the second tax rate, in the second case, a third result based on the input numerical value and the second numerical value as the second tax rate A numerical value is displayed on the display unit as a numerical value of the result obtained by the tax calculation using the second tax rate, wherein the numerical value of the third result is the same as the numerical value of the second result Calculated as a number,
The setting method according to claim 29 , further comprising:
前記設定方法は、
前記電子機器が電池交換されたことに応じて、前記初期化処理が実行される、
ことを含む、請求項23乃至請求項30の何れか一項記載の設定方法。
The setting method is as follows:
In response to the battery exchange of the electronic device, the initialization process is executed.
The setting method according to any one of claims 23 to 30 , further comprising:
前記設定方法は、前記電子機器としての計算機により実行される、
請求項23乃至請求項30の何れか一項記載の設定方法。
The setting method is executed by a computer as the electronic device.
The setting method according to any one of claims 23 to 30 .
第1計算を実行可能な電子機器のコンピュータによって、
初期化処理を伴う前記電子機器の起動処理が、当該電子機器の工場検査処理の実行後、最初に実行される第1の場合、当該初期化処理を伴う前記電子機器の起動中に、前記第1計算に用いる数値を第1数値に設定させ、
前記初期化処理を伴う前記電子機器の起動処理が、前記工場検査処理の実行後、2回目以降に実行される第2の場合、当該初期化処理を伴う前記電子機器の起動中に、前記第1計算に用いる数値を前記第1数値とは異なる第2数値に設定する処理を実行させる、
ためのプログラム。
By an electronic computer capable of performing the first calculation,
In the first case where the startup process of the electronic device accompanied by the initialization process is first executed after the factory inspection process of the electronic device is performed, during the startup of the electronic device accompanied by the initialization process, The numerical value used for one calculation is set to the first numerical value,
In the second case where the startup process of the electronic device accompanied by the initialization process is executed after the factory inspection process is performed for the second time or later, during the startup of the electronic device accompanied by the initialization process, A process of setting a numerical value used for one calculation to a second numerical value different from the first numerical value is executed;
Program for.
第1計算を実行可能な電子機器のコンピュータによって、
前記電子機器の工場検査処理の実行後に、前記工場検査処理を実行済みであることを示す第1情報を、前記電子機器の記憶部に記憶させ、
前記電子機器の初期化処理の際、前記第1計算に用いる数値を、第2数値に設定させ、 前記第1情報が前記記憶部に記憶されていると、前記初期化処理を伴う前記電子機器の起動中に判定される第1の場合、前記第1計算に用いる数値を、前記第2数値とは異なる第1数値に設定させ、かつ、前記工場検査処理を実行済みであることを示さない第2情報を、前記第1情報の代わりに、前記記憶部に記憶させ、
前記第1情報が前記記憶部に記憶されていないと、前記初期化処理を伴う前記電子機器の起動中に判定される第2の場合、前記第1計算に用いる数値を、前記第2数値のままに維持させる、
ためのプログラム。
By an electronic computer capable of performing the first calculation,
After the execution of the factory inspection process of the electronic device, the first information indicating that the factory inspection process has been performed is stored in the storage unit of the electronic device,
When the electronic device is initialized, a numerical value used for the first calculation is set to a second numerical value. When the first information is stored in the storage unit, the electronic device is accompanied by the initialization process. In the first case, which is determined during startup, the numerical value used for the first calculation is set to a first numerical value different from the second numerical value, and the factory inspection process has not been executed. Second information is stored in the storage unit instead of the first information,
If the first information is not stored in the storage unit, the second numerical value used for the first calculation is determined as the second numerical value in the second case that is determined during the activation of the electronic device with the initialization process. Let it remain,
Program for.
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 true JP6593505B1 (en) 2019-10-23
JP2020042455A 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7416174B2 (en) 2020-09-17 2024-01-17 カシオ計算機株式会社 Electronic devices, input support methods and programs

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6512948B2 (en) * 2015-05-29 2019-05-15 キヤノン株式会社 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7416174B2 (en) 2020-09-17 2024-01-17 カシオ計算機株式会社 Electronic devices, input support methods and programs

Also Published As

Publication number Publication date
JP2020042455A (en) 2020-03-19

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
JP6635132B2 (en) Tax calculator, tax calculation method and tax calculation program
JP7487755B2 (en) calculator
US20180089766A1 (en) Calculating device, control method, and recording medium
JP6620907B1 (en) Computer, setting method, and program
JP7383902B2 (en) Calculators, calculation methods, and programs
JP6915669B2 (en) Tax calculator, tax calculation method, and tax calculation program
JP7416138B2 (en) Calculator, setting support method and program
JP7031691B2 (en) Electronics, control methods, and programs
JP7163705B2 (en) Calculators, calculation methods, and programs
JP6528483B2 (en) Computation processing device and program
JP7487828B2 (en) Electronic device, calculation support method and program
JP7279355B2 (en) Calculator, display method, and program
JP6485144B2 (en) Computer processing apparatus and program
JP7500934B2 (en) Computer, calculation method, and program
JP2018005530A (en) Calculation device, calculation device and program
JP5381152B2 (en) Formula arithmetic device and program
JP2021092973A (en) Electronic apparatus, control method for electronic apparatus, and control program for electronic apparatus
JP2014067116A (en) Electronic desk-top calculator
JP2021166097A (en) Computing apparatus, print control method, and program

Legal Events

Date Code Title Description
A521 Written amendment

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 Written amendment

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