JPH0158538B2 - - Google Patents

Info

Publication number
JPH0158538B2
JPH0158538B2 JP55045157A JP4515780A JPH0158538B2 JP H0158538 B2 JPH0158538 B2 JP H0158538B2 JP 55045157 A JP55045157 A JP 55045157A JP 4515780 A JP4515780 A JP 4515780A JP H0158538 B2 JPH0158538 B2 JP H0158538B2
Authority
JP
Japan
Prior art keywords
data
time data
time
register
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP55045157A
Other languages
Japanese (ja)
Other versions
JPS56143066A (en
Inventor
Shigeru Matsuyama
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 JP4515780A priority Critical patent/JPS56143066A/en
Publication of JPS56143066A publication Critical patent/JPS56143066A/en
Publication of JPH0158538B2 publication Critical patent/JPH0158538B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Calculators And Similar Devices (AREA)

Description

【発明の詳細な説明】 本発明は、時間計算および時刻計算の機能を有
し、印字機能を備えた加算機、電卓などの電子機
器に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to electronic devices such as adding machines and calculators that have time calculation and time calculation functions and are equipped with a printing function.

ここでいう「時間計算」とは、例えば午後3時
から午前10時を減じて5時間を得るというよう
な、2つの時刻の間の時間差を求める計算とか、
2時間30分に6時間40分を加えて9時間10分を得
るというような、60進計算のことを指し、「時刻
計算」とは、例えば午前11時に3時間20分を加
え、午後2時20分を得たり、午後1時30分から3
時間を減じて、午後10時30分を得るが如き計算の
ことを指している。
"Time calculation" here refers to calculations to find the time difference between two times, such as subtracting 10 a.m. from 3 p.m. to get 5 hours.
It refers to sexagesimal calculations such as adding 6 hours and 40 minutes to 2 hours and 30 minutes to get 9 hours and 10 minutes. 20:00 p.m. or 1:30 p.m.
It refers to calculations such as subtracting the time to get 10:30 p.m.

従来技術である60進計算機を用いて上記時間計
算および時刻計算を行う場合、例えば午前10時と
午後3時との時間差を計算するには、午後3時を
24時間制の15時に変換し、15時間−10時間を計算
して5時間を得る。また、例えば午前1時30分か
ら3時間を減ずるには、1時間30分から3時間を
減じて−1時間30分を得た後、24時間を加えて22
時30分を得、該時刻を12時間制に変換し午後10時
30分を得る。また、昨日の午後11時と今日の午前
9時との時間差を計算するには、午後11時を24時
間制に変換し23時を得、これを24時から減じて1
時間を得、この1時間に9時間を加算して求める
時間差10時間を得る。
When performing the above time and time calculations using a conventional sexagesimal calculator, for example, to calculate the time difference between 10:00 a.m. and 3:00 p.m., 3:00 p.m.
Convert to 15:00 on the 24-hour system and calculate 15 hours - 10 hours to get 5 hours. For example, to subtract 3 hours from 1:30 a.m., subtract 3 hours from 1 hour 30 to get -1 hour 30 minutes, then add 24 hours to 22
Obtain 30 minutes of the hour, convert the time to 12-hour system, and convert it to 10:00 p.m.
Get 30 minutes. Also, to calculate the time difference between 11:00 pm yesterday and 9:00 am today, convert 11:00 pm to 24-hour clock to get 23:00, then subtract this from 24:00 to 1
Obtain the time and add 9 hours to this 1 hour to obtain the required time difference of 10 hours.

上述のように、時刻計算や時刻と時刻との時間
差を計算する時間計算において、従来技術である
60進計算機を用いて実行すると、大変繁雑な作業
を必要とするし、また、これらの作業の経過値を
印字紙に印字した場合も、時間データと時刻デー
タの区別ができないので、大変わかりにくい印字
結果がでて来るという欠点があつた。
As mentioned above, conventional technology is used for time calculations and time calculations that calculate the time difference between times.
When executed using a sexagesimal calculator, it requires very complicated work, and even when the elapsed values of these processes are printed on paper, it is difficult to distinguish between time data and time data, making it very difficult to understand. There was a drawback that the printing results were displayed.

本発明は、上述のような欠点を除去した電子機
器を提供することを目的とする。
An object of the present invention is to provide an electronic device that eliminates the above-mentioned drawbacks.

上記の目的を達成するために、本発明において
は、時刻データ指定手段と時間データ指定手段と
を別々に設け、また時刻データの印字フオーマツ
トと時間データの印字フオーマツトとを異つたも
のにして印字する手段を設けることを特徴として
いる。
In order to achieve the above object, in the present invention, a time data designation means and a time data designation means are provided separately, and the time data and time data are printed in different print formats. It is characterized by providing means.

以下、本発明を実施例により詳細に説明する。 Hereinafter, the present invention will be explained in detail with reference to Examples.

第1図は本発明による電子機器の一例を示す電
子計算機器のブロツク図である。ここでキーボー
ドKBにはN(0〜9)の数値を置数する数値キ
ー群NK(□0〜□9)、所望の演算を指定する□+、
□−、□=なるフアンクシヨン・キー群FK、時分単
位指定キーHM、午前時刻指定キーAM、午
後時刻指定キーPMの単位指定キー群UKが配
置されている。PUは制御ユニツトで、キーボー
ドKBからの信号KBSおよびその他の回路からの
信号を受けて、後述する各種装置に制御信号
CSP,CSD,CSR1,CSR2,CSU1,CSU2
CSF,CSALU等を送り、演算処理、表示処理、
印字処理その他の処理を行うものである。また、
制御ユニツトCPUには、第2図に示す制御プロ
グラムを記憶するメモリを内蔵している。
FIG. 1 is a block diagram of an electronic computing device showing an example of the electronic device according to the present invention. Here, the keyboard KB includes a group of numeric keys NK (□0 to □9) for entering the numerical value of N (0 to 9), □+ for specifying the desired operation,
A function key group FK of □-, □=, a unit specification key group UK of hour and minute unit specification keys HM, morning time specification keys AM, and afternoon time specification keys PM are arranged. PU is a control unit that receives the signal KBS from the keyboard KB and signals from other circuits and sends control signals to various devices described later.
CSP, CSD, CSR 1 , CSR 2 , CSU 1 , CSU 2 ,
Sends CSF, CSALU, etc., performs calculation processing, display processing,
It performs printing processing and other processing. Also,
The control unit CPU has a built-in memory that stores the control program shown in FIG.

第1図において、R1,R2はレジスタであり、
例えば4ビツト・パラレル・レジスタで構成さ
れ、制御ユニツトCPUから供給される信号
CSR1,CSR2による制御のもとに、データ転送た
り格納したりする。u1,u2は、レジスタR1,R2
に格納されているデータの単位(「時間」または
「時刻」)をコードとして、それぞれ記憶する単位
レジスタで、例えば4ビツト・パラレル・レジス
タで構成され、制御ユニツトCPUから供給され
る信号CSU1,CSU2により制御のもとに単位コー
ドを転送したり格納したりするし、また、制御信
号CSU1,CSU2,CSF(Fについては後述)の制
御もとに、演算結果データが持つ単位を決定し、
その単位コードを格納する。
In Figure 1, R 1 and R 2 are registers,
For example, it consists of a 4-bit parallel register, and the signal is supplied from the control unit CPU.
Data is transferred and stored under the control of CSR 1 and CSR 2 . u 1 and u 2 are registers R 1 and R 2
It is a unit register that stores the unit of data ("time" or "time") stored in the CPU as a code, and is composed of, for example, a 4-bit parallel register. The unit code is transferred and stored under the control of CSU 2 , and the unit of the operation result data is transferred under the control of control signals CSU 1 , CSU 2 , and CSF (F will be explained later). decided,
Stores the unit code.

Fは演算レジスタで、実行すべき演算内容をコ
ード化して格納する。このレジスタは、例えば、
4ビツト・パラレル・レジスタで構成され、フア
ンクシヨンキー□+、□−、□=等が押されると、制御
信号CPFの制御もとに演算内容がコード化され
て、そのコードを格納する。ALUは制御ユニツ
トCPUからの制御信号CSALUを受けてバスライ
ンBUSを介して送られてくるデータにして加減
算等の演算処理を行う演算ユニツトである。DIS
は制御ユニツトCPUからの信号CSDの制御のも
とに、データを表示するための表示装置、PRT
は制御ユニツトCPUからの信号CSP,CSR1
CSU1の制御のもとにR1内のデータをそのデータ
の持つ単位とともに印字する印字装置である。
F is an arithmetic register which encodes and stores the contents of the arithmetic operation to be executed. This register is, for example,
It is composed of a 4-bit parallel register, and when function keys □+, □-, □=, etc. are pressed, the contents of the operation are coded under the control of the control signal CPF, and the code is stored. The ALU is an arithmetic unit that receives the control signal CSALU from the control unit CPU, converts it into data sent via the bus line BUS, and performs arithmetic processing such as addition and subtraction. DIS
is a display device, PRT, for displaying data under the control of the signal CSD from the control unit CPU.
are the signals CSP, CSR 1 , from the control unit CPU,
This is a printing device that prints the data in R 1 together with the units of that data under the control of CSU 1 .

第3図AおよびBは本発明を説明するためのキ
ー操作例に応ずるレジスタR1,R2,U1,U2,F
の内容および表示内容並びに印字内容を示す図で
ある。(ここで括孤の内の数字は、前の行の数値
が、持ち越されたものを示す。) 以下第1図、第2図および第3図を参照し、2
つの計算例について本発明を説明する。
FIGS. 3A and 3B show registers R 1 , R 2 , U 1 , U 2 , F corresponding to key operation examples for explaining the present invention.
FIG. 3 is a diagram showing the contents, display contents, and printed contents. (Here, the numbers in parentheses indicate that the numbers in the previous row have been carried over.) Referring to Figures 1, 2, and 3 below,
The invention will be explained with reference to two calculation examples.

第1の例として、昨今の午後11時と今日の午前
9時との時間差を計算する場合についてキー操作
の順を追つて述べる。(第3図A参照)。
As a first example, we will explain the order of key operations when calculating the time difference between 11:00 pm recently and 9:00 am today. (See Figure 3A).

1) 数値キー□9を押下げると、制御ユニツト
CPUは、キーボードKBからの信号KBSを受け
て信号CSR1をレジスタR1に供給し、レジスタ
R1にデータ“9”が格納されるとともに、制
御ユニツトCPUからの信号CSDの制御のもの
にデータ“9”が表示装置DISに表示される。
1) Press down the numeric key □9 to turn on the control unit.
The CPU receives the signal KBS from the keyboard KB, supplies the signal CSR 1 to the register R 1 , and registers
Data "9" is stored in R1 , and data "9" is displayed on the display device DIS under the control of the signal CSD from the control unit CPU.

