JPS6217782B2 - - Google Patents

Info

Publication number
JPS6217782B2
JPS6217782B2 JP5008480A JP5008480A JPS6217782B2 JP S6217782 B2 JPS6217782 B2 JP S6217782B2 JP 5008480 A JP5008480 A JP 5008480A JP 5008480 A JP5008480 A JP 5008480A JP S6217782 B2 JPS6217782 B2 JP S6217782B2
Authority
JP
Japan
Prior art keywords
program
key
write
writing
mode
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
JP5008480A
Other languages
Japanese (ja)
Other versions
JPS56147255A (en
Inventor
Hisashi Ito
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP5008480A priority Critical patent/JPS56147255A/en
Publication of JPS56147255A publication Critical patent/JPS56147255A/en
Publication of JPS6217782B2 publication Critical patent/JPS6217782B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering

Landscapes

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

Description

【発明の詳細な説明】 本発明はラーンプログラム方式によるプログラ
ム機能を備えた小型電子式計算機のプログラム書
込み制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a program writing control system for a small electronic computer equipped with a program function based on a learn program system.

プログラム機能を備えた小型電子式計算機に
は、キー操作により演算を実行しながら、そのキ
ー操作命令をプログラムメモリに順次書込んでい
くラーンプログラム方式がある。このラーンプロ
グラム方式は、書込みモード指定後にプログラム
すべき数式の変数としてある数値を代入した計算
式のキー操作を行なえば、その計算結果が求まる
と共にプログラムの書込みも可能となるもので、
書込みモードにおいても計算結果が求まるという
特徴がある。しかしながら、書込みモード指定後
のキー操作がプログラムとして書込まれるため、
例えば、計算式のある部分のみをプログラムとし
て書込む場合、あるいはプログラムを書込む前に
簡単な計算を行なう場合つまり、通常計算(マニ
アル計算)とプログラムの書込みとを並行して行
なう場合には、その都度通常計算モードと書込み
モードとの切換を行なう必要があり、操作が煩雑
となつていた。
A small electronic calculator equipped with a program function has a learn program method in which key operation commands are sequentially written into a program memory while executing operations through key operations. In this learn program method, after specifying the write mode, by performing a key operation on a calculation formula in which a certain numerical value is substituted as a variable in the formula to be programmed, the calculation result can be determined and the program can be written.
A feature is that calculation results can be obtained even in write mode. However, since the key operations after specifying the write mode are written as a program,
For example, when writing only a certain part of a calculation formula as a program, or when performing simple calculations before writing the program, in other words, when performing normal calculations (manual calculations) and writing the program in parallel, It is necessary to switch between the normal calculation mode and the write mode each time, which makes the operation complicated.

本発明は上記事情に鑑みてなされたもので、ラ
ーンプログラム方式においてプログラムとして書
込む部分を指定可能な小型電子式計算機のプログ
ラム書込み制御方式を提供することを目的とす
る。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a program writing control method for a small electronic calculator in which a portion to be written as a program can be specified in a learn program method.

以下、本発明の一実施例につき図面を参照して
説明する。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図において1はキー入力部であり、プログ
ラム書込みのモード「LRN」と通常計算及びプ
ログラム実行のモード「RUN」とを指定するモ
ードスイツチ2、プログラム名指定用のP1キー3
a及びP2キー3bの他、テンキー及びフアンクシ
ヨンキー等プログラムと通常計算に要する各種キ
ー群を備えている。このキー入力部1は操作され
たキーに応じたキーコードを作成し、制御部4と
記憶部5に夫々出力する。上記記憶部5は入力レ
ジスタ、演算レジスタ、表示レジスタ等複数のレ
ジスタから構成され、演算データを演算部6へ、
また表示データを表示部7へ夫々出力する。演算
部6では入力されたデータに対し所定の演算を施
し、演算結果データを記憶部5へ、プログラムデ
ータをプログラムメモリ8へ出力し、また判断処
理を行なつた際の判断結果を制御部4へ出力す
る。
In Fig. 1, 1 is a key input section, including a mode switch 2 for specifying the program writing mode "LRN" and the normal calculation and program execution mode "RUN", and a P1 key 3 for specifying the program name.
In addition to the a and P2 keys 3b, the computer is equipped with various keys required for programs and normal calculations, such as a numeric keypad and function keys. The key input section 1 creates a key code corresponding to the operated key and outputs it to the control section 4 and the storage section 5, respectively. The storage unit 5 is composed of a plurality of registers such as an input register, a calculation register, a display register, etc., and stores calculation data to the calculation unit 6.
Furthermore, display data is output to the display section 7, respectively. The calculation unit 6 performs a predetermined calculation on the input data, outputs the calculation result data to the storage unit 5, outputs the program data to the program memory 8, and outputs the judgment result when performing the judgment process to the control unit 4. Output to.

制御部4は前記キーコード及び判断結果等に基
づき各部の制御を行なうもので、記憶部5に対し
ては各レジスタのアドレス指定とデータの読込み
及び読出し等を指示する制御信号を送出し、また
プログラムカウンタ9に対しては前記P1キー3a
及びP2キー3bの操作に応じて初期値設定信号を
送出する。このプログラムカウンタ9はプログラ
ムメモリ8の書込み及び読出しのアドレスを指定
するもので、制御部4より与えられる信号aによ
りインクリメントされてプログラムメモリ8のア
ドレスを順次指定する。また、上記制御部4はモ
ードスイツチ2がモード「LRN」に指定されて
いる間は信号bを、モード「RUN」に指定され
ている間は信号cを出力する。この信号b,cは
夫々アンドゲート10,11の第1入力端子に与
えられる。更に制御部4は、キー入力部1におい
てP1キー3a、P2キー3bが操作された際に信号
d,eを夫々出力し、モードスイツチ2が切換え
られた際に信号fを出力する。上記信号d,eは
オアゲート12を介しフリツプフロツプ13のセ
ツト側入力端子Sにセツト信号として与えられ、
上記信号fはフリツプフロツプ13のリセツト側
入力端子Rにリセツト信号として与えられる。こ
のフリツプフロツプ13のセツト側出力端子Qの
出力は上記アンドゲート10,11の第2入力端
子に与えられる。しかして、上記信号bの出力時
にフリツプフロツプ13がセツトされている間ア
ンドゲート10から出力される信号gはプログラ
ムメモリ8に書込み命令として与えられ、上記信
号cの出力時にフリツプフロツプ13がセツトさ
れている間アンドゲート11から出力される信号
hはプログラムメモリ8に読出し命令として与え
られる。
The control section 4 controls each section based on the key code and judgment results, etc., and sends control signals to the storage section 5 instructing address designation of each register, reading and reading of data, etc. For program counter 9, press the P 1 key 3a.
In response to the operation of the P2 key 3b, an initial value setting signal is sent out. This program counter 9 specifies the write and read addresses of the program memory 8, and is incremented by a signal a given from the control section 4 to sequentially specify the addresses of the program memory 8. Further, the control section 4 outputs the signal b while the mode switch 2 is designated to the mode "LRN", and outputs the signal c while the mode is designated to the mode "RUN". These signals b and c are applied to the first input terminals of AND gates 10 and 11, respectively. Furthermore, the control section 4 outputs signals d and e, respectively, when the P 1 key 3a and P 2 key 3b are operated in the key input section 1, and outputs the signal f when the mode switch 2 is switched. The signals d and e are applied as set signals to the set side input terminal S of the flip-flop 13 via the OR gate 12.
The signal f is applied to the reset side input terminal R of the flip-flop 13 as a reset signal. The output of the set side output terminal Q of the flip-flop 13 is applied to the second input terminals of the AND gates 10 and 11. Thus, while the flip-flop 13 is set when the signal b is output, the signal g output from the AND gate 10 is given as a write command to the program memory 8, and the flip-flop 13 is set when the signal c is output. The signal h output from the AND gate 11 is given to the program memory 8 as a read command.

上記プログラムメモリ8は、上記信号gが与え
られている間は演算部6から送出されるプログラ
ムデータをプログラムカウンタ9によつて指定さ
れるアドレスに順次記憶し、上記信号hが与えら
れている間はプログラムカウンタ9によつて順次
指定されるアドレスのプログラムデータを記憶部
5へ送出し、プログラムの実行を可能とする。
The program memory 8 sequentially stores the program data sent from the arithmetic unit 6 at the address designated by the program counter 9 while the signal g is applied, and while the signal h is applied sends program data at addresses sequentially designated by the program counter 9 to the storage unit 5, allowing the program to be executed.

次に上記構成をなす本実施例の動作を説明す
る。本実施例の小型電子式計算機はラーンプログ
ラム方式により2つのプログラムを書込むことが
できる。プログラムを書込む場合にはキー入力部
1においてモードスイツチ2をモード「LRN」
に指定する。キー入力部1はこの操作に応じたキ
ーコードを出力し、制御部4から信号bがアンド
ゲート10に出力される。次に、プログラム名指
定用のP1キー3aあるいはP2キー3bいずれかを
操作してプログラム名の指定を行なう。このとき
制御部4はプログラムメモリ8において指定され
たプログラム名のエリアの先頭アドレスを初期値
設定信号としてプログラムカウンタ9に送出す
る。同時にモードスイツチ2がモード「LRN」
とされた際に制御部4から出力する信号fによつ
てリセツトされたフリツプフロツプ13は、P1
ー3a、P2キー3bいずれかが操作されたことに
より出力する信号dあるいは信号eによつてセツ
トされる。このためフリツプフロツプ13のセツ
ト側出力端子Qの出力が二値論理レベルの“1”
となつてアンドゲート10を開成して、プログラ
ムメモリ8に信号gが書込み命令として与えら
れ、以後プログラムの書込みが可能となる。従つ
て、これ以後のキー操作はプログラムメモリ8に
おいて順次記憶されると共に、演算結果は表示部
7で表示される。また、プログラムメモリ8に書
込んだプログラムを実行する場合にはキー入力部
1においてモードスイツチ2をモード「RUN」
に指定して、P1キー3aあるいはP2キー3bによ
りプログラム名を指定する。このとき制御部4は
アンドゲート11に信号cを出力し、更にプログ
ラムメモリ8において指定されたプログラム名の
エリアの先頭アドレスを初期値設定信号としてプ
ログラムカウンタ9に送出する。同時にモードス
イツチ2がモード「RUN」とされた際に制御部
4から出力する信号fによつてリセツトされたフ
リツプフロツプ13は、P1キー3a、P2キー3b
いずれかが操作されたことにより出力する信号d
あるいは信号eによつてセツトされる。このため
フリツプフロツプ13のセツト側出力端子Qの出
力が二値論理レベルの“1”となつてアンドゲー
ト11を開成して、プログラムメモリ8に信号h
が読出し命令として与えられ、以後プログラムの
実行が可能となる。従つてキー入力部1において
上記書込まれたプログラムの変数に対する所定の
数値を入力した後図示せぬプログラム実行キーを
操作すれば、プログラムメモリ8のプログラムデ
ータが順次読出されてこのデータに基づいて演算
が行なわれ表示部7で演算結果が表示される。
Next, the operation of this embodiment having the above configuration will be explained. The small electronic calculator of this embodiment can write two programs using the learn program method. When writing a program, set mode switch 2 to mode "LRN" in key input section 1.
Specify. The key input unit 1 outputs a key code corresponding to this operation, and the control unit 4 outputs a signal b to the AND gate 10. Next, the program name is designated by operating either the P1 key 3a or the P2 key 3b for designating the program name. At this time, the control unit 4 sends the start address of the area of the designated program name in the program memory 8 to the program counter 9 as an initial value setting signal. At the same time, mode switch 2 is set to mode "LRN"
The flip - flop 13, which is reset by the signal f output from the control unit 4 when is set. Therefore, the output of the set side output terminal Q of the flip-flop 13 is "1" at the binary logic level.
Then, the AND gate 10 is opened and the signal g is applied to the program memory 8 as a write command, so that the program can be written from now on. Therefore, subsequent key operations are sequentially stored in the program memory 8, and the calculation results are displayed on the display section 7. In addition, when executing the program written in the program memory 8, the mode switch 2 is set to the mode "RUN" in the key input section 1.
, and specify the program name using the P 1 key 3a or P 2 key 3b. At this time, the control section 4 outputs a signal c to the AND gate 11, and further sends the start address of the area of the designated program name in the program memory 8 to the program counter 9 as an initial value setting signal. At the same time, the flip-flop 13, which is reset by the signal f output from the control unit 4 when the mode switch 2 is set to the mode "RUN", is activated by the P1 key 3a and the P2 key 3b.
Signal d output when either is operated
Alternatively, it is set by signal e. Therefore, the output of the set side output terminal Q of the flip-flop 13 becomes "1" at the binary logic level, and the AND gate 11 is opened, and the signal h is sent to the program memory 8.
is given as a read command, and the program can then be executed. Therefore, by operating a program execution key (not shown) after inputting a predetermined numerical value for the written program variable in the key input section 1, the program data in the program memory 8 is sequentially read out and the program is executed based on this data. The calculation is performed and the calculation result is displayed on the display section 7.

このように「LRN」、「RUN」の各モードでプ
ログラム名指定用のP1キー3a、P2キー3bが操
作されればプログラムの書込みあるいは実行が可
能となるが、上記P1キー3a、P2キー3bが操作
されるまでは通常計算が行なえる。即ち、
「LRN」、「RUN」の各モードを指定することによ
り制御部4は信号b,cのいずれかをアンドゲー
ト10,11に出力する。しかし、P1キー3a、
P2キー3bが操作されるまではフリツプフロツプ
13は信号fによつてリセツトされており、セツ
ト側出力端子Qの出力は“0”のままである。従
つて、アンドゲート10,11は共に閉成状態に
あり、プログラムメモリ8に対して書込み命令で
ある信号gあるいは読出し命令である信号hは送
出されない。このため、例えばモード「LRN」
に指定されていてもキー入力部1におけるキー操
作はプログラムメモリ8に書込まれずに、マニユ
アル計算のためのキー操作に応じた演算が行なわ
れた後に表示部7で表示されるのである。
In this way, if the P1 key 3a and P2 key 3b for specifying the program name are operated in the "LRN" and "RUN" modes, it is possible to write or execute a program, but the P1 key 3a, Normal calculations can be performed until the P2 key 3b is operated. That is,
By specifying the "LRN" and "RUN" modes, the control unit 4 outputs either signal b or c to the AND gates 10 and 11. However, P 1 key 3a,
Until the P2 key 3b is operated, the flip-flop 13 is reset by the signal f, and the output from the set side output terminal Q remains at "0". Therefore, AND gates 10 and 11 are both closed, and signal g, which is a write command, or signal h, which is a read command, is not sent to program memory 8. For this, for example mode "LRN"
Even if it is specified, the key operations on the key input section 1 are not written into the program memory 8, but are displayed on the display section 7 after calculations corresponding to the key operations for manual calculation are performed.

上記動作の理解を深めるためこの動作の概略を
フローチヤートとして表わした第2図を用い説明
すると、キー操作が行なわれた場合にP1キー3
a、P2キー3bが操作されるまでは、上記キー操
作に応じた演算が行なわれ表示される(第2図ス
テツプS1→S4→S5)。また、P1キー3a、P2キー
3bのいずれかが操作された後のキー操作はモー
ド「LRN」であればプログラムとして書込まれ
ると共に演算され表示されるが(第2図ステツプ
S1→S2→S3→S4→S5)、モード「RUN」であれば
プログラムが実行されて演算結果が表示されるの
である(第2図ステツプS1→S2→S6→S5)。
In order to understand the above operation, we will explain it using Figure 2 which shows the outline of this operation as a flowchart.When a key operation is performed, the P 1 key 3
Until the a and P2 keys 3b are operated, calculations corresponding to the above key operations are performed and displayed (steps S 1 →S 4 →S 5 in FIG. 2). In addition, key operations after either the P 1 key 3a or the P 2 key 3b are operated are written as a program, calculated and displayed if the mode is "LRN" (steps in Figure 2).
(S 1 → S 2 → S 3 → S 4 → S 5 ), and if the mode is "RUN", the program is executed and the calculation result is displayed (Steps S 1 → S 2 → S 6 → in Figure 2). S5 ).

