JPS61198352A - Electronics - Google Patents

Electronics

Info

Publication number
JPS61198352A
JPS61198352A JP3737085A JP3737085A JPS61198352A JP S61198352 A JPS61198352 A JP S61198352A JP 3737085 A JP3737085 A JP 3737085A JP 3737085 A JP3737085 A JP 3737085A JP S61198352 A JPS61198352 A JP S61198352A
Authority
JP
Japan
Prior art keywords
key
counting
value
average value
register
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.)
Pending
Application number
JP3737085A
Other languages
Japanese (ja)
Inventor
Hiroshi Nishikawa
寛 西川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3737085A priority Critical patent/JPS61198352A/en
Publication of JPS61198352A publication Critical patent/JPS61198352A/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)
  • Complex Calculations (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、例えば数値キーを有するとともに四則演算を
実行するキーと印刷部とを備えたプリンタ付電卓やキャ
ッシュレジスタ等の電子機器に関し、特にアイテムカウ
ント値を印字可能とするアイテムカウントスイッチを有
する電子機器に関する。
[Detailed Description of the Invention] [Technical Field] The present invention relates to an electronic device such as a calculator with a printer or a cash register, which has numerical keys, keys for executing four arithmetic operations, and a printing section, and in particular, relates to an electronic device such as a calculator with a printer or a cash register, which has numerical keys, keys for executing four arithmetic operations, and a printing section. The present invention relates to an electronic device having an item count switch that enables printing.

〔従来技術〕[Prior art]

従来1例えばプリンタ付電卓においては、いわゆるアイ
テムカウント値を印字指定する第1図に示すようなアイ
テムカウントスイッチが操作部に配置され、例えばこの
スイッチの指示部が図示の位置に設定されると、加減算
実行中のプラスキーを押した回数を計数し、その計数結
果を印字時に例えば第3図に示すように左づめで002
″というように印刷させている。
Conventional 1 For example, in a calculator with a printer, an item count switch as shown in FIG. 1 that specifies printing of the so-called item count value is arranged on the operating section. For example, when the indicating section of this switch is set to the position shown in the figure, Count the number of times the plus key is pressed during addition and subtraction, and when printing the counting results, for example, as shown in Figure 3, the number of times the plus key is pressed is 002.
” is printed.

これは、加減算を実行させてその平均を求めるときに、
きわめて有効な機能であり、その加減算の結果をアイテ
ムカウント値で割ることによりその平均を求めることが
出来る。
This means that when performing addition and subtraction and finding the average,
This is an extremely effective function, and by dividing the result of addition and subtraction by the item count value, you can find the average.

しかしながら、上述したような加減算の結果をアイテム
カウント値で割る際のキー操作がきわめて繁雑であった
However, key operations when dividing the result of addition and subtraction as described above by the item count value are extremely complicated.

〔目 的〕〔the purpose〕

そこで、本発明の目的は、上述の点に鑑み、簡易な操作
により演算結果からその平均値を求めて出力できるよう
にし、もって、平均値を求める際の操作性の向上を図っ
た電子機器を提供することにある。
SUMMARY OF THE INVENTION In view of the above-mentioned points, an object of the present invention is to provide an electronic device that can calculate and output the average value from the calculation results with a simple operation, thereby improving the operability when calculating the average value. It is about providing.

〔実施例〕〔Example〕

以下、図面を参照して本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to the drawings.

第2図は本発明の一実施例を示すブロック図である。FIG. 2 is a block diagram showing one embodiment of the present invention.

第2図において、KBはキーボードであって、0〜9の
キー等で構成されるニューメリックキ一群NK、アイテ
ムカウントの計数開始を指示するアイテムカウントスイ
ッチISW、演算実行指令キ一群であるファンクション
キ一群FK等をそれぞれ配置する。
In FIG. 2, KB is a keyboard, which includes a group of numeric keys NK consisting of keys 0 to 9, an item count switch ISW that instructs to start counting items, and a group of function keys that are a group of operation execution command keys. Place FK etc. respectively.

アイテムカウントスイッチISWには、図示のようにr
AVEJを表示させ、このrAVEJの位置に指示部を
セットすると、後述のように本発明にかかる平均値を求
めるための処理を行ない、その求めた平均値を自動的に
印字出力させる。
The item count switch ISW has r
When AVEJ is displayed and the indicator is set at the rAVEJ position, processing for determining the average value according to the present invention is performed as described later, and the determined average value is automatically printed out.

CPUはマイクロプロセッサ等からなる制御ユニットで
あって、クロックパルス発生回路、遅延回路、ゲート回
路、その他の論理回路によって構成された順序制御回路
と、演算の実行結果等を記憶するレジスタARと、印字
データを記憶する印字レジスタPRと、アイテム数を記
憶するアイテムカウンタIC等により構成し、キーボー
ドKBからのキー信号KBSをトリガとしてあらかじめ
定められた計算等を実行する。
The CPU is a control unit consisting of a microprocessor, etc., and includes a sequence control circuit composed of a clock pulse generation circuit, a delay circuit, a gate circuit, and other logic circuits, a register AR that stores the execution results of calculations, and a printing It is composed of a print register PR that stores data, an item counter IC that stores the number of items, etc., and executes predetermined calculations using a key signal KBS from the keyboard KB as a trigger.

ROMは制御ユニッ)CPUが実行する例えば第4図に
示すような制御手順をあらかじめ記憶させである読み出
し専用メモリである。PRTは制御ユニツ)CPUにて
処理され、印字レジスタPRに格納された印字データを
受けて、その印字データを印字紙上に印字するドツトマ
トリックスプリンタなどの印字装置である。
The ROM is a read-only memory in which a control procedure as shown in FIG. 4, for example, to be executed by the control unit (CPU) is stored in advance. PRT (control unit) is a printing device such as a dot matrix printer that receives print data processed by a CPU and stored in a print register PR, and prints the print data on print paper.