2) 次に数値キー□0、□0を押下げると、同様に
して、レジスタR1にデータ“900”が格納され
るとともに、表示装置DISにデータ“900”が
表示される。
2) Next, when the numerical keys □0 and □0 are pressed, data "900" is stored in the register R1 and data "900" is displayed on the display device DIS in the same way.

3) 午前時刻指定キーAMを押下げると、制
御ユニツトCPUからの信号CSU1の制御のもと
に単位レジスタU1に時刻データの指定コード
“4”が(時間データの指定コードは“2”、後
出。)が格納され、制御ユニツトCPUからの信
号CSR1,CSALUの制御のもとに、レジスタ
R1に格納されているデータ“900”の下2桁を
分データ、それ以上の桁を時間データとして、
これを分単位のデータに変換し、得られるデー
タ“540”をレジスタR1に格納する。次に制御
ユニツトCPUからの信号CSD,CSR1
CSALUの制御のもとにレジスタR1,U1のデー
タが表示装置DISに転送され、表示装置DISで
はレジスタU1のデータが“4”であることを
検知して、分データ“540”を時刻データ
AM9:00に変換し表示する。(第2図参照。) 4) □−キーを押下げると、制御ユニツトCPU
からの信号CSFの制御のもとに演算レジスタF
に“−”キーのコード“1”が格納される。
(“+”キーのコードは“2”である。第2図
参照。但し本例にはでてこない。)次に、制御
信号CSP,CSR1,CSU1,CSALUの制御のも
とに印字装置PRTによつてレジスタR1内の時
刻データに基いて表示装置DISに表示された時
刻AM9:00が、“−”記号とともに印字紙に印
字される。(第2図参照) 5) 数値キー□1を押下げると、直前にフアンク
シヨンキーが押されていることを検知して、制
御信号CSR1,CSR2,CSU1,CSU2のもとに、
レジスタR1,U1内のそれぞれのデータ“540”、
“4”がそれぞれレジスタR2,U2に転送される
と同時に、レジスタR1に数値“1”が新たに
格納され、レジスタU1に“0”が格納される。
そして、表示装置DISに“1”が表示される。
(第2図参照) 6) 次に数値キー□1、□0、□0を順次に押下げる
と、制御ユニツトCPUからの制御信号CR1の制
御のもとに、レジスタR1に数値データ“1100”
が格納され、表示装置DISに“1100”が表示さ
れる。
3) When the morning time designation key AM is pressed down, the time data designation code "4" is set in the unit register U 1 under the control of the signal CSU 1 from the control unit CPU (the time data designation code is "2"). ) are stored in the register under the control of the signals CSR 1 and CSALU from the control unit CPU.
The last two digits of the data “900” stored in R 1 are minute data, and the higher digits are hour data.
Convert this to minute data and store the resulting data "540" in register R1 . Next, the signals CSD, CSR 1 ,
Under the control of CSALU, the data in registers R 1 and U 1 are transferred to the display device DIS, and the display device DIS detects that the data in register U 1 is “4” and sends the minute data “540”. time data
Convert and display AM9:00. (Refer to Fig. 2.) 4) Press down the □- key, the control unit CPU
Arithmetic register F under the control of signal CSF from
The code “1” of the “-” key is stored in the “-” key.
(The code for the “+” key is “2”. See Figure 2. However, it does not appear in this example.) Next, printing is performed under the control of control signals CSP, CSR 1 , CSU 1 , and CSALU. The time 9:00 AM, which is displayed on the display device DIS by the device PRT based on the time data in the register R1 , is printed on the printing paper along with a "-" symbol. (See Figure 2) 5) When you press down the numeric key □1, it detects that the function key was pressed just before, and the control signals CSR 1 , CSR 2 , CSU 1 , CSU 2 are activated. ,
Each data “540” in registers R 1 and U 1 ,
At the same time that "4" is transferred to registers R 2 and U 2 respectively, a new numerical value " 1 " is stored in register R 1 and "0" is stored in register U 1 .
Then, "1" is displayed on the display device DIS.
(See Figure 2) 6) Next, press the numerical keys □1, □0, □0 in sequence, and the numerical data will be stored in the register R1 under the control of the control signal CR1 from the control unit CPU. 1100”
is stored, and "1100" is displayed on the display device DIS.