なお、上記実施例では2つのプログラムを書込
み可能としたが、このプログラム数は限定されな
い。
In the above embodiment, two programs can be written, but the number of programs is not limited.

また、上記実施例はモード「LRN」とした後
のプログラム名指定用のキー3a,3b操作時点
でプログラムの書込み可能状態とした。即ち、プ
ログラム名指定用のキー3a,3bを機能的にプ
ログラム書込み指示用のキーとして兼用したもの
であるが、このようなプログラム名指定用のキー
とは別にプログラム書込み指示用のキーを設け、
このキーの操作時に例えば上記実施例において説
明した如くフリツプフロツプ13をセツトさせて
書込み命令を出力させるようにしても同様の効果
が得られるものである。
Further, in the above embodiment, the program is enabled to be written when the keys 3a and 3b for specifying the program name are operated after the mode is set to "LRN". That is, the keys 3a and 3b for specifying program names are functionally also used as keys for instructing program writing, but a key for instructing program writing is provided separately from such keys for specifying program names.
The same effect can be obtained by setting the flip-flop 13 to output a write command when this key is operated, for example, as explained in the above embodiment.

以上詳述した如く、本発明はラーンプログラム
方式によるプログラム機能を備えた小型電子式計
算機において、プログラムの書込みモードとした
際にもプログラム書込みを指示するキーが操作さ
れるまではプログラムが書込まれないようにして
通常のマニユアル計算を行ない得るようにし、こ
のプログラム書込みを指示するキー操作後にプロ
グラムの書込みを可能としたものである。従つ
て、計算式のある部分のみをプログラムする場
合、あるいはプログラムを書込む前に簡単な計算
を行なう場合にも、その都度モード切換を行なう
必要がなく操作性の向上が計れる。
As detailed above, the present invention provides a small electronic calculator equipped with a program function based on the learn program method, in which the program is not written until a key instructing program writing is operated even when the program is set to write mode. This allows normal manual calculations to be performed without any errors occurring, and allows the program to be written after a key operation instructing to write the program. Therefore, even when programming only a certain part of a calculation formula, or when performing simple calculations before writing a program, there is no need to switch modes each time, and operability can be improved.

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

