JP2020173785A - Electronic apparatus, control method, and program - Google Patents

Electronic apparatus, control method, and program Download PDF

Info

Publication number
JP2020173785A
JP2020173785A JP2020029303A JP2020029303A JP2020173785A JP 2020173785 A JP2020173785 A JP 2020173785A JP 2020029303 A JP2020029303 A JP 2020029303A JP 2020029303 A JP2020029303 A JP 2020029303A JP 2020173785 A JP2020173785 A JP 2020173785A
Authority
JP
Japan
Prior art keywords
electronic device
tax
mode
default
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020029303A
Other languages
Japanese (ja)
Other versions
JP2020173785A5 (en
JP7031691B2 (en
Inventor
博明 吉澤
Hiroaki Yoshizawa
博明 吉澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Publication of JP2020173785A publication Critical patent/JP2020173785A/en
Publication of JP2020173785A5 publication Critical patent/JP2020173785A5/ja
Application granted granted Critical
Publication of JP7031691B2 publication Critical patent/JP7031691B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

To provide an electronic apparatus capable of setting to a desired processing mode corresponding to a situation.SOLUTION: An electronic apparatus includes a control unit (CPU 21) that can execute calculation corresponding to a set calculation mode. The control unit executes a default mode setting process of setting a processing mode to a default processing mode, and does not change the processing mode even if a default operation for changing the processing mode is executed at least in a period until the electronic apparatus is turned off first after the execution of the default mode setting process is completed.SELECTED DRAWING: Figure 2

Description

本発明は、電子機器、制御方法、及びプログラムに関する。 The present invention relates to electronic devices, control methods, and programs.

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

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

税計算機は、工場検査後に既定の計算モードへ設定され、この状態で出荷される。この場合、工場検査後、オートパワーオフによって最初に電源オフされるまでの間の電源オン中に梱包作業が行われ、その後、税計算機が梱包状態の間にオートパワーオフによって電源オフする。これにより、出荷後にユーザが開梱し、電源を最初にオンにしたときには、電源オフ時に設定されていた、既定の計算モードで計算機が起動されるようにしている。 The tax calculator is set to the default calculation mode after the factory inspection and shipped in this state. In this case, after the factory inspection, the packing work is performed during the power-on until the power is first turned off by the auto power-off, and then the tax calculator is powered off by the auto power-off during the packing state. As a result, when the user unpacks the computer after shipment and turns on the power for the first time, the computer is started in the default calculation mode that was set when the power was turned off.

ところが、従来では、ユーザが開梱する前、例えば、工場検査後に行われる梱包作業の際、税計算機の電源がオンである間に、計算モードを切り替えるキーへの接触により、既定とは異なる計算モードへ切り替わる場合があった。その後、税計算機が梱包状態の間に、既定とは異なる計算モードのまま、オートパワーオフによって電源オフするが、ユーザが開梱し、電源を最初にオンにしたときには、電源オフ時に設定されていた、既定の計算モードとは異なる計算モードで起動する。この場合、ユーザが開梱し、電源を最初にオンにしたときには、既定の計算モードで計算機を起動させる、という本来の意図通りの動作とは、異なってしまう。上述のような問題は、税計算機に限らず、電子機器全般において、その梱包作業の前に、電子機器の処理モードを既定の処理モードへ設定し、その後梱包作業を行うような場合にも生じるおそれがあった。 However, in the past, during the packing work performed before the user unpacks, for example, after the factory inspection, the calculation is different from the default due to the contact with the key for switching the calculation mode while the power of the tax calculator is on. There was a case of switching to the mode. After that, while the tax calculator is in the packing state, it is powered off by auto power off in a calculation mode different from the default, but when the user unpacks and powers on for the first time, it is set at power off. Also, start in a calculation mode different from the default calculation mode. In this case, when the user unpacks and turns on the power for the first time, the operation is different from the originally intended operation of starting the computer in the default calculation mode. The above-mentioned problems occur not only in tax calculators but also in electronic devices in general, when the processing mode of electronic devices is set to the default processing mode before the packing work and then the packing work is performed. There was a risk.

また、工場検査処理に限らず、電子機器全般における設定初期化処理や再起動処理に応じて当該機器を既定の処理モードへ設定したり、電子機器が実行可能な機能のうち一部の機能が利用制限された制限モードを設定する処理を実行したことに応じて当該機器を制限モードへ設定したりした後のある期間は、その設定された各種の処理モードを保持しておくことが好ましい場合がある。その場合でも、その後、当該機器の電源がいったんオフされた後にオンして以降は、設定されていた各種の処理モードを解除してよい場合がある。 In addition, not limited to factory inspection processing, the device can be set to the default processing mode according to the setting initialization processing and restart processing of all electronic devices, and some of the functions that can be executed by electronic devices can be performed. When it is preferable to retain the various processing modes that have been set for a certain period after the device is set to the restricted mode in response to the execution of the process for setting the restricted mode. There is. Even in that case, after that, after the power of the device is turned off and then turned on, various set processing modes may be canceled.

上記の課題を解決するために、本発明の電子機器は、設定された処理モードに応じた処理を実行可能な制御部を備える電子機器であって、前記制御部は、前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでのある期間は少なくとも、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない。 In order to solve the above problems, the electronic device of the present invention is an electronic device including a control unit capable of executing processing according to a set processing mode, and the control unit defines the processing mode. Setting to the processing mode The default mode setting process is executed, and after the execution of the default mode setting process is completed, at least for a certain period until the electronic device is first turned off, the default for changing the process mode. The processing mode is not changed even if the operation of is executed.

本実施形態における税計算機の外観構成を示す正面図。The front view which shows the 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. 本実施形態における電卓10の工場出荷前に実行される処理を示すフローチャート。The flowchart which shows the process executed before the factory shipment of the calculator 10 in this embodiment. 本実施形態における電卓10の第1の制御方法を説明するためのフローチャート。The flowchart for demonstrating the 1st control method of the calculator 10 in this embodiment. 図4のフローチャートに示す切替キー処理の詳細を示すフローチャート。The flowchart which shows the detail of the switching key processing shown in the flowchart of FIG. 図4のフローチャートに示す切替キー処理の詳細を示すフローチャート。The flowchart which shows the detail of the switching key processing shown in the flowchart of FIG. 具体的な処理内容を説明するためのキー操作と表示例を示す図。The figure which shows the key operation and display example for explaining the specific processing content. 本実施形態における第2の制御方法によるキー入力待処理について示すフローチャート。The flowchart which shows the key input waiting process by the 2nd control method in this Embodiment. 図8のフローチャート中のAPO処理を示すフローチャート。The flowchart which shows the APO processing in the flowchart of FIG. 具体的な処理内容を説明するためのキー操作と表示例を示す図。The figure which shows the key operation and display example for explaining the specific processing content. 本実施形態における第3の制御方法によるキー入力待処理について示すフローチャート。The flowchart which shows the key input waiting process by the 3rd control method in this Embodiment. 本実施形態における[AC]キー処理を示すフローチャート。The flowchart which shows the [AC] key processing 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 as an electronic device 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 to being configured as a calculator 10, the tax calculator is a personal computer (with a calculation processing program implemented) having a calculation function, a tablet computer, a smartphone, a mobile phone, a touch panel PDA (personal digital assistants), an electronic book, and the like. It can be configured as a portable game machine or the like. 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 a calculation process according to a key operation 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 calculating taxes 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 tax. Therefore, the calculator 10 in the present embodiment is suitable for tax calculation in India and the like to calculate the total amount of products in which a plurality of consumption taxes of 5 types or less are mixed.

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

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

税計算キー([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 keys ([GST + 2 (TAX-2)]) 11b2, tax 3 calculation keys ([GST + 3 (TAX-3)]) 11b3, tax 4 calculation keys ([GST + 4 (TAX-4)]) 11b4 are included. The tax 0 calculation key ([GST + 0 (TAX-0)]) 11b0 is operated to input an execution instruction for tax calculation 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 execution instruction of tax calculation using tax rate 1, tax rate 2, tax rate 3, and tax rate 4, respectively. In the present specification, when the tax calculation key ([GST + n (TAX-n)]) 11b is expressed as described above, "n" is used instead of each numerical value from 0 to 4. In the present specification, not only the tax calculation key 11b but also any numerical value (integer of 0 to 4) that "n" can take is not particularly limited, and a specific numerical value is not specified. Instead, "n" will be 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 key 11b to 11b4) also serves as a tax-included calculation key [GST + n] and a tax-excluded calculation key [TAX-n]. The tax calculation key 11b (tax n calculation keys 11b to 11b4) is a tax calculation key [GST + n] or a tax calculation key [GST + n] or a tax calculation key [GST + n] or It is used as a tax-excluded calculation key [TAX-n]. By sharing one tax calculation key 11b as the tax-included calculation key [GST + n] and the tax-excluded calculation key [TAX-n], the limited front area of the housing can be effectively used, and a plurality (5 types) can be used. There are keys that can execute tax-included calculation processing and tax-excluded calculation processing corresponding to each tax rate.

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

本実施形態における電卓10は、工場出荷前に電池交換された場合には、複数の税計算キー11b(税n計算キー11b0〜11b4)に対して、工場検査プログラム(税率自動設定プログラム)によって、予め設定された税率を設定する税率自動設定処理を実行する。これにより、工場出荷前における税計算キー11bに対する税率設定作業を効率化している。一方、電卓10は、工場出荷後のユーザの利用時に電池交換された場合には、税計算キー11bに設定された税率が電池交換前とは異なることが容易にわかる税率を設定する。本実施形態では、ユーザ使用時の電池交換時には、税計算キー11bに設定された税率を例えば「0%」に設定する(税率設定クリア)。これにより、税計算キー11bの操作により税計算を実行しても、入力した数値と税計算後の数値が同じとなり、税計算キー11bに対して既定の税率が設定されていないことを容易に認識することができる。 In the calculator 10 of the present embodiment, when the battery is replaced before shipment from the factory, the factory inspection program (tax rate automatic setting program) is applied to the plurality of tax calculation keys 11b (tax n calculation keys 11b to 11b4). Executes the tax rate automatic setting process that sets the preset tax rate. As a result, the tax rate setting work for the tax calculation key 11b before shipment from the factory is streamlined. On the other hand, the calculator 10 sets a tax rate that makes it easy to see that the tax rate set in the tax calculation key 11b is different from that before the battery replacement when the battery is replaced at the time of use by the user after shipment from the factory. In the present embodiment, when the battery is replaced during 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 the tax calculation is executed by the operation of the tax calculation key 11b, the input value and the value after the tax calculation are the same, and it is easy that the default tax rate is not set for the tax calculation key 11b. Can be recognized.

また、本実施形態における電卓10は、工場検査後に出荷され、ユーザが開梱し、電源を最初にオンにしたときに、確実に既定の計算モードで起動されるようにするための制御処理を実行する。電卓10の制御部は、工場検査後に、第1の制御方法、第2の制御方法、あるいは第3の制御方法の何れかを実行することで、出荷後に確実に既定の計算モードで起動されるようにする。 Further, the calculator 10 in the present embodiment is shipped after the factory inspection, and when the user unpacks the calculator 10 and turns on the power for the first time, a control process is performed to ensure that the calculator 10 is started in the default calculation mode. Execute. The control unit of the calculator 10 is surely started in the default calculation mode after shipment by executing any of the first control method, the second control method, or the third control method after the factory inspection. To do so.

第1の制御方法では、制御部は、工場出荷前に、ある処理(工場検査処理)を実行した場合、計算モード(税計算モード)を既定の計算モード(例えば、税込み計算モード)へ設定し、ある処理の実行終了後、最初に電源がオフになるまでのある期間は少なくとも、計算モードを変更するための既定の操作(例えば、税計算モード切替キー11dの通常操作)が実行されても、計算モードを変更せず、既定の計算モードのまま保持するための制御をする。 In the first control method, when the control unit executes a certain process (factory inspection process) before shipping from the factory, the control unit sets the calculation mode (tax calculation mode) to the default calculation mode (for example, tax-included calculation mode). Even if the default operation for changing the calculation mode (for example, the normal operation of the tax calculation mode switching key 11d) is executed at least for a certain period after the execution of a certain process is completed until the power is first turned off. , Controls to keep the default calculation mode without changing the calculation mode.

第2の制御方法では、制御部は、ある処理(工場検査処理)を実行した場合、計算モードを既定の計算モード(例えば、税込み計算モード)へ設定し、ある処理の実行終了後、最初に電卓10の電源がオフになるとき、計算モードを既定の計算モードへ再度設定する計算モード設定処理を実行する。そして、制御部は、ある処理の実行終了後、2回目以降に電卓10の電源がオフになるとき、既定の計算モードへ再度設定する計算モード設定処理を実行せず、電源がオフになる前の操作によって設定された計算モード(電子機器の電源がオフになるときの処理モード)を保持する。 In the second control method, when a certain process (factory inspection process) is executed, the control unit sets the calculation mode to the default calculation mode (for example, the calculation mode including tax), and first after the execution of the certain process is completed. When the power of the calculator 10 is turned off, the calculation mode setting process for resetting the calculation mode to the default calculation mode is executed. Then, when the power of the calculator 10 is turned off for the second time or later after the execution of a certain process is completed, the control unit does not execute the calculation mode setting process for resetting to the default calculation mode, and before the power is turned off. Holds the calculation mode (processing mode when the power of the electronic device is turned off) set by the operation of.

第3の制御方法では、制御部は、ある処理(工場検査処理)を実行した場合、計算モードを既定の計算モード(例えば、税込み計算モード)へ設定し、ある処理の実行終了後、最初に電卓10の電源がオフからオンになるとき、計算モードを既定の計算モードへ再度設定する計算モード設定処理を実行する。そして、制御部は、ある処理の実行終了後、2回目以降に電卓10の電源がオフからオンになるとき、既定の計算モードへ再度設定する計算モード設定処理を実行せず、電源がオフになる前の操作によって設定された計算モード(電子機器の電源がオフからオンになるときの処理モード)を保持する。 In the third control method, when a certain process (factory inspection process) is executed, the control unit sets the calculation mode to the default calculation mode (for example, the calculation mode including tax), and first after the execution of the certain process is completed. When the power of the calculator 10 is turned on from off, the calculation mode setting process for resetting the calculation mode to the default calculation mode is executed. Then, when the power of the calculator 10 is turned on from the second time after the execution of a certain process is completed, the control unit does not execute the calculation mode setting process for resetting to the default calculation mode, and the power is turned off. Holds the calculation mode (processing mode when the power of the electronic device is turned on from off) set by the operation before the operation.

第1の制御方法、第2の制御方法、第3の制御方法の詳細については後述する。なお、電卓10の制御部は、工場検査後に、第1の制御方法、第2の制御方法、あるいは第3の制御方法の何れかを実行することで、出荷後にユーザが最初に利用する際には既定の計算モードで起動するが、その後、ユーザ操作によって計算モードの変更がされた場合には、次に電源がオンになる時には、ユーザ操作によって設定された、前回、電源がオフになったときの計算モードで起動する。 Details of the first control method, the second control method, and the third control method will be described later. The control unit of the calculator 10 executes any of the first control method, the second control method, or the third control method after the factory inspection, so that the user can use the calculator 10 for the first time after shipment. Is started in the default calculation mode, but if the calculation mode is changed by user operation after that, the next time the power is turned on, the power was turned off last time, which was set by the user operation. Start in the calculation mode when.

税計算合計キー([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 is a grand total key ([GT] key) for displaying the grand total for ordinary calculations (basic calculations) such as four arithmetic operations and constant calculations, and tax calculation. It also serves as a GST grand total key ([GST GT] key) for displaying the total of the calculation results of. When the tax calculation total key 11c functions as the GST grand total key, the tax calculation is executed and the processing mode of the calculator 10 shifts to the tax total recall mode (GST GT recall mode). On the other hand, when the tax calculation total key 11c functions as the grand total key, the processing mode of the calculator 10 does not particularly change, and the numerical value stored in the total memory area 22h is simply called and displayed on the display unit 12. Will be 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 operating state immediately before the tax calculation total key 11c is operated. To do. That is, for example, when the tax calculation total key 11c is pressed immediately after the tax calculation is executed by the operation of the tax calculation key 11b, the tax calculation key 11b displays the total total 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 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). The pressing time of the tax calculation total key 11c here is shorter than an arbitrary predetermined time, and is shorter than the "long pressing" described below. Further, pressing for a short time is described in the present specification as "short pressing" or a normal pressing operation for convenience.

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

機能キーには、例えばオールクリアキー([AC]キー11a)、クリアキー([C]キー)、複数のメモリキー([MRC][M−][M+])、ルートキー([√]キー)、[%]キー11gなどが含まれる。[AC]キー11aは、通常の計算処理において、表示された数値をクリア(「0」表示)させるクリアキーと使用される。また、[AC]キー11aは、電卓10が電源オフの状態の場合には、電源オンするための電源オンキーとして使用される。なお、[AC]キー11aは、電卓10が電源オンの状態の場合には、他の予め決められたキー(例えば、[SHIFT]キー)と組み合わせた操作により電源オフするための電源オフキーとして使用することも可能である。さらに、[AC]キー11aは、工場出荷前に工場検査をするために設定された工場検査モードにある場合には、工場検査モードを終了させて通常の計算処理をする通常モードに移行させるためのモード切替キーとして使用される。[%]キー11gは、パーセント計算のために使用される他、税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに対応する税率をキー操作によって入力される値に設定するための税率設定処理を起動するために使用される。 The function keys include, for example, an all clear key ([AC] key 11a), a clear key ([C] key), a plurality of memory keys ([MRC] [M-] [M +]), and a root key ([√] key). ), [%] key 11g and the like are included. The [AC] key 11a is used as a clear key for clearing the displayed numerical value (displaying "0") in a normal calculation process. Further, the [AC] key 11a is used as a power-on key for turning on the power when the calculator 10 is in the power-off state. The [AC] key 11a is used as a power off key for turning off the power by an operation in combination with another predetermined key (for example, the [SHIFT] key) when the calculator 10 is in the power on state. It is also possible to do. Further, when the [AC] key 11a is in the factory inspection mode set for factory inspection before shipment from the factory, the factory inspection mode is terminated and the mode is shifted to the normal mode for performing normal calculation processing. It is used as a mode switching key for. The [%] key 11g is used for the percentage calculation, and the tax rate for setting the tax rate corresponding to each of the tax calculation keys 11b (tax n calculation keys 11b to 11b4) to the value input by the key operation. Used to initiate the configuration process.

検算機能キーは、先に実行された計算の内容について確認/修正するための検算機能において使用されるキーである。検算機能キーには、確認キー([CHECK BACK]キー11e、[CHECK FOWARD]キー11f)と、修正キー([CORRECT]キー)11kが含まれる。[CHECK BACK]キー11e及び[CHECK FOWARD]キー11fは、先に実行された計算の内容(計算データ)をステップ単位で切り替えて表示させるためのキーである。[CHECK BACK]キー11eが操作された場合、ステップ数が少ない方向のステップの計算データに表示を切り替え、[CHECK FOWARD]キー11fが操作された場合、ステップ数が多い方向のステップの計算データに表示を切り替える。なお、1ステップは、計算のために入力された「置数+ファンクション」が単位となる。「ファンクション」には、四則計算、税込み計算、税抜き計算などのために操作されたキーのコードが記憶される。修正キー11kは、[CHECK BACK]キー11eあるいは[CHECK FOWARD]キー11fの操作により表示された計算の内容(「置数+ファンクション」)の修正を指示するためのキーである。修正キー11kの操作後に修正後の計算の内容を入力することで、表示された先に入力された計算データを修正することができる。 The check function key is a key used in the check function for confirming / correcting the contents of the previously executed calculation. The check function key includes a confirmation key ([CHECK BACK] key 11e, [CHECK FOWARD] key 11f) and a correction key ([CORREC] 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 step units. When the [CHECK BACK] key 11e is operated, the display is switched to the calculation data of the step in the direction with a small number of steps, and when the [CHECK FORWARD] key 11f is operated, the calculation data of the step in the direction with a large number of steps is displayed. Switch the display. The unit of one step is "number + function" input for calculation. The "function" stores the code of the key operated for the four arithmetic operations, tax-included calculation, tax-excluded calculation, and the like. The correction key 11k is a key for instructing correction of the calculation content (“number + function”) displayed by the operation of the [CHECK BACK] key 11e or the [CHECK FOWARD] key 11f. By inputting the content of the calculated calculation after the operation of the correction key 11k, it is possible to correct the previously input calculation data displayed.

ラウンドセレクタ11yは、端数処理の計算方法を設定する。例えば、「F」設定は、表示部12に小数点以下を含む表示可能な最大桁の表示を指定する。「CUT」設定は、小数点セレクタ11zで指定された桁の切り捨てを指定する。「UP」設定は、小数点セレクタ11zで指定された桁の切り上げを指定する。「5/4」設定は、小数点セレクタ11zで指定した桁の四捨五入を指定する。小数点セレクタ11zは、小数点以下を何桁まで表示部12に表示させるかを設定する。なお、「ADD2」設定は、入力された数値に対して所定の桁数への小数点設定を指定する。 The round selector 11y sets the calculation method for rounding. For example, the "F" setting specifies the display of the maximum displayable digit including the decimal point on the display unit 12. The "CUT" setting specifies truncation of the digit specified by the decimal point selector 11z. The "UP" setting specifies the rounding up of the digit specified by the decimal point selector 11z. The "5/4" setting specifies rounding of the 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 "ADD2" setting specifies 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 includes a dot matrix type liquid crystal display unit. On the main display unit of the display unit 12, the numerical value input by the operation of the key of the key input unit 11 is displayed. Numerical values for a limited number of lines (for example, one line) are displayed on the main display unit of the display unit 12. Further, 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, the tax calculation mode symbol 12b, the tax calculation key symbol 12c, the tax total recall mode symbol 12d, the total total display symbol 12e, the memory symbol 12f, the setting symbol 12g, and the [%] symbol 12h. Etc. are displayed. In addition, in FIG. 1, in order to explain the state display area, all the symbols that can be displayed are shown for convenience on the same screen, but in any state that the calculator 10 can take, such 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 number of steps 12a indicates the position of the step currently to be displayed, with the "number + function" input by the operation of the key of the key input unit 11 as one step. The tax calculation mode symbol 12b indicates the current tax calculation mode. In the case of the tax-included calculation mode for executing the tax-included calculation, for example, [GST +] is displayed, and in the case of the tax-excluded calculation mode for executing the tax-excluded calculation. Displays, for example, [TAX-].

税計算キーシンボル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 the operation of the tax calculation key 11b. When the tax calculation key 11b is used as the tax calculation key [GST + n], one of [GST + 0], [GST + 1], [GST + 2], [GST + 3], and [GST + 4] corresponding to each of the tax rates 0 to 4 is displayed. Will be done. Further, when the tax calculation key 11b is used as the tax-excluded calculation key [TAX-n], [TAX-0], [TAX-1], [TAX-2], and [TAX-2] corresponding to the tax rates 0 to 4, respectively. Either TAX-3] or [TAX-4] is displayed.

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

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

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

[%]シンボル12hは、パーセント計算のために[%]キー11gが操作された場合、及び税率設定処理において[%]キー11gが操作された場合に表示されるシンボルであり、例えば[%]が表示される。 The [%] symbol 12h is a symbol displayed when the [%] key 11g is operated for percentage 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 electricity when the illuminance of the ambient ambient light when using the calculator 10 is bright to some extent. The solar panel 13 functions as a power supply unit 26 (shown in FIG. 2) of the calculator 10 during power generation, and supplies power to each unit of the calculator 10. When the solar panel 13 is not generating electricity, power is supplied to each part of the calculator 10 from a primary battery as a power supply unit 26 separately provided in the calculator 10.

なお、電卓10は、オートパワーオフ(APO:AUTO POWER OFF)機能が設けられている。電卓10は、APO機能によって、予め決められた時間(APO時間)、キー入力操作がなかった場合に、電源部26からの各部への給電を停止して電源オフ状態となる。 The calculator 10 is provided with an auto power off (APO: AUTO POWER OFF) function. The calculator 10 is turned off by stopping the power supply from the power supply unit 26 to each unit when there is no key input operation for a predetermined time (APO time) by the APO function.

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

CPU21は、メモリ22に記憶された工場検査プログラム22a、計算処理プログラム22bなどのプログラムを実行することにより、回路各部の動作を制御する制御部として機能する。キー入力部11への入力操作が行われると、CPU21は、キー入力部11からのキー入力信号により入力操作がされたキーを検出し、検出された各キーに応じた各種の計算処理を実行する。電卓10は、CPU21が工場検査プログラム22aあるいは計算処理プログラム22bに記述された命令に従い回路各部の動作を制御し、ソフトウェアとハードウェアとが協働して動作することにより、以下の動作説明で述べる起動時の処理、計算機能による処理などを実現する。制御部として機能するCPU21は、工場検査プログラム22aに基づいて、前述した第1の制御方法、第2の制御方法、あるいは第3の制御方法の何れかを実行する。第1の制御方法、第2の制御方法、あるいは第3の制御方法の何れを実行するかは、予め決められているものとする。 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 22a and the calculation processing program 22b stored in the memory 22. When the input operation to the key input unit 11 is performed, the CPU 21 detects the key for which the input operation is performed by the key input signal from the key input unit 11 and executes various calculation processes according to each detected key. To do. The calculator 10 is described in the following operation description by the CPU 21 controlling the operation of each part of the circuit according to the instruction described in the factory inspection program 22a or the calculation processing program 22b, and the software and the hardware operating in cooperation with each other. Realize processing at startup, processing by calculation function, etc. The CPU 21 functioning as a control unit executes any of the above-mentioned first control method, second control method, or third control method based on the factory inspection program 22a. Which of the first control method, the second control method, and the third control method is executed shall be determined in advance.

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

メモリ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 post-factory inspection flag (completion data) indicating whether or not the factory inspection processing by the factory inspection program 22a has been executed (processing completed). ) Is stored in the post-factory inspection flag area 22c. The post-factory inspection flag area 22c is a non-volatile storage area that can maintain the flag state after the factory inspection even when the power supply from the power supply unit 26 (solar panel 13) is stopped when the battery is replaced. ..

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

税率1合計メモリエリア、税率2合計メモリエリア、税率3合計メモリエリア、税率4合計メモリエリアは、前述した税率0合計メモリエリアと同様にして、それぞれの税率1〜4に基づいた税計算により算出されるデータを記憶するためのエリアである。詳細な説明については省略する。 Tax rate 1 total memory area, tax rate 2 total memory area, tax rate 3 total memory area, tax rate 4 total memory area are calculated by tax calculation based on each tax rate 1 to 4 in the same manner as the above-mentioned tax rate 0 total memory area. It is an area for storing the data to be stored. A detailed description will be 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 tax rates 0 to 4 set in each of the tax calculation keys 11b (tax n calculation keys 11b to 11b4) are stored. For example, the tax n calculation keys 11b to 11b4 are set with five types of tax rates (0%, 5%, 12%, 18%, 28%) at the time of factory shipment according to the use in India. In this case, in the tax rate storage area 22e, "0", "5", "12", "18", and "28" are set for each of the tax rates 0 to 4 corresponding to the tax n calculation keys 11b to 11b4. Numerical values are stored.

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

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

税合計リコールモードがオン状態の場合には、税計算合計キー11cが操作(押下)される毎に、税率別税合計メモリエリア22gに記憶された税込総合計額、税抜総合計額、税総合計額を切り替えて表示させることができる。また、税合計リコールモードがオン状態の場合には、税計算キー11b(税n計算キー11b0〜11b4)が操作(押下)される毎に、税率別税合計メモリエリア22dに記憶された、税込合計額、税抜合計額、税合計額を切り替えて表示させることができる。 When the total tax recall mode is on, each time the total tax calculation key 11c is operated (pressed), the total amount including tax, the total amount excluding tax, and the tax stored in the total memory area 22g of the total tax excluding tax rate. The total amount can be switched and displayed. In addition, when the total tax recall mode is on, each time the tax calculation key 11b (tax n calculation keys 11b to 11b4) is operated (pressed), the tax is stored in the tax total memory area 22d. The total amount, 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 numerical key and the calculation key of the key input unit 11 are input. Therefore, the normal calculation using the numerical key and the calculation key can be executed while displaying and confirming the result of the tax calculation by the input operation of the tax calculation total key 11c or the tax calculation key 11b (11b0 to 11b4). In the normal calculation in the on state of the tax total recall mode, the numerical value as the result of the tax calculation can be displayed on the display unit 12, and the four arithmetic operations can be executed on the figurative number 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 is in the tax-included calculation mode or the tax-excluded calculation mode, which is switched according to the 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, the number of units input so as to form a unit in combination with the last input function is stored. Further, in the display memory area 22p, the numerical value displayed on the display unit 12 at that time is stored. For example, when the numerical value "100" is sequentially operated as a number and the tax 1 calculation key ([GST + 1 (TAX-1)]) 11b1 is sequentially operated as a function by the operation of the numerical key, the number is set 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 set to 5%). if you did this). In this way, the numerical values stored in the buffer memory area 22n and the display memory area 22p are sequentially overwritten and updated according to the latest input operation.