7) 次にPM−キーを押下げると、制御信号
CSR1,CSU1,CSALUの制御のもとに、レジ
スタR1内のデータ“1100”の上位2桁の時間
データ“11”に12時間を加算して“2300”を
得、これをレジスタR1にいつたん格納する。
また、単位レジスタU1に時刻データ指定コー
ド“4”を格納する。然る後データ23時00分を
分単位のデータ“1380”に変換して、これをレ
ジスタR1に格納する。その後、制御信号
CSR1,CSU1,CSD,CSALUの制御のもとに
表示装置DISにレジスタR1内のデータを転送
し、単位レジスタU1のデータが“4”である
ことを検知し、分データ“1380”を時分の時刻
データに変換し“PM11:00”を表示する。
(第2図参照) 8) 次に□=キーを押すと、制御信号CSR1
CSU1,CSALU,CSPの制御のもとに
“PM11:00=”を印字した後、制御信号
CSR1,CSR2,CSU1,CSU2,CSF,CSALU
の制御のもとに、演算レジスタFに減算コード
“1”が格納されていることと、単位レジスタ
U1,U2にともに時刻データ指定コード“4”
が格納されていることとを検知し、演算結果デ
ータの単位コードとして時間データ指定コード
“2”を単位レジスタU1に格納する。然る後、
レジスタR2内のデータ“540”からレジスタR1
内のデータ“1380”を減算し“−840”を得、
これをレジスタR1に格納する。そして、レジ
スタR1に格納されている演算結果データが負
であるので、“1440”を加え“600”を得、これ
をレジスタR1に格納する。(第2図参照)そ
の後制御ユニツトCPUからの制御信号CSR1
CSU1,CSALU,CSD,CSPの制御のもとに、
単位レジスタU1内データが時間データ指定コ
ード“2”であることを検知して、分データ
“600”を時分の時間データに変換し10時間00分
を意味する“10h00m”を印字装置PRTによつ
て印字紙に印字し、表示装置DISにより表示さ
せる。
7) Next, press the PM- key to output the control signal.
Under the control of CSR 1 , CSU 1 , and CSALU, 12 hours are added to the time data "11" in the upper two digits of data "1100" in register R 1 to obtain "2300", and this is stored in register R Once stored in 1 .
Furthermore, the time data designation code "4" is stored in the unit register U1 . Thereafter, the data 23:00 is converted to minute data "1380" and stored in register R1 . Then the control signal
The data in register R 1 is transferred to the display device DIS under the control of CSR 1 , CSU 1 , CSD, and CSALU, and it is detected that the data in unit register U 1 is "4", and the minute data "1380" is transferred. ” to hour and minute time data and displays “PM11:00”.
(See Figure 2) 8) Next, press the □= key, and the control signal CSR 1 ,
After printing "PM11:00=" under the control of CSU 1 , CSALU, and CSP, the control signal
CSR 1 , CSR 2 , CSU 1 , CSU 2 , CSF, CSALU
Under the control of the calculation register F, the subtraction code “1” is stored, and the unit register
Time data specification code “4” for both U 1 and U 2
is stored, and stores the time data designation code "2" in the unit register U1 as the unit code of the operation result data. After that,
From data “540” in register R 2 to register R 1
Subtract the data “1380” in and get “−840”,
Store this in register R1 . Then, since the operation result data stored in register R1 is negative, "1440" is added to obtain "600", which is stored in register R1 . (See Figure 2) After that, the control signal CSR 1 from the control unit CPU,
Under the control of CSU 1 , CSALU, CSD, CSP,
Detects that the data in unit register U 1 is time data specification code “2”, converts minute data “600” to hour and minute time data, and prints “10h00m” meaning 10 hours 00 minutes to the printer PRT. The information is printed on the printing paper using the , and displayed on the display device DIS.