第1図は本発明の一実施例である小型電子式計
算機の構成を示すブロツク図、第2図は第1図の
動作を説明するためのフローチヤートである。 1……キー入力部、2……モードスイツチ、3
a,3b……プログラム名指定キー、4……制御
部、8……プログラムメモリ、10,11……ア
ンドゲート、13……フリツプフロツプ。
FIG. 1 is a block diagram showing the configuration of a small electronic calculator which is an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the operation of FIG. 1...Key input section, 2...Mode switch, 3
a, 3b...Program name designation key, 4...Control unit, 8...Program memory, 10, 11...And gate, 13...Flip-flop.

Claims (1)

【特許請求の範囲】[Claims] 1 キー操作により指示された演算を実行すると
共にキー操作命令をプログラムメモリに書込んで
いくラーンプログラム方式によるプログラム機能
を備えた小型電子式計算機において、上記プログ
ラムメモリのアドレスを指定するアドレス指定手
段と、該アドレス指定手段で指定される上記プロ
グラムメモリの記憶内容を読出してプログラム演
算、及び通常のマニユアル演算を行なう演算手段
と、プログラムの書込み及び実行のモードを選択
的に指定するモード選択手段と、プログラムの書
込みを指示する書込み指示手段と、上記モード選
択手段において書込みモードが指定された後、上
記書込み指示手段によりプログラムの書込みが指
示されるまで上記プログラムメモリに書込み命令
を出力せず、上記演算手段でマニユアル演算を行
ない得るようにし、上記書込み指示手段によりプ
ログラムの書込みが指示された際に上記プログラ
ムメモリに書込み命令を出力する制御手段とを具
備したことを特徴とする小型電子式計算機のプロ
グラム書込み制御方式。
1. In a small electronic calculator equipped with a program function using a learn program method that executes operations instructed by key operations and writes key operation commands to a program memory, an addressing means for specifying an address of the program memory; , a calculation means for reading out the stored contents of the program memory specified by the addressing means and performing program calculations and normal manual calculations, and a mode selection means for selectively specifying a program writing and execution mode; A write instruction means for instructing writing of a program, and after a write mode is designated by the mode selection means, the write command is not output to the program memory until the writing of the program is instructed by the write instruction means, and the above operation is performed. A program for a small electronic calculator, characterized in that the computer is configured to perform manual arithmetic operations by the means, and further comprises control means for outputting a write command to the program memory when writing of a program is instructed by the write instruction means. Write control method.
JP5008480A 1980-04-15 1980-04-15 Program write control system of mini electronic cumputer Granted JPS56147255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5008480A JPS56147255A (en) 1980-04-15 1980-04-15 Program write control system of mini electronic cumputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5008480A JPS56147255A (en) 1980-04-15 1980-04-15 Program write control system of mini electronic cumputer