次に、本実施形態における電卓10の動作について説明する。図3は、本実施形態における電卓10の工場出荷前に実行される処理を示すフローチャート、図4は、本実施形態における電卓10の第1の制御方法を説明するためのフローチャートである。図5及び図6は、図4のフローチャートに示す切替キー処理の詳細を示すフローチャートである。図7は、具体的な処理内容を説明するためのキー操作と表示例を示す図である。 Next, the operation of the calculator 10 in this embodiment will be described. FIG. 3 is a flowchart showing a process executed before the calculator 10 is shipped from the factory in the present embodiment, and FIG. 4 is a flowchart for explaining a first control method of the calculator 10 in the present embodiment. 5 and 6 are flowcharts showing the details of the switching key processing shown in the flowchart of FIG. FIG. 7 is a diagram showing a key operation and a display example for explaining a specific processing content.

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

本実施形態における電卓10は、工場検査処理により各種の動作チェックがされた後、電源部26における電池が新しいものに交換されてから、出荷される。工場検査前は、工場検査後フラグエリア22cの工場検査後フラグがオフとなっている。 The calculator 10 in the present embodiment is shipped after various operation checks are performed by a factory inspection process and the battery in the power supply unit 26 is replaced with a new one. Before the factory inspection, the post-factory inspection flag in the post-factory inspection flag area 22c is off.

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

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