第2の例として、午後11時30分の2時間40分後
の時刻を計算する場合についてキー接作の順を追
つて述べる。(第3図B参照。) 1) 数値キー□1□1□3□0を順次に押下げると、

ジスタR1に“1130”が格納され表示装置DISに
1130が表示される。
As a second example, we will explain the order of keystrokes when calculating the time 2 hours and 40 minutes after 11:30 p.m. (See Figure 3B.) 1) Press the numerical keys □1□1□3□0 in sequence.
“1130” is stored in register R1 and displayed on the display device DIS.
1130 is displayed.

2) 次に午後時刻指定キーPMを押下げる
と、第1の例の7)の場合と同様に制御ユニツ
トCPUから制御信号が各部に供給され、レジ
スタR1には午後11時30分を24時間制の分単位
データに変換した“1410”格納され、単位レジ
スU1には時刻データコード“4”が格納され、
表示装置DISには“PM11:30”が表示される。
2) Next, when the afternoon time designation key PM is pressed down, control signals are supplied from the control unit CPU to each part as in 7) of the first example, and 11:30 p.m. is stored in register R1 . “1410” converted to hourly minute unit data is stored, and time data code “4” is stored in unit register U 1 .
“PM11:30” is displayed on the display device DIS.

3) 次に□+キーを押下げると、演算レジスタF
に“+”キーコード“2”が格納され、制御ユ
ニツトCPUからの信号CSR1,CSU1
CSALU,CSP,CSDの制御のもとに
“PM11:30+”が印字装置PRTよつて印字さ
れ、表示装置DISには“PM11:30”が表示さ
れる。(第2図前出、参照。) 4) 次に数値キー□2を押下げると、制御ユニツ
トCPUは直前にフアンクシヨンキーが押下げ
られていることを検知して、レジスタR1,U1
内のそれぞれのデータ“1410”,“4”をそれぞ
れレジスタR2,U2に転送し、レジスタR1には
新たに“2”が、レジスタU1には“0”がそ
れぞれ格納され、表示装置DISには“2”が表
示される。(第2図参照。) 5) 次に数値キー□4、□0を順次に押下すると、
レジスタR1の内容は“240”となり、表示装置
DISには“240”が表示される。
3) Next, press the □+ key and the calculation register F
The “+” key code “2” is stored in the “+” key code “2”, and the signals CSR 1 , CSU 1 ,
Under the control of CSALU, CSP, and CSD, "PM11:30+" is printed by the printing device PRT, and "PM11:30" is displayed on the display device DIS. (See Figure 2, above.) 4) Next, when the numeric key □2 is pressed down, the control unit CPU detects that the function key was pressed down just before, and sets the registers R 1 and U 1.
The respective data “1410” and “4” in the data are transferred to registers R 2 and U 2 respectively, and “2” is newly stored in register R 1 and “0” is stored in register U 1 , respectively, and displayed. “2” is displayed on the device DIS. (See Figure 2.) 5) Next, press the numerical keys □4 and □0 in sequence.
The contents of register R1 become “240” and the display device
“240” is displayed on the DIS.