次に第2図で示した実施例のキー操作例とそのキー操作
例に対応した印字内容例を第3図を参照して説明する。
Next, an example of key operation in the embodiment shown in FIG. 2 and an example of printed content corresponding to the example of key operation will be described with reference to FIG. 3.

まず、第3図の手順3−1において、本発明にかかるア
イテムカウントスイッチISWの指示部を第2図に示す
ようにrAVEJの位置にセットする。
First, in step 3-1 of FIG. 3, the indicator of the item count switch ISW according to the present invention is set to the rAVEJ position as shown in FIG.

次いで手順3−2および3−3において、図示のように
数値キーとプラスキー「+」の押下によって加算を実行
させる0次に手順3−4においてイコールキー「=」を
押下すると、アイテムカウント値および演算結果を印字
するとともに、さらに加えて、本発明にかかる演算結果
の平均値を後述のように自動的に求めて印字出力させる
Next, in steps 3-2 and 3-3, press the numeric key and the plus key "+" to perform addition as shown in the figure.Next, in step 3-4, press the equal key "=" to add the item count value. and the calculation results are printed, and in addition, the average value of the calculation results according to the present invention is automatically determined and printed out as described later.

次に、第3図の手順3−4モ示したキー操作における各
部の制御動作を第4図のフローチャートを参照して説明
する。
Next, the control operation of each part in the key operation shown in steps 3-4 of FIG. 3 will be explained with reference to the flowchart of FIG. 4.

まずSlにおいて、通常の数値の置数処理や加減算の実
行処理を行なう。
First, in Sl, normal numerical value setting processing and addition/subtraction execution processing are performed.

次いでステップS2においてイコールキーが押下された
と判定されると、ステップS34こ進んでアイテムカウ
ントスイッチISWの指示部の位置がroFFJの位置
か否かの判別を行ない、アイテムカウントスイッチIS
Wの指示部が「n+」、r fi + / −J、rA
VEJのいずれの位置であればアイテム値を印字する為
にステップ51GおよびSllに進む。
Next, if it is determined in step S2 that the equal key has been pressed, the process proceeds to step S34, where it is determined whether or not the position of the instruction section of the item count switch ISW is at the roFFJ position, and the item count switch IS
The instruction part of W is "n+", r fi + / -J, rA
If it is at any position on VEJ, the process advances to step 51G and Sll to print the item value.