次に、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 is not turned on after the factory inspection (step S3: No), the CPU 21 is in the standby state for the input operation.

ここで、キー入力部11に対する操作によって工場検査処理の実行が指示されると(ステップS5:Yes)、CPU21は、工場検査処理を実行する(ステップS6)。なお、工場検査処理の実行は、例えばユーザが電卓10を通常使用している場合には操作される可能性が極めて低い、例えば、複数のキー(例えば3キー以上)の組合せ、さらには長押しキー操作([AC]キー11aを長押しなど)を組合せて操作することで指示されるものとする。すなわち、工場検査処理は、出荷前の工場内のみで実行されるようにしている。具体的には、図7の(A)のキー操作に示すように、[+][5][M+]キーの同時押しと[AC]キー11aの長押しがされた場合に工場検査処理の実行が指示されたものと判別する。 Here, when the execution of the factory inspection process is instructed by the operation on the key input unit 11 (step S5: Yes), the CPU 21 executes the factory inspection process (step S6). The execution of the factory inspection process is extremely unlikely to be operated, for example, when the user normally uses the calculator 10, for example, a combination of a plurality of keys (for example, 3 or more keys), or a long press. It shall be instructed by operating in combination with key operations (such as pressing and holding the [AC] key 11a). That is, the factory inspection process is executed only in the factory before shipment. Specifically, as shown in the key operation of (A) in FIG. 7, when the [+] [5] [M +] keys are simultaneously pressed and the [AC] key 11a is pressed for a long time, the factory inspection process is performed. Determine that execution was instructed.

CPU21は、工場検査処理によって、電卓10を構成する各部が正常に動作しているかを確認するための動作を各ユニットに実行させる。例えば、CPU21は、表示部12を構成する液晶表示ユニットに対して、点灯、点滅、消灯などを実行させて動作チェックをする。具体的には、図7の(A)に示すように、表示部12のメイン表示部には「8888888888」、ステップ数12aには「188」を表示させ、シンボル表示については全点灯させる。従って、税計算モードシンボル12bには、税込み計算モードを示すシンボル[GST+]と税抜き計算モードを示すシンボル[TAX−]の両方を同時に表示させる。また、CPU21は、動作クロックを高速/低速に切り替えて、それぞれの動作状態をチェックする。その他、CPU21は、各ユニットの動作チェックを実行する。 The CPU 21 causes each unit to perform an operation for confirming whether or not each part constituting the calculator 10 is operating normally by a factory inspection process. For example, the CPU 21 causes the liquid crystal display unit constituting the display unit 12 to turn on, blink, turn off, and the like to check the operation. Specifically, as shown in FIG. 7A, "888888888" is displayed on the main display unit of the display unit 12, "188" is displayed on the number of steps 12a, and the symbol display is fully lit. Therefore, on the tax calculation mode symbol 12b, both the symbol [GST +] indicating the tax-included calculation mode and the symbol [TAX-] indicating the tax-excluded calculation mode are displayed at the same time. Further, the CPU 21 switches the operating clock between high speed and low speed, and checks each operating state. In addition, the CPU 21 executes an operation check of each unit.

ここで、CPU21は、[AC]キー11aの操作によって工場検査処理の終了が指示されると(ステップS7:Yes)、工場検査処理を終了するタイミングで計算モード設定処理を実行し、既定の税計算モードを設定する(ステップS9)。本実施形態では、既定の税計算モードを、例えば税込み計算モードとする。本実施形態では、このように、工場検査処理(予め定めた処理)を終了するタイミングで設定される税計算モード(処理モード)のことを、既定の税計算モード(既定の処理モード)と言う。この場合、CPU21は、税計算モードエリア22mに税込み計算モードを示す税計算モードデータを記憶させる。また、CPU21は、工場検査処理が実行済みであることを示すように、工場検査後フラグエリア22cの工場検査後フラグをオンする(ステップS10)。 Here, when the CPU 21 is instructed to end the factory inspection process by operating the [AC] key 11a (step S7: Yes), the CPU 21 executes the calculation mode setting process at the timing of ending the factory inspection process, and performs a default tax. The calculation mode is set (step S9). In the present embodiment, the default tax calculation mode is, for example, a tax-included calculation mode. In the present embodiment, the tax calculation mode (processing mode) set at the timing of ending the factory inspection processing (predetermined processing) is referred to as a default tax calculation mode (default processing mode). .. In this case, the CPU 21 stores the tax calculation mode data indicating the tax-included calculation mode in the tax calculation mode area 22m. Further, the CPU 21 turns on the post-factory inspection flag in the post-factory inspection flag area 22c so as to indicate that the factory inspection process has been executed (step S10).

CPU21は、[AC]キー11aの操作に応じて、例えば図7の(A)に示すように、メイン表示部には「0」、ステップ数12aには「0」を表示させ、税計算モードシンボル12bには税込み計算モードを示すシンボル「GST+]を表示させる(シンボル[TAX−]を消去)。 In response to the operation of the [AC] key 11a, the CPU 21 displays "0" on the main display unit and "0" on the number of steps 12a, as shown in (A) of FIG. 7, for example, in the tax calculation mode. The symbol "GST +" indicating the tax-included calculation mode is displayed on the symbol 12b (the symbol [TAX-] is deleted).

こうして、工場検査処理によって動作チェックした後、CPU21は、工場検査後フラグをオンし、キー入力待処理を実行する(ステップS11)。キー入力待処理の詳細については後述する。 In this way, after checking the operation by the factory inspection process, the CPU 21 turns on the flag after the factory inspection and executes the key input waiting process (step S11). The details of the key input waiting process will be described later.

一方、ステップS5において、工場検査処理の実行が指示されない場合(ステップS5:No)、CPU21は、計算処理プログラム22bによる通常の計算処理(以下、従来処理と説明する場合がある)を実行する(ステップS8)。CPU21は、キー入力部11に対するキー操作に応じた処理を実行する。 On the other hand, when the execution of the factory inspection process is not instructed in step S5 (step S5: No), the CPU 21 executes a normal calculation process (hereinafter, may be referred to as a conventional process) by the calculation process program 22b (hereinafter, may be described as a conventional process). Step S8). The CPU 21 executes processing according to a key operation on the key input unit 11.

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

CPU21は、電池交換に伴って起動されると(ステップS1:Yes)、再度、前述と同様にして、全初期化処理を実行する(ステップS2)。 When the CPU 21 is started by replacing the battery (step S1: Yes), the CPU 21 again executes the full initialization process in the same manner as described above (step S2).

次に、CPU21は、工場検査後フラグエリア22cを参照して、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグがオン)を示しているか、再度判別する(ステップS3)。この場合、前述の通り、工場検査処理を実行後、工場検査後フラグがオンに設定されるので(ステップS10)、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 post-factory inspection flag is set to on after the factory inspection process is executed (step S10), the CPU 21 determines that the post-factory inspection flag is on (step S3: Yes). , The tax rate automatic setting process is executed (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に記憶させる。税率記憶エリア22eが税率自動設定処理において設定される税率0〜4を示す数値は、例えば計算処理プログラム22aに予め設定されており、計算処理プログラム22aによる処理によって自動的に設定される。 In the tax rate automatic setting process, the CPU 21 sets preset tax rates 0 to 4 for each of the tax calculation keys 11b (tax n calculation keys 11b to 11b4). In the present embodiment, the CPU 21 sets "0" for each of the tax rates 0 to 4, according to the five types of tax rates (0%, 5%, 12%, 18%, 28%) used in India. The numerical values of "5", "12", "18", and "28" are stored in the tax rate 3 total memory area 22e. The numerical value indicating the tax rate 0 to 4 in which the tax rate storage area 22e is set in the tax rate automatic setting process is set in advance in the calculation processing program 22a, for example, and is automatically set by the processing by the calculation processing program 22a.

従って、電卓10を工場から出荷する前に、工場検査処理を実行した場合には、操作者が電卓10に対してキー操作などをして、複数の税計算キー11b(税n計算キー11b0〜11b4)のそれぞれに対して、既定の初期値とする税率を設定する作業をしなくても、複数の税計算キー11bに対して既定の税率0〜4が設定された状態となる。また、この状態では、税計算キー11bに対して既定の税率が設定されているため、税計算キー11bの操作により既定の税計算をすることができる。 Therefore, if the factory inspection process is executed before the calculator 10 is shipped from the factory, the operator performs a key operation on the calculator 10 to perform a plurality of tax calculation keys 11b (tax n calculation keys 11b0 to 0). Even if the work of setting the tax rate as the default initial value is not performed for each of 11b4), the default tax rates 0 to 4 are set for the plurality of tax calculation keys 11b. Further, in this state, since the default tax rate is set for the tax calculation key 11b, the default tax calculation can be performed by operating the tax calculation key 11b.

CPU21は、税率自動設定処理を完了した後、キー入力待処理を実行する(ステップS11)。詳しくは後述するが、キー入力待処理では、工場検査後、APO機能により最初に電源がオフされる時に工場検査後フラグエリア22cの工場検査後フラグをオフするか(図4のステップA4、図9のステップE3)、または、工場検査後、APO機能により最初に電源オフした後に、最初に電源がオンされる時に工場検査後フラグエリア22cの工場検査後フラグをオフする(図12のステップG5)。これにより、電卓10は、出荷後に最初にユーザにより使用される際には、工場検査後フラグエリア22cの工場検査後フラグがオフとなる。また、工場検査後フラグをオンする処理(ステップS10)は、工場検査処理後のみに実行され、工場検査処理(ステップS6)は、出荷後には通常実行されない。従って、電卓10が出荷後、ユーザ使用時には、工場検査後フラグをオンされることがない。したがって、出荷後、ユーザが電池交換を行った場合には、工場検査後フラグはオンではないので(ステップS3:No)、CPU21は、税率自動設定処理を実行せず、入力操作の待機状態となる。その後の処理は、前述と同様である。 After completing the tax rate automatic setting process, the CPU 21 executes the key input waiting process (step S11). As will be described in detail later, in the key input waiting process, when the power is first turned off by the APO function after the factory inspection, the post-factory inspection flag in the post-factory inspection flag area 22c is turned off (step A4 in FIG. 4, FIG. Step E3) of 9 or, after the factory inspection, the power is first turned off by the APO function, and then the post-factory inspection flag in the post-factory inspection flag area 22c is turned off when the power is first turned on (step G5 in FIG. 12). ). As a result, when the calculator 10 is first used by the user after shipment, the post-factory inspection flag in the post-factory inspection flag area 22c is turned off. Further, the process of turning on the flag after the factory inspection (step S10) is executed only after the factory inspection process, and the factory inspection process (step S6) is not normally executed after the shipment. Therefore, after the calculator 10 is shipped and used by the user, the flag is not turned on after the factory inspection. Therefore, when the user replaces the battery after shipment, the flag is not turned on after the factory inspection (step S3: No), so that the CPU 21 does not execute the tax rate automatic setting process and waits for the input operation. Become. Subsequent processing is the same as described above.

次に、本実施形態における第1の制御方法によるキー入力待処理について、図4に示すフローチャートを参照しながら説明する。 Next, the key input waiting process according to the first control method in the present embodiment will be described with reference to the flowchart shown in FIG.

CPU21は、工場検査処理後にキー入力がある場合(ステップA1:Yes)、CPU21は、後述するAPOカウンタをリセットしてから(ステップA10)、電源オフキー(例えば、[AC]キー11aと他の特定のキーとの組合せや、図示しない電源オフするための専用キー)の操作であるか判別する(ステップA6)。なお、電卓10が電源オフキーにより電源オフする機能を設けない場合には、APOカウンタをリセットした後(ステップA10)、電源オフキーの操作を判別する処理を省略し、ステップA7の処理へ移行する。 When the CPU 21 has a key input after the factory inspection process (step A1: Yes), the CPU 21 resets the APO counter described later (step A10), and then the power off key (for example, the [AC] key 11a and other identifications). It is determined whether the operation is a combination with the key of (step A6) or an operation (a dedicated key for turning off the power (not shown)). If the calculator 10 does not have a function of turning off the power by the power off key, after resetting the APO counter (step A10), the process of determining the operation of the power off key is omitted, and the process proceeds to step A7.

CPU21は、電源オフキーの操作でないと判別される場合(ステップA6:No)、税計算モード切替キー11d([GST+/TAX−])の操作であるか判別する(ステップA7)。税計算モード切替キー11dの操作でないと判別される場合(ステップA7:No)、CPU21は、キー入力に応じた処理(従来処理)を実行する(ステップA9)。 When it is determined that the operation is not the power off key operation (step A6: No), the CPU 21 determines whether the operation is the tax calculation mode switching key 11d ([GST + / TAX−]) (step A7). When it is determined that the operation is not the operation of the tax calculation mode switching key 11d (step A7: No), the CPU 21 executes a process (conventional process) according to the key input (step A9).

CPU21は、電源オフキーの操作であると判別される場合(ステップA6:Yes)、工場検査後フラグエリア22cを参照し、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグオン(第1情報))を示しているか判別する(ステップA11)。工場検査後フラグオンの場合(ステップA11:ON)、CPU21は、電源オフキーの操作を無効(NOP)にして(ステップA12)、処理をキー入力待処理の最初へ戻す(ステップA1)。つまり、工場検査後フラグオンである間、電源オフキーの操作を無効(NOP)にする。工場検査後フラグオフの場合(ステップA11:OFF)、CPU21は、キー入力に応じた処理(従来処理)を実行する(ステップA9)。 When the CPU 21 determines that the operation is the power off key operation (step A6: Yes), the CPU 21 refers to the post-factory inspection flag area 22c, and the post-factory inspection flag is set, and the factory inspection process has been executed (the flag is turned on after the factory inspection (first). 1 Information)) is indicated (step A11). When the flag is turned on after the factory inspection (step A11: ON), the CPU 21 disables the operation of the power off key (NOP) (step A12) and returns the process to the beginning of the key input waiting process (step A1). That is, the operation of the power off key is disabled (NOP) while the flag is on after the factory inspection. When the flag is off after the factory inspection (step A11: OFF), the CPU 21 executes a process (conventional process) according to the key input (step A9).