6) その後、時間データ指定キーHMを押下
げると、単位レジスタU1に時間データコード
“2”が格納され、レジスタR1内のデータ
“240”の下2桁“40”を分データとし、その上
の桁の数値“2”を時間データとして、これを
分単位に変換して“160”を得、これをレジス
タR1内に格納する。次にレジスタR1内のデー
タ“160”と単位レジスタU1内のデータ“2”
とを表示装置DISに転し、ここで再び時分デー
タに変換し“2h40m”を表示する。(第2図
参照。) 7) 最後に□=キーを押下ると、印字装置PRT
が印字紙に“2h40m=”を印字した後、演算レ
ジスタFに加算コード“2”が格納されている
ことと、単位レジスタU1に時刻データコード
“2”、単位レジスタU2に時刻データコード
“4”が格納されていることを検知し、演算結
果データの単位コードとして時刻データコード
“4”を単位レジスタU1に格納する。次に、レ
ジスタR1内のデータ“160”にレジスタR2内の
データ“1410”を加算し、得られた結果
“1570”をいつたんレジスタR1に格納する。こ
こでレジスタR1内のデータが1440以上である
ことを検知して、レジスタR1内のデータ
“1570”から“1440”を減算し、結果“130”を
レジスタR1に新たに格納する。(第2図参
照。)これから後、レジスタR1内のデータ
“130”および単位レジスタU1内の単位コード
“4”を印字装置PRTおよび表示装置DISに転
送し、24時間制の分単位データ“130”を時刻
データ“AM02:10”に変換して印字するとと
もに、表示装置DISに表示する。
6) After that, when the time data specification key HM is pressed, the time data code "2" is stored in the unit register U 1 , and the last two digits "40" of the data "240" in the register R 1 are set as minute data. The upper digit value "2" is used as time data, and this is converted into minutes to obtain "160", which is stored in register R1 . Next, data “160” in register R 1 and data “2” in unit register U 1
is transferred to the display device DIS, where it is again converted to hour and minute data and displayed as "2h40m". (Refer to Figure 2.) 7) Finally, press the □= key to print the printer PRT.
After printing "2h40m=" on the printing paper, the addition code "2" is stored in the calculation register F, the time data code "2" is stored in the unit register U 1 , and the time data code is stored in the unit register U 2 . It is detected that "4" is stored, and the time data code "4" is stored in the unit register U1 as the unit code of the operation result data. Next, the data "1410" in the register R2 is added to the data "160" in the register R1 , and the obtained result "1570" is immediately stored in the register R1 . Here, it is detected that the data in the register R1 is 1440 or more, and "1440" is subtracted from the data "1570" in the register R1 , and the result "130" is newly stored in the register R1 . (See Figure 2.) From now on, the data “130” in register R 1 and the unit code “4” in unit register U 1 are transferred to the printing device PRT and display device DIS, and the minute unit data in the 24-hour system is transferred. Convert "130" to time data "AM02:10" and print it, as well as display it on the display device DIS.