Publications (2)

Publication Number Publication Date
JPS56147255A JPS56147255A (en) 1981-11-16
JPS6217782B2 true JPS6217782B2 (en) 1987-04-20

Family

ID=12849148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5008480A Granted JPS56147255A (en) 1980-04-15 1980-04-15 Program write control system of mini electronic cumputer

Country Status (1)

Country Link
JP (1) JPS56147255A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61285526A (en) * 1985-06-12 1986-12-16 Hitachi Ltd Analysis controller

Also Published As

Publication number Publication date
JPS56147255A (en) 1981-11-16

Similar Documents

Publication Publication Date Title
JPS60262204A (en) Programmable controller
JPS627592B2 (en)
JPS6217782B2 (en)
JPS5936787B2 (en) Input/output information deletion method
JPS6019538B2 (en) Program writing method
JPS6338732B2 (en)
JPH0228757A (en) Document generating device
JPH04195513A (en) Keyboard
JP3512989B2 (en) Programmable controller
JPH0421151Y2 (en)
JPS6315958Y2 (en)
JPS6113612B2 (en)
JPS5828272Y2 (en) Computer debugging device
JPH0546220A (en) Numerical controller
JPH04112208A (en) Programmable controller
JP2761316B2 (en) Ladder diagram creation device
JPH0537314Y2 (en)
JP2581214B2 (en) Logic simulator
JPS58225403A (en) Programmable controller
JPS63244133A (en) Storing system for control program
JPS59144909A (en) Stored program type controller
JPH06180664A (en) Programming device for memory
JPH01263819A (en) Integrated circuit
JPH0651888A (en) Operation re-executing device
JPH05158522A (en) Numerical controller