なお、ステップA11において、CPU21は、工場検査後フラグオン(第1情報)を示しているか否かを判別することにより、工場検査処理が実行済みか否かを判別するものとしたが、これに限らず、工場検査後フラグオフ(第2情報)を示していないか否かを判別することにより、工場検査処理が実行済みか否かを判別してもよい。この場合、CPU21は、工場検査後フラグがオフ(第2情報)を示していない場合に工場検査処理が実行済みであると判別し、工場検査後フラグがオフ(第2情報)を示している場合に工場検査処理が実行済みでないと判別する。 In step A11, the CPU 21 determines whether or not the factory inspection process has been executed by determining whether or not the factory inspection flag-on (first information) is indicated, but the present invention is limited to this. Instead, it may be determined whether or not the factory inspection process has been executed by determining whether or not the flag-off (second information) is not shown after the factory inspection. In this case, the CPU 21 determines that the factory inspection process has been executed when the post-factory inspection flag does not indicate off (second information), and indicates that the post-factory inspection flag is off (second information). In this case, it is determined that the factory inspection process has not been executed.

従って、工場検査後に、最初に電源オフになるまでの間、キー操作に応じた動作確認をすることができる。例えば、工場検査処理を終了させるための[AC]キー11aが操作された後、図7の(A)に示すように、キー入力部11の「1」「2」「3」「+」の各キーが操作された場合、CPU21は、メイン表示部には「123」、ステップ数12aには「1」、シンボル[+]を表示させる。続けて、電源オフキーが操作されても、メイン表示部の表示は変化しない。この間、税計算モードは税込み計算モードのままなので、CPU21は、税計算モードシンボル12bを変更せずに、シンボル「GST+]を表示させたままとする。CPU21は、キー入力部11の他のキーに対する操作があった場合に、キー操作に応じた通常処理(従来処理)を実行する。 Therefore, after the factory inspection, the operation can be confirmed according to the key operation until the power is first turned off. For example, after the [AC] key 11a for terminating the factory inspection process is operated, as shown in FIG. 7A, the key input units 11 of "1", "2", "3", and "+" When each key is operated, the CPU 21 displays "123" on the main display unit, "1" on the number of steps 12a, and the symbol [+]. Even if the power off key is subsequently operated, the display on the main display does not change. During this period, since the tax calculation mode remains the tax-included calculation mode, the CPU 21 does not change the tax calculation mode symbol 12b and keeps displaying the symbol "GST +". The CPU 21 is the other key of the key input unit 11. When there is an operation for, the normal process (conventional process) corresponding to the key operation is executed.

一方、キー入力がない場合には(ステップA1:No)、CPU21は、APOカウンタを時間経過に応じて減算する(ステップA2)。APOカウンタは、工場検査処理の実行が終了された時(ステップS7:Yes)を開始時刻として、その後、APO機能により電源をオフするまでの時間をカウントするためのカウンタである。APOカウンタには、電源をオフするまでの時間に応じた値が予め設定されており、時間の経過に伴って減算されていく。CPU21は、APOカウンタが「0」でなければ(ステップA3:No)、CPU21は、処理をキー入力待処理の最初へ戻す(ステップA1)。 On the other hand, when there is no key input (step A1: No), the CPU 21 subtracts the APO counter according to the passage of time (step A2). The APO counter is a counter for counting the time until the power is turned off by the APO function after the start time is when the execution of the factory inspection process is completed (step S7: Yes). A value corresponding to the time until the power is turned off is preset in the APO counter, and the value is subtracted with the passage of time. If the APO counter is not "0" (step A3: No), the CPU 21 returns the process to the beginning of the key input waiting process (step A1).

この間、税計算モード切替キー11dが操作されたことを検出すると(ステップA7:Yes)、CPU21は、切替キー処理を実行する(ステップA8)。第1の制御方法における切替キー処理は、第1切替キー処理あるいは第2切替キー処理の何れかを実行することができる。第1切替キー処理と第2切替キー処理の何れを実行するかは、予め決められていても良いし、別途実行されるモード設定処理において、ユーザ操作に応じて何れかが選択されるようにしても良い。 During this time, when it is detected that the tax calculation mode switching key 11d has been operated (step A7: Yes), the CPU 21 executes the switching key processing (step A8). As the switching key processing in the first control method, either the first switching key processing or the second switching key processing can be executed. Whether to execute the first switching key processing or the second switching key processing may be determined in advance, or in the mode setting processing to be executed separately, either one is selected according to the user operation. You may.

図5は、第1切替キー処理を示すフローチャートである。 FIG. 5 is a flowchart showing the first switching key processing.

CPU21は、税計算モード切替キー11dの操作に応じて、工場検査後フラグエリア22cを参照し、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグオン(第1情報))を示しているか判別する(ステップB1)。工場検査後フラグオンの場合(ステップB1:ON)、CPU21は、税計算モード切替キー11dの操作を無効(NOP)にする。すなわち、CPU21は、税計算モードを変更するための操作が実行された場合に、工場検査後フラグエリア22cの工場検査後フラグをオン状態のまま保持して、税計算モードを変更しない。 The CPU 21 refers to the post-factory inspection flag area 22c in response to the operation of the tax calculation mode switching key 11d, and the post-factory inspection flag indicates that the factory inspection process has been executed (flag on after factory inspection (first information)). It is determined whether or not (step B1). When the flag is turned on after the factory inspection (step B1: ON), the CPU 21 disables the operation of the tax calculation mode switching key 11d (NOP). That is, when the operation for changing the tax calculation mode is executed, the CPU 21 keeps the post-factory inspection flag in the post-factory inspection flag area 22c in the ON state and does not change the tax calculation mode.

この場合、CPU21は、図7の(A)に示すように、税計算モード切替キー11d([GST+/TAX−])のキー操作に対して、税計算モードシンボル12bを変更せずに、シンボル[GST+]を表示させたままとする。 In this case, as shown in FIG. 7A, the CPU 21 does not change the tax calculation mode symbol 12b in response to the key operation of the tax calculation mode switching key 11d ([GST + / TAX-]). Keep [GST +] displayed.

電卓10は、工場検査処理後に動作確認などがされた後、梱包されて出荷される。電卓10が梱包された状態で、CPU21は、APOカウンタを時間経過に応じて減算し(ステップA2)、APOカウンタが「0」になると(ステップA3:Yes)、APO機能により電源をオフする。例えば、図7の(A)に示すように、CPU21は、電卓10が6分間放置されて、キー操作がなかった場合には、CPU21は、APO機能により電源をオフする。この場合、CPU21は、工場検査後フラグエリア22cに、工場検査処理が実行済みであることを示さない工場検査後フラグオフ(第2情報)を記憶させる(ステップA4)。この第2情報は、第1情報とは異なる情報である。 The calculator 10 is packed and shipped after the operation is confirmed after the factory inspection process. With the calculator 10 packed, the CPU 21 subtracts the APO counter according to the passage of time (step A2), and when the APO counter becomes "0" (step A3: Yes), the power is turned off by the APO function. For example, as shown in FIG. 7A, when the calculator 10 is left for 6 minutes and there is no key operation, the CPU 21 turns off the power by the APO function. In this case, the CPU 21 stores the post-factory inspection flag off (second information) in the post-factory inspection flag area 22c, which does not indicate that the factory inspection process has been executed (step A4). This second information is different from the first information.

CPU21は、工場検査後フラグエリア22cに工場検査後フラグオフを記憶させた後、通常の電源オフ処理(従来オフ処理)を実行して、電卓10の動作を停止させる(ステップA5)。 The CPU 21 stores the flag-off after the factory inspection in the flag area 22c after the factory inspection, and then executes a normal power-off process (conventional off process) to stop the operation of the calculator 10 (step A5).

従って、第1の制御方法の第1切替キー処理では、工場検査後にAPO機能により最初に電源がオフになるまでの間では、税計算モード切替キー11dが操作された場合であっても、既定の税計算モード(税込み計算モード)が切り替えられない。 Therefore, in the first switching key processing of the first control method, even if the tax calculation mode switching key 11d is operated, the default is until the power is first turned off by the APO function after the factory inspection. The tax calculation mode (tax calculation mode) cannot be switched.

出荷後の電卓10は、例えばユーザによる[AC]キー11aに対する操作によって起動が指示される。CPU21は、[AC]キー11aのキー操作に応じて通常の電源オン処理を実行して、電卓10を起動させる。この時、税計算モードエリア22mには、工場検査後に設定された税込み計算モードを示す税計算モードデータが記憶されている。 The calculator 10 after shipment is instructed to be activated by, for example, an operation on the [AC] key 11a by the user. The CPU 21 executes a normal power-on process in response to a key operation of the [AC] key 11a to activate the calculator 10. At this time, the tax calculation mode area 22m stores tax calculation mode data indicating the tax-included calculation mode set after the factory inspection.

従って、CPU21は、図7の(A)に示すように、[AC]キー11aの操作による最初の電源オン時には、税計算モードシンボル12bには税込み計算モードを示すシンボル[GST+]を表示させる。すなわち、工場検査後に設定された既定の税計算モードを確実に設定することが可能となる。CPU21は、起動された後、図4に示すキー入力待ち処理を実行する。従って、CPU21は、図7の(A)に示すように、キー入力部11の「1」「2」「3」「+」の各キーが操作された場合、前述と同様にして、メイン表示部には「123」、ステップ数12aには「1」、シンボル[+]を表示させる。また、CPU21は、税計算モード切替キー11dが操作された場合(ステップA7:Yes)、図5に示す第1切替キー処理を実行する。この場合、電源検査処理後の最初の電源オフ時に、工場検査後フラグエリア22cに工場検査後フラグオフが記憶されているため(ステップB1:OFF)、CPU21は、税計算モード切替キー11dの操作に応じて税計算モードを切り替える(ステップB2)。すなわち、図7の(A)に示すように、CPU21は、税込み計算モードの状態で税計算モード切替キー11dが操作された場合には、税抜き計算モードに切り替えて、税計算モードシンボル12bを、税抜き計算モードを示すシンボル[TAX−]に変更する。その後、CPU21は、税計算モード切替キー11dが操作される毎に、税込み計算モードと税抜き計算モードの間で計算モードを切り替える。 Therefore, as shown in FIG. 7A, the CPU 21 causes the tax calculation mode symbol 12b to display the symbol [GST +] indicating the tax-included calculation mode when the power is first turned on by operating the [AC] key 11a. That is, it is possible to reliably set the default tax calculation mode set after the factory inspection. After being started, the CPU 21 executes the key input waiting process shown in FIG. Therefore, as shown in (A) of FIG. 7, when each of the "1", "2", "3", and "+" keys of the key input unit 11 is operated, the CPU 21 displays the main display in the same manner as described above. "123" is displayed in the section, "1" is displayed in the number of steps 12a, and the symbol [+] is displayed. Further, when the tax calculation mode switching key 11d is operated (step A7: Yes), the CPU 21 executes the first switching key process shown in FIG. In this case, when the power is turned off for the first time after the power inspection process, the flag off after the factory inspection is stored in the flag area 22c after the factory inspection (step B1: OFF), so that the CPU 21 operates the tax calculation mode switching key 11d. The tax calculation mode is switched accordingly (step B2). That is, as shown in FIG. 7A, when the tax calculation mode switching key 11d is operated in the tax-included calculation mode, the CPU 21 switches to the tax-excluded calculation mode and sets the tax calculation mode symbol 12b. , Change to the symbol [TAX-] indicating the tax-excluded calculation mode. After that, the CPU 21 switches the calculation mode between the tax-included calculation mode and the tax-excluded calculation mode each time the tax calculation mode switching key 11d is operated.

次に、第2切替キー処理について説明する。図6は、第2切替キー処理を示すフローチャートである。以下、前述した第1切替キー処理とは異なる処理について説明する。図7の(B)は、第2切替キー処理による具体的な処理内容を説明するためのキー操作と表示例を示している。 Next, the second switching key processing will be described. FIG. 6 is a flowchart showing the second switching key processing. Hereinafter, a process different from the above-described first switching key process will be described. FIG. 7B shows a key operation and a display example for explaining a specific processing content by the second switching key processing.

前述した第1切替キー処理では、税計算モード切替キー11dに対する操作を完全に無効としている。第2切替キー処理では、税計算モード切替キー11dに対する既定の操作とは異なる方法で操作されたと判別された場合のみ、税計算モード切替キー11dに対する操作を有効とする。 In the first switching key processing described above, the operation on the tax calculation mode switching key 11d is completely invalidated. In the second switching key processing, the operation for the tax calculation mode switching key 11d is valid only when it is determined that the operation for the tax calculation mode switching key 11d is different from the default operation.

税計算モード切替キー11dに対する既定の操作とは異なる操作の方法としては、例えば税計算モード切替キー11dに対する長押し操作がある。長押し操作は、予め定められた任意の時間以上、押下した状態を継続する操作である。既定の操作は、「長押し操作」よりも短い時間押下する操作である。既定の操作は、便宜的に「短押し」、または通常押下等として説明する。 As a method of operation different from the default operation for the tax calculation mode switching key 11d, for example, there is a long press operation for the tax calculation mode switching key 11d. The long press operation is an operation of continuing the pressed state for a predetermined arbitrary time or longer. The default operation is an operation of pressing for a shorter time than the "long press operation". The default operation will be described as "short press", normal press, etc. for convenience.

CPU21は、税計算モード切替キー11dの操作に応じて、工場検査後フラグエリア22cを参照し、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグオン(第1情報))を示しているか判別する(ステップC1)。工場検査後フラグオンの場合(ステップC1:ON)、CPU21は、税計算モード切替キー11dに対して長押し操作されているかを判別する(ステップC3)。長押し操作がされていないと判別された場合(ステップC3:通常押下)、CPU21は、第1切替キー処理と同様にして、税計算モード切替キー11dの操作を無効(NOP)にする。一方、長押し操作がされていると判別された場合(ステップC3:長押し)、CPU21は、税計算モード切替キー11dの操作に応じて税計算モードを切り替える(ステップC2)。この場合、CPU21は、税計算モードエリア22mに税抜き計算モードを示す税計算モードデータを記憶させる。 The CPU 21 refers to the post-factory inspection flag area 22c in response to the operation of the tax calculation mode switching key 11d, and the post-factory inspection flag indicates that the factory inspection process has been executed (flag on after factory inspection (first information)). It is determined whether or not (step C1). When the flag is turned on after the factory inspection (step C1: ON), the CPU 21 determines whether the tax calculation mode switching key 11d is being pressed and held (step C3). When it is determined that the long press operation has not been performed (step C3: normal press), the CPU 21 invalidates the operation of the tax calculation mode switching key 11d (NOP) in the same manner as the first switching key processing. On the other hand, when it is determined that the long press operation has been performed (step C3: long press), the CPU 21 switches the tax calculation mode according to the operation of the tax calculation mode switching key 11d (step C2). In this case, the CPU 21 stores the tax calculation mode data indicating the tax-excluded calculation mode in the tax calculation mode area 22m.

すなわち、CPU21は、図7の(B)に示すように、税計算モード切替キー11d([GST+/TAX−])の通常押下によるキー操作に対して、税計算モードシンボル12bを変更せずに、シンボル[GST+]を表示させる。また、CPU21は、図7の(B)に示すように、税計算モード切替キー11d([GST+/TAX−])の長押しによるキー操作に対して、税計算モードシンボル12bをシンボル[TAX−]に切り替えて表示させる。 That is, as shown in FIG. 7B, the CPU 21 does not change the tax calculation mode symbol 12b in response to the key operation by normally pressing the tax calculation mode switching key 11d ([GST + / TAX-]). , The symbol [GST +] is displayed. Further, as shown in FIG. 7B, the CPU 21 uses the tax calculation mode symbol 12b as a symbol [TAX-] in response to a key operation by pressing and holding the tax calculation mode switching key 11d ([GST + / TAX-]). ] To display.