ステップ310では、アイテムカウンタICが計数して
記憶しているアイテムカウント値を印字レジスタPRに
転送させて印字フオームに変換し、ステップSllにお
いて印字レジスタPRの内容を印字装置PRTに転送し
て印字用紙に印字させる。
In step 310, the item count value counted and stored by the item counter IC is transferred to the printing register PR to be converted into a printing form, and in step Sll, the contents of the printing register PR are transferred to the printing device PRT to form the printing paper. to be printed.

次に、ステップS4では、演算結果を印字するために演
算結果を記憶しているレジスタARの内容を、印字レジ
スタPRに転送させて印字フオームに変換し、次のステ
ップS5において印字レジスタPRの内容を印字装置P
RTに転送させて印字用紙に印字させる。
Next, in step S4, in order to print the calculation results, the contents of the register AR that stores the calculation results are transferred to the print register PR and converted into a print form, and in the next step S5, the contents of the print register PR are The printing device P
The information is transferred to RT and printed on printing paper.

次に、ステップS6において、アイテムカウントスイッ
チISWの指示部の位置がrAVEJの位置であればス
テップS7に進む。
Next, in step S6, if the position of the instruction section of the item count switch ISW is at the rAVEJ position, the process advances to step S7.

次のステップS7〜S9では、本発明にかかる各処理を
実行し、まずステップS7でレジスタARに格納される
演算結果をアイテムカウンタICの計数値で除算して平
均値を求め、その求めた平均値をレジスタARに格納し
、次のステップS8でそのレジスタARの内容を印字レ
ジスタPRに転送し、印字フオームに変換する。次いで
不テップS9において印字レジスタPRの内容を印字装
置PRTに転送して印字する。
In the next steps S7 to S9, each process according to the present invention is executed. First, in step S7, the calculation result stored in the register AR is divided by the count value of the item counter IC to obtain an average value. The value is stored in the register AR, and in the next step S8, the contents of the register AR are transferred to the print register PR and converted into a print form. Next, in step S9, the contents of the print register PR are transferred to the printing device PRT and printed.

この結果、印字内容は、例えば第3図の手順3−4の印
字欄に示すようになる。
As a result, the printed content becomes, for example, as shown in the print column of step 3-4 in FIG.

なお、実施例においては、加減算計算においての平均値
を計算する場合について説明したが、本発明はこれに限
られるものではなく、例えばメモリを用いたメモリ計算
時における平均値計算等でもよい、従って、本発明は、
特定スイッチを設け、そのスイッチの押下により自動的
に演算値の平均値を計算するとともにその平均値を印字
出力することができるように構成する。
In addition, in the embodiment, the case where the average value is calculated in addition and subtraction calculations has been described, but the present invention is not limited to this, and for example, the average value calculation during memory calculation using memory, etc. , the present invention:
A specific switch is provided, and when the switch is pressed, the average value of the calculated values can be automatically calculated and the average value can be printed out.

〔効 果〕〔effect〕