上述の第2の例では、特定時刻から所定時間経
過後の時刻を計算する場合について述べたが、本
発明では特定時刻の数時間前の時刻を計算するこ
ともでき、また時間同志の加減算を行うこともで
きる。更に、このような時間計算や時刻計算のみ
ならず、通常の加減算ができることは勿論であ
り、この場合はレジスタU1およびU2それぞれ
“0”が格納された後に、加減算が実行される
(第2図参照)。
In the second example above, a case was described in which the time after a predetermined time has elapsed from a specific time is calculated, but the present invention can also calculate a time several hours before a specific time, and can also add and subtract between times. You can also do this. Furthermore, in addition to such time calculations and time calculations, it is of course possible to perform ordinary addition and subtraction; in this case, addition and subtraction are performed after "0" is stored in each of registers U 1 and U 2 (the first (See Figure 2).

以上述べたところより明かなように、本発明に
よれば、時刻計算や時間計算、60進計算機を用い
て実行するときのような変換作業や補正作業を必
要とせず簡単に行えるし、時刻データと時間デー
タの印字フオーマツトが異るので、計算後に印字
紙に印字された計算過程を見ることにより、容易
にその計算の意味が解釈できるという効果があ
る。
As is clear from the above description, according to the present invention, time calculations and time calculations can be easily performed without the need for conversion or correction work that is required when performing time calculations using a sexagesimal calculator, and Since the printing format of the time data and the time data are different, the meaning of the calculation can be easily interpreted by looking at the calculation process printed on the printed paper after the calculation.

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

第1図は本発明による電子計算機の一例の構成
を示すブロツク線図、第2図はそのフローチヤー
ト、第3図A,Bは本発明を説明するキー操作例
とそれに応じたレジスタ内容、表示内容および印
字内容を示す図である。 KB……キーボード、NK……数値キー群、FK
……フアンクシヨンキー群、UK……単位指定キ
ー群、CPU……制御ユニツト、DIS……表示装
置、PRT……印字装置、R1,R2……レジスタ、
U1,U2……単位レジスタ、F……演算レジスタ、
ALU……演算ユニツト、KBS……キー信号、
BUS……バスライン。
FIG. 1 is a block diagram showing the configuration of an example of an electronic computer according to the present invention, FIG. 2 is a flowchart thereof, and FIGS. 3 A and B are key operation examples and corresponding register contents and displays to explain the present invention. It is a figure which shows the content and the printed content. KB...Keyboard, NK...Numeric key group, FK
... Function key group, UK ... Unit specification key group, CPU ... Control unit, DIS ... Display device, PRT ... Printing device, R 1 , R 2 ... Register,
U 1 , U 2 ... Unit register, F ... Arithmetic register,
ALU...Arithmetic unit, KBS...Key signal,
BUS...Bus line.

Claims (1)

【特許請求の範囲】 1 数値入力手段と、該数値入力手段により入力
した数値が時刻データであることを指定する時刻
データ指定手段と、前記数値入力手段により入力
した数値が時間データであることを指定する時間
データ指定手段と、前記時刻データ指定手段によ
り指定した時刻データと前記時間データ指定手段
により指定した時間データとの加減算を実行する
時刻−時間加減算手段と、前記時刻データ指定手
段により指定した2つの時刻データの間で演算を
実行する時刻減算手段と、前記時間データ指定手
段により指定した2つの時間データの間で加減算
する時間加減算手段と、データの出力時に時刻デ
ータと時間データを区別して出力する手段とを具
備し、時刻データと時間データを区別して入出力
させたことを特徴とする電子機器。 2 特許請求の範囲第1項記載の電子機器におい
て、前記時刻データおよび前記時間データを印字
する印字装置を有し、該印字装置は前記時刻デー
タおよび時間データをそれぞれ異つた印字フオー
マツトで印字するようにしたことを特徴とする電
子機器。
[Scope of Claims] 1 Numerical input means; time data designation means for specifying that the numerical value input by the numerical input means is time data; and time data specifying means for specifying that the numerical value input by the numerical input means is time data. a time data specifying means to be specified; a time-time addition/subtraction means for performing addition/subtraction between the time data specified by the time data specifying means and the time data specified by the time data specifying means; a time subtraction means for performing an operation between two time data; a time addition/subtraction means for adding and subtracting between the two time data designated by the time data designation means; What is claimed is: 1. An electronic device comprising: means for outputting time data, and inputting and outputting time data and time data separately. 2. The electronic device according to claim 1, further comprising a printing device for printing the time data and the time data, and the printing device is configured to print the time data and the time data in different print formats. An electronic device characterized by:
JP4515780A 1980-04-08 1980-04-08 Electronic device Granted JPS56143066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4515780A JPS56143066A (en) 1980-04-08 1980-04-08 Electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4515780A JPS56143066A (en) 1980-04-08 1980-04-08 Electronic device

Publications (2)

Publication Number Publication Date
JPS56143066A JPS56143066A (en) 1981-11-07
JPH0158538B2 true JPH0158538B2 (en) 1989-12-12

Family

ID=12711424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4515780A Granted JPS56143066A (en) 1980-04-08 1980-04-08 Electronic device

Country Status (1)

Country Link
JP (1) JPS56143066A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7147946B2 (en) * 2017-10-31 2022-10-05 カシオ計算機株式会社 Electronic computer, printing method and program for the electronic computer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5652497Y2 (en) * 1976-02-10 1981-12-08

Also Published As

Publication number Publication date
JPS56143066A (en) 1981-11-07

Similar Documents

Publication Publication Date Title
US3720820A (en) Calculator with a hierarchy control system
GB1108800A (en) Improvements in or relating to electronic data processing machines
US3537073A (en) Number display system eliminating futile zeros
JPH0158538B2 (en)
US4135250A (en) System for clearing input data in electronic computer
US3775601A (en) Arithmetic system for use in electronic calculator
US4346450A (en) Electronic calculator having item count display
JPH0440739B2 (en)
JPS5958573A (en) Electronics
JPS6339783Y2 (en)
JPS5958572A (en) Electronics
JPS642179Y2 (en)
JPS6336462Y2 (en)
JPS594056B2 (en) Key input control method
JPS6227930Y2 (en)
JPS5844555A (en) Electronic calculator
JPS6037634Y2 (en) calendar printing device
JPS5947661A (en) calculator
SU451078A1 (en) DEVICE FOR COMPOSITION-CALCULATION OF BINARY NUMBERS
JPS6314370B2 (en)
JPH0762708B2 (en) Elapsed time display device
JPS58211249A (en) Electronic equipment with printing device
JPS61109166A (en) Electronics
JP2506088B2 (en) Data processing device
GB847996A (en) Arithmetic circuitry