従って、第1の制御方法の第2切替キー処理では、APO機能により電源オフされるまでの間、すなわち工場検査後に最初に電源がオフになるまでの間では、税計算モード切替キー11dが意図せず操作された場合には、既定の税計算モード(税込み計算モード)が切り替えられない。一方、既定の操作とは異なる操作により税計算モード切替キー11dが操作された場合には、意図的な操作であるとして、税計算モード切替キー11dに対する操作に応じて税計算モードを切り替える。こうして、工場検査後に税計算モード切替キー11dを特別な操作によって有効とすることにより、税計算モード切替キー11dを用いた動作確認などをすることが可能となる。 Therefore, in the second switching key processing of the first control method, the tax calculation mode switching key 11d is intended until the power is turned off by the APO function, that is, until the power is first turned off after the factory inspection. If it is operated without, the default tax calculation mode (tax calculation mode) cannot be switched. On the other hand, when the tax calculation mode switching key 11d is operated by an operation different from the default operation, the tax calculation mode is switched according to the operation for the tax calculation mode switching key 11d as an intentional operation. In this way, by enabling the tax calculation mode switching key 11d by a special operation after the factory inspection, it is possible to confirm the operation using the tax calculation mode switching key 11d.

長押し操作により税計算モード切替キー11dが使用された場合には、税計算モードを変更した動作確認等が終了した後、APO機能により電源オフするまでの間に、同様にして、意図的な長押し操作により税計算モード切替キー11dを用いて、出荷時の既定の税計算モード(税込み計算モード)へ切り替えておく。この場合、CPU21は、税計算モードエリア22mに税込み計算モードを示す税計算モードデータを記憶させる。 When the tax calculation mode switching key 11d is used by a long press operation, the tax calculation mode is changed and the operation check is completed until the power is turned off by the APO function. By pressing and holding the button, the tax calculation mode switching key 11d is used to switch to the default tax calculation mode (tax-included calculation mode) at the time of shipment. In this case, the CPU 21 stores the tax calculation mode data indicating the tax-included calculation mode in the tax calculation mode area 22m.

前述と同様に、電卓10は、工場検査処理後に動作確認などがされた後、梱包されて出荷される。電卓10が梱包された状態で、CPU21は、APO機能により電源をオフし、工場検査後フラグエリア22cに、工場検査処理が実行済みであることを示さない工場検査後フラグオフ(第2情報)を記憶させる(ステップA4)。その後、CPU21は、通常の電源オフ処理(従来オフ処理)を実行して、電卓10の動作を停止させる(ステップA5)。 Similar to the above, the calculator 10 is packed and shipped after the operation is confirmed after the factory inspection process. With the calculator 10 packed, the CPU 21 turns off the power by the APO function, and in the post-factory inspection flag area 22c, the post-factory inspection flag off (second information) that does not indicate that the factory inspection process has been executed. Remember (step A4). After that, the CPU 21 executes a normal power off process (conventional off process) to stop the operation of the calculator 10 (step A5).

従って、第1の制御方法の第2切替キー処理では、工場検査後にAPO機能により最初に電源がオフになるまでの間では、税計算モード切替キー11dが既定の操作とは異なる操作をされた場合に限り、既定の税計算モード(税込み計算モード)が切り替えられる。 Therefore, in the second switching key processing of the first control method, the tax calculation mode switching key 11d was operated differently from the default operation until the power was first turned off by the APO function after the factory inspection. Only in case, the default tax calculation mode (tax included calculation mode) is switched.

出荷後の電卓10は、例えばユーザによる[AC]キー11aに対する操作によって起動が指示される。CPU21は、[AC]キー11aのキー操作に応じて通常の電源オン処理を実行して、電卓10を起動させる。この時、税計算モードエリア22mには、工場検査後に設定された税込み計算モードを示す税計算モードデータが記憶されている。このため、出荷後にユーザが最初に電卓10を電源オンした場合には、確実に既定の税計算モード(税込み計算モード)によって起動される。 The calculator 10 after shipment is instructed to be activated by, for example, an operation on the [AC] key 11a by the user. The CPU 21 executes a normal power-on process in response to a key operation of the [AC] key 11a to activate the calculator 10. At this time, the tax calculation mode area 22m stores tax calculation mode data indicating the tax-included calculation mode set after the factory inspection. Therefore, when the user first turns on the calculator 10 after shipment, the calculator 10 is surely activated in the default tax calculation mode (tax-included calculation mode).

以下、図7の(B)に示すように、前述した第1切替キー処理を実行した場合と同様に、キー操作に応じた従来処理、あるいは税計算モード切替キー11dの操作(通常押下)に応じた税計算モードの切り替えが実行される。 Hereinafter, as shown in FIG. 7B, the conventional processing according to the key operation or the operation of the tax calculation mode switching key 11d (normally pressed) can be performed in the same manner as when the first switching key processing described above is executed. The tax calculation mode is switched according to the situation.

本実施形態における第1の制御方法によれば、電卓10は、工場検査処理後に工場検査後フラグをオンにし(ステップS10)、かつ、APOカウンタが「0」になった場合のみ(ステップA3:Yes)、工場検査後フラグをオフしてから(ステップA4)、電源オフするものとした(ステップA5)。また、工場検査後フラグがオンである間、税計算モード切替キー11dの操作を無効(NOP)にしている(ステップB1:ON→ステップB3)。なお、電卓10は、電源オフキーの操作がそもそも実装されていないか、または、電源オフキーの操作が実装されていても、工場検査後フラグがオンである間、電源オフキーの操作を無効にしている(ステップA6:Yes→ステップA11:ON→ステップA12)。 According to the first control method in the present embodiment, the calculator 10 turns on the post-factory inspection flag after the factory inspection process (step S10), and only when the APO counter becomes "0" (step A3 :). Yes), after the factory inspection, the flag was turned off (step A4), and then the power was turned off (step A5). Further, while the flag is on after the factory inspection, the operation of the tax calculation mode switching key 11d is disabled (NOP) (step B1: ON → step B3). In addition, the calculator 10 disables the operation of the power off key while the flag is on after the factory inspection even if the operation of the power off key is not implemented in the first place or the operation of the power off key is implemented. (Step A6: Yes → Step A11: ON → Step A12).

したがって、電卓10は、工場検査処理後に動作確認などがされた後、梱包されて出荷されるが、出荷前に、意図しないキーに接触したとしても、APO機能により最初に電源がオフとなった後に意図せずキーに接触しないようにさえすれば、ユーザが開梱して電源オンしたときには、既定の計算モードで起動することができる。例えば、APO機能により最初に電源がオフとなる前に梱包作業を済ませるようにすれば、APO機能により最初に電源がオフとなった後に意図せずキーに接触されることはない。 Therefore, the calculator 10 is packed and shipped after the operation is confirmed after the factory inspection process, but even if an unintended key is touched before the shipment, the power is turned off first by the APO function. As long as you don't unintentionally touch the keys later, when the user unpacks and powers on, they can boot into the default calculation mode. For example, if the packing work is completed before the power is first turned off by the APO function, the key will not be unintentionally touched after the power is first turned off by the APO function.

このように、本実施形態の第1の制御方法を実行する電卓10は、工場検査後フラグのオンオフを適切に切り替えたり、工場検査後フラグの状態に応じて、特定のキーの操作を無効(NOP)となるように制御したりしていないものと比べて、工場検査出荷後に電源を最初にオンにしたとき、より確実に、既定の計算モードで起動させることができる。 In this way, the calculator 10 that executes the first control method of the present embodiment appropriately switches the flag after factory inspection on and off, and invalidates the operation of a specific key according to the state of the flag after factory inspection ( Compared to the one that is not controlled to be NOP), when the power is first turned on after the factory inspection shipment, it can be started in the default calculation mode more reliably.

なお、前述した説明では、工場検査処理後に工場検査後フラグがオンされると(ステップS10)、電源オフキーが操作されたとしても操作を無効にしているが(ステップA6,A11,A12)、APO機能により最初に電源がオフとなる前に、電源オフキーの操作に応じて電源オフできるようにしても良い。この場合、前述したAPO機能による電源オフと同様にして、最初の電源オフキーの操作に応じて、工場検査後フラグエリア22cに工場検査後フラグオフを記憶させた後、通常の電源オフ処理(従来オフ処理)を実行して、電卓10の動作を停止させる(ステップA5)。このような処理によれば、工場検査処理後、最初に電卓10の動作が停止するまでの間は、確実に、工場検査後フラグオンであるので、その間、税計算モード切替キー11dの操作に応じて税計算モードが切り替わることを防止できる。 In the above description, if the post-factory inspection flag is turned on after the factory inspection process (step S10), the operation is invalidated even if the power off key is operated (steps A6, A11, A12), but APO. The power may be turned off in response to the operation of the power off key before the power is turned off for the first time by the function. In this case, in the same manner as the power off by the APO function described above, the flag off after the factory inspection is stored in the flag area 22c after the factory inspection according to the operation of the first power off key, and then the normal power off process (conventional off). Process) is executed to stop the operation of the calculator 10 (step A5). According to such a process, after the factory inspection process, the flag is surely turned on after the factory inspection until the operation of the calculator 10 is stopped for the first time. Therefore, during that time, the tax calculation mode switching key 11d is operated. It is possible to prevent the tax calculation mode from switching.

あるいは、工場検査処理後、APO時間よりも短い予め定めた閾値時間が経過した場合、当該閾値時間が経過したと判別したことに応じて、工場検査後フラグエリア22cに工場検査後フラグオフを記憶させて、かつ、このとき、通常の電源オフ処理(従来オフ処理)を実行しなくてもよい。その後、APOカウンタが「0」になってAPO機能が作動するか、または、最初の電源オフキーの操作に応じて、通常の電源オフ処理(従来オフ処理)を実行することで、電卓10の動作を停止させてもよい。このような処理によれば、工場検査処理後、少なくとも上記閾値時間が経過するまでの間は、工場検査後フラグオンであるので、その間、税計算モード切替キー11dの操作に応じて税計算モードが切り替わることを、確実に防止できる。 Alternatively, when a predetermined threshold time shorter than the APO time elapses after the factory inspection process, the post-factory inspection flag area 22c stores the post-factory inspection flag off according to the determination that the threshold time has elapsed. At this time, it is not necessary to execute the normal power off processing (conventional off processing). After that, the APO counter becomes "0" and the APO function is activated, or the calculator 10 is operated by executing a normal power off process (conventional off process) in response to the operation of the first power off key. May be stopped. According to such a process, the flag is turned on after the factory inspection at least until the above threshold time elapses after the factory inspection process. Therefore, during that time, the tax calculation mode is set according to the operation of the tax calculation mode switching key 11d. It is possible to surely prevent switching.

次に、本実施形態における第2の制御方法について説明する。電卓10の工場出荷前に実行される処理は、前述した図3に示すフローチャートと同様に実行されるものとして詳細な説明を省略する。 Next, the second control method in this embodiment will be described. The process executed before the calculator 10 is shipped from the factory is assumed to be executed in the same manner as the flowchart shown in FIG. 3 described above, and detailed description thereof will be omitted.

以下、本実施形態における第2の制御方法によるキー入力待処理について、図8に示すフローチャートを参照しながら説明する。図9は、図8のフローチャート中のAPO処理を示すフローチャートである。図10は、第2の制御方法における具体的な処理内容を説明するためのキー操作と表示例を示す図である。 Hereinafter, the key input waiting process according to the second control method in the present embodiment will be described with reference to the flowchart shown in FIG. FIG. 9 is a flowchart showing the APO process in the flowchart of FIG. FIG. 10 is a diagram showing a key operation and a display example for explaining a specific processing content in the second control method.

CPU21は、工場検査処理後にキー入力がある場合(ステップD1:Yes)、CPU21は、後述するAPOカウンタをリセットしてから(ステップD8)、電源オフキーの操作であるか判別する(ステップD6)。電源オフキーの操作であると判別される場合(ステップD6:Yes)、ステップD9,D10において第1の制御方法と同様の処理を実行するため、説明を省略する。なお、第1の制御方法と同様、電卓10が電源オフキーにより電源オフする機能を設けない場合には、APOカウンタをリセットした後(ステップD8)、電源オフキーの操作を判別する処理を省略し、ステップD7の処理へ移行する。 When the CPU 21 receives a key input after the factory inspection process (step D1: Yes), the CPU 21 resets the APO counter described later (step D8) and then determines whether the power off key is operated (step D6). When it is determined that the operation is the power off key operation (step D6: Yes), the same processing as that of the first control method is executed in steps D9 and D10, and thus the description thereof will be omitted. As in the first control method, when the calculator 10 is not provided with the function of turning off the power by the power off key, the process of determining the operation of the power off key is omitted after resetting the APO counter (step D8). The process proceeds to step D7.

また、CPU21は、電源オフキーの操作でないと判別される場合(ステップD6:No)、キー入力に応じた処理(従来処理)を実行する(ステップD7)。すなわち、第2の制御方法では、工場検査後に、最初に電源オフになるまでの間、税計算モード切替キー11dを含むキー操作に応じた通常処理(従来処理)を可能とする。従って、キー入力部11に対するキー操作に応じた動作確認をすることができる。 Further, when it is determined that the operation is not the power off key operation (step D6: No), the CPU 21 executes a process (conventional process) according to the key input (step D7). That is, in the second control method, after the factory inspection, normal processing (conventional processing) corresponding to the key operation including the tax calculation mode switching key 11d is enabled until the power is first turned off. Therefore, it is possible to confirm the operation according to the key operation on the key input unit 11.

例えば、図10に示すように、工場検査処理を終了させるための[AC]キー11aが操作された後、税計算モード切替キー11dが操作された場合、CPU21は、税計算モードエリア22mに税抜き計算モードを示す税計算モードデータを記憶させて税計算モードを変更する。また、CPU21は、税計算モードシンボル12bを、税抜き計算モードを示す「TAX−]に変更する。 For example, as shown in FIG. 10, when the tax calculation mode switching key 11d is operated after the [AC] key 11a for ending the factory inspection process is operated, the CPU 21 taxes the tax calculation mode area 22m. The tax calculation mode is changed by storing the tax calculation mode data indicating the exclusion calculation mode. Further, the CPU 21 changes the tax calculation mode symbol 12b to "TAX-" indicating the tax-excluded calculation mode.

一方、キー入力がない場合には(ステップD1:No)、CPU21は、APOカウンタを時間経過に応じて減算する(ステップD2)。CPU21は、APOカウンタが「0」でなければ(ステップD3:No)、CPU21は、処理をキー入力待処理の最初へ戻す(ステップD1)。 On the other hand, when there is no key input (step D1: No), the CPU 21 subtracts the APO counter according to the passage of time (step D2). If the APO counter is not "0" (step D3: No), the CPU 21 returns the process to the beginning of the key input waiting process (step D1).