以上説明したように本発明によれば、例えばアイテムカ
ウントスイッチの指示部の位置によって、加減算の平均
値を自動計算して出力可能となるようにしたので、平均
値を求める際に、キー操作が簡略されてキー操作を格段
に向上させることができる。
As explained above, according to the present invention, the average value of additions and subtractions can be automatically calculated and output depending on the position of the instruction section of the item count switch, so key operations are not required when calculating the average value. This simplifies the process and greatly improves key operation.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は従来装置におけるアイテムカウントスイッチの
一例を示す線図、 第2図は本発明を適用した装置の一例を示すブロック図
、 第3図は、本発明にかかるキー操作例と、それに対応し
た印字例を示す線図、 第4図は本発明にかかる制御処理の一例を示すフローチ
ャートである。 KB・・・キーボード、 ISW・・・アイテムカウントスイッチ、NK・・・ニ
ューメリックキ一群、 FK・・・ファンクションキ一群。 CPU・・・制御ユニット、 ROM・・・読み出し専用メモリ、 PRT・・・印字装置。 第1図 第2図 第3図 第4図
Fig. 1 is a diagram showing an example of an item count switch in a conventional device, Fig. 2 is a block diagram showing an example of a device to which the present invention is applied, and Fig. 3 is an example of key operations according to the present invention and corresponding responses. FIG. 4 is a flowchart showing an example of control processing according to the present invention. KB: Keyboard, ISW: Item count switch, NK: A group of numeric keys, FK: A group of function keys. CPU...control unit, ROM...read-only memory, PRT...printing device. Figure 1 Figure 2 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] (1)数値を入力可能な第1のキーと、 加減算の実行指示が可能な第2のキーと、 該第2のキーの操作回数を計数する計数手段と、 該計数手段の計数開始を指示する指示手段と、該指示手
段による計数開始の指示があるときには、前記第1のキ
ーから入力された数値と前記第2のキーから入力された
加減算の実行指示に基づいてその演算値を求めるととも
に、前記計数手段の計数値を用いて前記演算値の平均値
を求める手段と、 該手段により求めた前記演算値と前記平均値とを出力さ
せる手段とを具備したことを特徴とする電子機器。 2)特許請求の範囲第1項記載の電子機器において、前
記指示手段は指示部を有し、その指示部を所定位置にセ
ットすることにより前記計数手段の計数開始が行なわれ
るようにしたことを特徴とする電子機器。
(1) A first key capable of inputting a numerical value, a second key capable of instructing the execution of addition and subtraction, a counting means for counting the number of times the second key is operated, and an instruction for the counting means to start counting. and when there is an instruction to start counting by the instruction means, calculate the calculated value based on the numerical value input from the first key and the addition/subtraction execution instruction input from the second key. An electronic device comprising: means for calculating an average value of the calculated values using the count value of the counting means; and means for outputting the calculated value and the average value calculated by the means. 2) In the electronic device according to claim 1, the indicating means has an indicating part, and the counting by the counting means is started by setting the indicating part at a predetermined position. Featured electronic equipment.
JP3737085A 1985-02-28 1985-02-28 Electronics Pending JPS61198352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3737085A JPS61198352A (en) 1985-02-28 1985-02-28 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3737085A JPS61198352A (en) 1985-02-28 1985-02-28 Electronics

Publications (1)

Publication Number Publication Date
JPS61198352A true JPS61198352A (en) 1986-09-02

Family

ID=12495631

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3737085A Pending JPS61198352A (en) 1985-02-28 1985-02-28 Electronics

Country Status (1)

Country Link
JP (1) JPS61198352A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9469964B2 (en) 2011-08-24 2016-10-18 Kobelco Construction Machinery Co., Ltd. Pipe mounting structure in work machine

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5263042A (en) * 1975-11-11 1977-05-25 Toshiba Corp Electronic computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5263042A (en) * 1975-11-11 1977-05-25 Toshiba Corp Electronic computer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9469964B2 (en) 2011-08-24 2016-10-18 Kobelco Construction Machinery Co., Ltd. Pipe mounting structure in work machine

Similar Documents

Publication Publication Date Title
JP2913758B2 (en) Document processing device
US4553219A (en) Typewriter having calculating capability
JPH0417479B2 (en)
US4346450A (en) Electronic calculator having item count display
JPS62104785A (en) Document processing apparatus
JPH0440739B2 (en)
JPS6132174A (en) Electronic device
JPS58178461A (en) Electronic equipment with printer
JPS6133223B2 (en)
JPS60254221A (en) Electronics
JPS60253576A (en) Printing apparatus
JPS5897762A (en) Printable electronic calculator
JPS61157968A (en) Electronic apparatus
JPS5994158A (en) Computer with printer
JPH059821B2 (en)
JPS60253571A (en) Output control method
JPS6226495B2 (en)
JPS6023876A (en) Electronics
JPS58147392A (en) electronic numbering device
JPS6238735B2 (en)
JPH0139140B2 (en)
JPS58178462A (en) Printing type electronic desk calculator
JPS60254274A (en) Document processor
JPS61104879A (en) character processing device
JPS61157967A (en) Electronics