電卓10は、工場検査処理後に動作確認などがされた後、梱包されて出荷される。電卓10が梱包された状態で、CPU21は、APOカウンタを時間経過に応じて減算し(ステップD2)、APOカウンタが「0」になると(ステップD3:Yes)、APO処理を実行する(ステップD4)。 The calculator 10 is packed and shipped after the operation is confirmed after the factory inspection process. With the calculator 10 packed, the CPU 21 subtracts the APO counter according to the passage of time (step D2), and when the APO counter becomes "0" (step D3: Yes), executes the APO process (step D4). ).

APO処理では、CPU21は、工場検査後フラグエリア22cを参照し、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグオン(第1情報))を示しているか判別する。工場検査後フラグオンの場合(図9、ステップE1:ON)、CPU21は、計算モード設定処理を実行して、税計算モードを既定の計算モードに設定する。すなわち、CPU21は、税計算モードエリア22mに税込み計算モードを示す税計算モードデータ(GST+)を記憶させる(ステップE2)。その後、CPU21は、工場検査後フラグエリア22cに、工場検査処理が実行済みであることを示さない工場検査後フラグオフ(第2情報)を記憶させて(ステップE3)、APO処理を終了する。 In the APO process, 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 (flag-on after factory inspection (first information)). When the flag is turned on after the factory inspection (FIG. 9, step E1: ON), the CPU 21 executes the calculation mode setting process to set the tax calculation mode to the default calculation mode. That is, the CPU 21 stores the tax calculation mode data (GST +) indicating the tax-included calculation mode in the tax calculation mode area 22m (step E2). After that, the CPU 21 stores the post-factory inspection flag off (second information) that does not indicate that the factory inspection process has been executed in the post-factory inspection flag area 22c (step E3), and ends the APO process.

CPU21は、APO処理により工場検査後フラグエリア22cに工場検査後フラグオフを記憶させた後、通常の電源オフ処理(従来オフ処理)を実行して、電卓10の動作を停止させる(ステップD5)。 The CPU 21 stores the flag-off after the factory inspection in the flag area 22c after the factory inspection by the APO process, and then executes a normal power-off process (conventional off process) to stop the operation of the calculator 10 (step D5).

出荷後の電卓10は、例えばユーザによる[AC]キー11aに対する操作によって起動が指示される。CPU21は、[AC]キー11aのキー操作に応じて通常の電源オン処理を実行して、電卓10を起動させる。この時、税計算モードエリア22mには、工場検査後に、APO処理において最初に電源オフされる際に設定された税込み計算モードを示す税計算モードデータが記憶されている。 The calculator 10 after shipment is instructed to be activated by, for example, an operation on the [AC] key 11a by the user. The CPU 21 executes a normal power-on process in response to a key operation of the [AC] key 11a to activate the calculator 10. At this time, in the tax calculation mode area 22m, tax calculation mode data indicating the tax-included calculation mode set when the power is first turned off in the APO processing after the factory inspection is stored.

従って、CPU21は、図10に示すように、[AC]キー11aの操作による最初の電源オン時には、税計算モードシンボル12bには税込み計算モードを示すシンボル[GST+]を表示させる。すなわち、工場検査後に設定された既定の税計算モードを確実に設定することが可能となる。CPU21は、起動された後、図8に示すキー入力待ち処理を実行する。従って、CPU21は、図8に示すように、キー入力部11の「1」「2」「3」「+」の各キーが操作された場合、前述と同様にして、メイン表示部には「123」、ステップ数12aには「1」、シンボル[+]を表示させる。また、CPU21は、税計算モード切替キー11dが操作された場合、従来処理により、税計算モードを切り替える処理を実行する。すなわち、図10に示すように、CPU21は、税抜き計算モードに切り替えて、税計算モードシンボル12bを、税抜き計算モードを示すシンボル[TAX−]に変更する。その後、CPU21は、税計算モード切替キー11dが操作される毎に、税込み計算モードと税抜き計算モードの間で計算モードを切り替える。 Therefore, as shown in FIG. 10, the CPU 21 causes the tax calculation mode symbol 12b to display the symbol [GST +] indicating the tax-included calculation mode when the power is first turned on by operating the [AC] key 11a. That is, it is possible to reliably set the default tax calculation mode set after the factory inspection. After being started, the CPU 21 executes the key input waiting process shown in FIG. Therefore, as shown in FIG. 8, when the "1", "2", "3", and "+" keys of the key input unit 11 are operated, the CPU 21 displays "1", "2", "3", and "+" on the main display unit in the same manner as described above. "123", "1" for the number of steps 12a, and the symbol [+] are displayed. Further, when the tax calculation mode switching key 11d is operated, the CPU 21 executes a process of switching the tax calculation mode by the conventional process. That is, as shown in FIG. 10, the CPU 21 switches to the tax-excluded calculation mode and changes the tax calculation mode symbol 12b to the symbol [TAX-] indicating the tax-excluded calculation mode. After that, the CPU 21 switches the calculation mode between the tax-included calculation mode and the tax-excluded calculation mode each time the tax calculation mode switching key 11d is operated.

また、CPU21は、工場検査後の2回目以降に電源オフする場合、すなわち、電卓10が出荷され、ユーザが使用開始後にAPO処理により電源オフする場合には、工場検査後フラグエリア22cに工場検査後フラグオフが記憶されているため(ステップE1:OFF)、計算モード設定処理を実行せずに、税計算モードエリア22mに設定された税計算モードデータを保持したままにする。 Further, when the power of the CPU 21 is turned off after the second time after the factory inspection, that is, when the calculator 10 is shipped and the power is turned off by the APO process after the user starts using the CPU 21, the factory inspection is performed in the flag area 22c after the factory inspection. Since the post-flag off is stored (step E1: OFF), the tax calculation mode data set in the tax calculation mode area 22m is retained without executing the calculation mode setting process.

このように、第2の制御方法では、工場検査後に最初にAPO機能により電源オフするまでの間では、税計算モード切替キー11dを含む各キー入力に応じた通常処理を実行可能とする。そして工場検査後に最初にAPO機能(APO処理)により電源オフする際に、計算モード設定処理により既定の税計算モード(税込み計算モード)を設定する。従って、工場検査後、税計算モード切替キー11dが操作された場合であっても、電卓10を既定の税計算モード(税込み計算モード)に設定した状態で出荷することができる。このため、出荷後にユーザが最初に電卓10を電源オンした場合には、確実に既定の税計算モード(税込み計算モード)によって起動される。 As described above, in the second control method, the normal processing corresponding to each key input including the tax calculation mode switching key 11d can be executed until the power is first turned off by the APO function after the factory inspection. Then, when the power is first turned off by the APO function (APO processing) after the factory inspection, the default tax calculation mode (tax-included calculation mode) is set by the calculation mode setting process. Therefore, even if the tax calculation mode switching key 11d is operated after the factory inspection, the calculator 10 can be shipped in a state of being set to the default tax calculation mode (tax-included calculation mode). Therefore, when the user first turns on the calculator 10 after shipment, the calculator 10 is surely activated in the default tax calculation mode (tax-included calculation mode).

本実施形態における第2の制御方法によれば、電卓10は、工場検査処理後に工場検査後フラグをオンにし(ステップS10)、かつ、APOカウンタが「0」になった場合のみ(ステップD3:Yes)、既定の計算モード(税込み計算モード)へ設定して(ステップE2)、工場検査後フラグをオフしてから(ステップE3)、電源オフするものとした(ステップD5)。なお、電卓10は、電源オフキーの操作がそもそも実装されていないか、または、電源オフキーの操作が実装されていても、工場検査後フラグがオンである間、電源オフキーの操作が無効にしている(ステップD6:Yes→ステップD9:ON→ステップD10)。 According to the second control method in the present embodiment, the calculator 10 turns on the post-factory inspection flag after the factory inspection process (step S10), and only when the APO counter becomes "0" (step D3 :). Yes), the default calculation mode (calculation mode including tax) is set (step E2), the flag is turned off after the factory inspection (step E3), and then the power is turned off (step D5). In the calculator 10, the power off key operation is not implemented in the first place, or even if the power off key operation is implemented, the power off key operation is disabled while the flag is on after the factory inspection. (Step D6: Yes → Step D9: ON → Step D10).

したがって、前述の第1の制御方法と同様、本実施形態の第2の制御方法を実行する電卓10も、工場検査出荷後に電源を最初にオンにしたとき、より確実に、既定の計算モードで起動させることができる。 Therefore, as with the first control method described above, the calculator 10 that executes the second control method of the present embodiment will more reliably be in the default calculation mode when the power is first turned on after the factory inspection shipment. Can be activated.

次に、本実施形態における第3の制御方法について説明する。電卓10の工場出荷前に実行される処理は、前述した図3に示すフローチャートと同様に実行されるものとして詳細な説明を省略する。以下、本実施形態における第3の制御方法によるキー入力待処理について、図11に示すフローチャートを参照しながら説明する。図12は、出荷後の電卓10による[AC]キー11aの操作に応じた[AC]キー処理を示すフローチャートである。 Next, the third control method in the present embodiment will be described. The process executed before the calculator 10 is shipped from the factory is assumed to be executed in the same manner as the flowchart shown in FIG. 3 described above, and detailed description thereof will be omitted. Hereinafter, the key input waiting process according to the third control method in the present embodiment will be described with reference to the flowchart shown in FIG. FIG. 12 is a flowchart showing the [AC] key processing according to the operation of the [AC] key 11a by the calculator 10 after shipment.

CPU21は、工場検査処理後にキー入力がある場合(ステップF1:Yes)、CPU21は、後述するAPOカウンタをリセットしてから(ステップF6)、電源オフキーの操作であるか判別する(ステップF7)。電源オフキーの操作であると判別される場合(ステップF7:Yes)、ステップF8,F9において第1の制御方法と同様の処理を実行するため、説明を省略する。なお、第1の制御方法と同様、電卓10が電源オフキーにより電源オフする機能を設けない場合には、APOカウンタをリセットした後(ステップF6)、電源オフキーの操作を判別する処理を省略し、ステップF5の処理へ移行する。 When the CPU 21 receives a key input after the factory inspection process (step F1: Yes), the CPU 21 resets the APO counter described later (step F6) and then determines whether the power off key is operated (step F7). When it is determined that the operation is the power off key (step F7: Yes), the same processing as that of the first control method is executed in steps F8 and F9, and thus the description thereof will be omitted. As in the first control method, when the calculator 10 is not provided with the function of turning off the power by the power off key, the process of determining the operation of the power off key is omitted after resetting the APO counter (step F6). The process proceeds to step F5.

また、CPU21は、電源オフキーの操作でないと判別される場合(ステップF7:No)、キー入力に応じた処理(従来処理)を実行する(ステップF5)。すなわち、第3の制御方法では、工場検査後に、税計算モード切替キー11dを含むキー操作に応じた通常処理(従来処理)を可能とする。従って、キー入力部11に対するキー操作に応じた動作確認をすることができる。 Further, when it is determined that the operation is not the power off key operation (step F7: No), the CPU 21 executes a process (conventional process) according to the key input (step F5). That is, in the third control method, after the factory inspection, normal processing (conventional processing) corresponding to the key operation including the tax calculation mode switching key 11d is enabled. Therefore, it is possible to confirm the operation according to the key operation on the key input unit 11.

一方、キー入力がない場合には(ステップF1:No)、CPU21は、APOカウンタを時間経過に応じて減算する(ステップF2)。CPU21は、APOカウンタが「0」でなければ、前述したように、キー入力に応じた処理を実行する(ステップF1,F5)。 On the other hand, when there is no key input (step F1: No), the CPU 21 subtracts the APO counter according to the passage of time (step F2). If the APO counter is not "0", the CPU 21 executes processing according to the key input as described above (steps F1 and F5).

電卓10は、工場検査処理後に動作確認などがされた後、梱包されて出荷される。電卓10が梱包された状態で、CPU21は、APOカウンタを時間経過に応じて減算し(ステップF2)、APOカウンタが「0」になると(ステップF3:Yes)、APO機能による従来の電源オフ処理を実行する(ステップF4)。 The calculator 10 is packed and shipped after the operation is confirmed after the factory inspection process. With the calculator 10 packed, the CPU 21 subtracts the APO counter with the passage of time (step F2), and when the APO counter becomes "0" (step F3: Yes), the conventional power-off process by the APO function is performed. Is executed (step F4).

こうして、第3の制御方法では、工場検査後に工場検査後フラグエリア22cに工場検査後フラグオン(第1情報)が記憶された状態で出荷される。 In this way, in the third control method, after the factory inspection, the post-factory inspection flag area 22c is shipped with the post-factory inspection flag-on (first information) stored.

出荷後の電卓10は、例えばユーザによる[AC]キー11aに対する操作によって起動が指示される。CPU21は、電源オフの状態における[AC]キー11aのキー操作に応じて(図12、ステップG1:Yes)、通常の電源オン処理を実行して、電卓10を起動させる。 The calculator 10 after shipment is instructed to be activated by, for example, an operation on the [AC] key 11a by the user. The CPU 21 executes a normal power-on process in response to a key operation of the [AC] key 11a in the power-off state (FIG. 12, step G1: Yes) to activate the calculator 10.

CPU21は、電源オン処理後に工場検査後フラグエリア22cを参照し、工場検査後フラグが、工場検査処理が実行済み(工場検査後フラグオン(第1情報))を示しているか判別する。工場検査後フラグオンの場合(ステップG3:ON)、CPU21は、計算モード設定処理を実行して、税計算モードを既定の計算モードに設定する。すなわち、CPU21は、税計算モードエリア22mに税込み計算モードを示す税計算モードデータ(GST+)を記憶させる(ステップG4)。その後、CPU21は、工場検査後フラグエリア22cに、工場検査処理が実行済みであることを示さない工場検査後フラグオフ(第2情報)を記憶させて(ステップG5)、従来の[AC]キー11aに対する操作に応じたAC処理を実行する(ステップG6)。 The CPU 21 refers to the post-factory inspection flag area 22c after the power-on process, and determines whether the post-factory inspection flag indicates that the factory inspection process has been executed (flag-on after factory inspection (first information)). When the flag is turned on after the factory inspection (step G3: ON), the CPU 21 executes the calculation mode setting process to set the tax calculation mode to the default calculation mode. That is, the CPU 21 stores the tax calculation mode data (GST +) indicating the tax-included calculation mode in the tax calculation mode area 22m (step G4). After that, the CPU 21 stores the post-factory inspection flag off (second information) that does not indicate that the factory inspection process has been executed in the post-factory inspection flag area 22c (step G5), and the conventional [AC] key 11a AC processing is executed according to the operation for (step G6).

なお、CPU21は、電源オフの状態でない場合に[AC]キー11aが操作された場合には(ステップG1:No)、従来の[AC]キー11aに対する操作に応じたAC処理を実行する(ステップG6)。 When the [AC] key 11a is operated when the power is not turned off (step G1: No), the CPU 21 executes an AC process according to the operation on the conventional [AC] key 11a (step G1: No). G6).

図10は、第3の制御方法における具体的な処理内容を説明するためのキー操作と表示例を示す図である。すなわち、第3の制御方法では、前述した第2の制御方法と同様にしてキー操作に応じた表示がされる。ただし、第2の制御方法では、APO処理において、計算モード設定処理を実行して、既定の税計算モードを設定するのに対して、第3の制御方法では、APO機能により電源オフされた後の[AC]キー11aに応じた最初の起動時に、計算モード設定処理を実行して、既定の税計算モードを設定する。 FIG. 10 is a diagram showing a key operation and a display example for explaining a specific processing content in the third control method. That is, in the third control method, the display is performed according to the key operation in the same manner as in the second control method described above. However, in the second control method, the calculation mode setting process is executed in the APO process to set the default tax calculation mode, whereas in the third control method, after the power is turned off by the APO function. At the first activation according to the [AC] key 11a of the above, the calculation mode setting process is executed to set the default tax calculation mode.

このように、第3の制御方法では、工場検査後に最初にAPO機能により電源オフするまでの間では、税計算モード切替キー11dを含む各キー入力に応じた通常処理を実行可能とする。そして、出荷後にユーザが最初に電源オンする際に、既定の税計算モード(税込み計算モード)に設定して起動させる。すなわち、工場検査後、税計算モード切替キー11dが操作されて、税計算モードが変更されたとしても、確実に既定の税計算モード(税込み計算モード)によって起動させることができる。 As described above, in the third control method, the normal processing corresponding to each key input including the tax calculation mode switching key 11d can be executed until the power is first turned off by the APO function after the factory inspection. Then, when the user first turns on the power after shipment, the default tax calculation mode (tax-included calculation mode) is set and activated. That is, even if the tax calculation mode switching key 11d is operated after the factory inspection and the tax calculation mode is changed, the tax calculation mode can be reliably activated by the default tax calculation mode (tax-included calculation mode).

本実施形態における第3の制御方法によれば、電卓10は、工場検査処理後に工場検査後フラグをオンにし(ステップS10)、かつ、電源オン中に[AC]キー11aが操作された場合のみ(ステップG1:Yes)、既定の計算モード(税込み計算モード)へ設定して(ステップG4)、工場検査後フラグをオフするものとした(ステップG5)。なお、電卓10は、電源オフキーの操作がそもそも実装されていないか、または、電源オフキーの操作が実装されていても、工場検査後フラグがオンである間、電源オフキーの操作が無効にしている(ステップF7:Yes→ステップF8:ON→ステップF9)。 According to the third control method in the present embodiment, the calculator 10 turns on the post-factory inspection flag after the factory inspection process (step S10), and only when the [AC] key 11a is operated while the power is on. (Step G1: Yes), the default calculation mode (calculation mode including tax) is set (step G4), and the flag is turned off after the factory inspection (step G5). In the calculator 10, the power off key operation is not implemented in the first place, or even if the power off key operation is implemented, the power off key operation is disabled while the flag is on after the factory inspection. (Step F7: Yes → Step F8: ON → Step F9).

したがって、前述の第1の制御方法と同様、本実施形態の第3の制御方法を実行する電卓10も、工場検査出荷後に電源を最初にオンにしたとき、より確実に、既定の計算モードで起動させることができる。 Therefore, similarly to the first control method described above, the calculator 10 that executes the third control method of the present embodiment will be more reliably set in the default calculation mode when the power is first turned on after the factory inspection and shipment. Can be activated.

なお、上記の実施形態では、工場出荷前に実施されるある処理として工場検査処理を対象として説明したが、工場検査処理だけではなく、その他の予め定めた処理を対象としてもよい。各種の予め定めた処理としては、電子機器全般における設定初期化処理や再起動処理、当該機器が実行可能な機能のうち一部の機能が利用制限された制限モードを設定する処理などが挙げられる。この場合、電子機器の設定初期化処理や再起動処理の実行に応じて、当該電子機器が既定の処理モードに設定されたり、電子機器の制限モードを設定する処理の実行に応じて、当該電子機器が制限モードに設定されたりする。その後、上記の実施形態で述べた第1の制御方法、第2の制御方法、及び第3の制御方法の何れかが実行されることにより、当該機器の電源がいったんオフされた後にオンして以降は、設定されていた各種の処理モードが解除されてよい。 In the above embodiment, the factory inspection process has been described as a certain process performed before shipment from the factory, but not only the factory inspection process but also other predetermined processes may be targeted. Examples of various predetermined processes include setting initialization processing and restart processing for all electronic devices, and processing for setting a restricted mode in which some of the functions that can be executed by the device are restricted. .. In this case, the electronic device is set to the default processing mode according to the execution of the setting initialization process or the restart process of the electronic device, or the electronic device is set according to the execution of the process of setting the restriction mode of the electronic device. The device is set to restricted mode. After that, by executing any one of the first control method, the second control method, and the third control method described in the above embodiment, the power of the device is once turned off and then turned on. After that, various processing modes that have been set may be canceled.

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

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

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

以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。 The inventions described in the claims of the original application of the present application are described below.

[1]
設定された処理モードに応じた処理を実行可能な制御部を備える電子機器であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでのある期間は少なくとも、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、電子機器。
[1]
An electronic device equipped with a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
The processing mode is changed even if the default operation for changing the processing mode is executed at least for a certain period from the end of the execution of the default mode setting process to the first power-off of the electronic device. Not an electronic device.

[2]
前記制御部は、
前記ある期間に、前記既定の操作に用いられる特定のキーが、当該既定の操作とは異なる方法で操作されたと判別すると、前記電子機器に設定されている前記処理モードを当該設定されている処理モードとは異なる別の処理モードへ変更する、[1]記載の電子機器。
[2]
The control unit
When it is determined that the specific key used for the default operation is operated by a method different from the default operation during the certain period, the processing mode set in the electronic device is changed to the set processing. The electronic device according to [1], which changes to a processing mode different from the mode.

[3]
前記制御部は、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになり、その後、最初に当該電子機器の電源がオンになって以降の電源オン中は、前記既定の操作が実行されたと判別すると、前記電子機器に設定されている前記処理モードを当該設定されている処理モードとは異なる別の処理モードへ変更する、[1]又は[2]記載の電子機器。
[3]
The control unit
After the execution of the default mode setting process is completed, the power of the electronic device is first turned off, and then the default operation is executed during the power-on after the power of the electronic device is first turned on. The electronic device according to [1] or [2], which changes the processing mode set in the electronic device to another processing mode different from the set processing mode.

[4]
前記制御部は、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでの間、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、[1乃至[3の何れか一項記載の電子機器。
[4]
The control unit
After the execution of the default mode setting process is completed, the processing mode is not changed even if the default operation for changing the processing mode is executed until the electronic device is first turned off. The electronic device according to any one of 1 to [3.

[5]
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフになるとき、前記予め定めた処理を実行済みであることを示さない第2情報を前記記憶部に記憶させ、
前記既定の操作が実行された場合、
前記記憶部に前記第1情報が記憶されていると判別すると、前記電子機器に設定されている前記処理モードを変更せず、
前記記憶部に前記第2情報が記憶されていると判別すると、前記電子機器に設定されている前記処理モードを当該設定されている処理モードとは異なる別の処理モードへ変更する、[1]乃至[4]の何れか一項記載の電子機器。
[5]
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
When the power of the electronic device is turned off, the storage unit stores second information that does not indicate that the predetermined process has been executed.
If the above default operation is performed
When it is determined that the first information is stored in the storage unit, the processing mode set in the electronic device is not changed.
When it is determined that the second information is stored in the storage unit, the processing mode set in the electronic device is changed to another processing mode different from the set processing mode [1]. The electronic device according to any one of [4].

[6]
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフになるとき、前記既定モード設定処理を実行しない、電子機器。
[6]
An electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned off after the execution of the default mode setting process is completed, the default mode setting process is executed again.
An electronic device that does not execute the default mode setting process when the power of the electronic device is turned off for the second time or later after the execution of the default mode setting process is completed.

[7]
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
その後、前記電子機器の電源がオフになるとき、前記予め定めた処理を実行済みであることを示さない第2情報を前記記憶部に記憶させる、[6]記載の電子機器。
[7]
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
After that, when the power of the electronic device is turned off, the electronic device according to [6] stores second information that does not indicate that the predetermined process has been executed in the storage unit.

[8]
前記制御部は、
前記電子機器の電源がオフになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記第2情報を前記記憶部に記憶させる、[7]記載の電子機器。
[8]
The control unit
The electronic device according to [7], wherein when it is determined that the first information is stored in the storage unit when the power of the electronic device is turned off, the second information is stored in the storage unit.

[9]
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記既定モード設定処理を再度実行し、
前記電子機器の電源がオフになるとき、前記記憶部に前記第1情報が記憶されていないと判別すると、前記既定モード設定処理を実行しない、
[6]乃至[8]の何れか一項記載の電子機器。
[9]
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
When it is determined that the first information is stored in the storage unit when the power of the electronic device is turned off, the default mode setting process is executed again.
When it is determined that the first information is not stored in the storage unit when the power of the electronic device is turned off, the default mode setting process is not executed.
The electronic device according to any one of [6] to [8].

[10]
前記制御部は、
前記電子機器の電源がオンになるとき、前回、当該電子機器の電源がオフになったときの処理モードで、前記電子機器を起動する、
[1]乃至[9]の何れか一項記載の電子機器。
[10]
The control unit
When the power of the electronic device is turned on, the electronic device is started in the processing mode when the power of the electronic device was turned off last time.
The electronic device according to any one of [1] to [9].

[11]
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を実行しない、電子機器。
[11]
An electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned on after the execution of the default mode setting process is completed, the default mode setting process is executed again.
An electronic device that does not execute the default mode setting process when the power of the electronic device is turned on from off for the second time or later after the execution of the default mode setting process is completed.

[12]
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフからオンになるとき、前記予め定めた処理を実行済みであることを示さない第2情報を前記記憶部に記憶させる、[11]記載の電子機器。
[12]
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
The electronic device according to [11], wherein when the power of the electronic device is turned on from off, second information that does not indicate that the predetermined process has been executed is stored in the storage unit.

[13]
前記制御部は、
前記電子機器の電源がオフからオンになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記第2情報を前記記憶部に記憶させる、[12]記載の電子機器。
[13]
The control unit
The electronic device according to [12], wherein when it is determined that the first information is stored in the storage unit when the power of the electronic device is turned on from off, the second information is stored in the storage unit.

[14]
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフからオンになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記既定モード設定処理を再度実行し、
前記電子機器の電源がオフからオンになるとき、前記記憶部に前記第1情報が記憶されていないと判別すると、前記既定モード設定処理を実行しない、
[11]乃至[13]の何れか一項記載の電子機器。
[14]
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
When it is determined that the first information is stored in the storage unit when the power of the electronic device is turned on from off, the default mode setting process is executed again.
When it is determined that the first information is not stored in the storage unit when the power of the electronic device is turned on from off, the default mode setting process is not executed.
The electronic device according to any one of [11] to [13].

[15]
前記制御部は、
前記予め定めた処理の実行終了後、最初に前記電子機器の電源がオフになるまでの間、オートパワーオフ機能によって前記電子機器の電源をオフする、[4]、[6]乃至[8]、及び、[11]乃至[13]の何れか一項記載の電子機器。
[15]
The control unit
[4], [6] to [8], in which the power of the electronic device is turned off by the auto power off function after the execution of the predetermined process is completed and until the power of the electronic device is first turned off. , And the electronic device according to any one of [11] to [13].

[16]
前記制御部は、
前記予め定めた処理の実行終了後、最初に前記電子機器の電源がオフになるまでの間、電源オフキーの操作を無効化する、[4]、[6]乃至[8]、及び、[11]乃至[14]の何れか一項記載の電子機器。
[16]
The control unit
After the execution of the predetermined process is completed, the operation of the power off key is invalidated until the electronic device is first turned off, [4], [6] to [8], and [11]. ] To [14]. The electronic device according to any one of the items.

[17]
前記電子機器は、計算機であって、
前記処理モードは、前記計算機が実行可能な税込計算モード及び税抜計算モードの何れかであって、
前記処理モードに応じた処理は、税込計算処理及び税抜計算処理の何れかであって、
前記予め定めた処理は、前記計算機の工場検査処理である、[4]、[6]乃至[8]、及び、[11]乃至[15]の何れか一項記載の電子機器。
[17]
The electronic device is a computer
The processing mode is either a tax-included calculation mode or a tax-excluded calculation mode that can be executed by the computer.
The processing according to the processing mode is either tax-included calculation processing or tax-excluded calculation processing.
The electronic device according to any one of [4], [6] to [8], and [11] to [15], which is a factory inspection process of the computer.

[18]
設定された処理モードに応じた処理を実行可能な電子機器のコンピュータを、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでの期間は少なくとも、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、ように機能させるためのプログラム。
[18]
An electronic computer that can perform processing according to the set processing mode,
Execute the default mode setting process to set the process mode to the default process mode,
The processing mode is not changed even if the default operation for changing the processing mode is executed at least during the period from the end of the execution of the default mode setting process to the first turning off of the power of the electronic device. , A program to make it work.

[19]
設定された処理モードに応じた処理を実行可能な電子機器のコンピュータを
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフになるとき、前記既定モード設定処理を実行しない、ように機能させるためのプログラム。
[19]
The computer of the electronic device capable of executing the processing according to the set processing mode executes the default mode setting process for setting the processing mode to the default processing mode.
When the power of the electronic device is first turned off after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A program for causing the electronic device to function so as not to be executed when the power of the electronic device is turned off for the second time or later after the execution of the default mode setting process is completed.

[20]
設定された処理モードに応じた処理を実行可能な電子機器のコンピュータを、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を実行しない、ように機能させるためのプログラム。
[20]
An electronic computer that can perform processing according to the set processing mode,
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned on after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A program for causing the electronic device to function so as not to be executed when the power of the electronic device is turned on from the second time after the execution of the default mode setting process is completed.

[21]
設定された処理モードに応じた処理を実行可能な制御部を備える電子機器の制御方法であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでの期間は少なくとも、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、制御方法。
[21]
It is a control method of an electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
The processing mode is not changed even if the default operation for changing the processing mode is executed at least during the period from the end of the execution of the default mode setting process to the first turning off of the power of the electronic device. , Control method.

[22]
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器の制御方法であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフになるとき、前記既定モード設定処理を実行しない、制御方法。
[22]
It is a control method of an electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned off after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A control method in which the default mode setting process is not executed when the power of the electronic device is turned off for the second time or later after the execution of the default mode setting process is completed.

[23]
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器の制御方法であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を実行しない、制御方法。
[23]
It is a control method of an electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned on after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A control method in which the default mode setting process is not executed when the power of the electronic device is turned on from the second time after the execution of the default mode setting process is completed.

10…電卓、11…キー入力部、11b0…税0計算キー、11b1…税1計算キー、11b2…税2計算キー、11b3…税3計算キー、11b4…税4計算キー、11c…税計算合計キー、11d…税計算モード切替キー、12…表示部、21…CPU、22…メモリ、22a…工場検査プログラム、22b…計算処理プログラム、22c…工場検査後フラグエリア、22d…税率別税合計メモリエリア、22e…税率記憶エリア、22g…税率別税合計メモリエリア、22h…合計メモリエリア、22k…税合計リコールモードエリア、22m…税計算モードエリア、22n…バッファメモリエリア、22p…表示メモリエリア。 10 ... Calculator, 11 ... Key input unit, 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, 21 ... CPU, 22 ... Memory, 22a ... Factory inspection program, 22b ... Calculation processing program, 22c ... Flag area after factory inspection, 22d ... Total tax 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 (23)

設定された処理モードに応じた処理を実行可能な制御部を備える電子機器であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでのある期間は少なくとも、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、電子機器。
An electronic device equipped with a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
The processing mode is changed even if the default operation for changing the processing mode is executed at least for a certain period from the end of the execution of the default mode setting process to the first power-off of the electronic device. Not an electronic device.
前記制御部は、
前記ある期間に、前記既定の操作に用いられる特定のキーが、当該既定の操作とは異なる方法で操作されたと判別すると、前記電子機器に設定されている前記処理モードを当該設定されている処理モードとは異なる別の処理モードへ変更する、請求項1記載の電子機器。
The control unit
When it is determined that the specific key used for the default operation is operated by a method different from the default operation during the certain period, the processing mode set in the electronic device is changed to the set processing. The electronic device according to claim 1, wherein the processing mode is changed to a different processing mode from the mode.
前記制御部は、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになり、その後、最初に当該電子機器の電源がオンになって以降の電源オン中は、前記既定の操作が実行されたと判別すると、前記電子機器に設定されている前記処理モードを当該設定されている処理モードとは異なる別の処理モードへ変更する、請求項1又は請求項2記載の電子機器。
The control unit
After the execution of the default mode setting process is completed, the power of the electronic device is first turned off, and then the default operation is executed during the power on after the electronic device is first turned on. The electronic device according to claim 1 or 2, wherein the processing mode set in the electronic device is changed to another processing mode different from the set processing mode.
前記制御部は、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでの間、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、請求項1乃至請求項3の何れか一項記載の電子機器。
The control unit
After the execution of the default mode setting process is completed, the processing mode is not changed even if the default operation for changing the processing mode is executed until the electronic device is first turned off. The electronic device according to any one of items 1 to 3.
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフになるとき、前記予め定めた処理を実行済みであることを示さない第2情報を前記記憶部に記憶させ、
前記既定の操作が実行された場合、
前記記憶部に前記第1情報が記憶されていると判別すると、前記電子機器に設定されている前記処理モードを変更せず、
前記記憶部に前記第2情報が記憶されていると判別すると、前記電子機器に設定されている前記処理モードを当該設定されている処理モードとは異なる別の処理モードへ変更する、請求項1乃至請求項4の何れか一項記載の電子機器。
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
When the power of the electronic device is turned off, the storage unit stores second information that does not indicate that the predetermined process has been executed.
If the above default operation is performed
When it is determined that the first information is stored in the storage unit, the processing mode set in the electronic device is not changed.
1. If it is determined that the second information is stored in the storage unit, the processing mode set in the electronic device is changed to a processing mode different from the set processing mode. The electronic device according to any one of claims 4.
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフになるとき、前記既定モード設定処理を実行しない、電子機器。
An electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned off after the execution of the default mode setting process is completed, the default mode setting process is executed again.
An electronic device that does not execute the default mode setting process when the power of the electronic device is turned off for the second time or later after the execution of the default mode setting process is completed.
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
その後、前記電子機器の電源がオフになるとき、前記予め定めた処理を実行済みであることを示さない第2情報を前記記憶部に記憶させる、請求項6記載の電子機器。
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
The electronic device according to claim 6, wherein when the power of the electronic device is turned off, the storage unit stores second information that does not indicate that the predetermined process has been executed.
前記制御部は、
前記電子機器の電源がオフになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記第2情報を前記記憶部に記憶させる、請求項7記載の電子機器。
The control unit
The electronic device according to claim 7, wherein when it is determined that the first information is stored in the storage unit when the power of the electronic device is turned off, the second information is stored in the storage unit.
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記既定モード設定処理を再度実行し、
前記電子機器の電源がオフになるとき、前記記憶部に前記第1情報が記憶されていないと判別すると、前記既定モード設定処理を実行しない、
請求項6乃至8の何れか一項記載の電子機器。
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
When it is determined that the first information is stored in the storage unit when the power of the electronic device is turned off, the default mode setting process is executed again.
When it is determined that the first information is not stored in the storage unit when the power of the electronic device is turned off, the default mode setting process is not executed.
The electronic device according to any one of claims 6 to 8.
前記制御部は、
前記電子機器の電源がオンになるとき、前回、当該電子機器の電源がオフになったときの処理モードで、前記電子機器を起動する、
請求項1乃至9の何れか一項記載の電子機器。
The control unit
When the power of the electronic device is turned on, the electronic device is started in the processing mode when the power of the electronic device was turned off last time.
The electronic device according to any one of claims 1 to 9.
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を実行しない、電子機器。
An electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned on after the execution of the default mode setting process is completed, the default mode setting process is executed again.
An electronic device that does not execute the default mode setting process when the power of the electronic device is turned on from off for the second time or later after the execution of the default mode setting process is completed.
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフからオンになるとき、前記予め定めた処理を実行済みであることを示さない第2情報を前記記憶部に記憶させる、請求項11記載の電子機器。
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
The electronic device according to claim 11, wherein when the power of the electronic device is turned on from off, second information that does not indicate that the predetermined process has been executed is stored in the storage unit.
前記制御部は、
前記電子機器の電源がオフからオンになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記第2情報を前記記憶部に記憶させる、請求項12記載の電子機器。
The control unit
The electronic device according to claim 12, wherein when it is determined that the first information is stored in the storage unit when the power of the electronic device is turned on from off, the second information is stored in the storage unit.
前記制御部は、
予め定めた処理を実行したことに応じて、前記既定モード設定処理を実行するとともに、当該予め定めた処理を実行済みであることを示す第1情報を前記電子機器の記憶部に記憶させ、
前記電子機器の電源がオフからオンになるとき、前記記憶部に前記第1情報が記憶されていると判別すると、前記既定モード設定処理を再度実行し、
前記電子機器の電源がオフからオンになるとき、前記記憶部に前記第1情報が記憶されていないと判別すると、前記既定モード設定処理を実行しない、
請求項11乃至13の何れか一項記載の電子機器。
The control unit
In response to the execution of the predetermined process, the default mode setting process is executed, and the first information indicating that the predetermined process has been executed is stored in the storage unit of the electronic device.
When it is determined that the first information is stored in the storage unit when the power of the electronic device is turned on from off, the default mode setting process is executed again.
When it is determined that the first information is not stored in the storage unit when the power of the electronic device is turned on from off, the default mode setting process is not executed.
The electronic device according to any one of claims 11 to 13.
前記制御部は、
前記予め定めた処理の実行終了後、最初に前記電子機器の電源がオフになるまでの間、オートパワーオフ機能によって前記電子機器の電源をオフする、請求項4、請求項6乃至請求項8、及び、請求項11乃至請求項13の何れか一項記載の電子機器。
The control unit
Claims 4, 6 to 8 in which the power of the electronic device is turned off by the auto power off function after the execution of the predetermined process is completed and until the power of the electronic device is first turned off. , And the electronic device according to any one of claims 11 to 13.
前記制御部は、
前記予め定めた処理の実行終了後、最初に前記電子機器の電源がオフになるまでの間、電源オフキーの操作を無効化する、請求項4、請求項6乃至請求項8、及び、請求項11乃至請求項14の何れか一項記載の電子機器。
The control unit
4., claims 6 to 8, and claims that the operation of the power off key is invalidated until the electronic device is first turned off after the execution of the predetermined process is completed. The electronic device according to any one of 11 to 14.
前記電子機器は、計算機であって、
前記処理モードは、前記計算機が実行可能な税込計算モード及び税抜計算モードの何れかであって、
前記処理モードに応じた処理は、税込計算処理及び税抜計算処理の何れかであって、
前記予め定めた処理は、前記計算機の工場検査処理である、請求項4、請求項6乃至請求項8、及び、請求項11乃至請求項15の何れか一項記載の電子機器。
The electronic device is a computer
The processing mode is either a tax-included calculation mode or a tax-excluded calculation mode that can be executed by the computer.
The processing according to the processing mode is either tax-included calculation processing or tax-excluded calculation processing.
The electronic device according to any one of claims 4, claims 6 to 8, and claims 11 to 15, which is a factory inspection process of the computer.
設定された処理モードに応じた処理を実行可能な電子機器のコンピュータを、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでの期間は少なくとも、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、ように機能させるためのプログラム。
An electronic computer that can perform processing according to the set processing mode,
Execute the default mode setting process to set the process mode to the default process mode,
The processing mode is not changed even if the default operation for changing the processing mode is executed at least during the period from the end of the execution of the default mode setting process to the first turning off of the power of the electronic device. , A program to make it work.
設定された処理モードに応じた処理を実行可能な電子機器のコンピュータを
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフになるとき、前記既定モード設定処理を実行しない、ように機能させるためのプログラム。
The computer of the electronic device capable of executing the processing according to the set processing mode executes the default mode setting process for setting the processing mode to the default processing mode.
When the power of the electronic device is first turned off after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A program for causing the electronic device to function so as not to be executed when the power of the electronic device is turned off for the second time or later after the execution of the default mode setting process is completed.
設定された処理モードに応じた処理を実行可能な電子機器のコンピュータを、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を実行しない、ように機能させるためのプログラム。
An electronic computer that can perform processing according to the set processing mode,
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned on after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A program for causing the electronic device to function so as not to be executed when the power of the electronic device is turned on from the second time after the execution of the default mode setting process is completed.
設定された処理モードに応じた処理を実行可能な制御部を備える電子機器の制御方法であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるまでの期間は少なくとも、前記処理モードを変更するための既定の操作を実行しても、前記処理モードを変更しない、制御方法。
It is a control method of an electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
The processing mode is not changed even if the default operation for changing the processing mode is executed at least during the period from the end of the execution of the default mode setting process to the first turning off of the power of the electronic device. , Control method.
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器の制御方法であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフになるとき、前記既定モード設定処理を実行しない、制御方法。
It is a control method of an electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned off after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A control method in which the default mode setting process is not executed when the power of the electronic device is turned off for the second time or later after the execution of the default mode setting process is completed.
設定された処理モードに応じた処理を実行可能な制御部を有する電子機器の制御方法であって、
前記制御部は、
前記処理モードを既定の処理モードへ設定する既定モード設定処理を実行し、
前記既定モード設定処理の実行終了後、最初に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を再度実行し、
前記既定モード設定処理の実行終了後、2回目以降に前記電子機器の電源がオフからオンになるとき、前記既定モード設定処理を実行しない、制御方法。
It is a control method of an electronic device having a control unit capable of executing processing according to a set processing mode.
The control unit
Execute the default mode setting process to set the process mode to the default process mode,
When the power of the electronic device is first turned on after the execution of the default mode setting process is completed, the default mode setting process is executed again.
A control method in which the default mode setting process is not executed when the power of the electronic device is turned on from the second time after the execution of the default mode setting process is completed.
JP2020029303A 2019-04-05 2020-02-25 Electronics, control methods, and programs Active JP7031691B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019072905 2019-04-05
JP2019072905 2019-04-05

Publications (3)

Publication Number Publication Date
JP2020173785A true JP2020173785A (en) 2020-10-22
JP2020173785A5 JP2020173785A5 (en) 2020-12-03
JP7031691B2 JP7031691B2 (en) 2022-03-08

Family

ID=72831399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020029303A Active JP7031691B2 (en) 2019-04-05 2020-02-25 Electronics, control methods, and programs

Country Status (1)

Country Link
JP (1) JP7031691B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11202989A (en) * 1998-01-19 1999-07-30 Uniden Corp Electronic equipment and canceling method for its low-power-consumption mode
JP3098250U (en) * 2003-06-02 2004-02-26 オーロラジャパン株式会社 Calculator without power key
JP2007050653A (en) * 2005-08-19 2007-03-01 Brother Ind Ltd Image forming device
JP2007086412A (en) * 2005-09-22 2007-04-05 Yamaha Corp Acoustic equipment setting device and its program
JP2017041234A (en) * 2015-08-20 2017-02-23 カシオ計算機株式会社 Function utilization device, function utilization method, and function utilization program
JP2019036793A (en) * 2017-08-10 2019-03-07 キヤノン株式会社 Printer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11202989A (en) * 1998-01-19 1999-07-30 Uniden Corp Electronic equipment and canceling method for its low-power-consumption mode
JP3098250U (en) * 2003-06-02 2004-02-26 オーロラジャパン株式会社 Calculator without power key
JP2007050653A (en) * 2005-08-19 2007-03-01 Brother Ind Ltd Image forming device
JP2007086412A (en) * 2005-09-22 2007-04-05 Yamaha Corp Acoustic equipment setting device and its program
JP2017041234A (en) * 2015-08-20 2017-02-23 カシオ計算機株式会社 Function utilization device, function utilization method, and function utilization program
JP2019036793A (en) * 2017-08-10 2019-03-07 キヤノン株式会社 Printer

Also Published As

Publication number Publication date
JP7031691B2 (en) 2022-03-08

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
JP2007233503A (en) Information processor and method for controlling electric power consumption
JP7031691B2 (en) Electronics, control methods, and programs
JP6593505B1 (en) Computer, electronic device, setting method, and program
JP7487755B2 (en) calculator
JP6635132B2 (en) Tax calculator, tax calculation method and tax calculation program
US10915301B2 (en) Programming support device, programming support method, and non-transitory recording medium
JP6620907B1 (en) Computer, setting method, and program
JP7383902B2 (en) Calculators, calculation methods, and programs
JP7416138B2 (en) Calculator, setting support method and program
JP6866633B2 (en) Arithmetic logic units, calculation methods, and programs
JP7163705B2 (en) Calculators, calculation methods, and programs
JP6915669B2 (en) Tax calculator, tax calculation method, and tax calculation program
JP7487828B2 (en) Electronic device, calculation support method and program
JP7279355B2 (en) Calculator, display method, and program
JP5392270B2 (en) Electronic calculator
US11366587B2 (en) Electronic device, electronic device control method, and recording medium
JP3098250U (en) Calculator without power key
JP6926556B2 (en) Arithmetic logic units, calculation methods, and programs
JP2016173763A (en) Computation processing device and program
JP2021166097A (en) Computing apparatus, print control method, and program
JP2020057374A (en) Computer, computing method, and program
JP4780006B2 (en) Electronic calculator
JP2014067116A (en) Electronic desk-top calculator

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200923

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200923

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210818

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211116

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220111

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: 20220125

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220207

R150 Certificate of patent or registration of utility model

Ref document number: 7031691

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150