JPS62199480A - Electronic typewriter - Google Patents

Electronic typewriter

Info

Publication number
JPS62199480A
JPS62199480A JP4250386A JP4250386A JPS62199480A JP S62199480 A JPS62199480 A JP S62199480A JP 4250386 A JP4250386 A JP 4250386A JP 4250386 A JP4250386 A JP 4250386A JP S62199480 A JPS62199480 A JP S62199480A
Authority
JP
Japan
Prior art keywords
processing mode
printing
left margin
printed
storage area
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
JP4250386A
Other languages
Japanese (ja)
Inventor
Yuzo Wada
和田 祐三
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 JP4250386A priority Critical patent/JPS62199480A/en
Publication of JPS62199480A publication Critical patent/JPS62199480A/en
Pending legal-status Critical Current

Links

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To enable legible documents having excellent matching to be prepared by effectively utilizing right and left margins within a printing range which are already set when operated in document processing mode even in printing output concerning arithmetic operation in calculation processing mode. CONSTITUTION:During an ordinary document processing mode operation, a printing range is set by right and left margin keys 22, 23, and printing output is performed according to the range. Here, when the calculation processing mode is accessed by operation of a mode switching key 21, a main control 11 positions a carrier to a left margin which is preserved in a left margin preservation region 12 through control of a drive 31. After this, the second operand and the first operand entered from a keyboard 2 and the operational results obtained at the main control 11 are printed through input of an operator. At that time, the carrier drive 31 and a line feeder 32 are controlled to carry out a line feed and return operation. Thus documents can be prepared with excellent matching.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、計算機能を有する電子タイプライタに関する
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an electronic typewriter having a calculation function.

傾向があり、この種の機能の一つに計算機能がある。従
来の電子タイプライタで計算機能を実行した時に、被演
算数、演算数及び演算結果を印字すると、それらは、設
定されたマージンを無視し、印字用紙の印字可能範囲内
いっばいに印字を行なフていた。
There is a trend, and one of these types of functions is a calculation function. When performing a calculation function on a conventional electronic typewriter, when the operands, operands, and operation results are printed, they ignore the set margins and are printed as quickly as possible within the printable area of the printing paper. It was a long time ago.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述したように計算機能を有する電子タイプライタで計
算を実行した場合の印字出力が既に設定されたマージン
を無視し、印字用紙の印字可能範囲いっばいに印字して
しまい、タイプライタの諸機能の一つとして考えると、
タイプライタとして印字された印字文字との印字位置と
整合性が取れず、中途半端な機能な為使用しずらい欠点
となっていた。
As mentioned above, when calculations are performed using an electronic typewriter with calculation functions, the printout ignores the already set margins and prints entirely within the printable area of the printing paper, which may cause problems with the various functions of the typewriter. Considering this as one thing,
It was difficult to use because the printing position was not consistent with the printed characters printed by a typewriter, and the function was half-finished.

(問題点を解決する為の手段及び作用)本発明は上述し
た従来技術の欠点を鑑み、計算機能時の演算に関する印
字出力においても既に設定されている印字軽口である左
右マージンを有効とし、タイプライタとして使用したと
きの印字文字の印字位置と整合性を取り、実際に電子タ
イプライタの諸機能の一つとして使用し易いものにする
(Means and effects for solving the problem) In view of the above-mentioned drawbacks of the prior art, the present invention makes effective the left and right margins, which are already set printing conveniences, even in print output related to calculations in the calculation function, and type To make an electronic typewriter easy to use as one of the functions of an electronic typewriter by ensuring consistency with the printing position of printed characters when used as a writer.

〔実施例] 以下、図面を引きながら、本発明の一実施例を説明する
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は実施例の電子式タイプライタのブロック構成図
である。1は装置本体部、2はキーボード部、21は文
書処理モードと計算処理モードを切り換えるモード切り
換えキー、22は左マージンを設定する左マージンキー
、23は右マージンを設定する右マージンキー、3はプ
リンタ部である。11は装置全体の制御を行う主制御部
、12は左マージンキー22で設定基れた現左マージン
値が保存される左マージン保存域、13は右マージンキ
ー23で設定された現右マージン値が保存される右マー
ジン保存域、14は被演算数が保存される被演算数保存
域、15は演算数が保存される演算数保存域、16は演
算結果が保存される演算結果保存域、17は、第2図に
示すフローチャートに応じたプログラムを記録している
ROM、18はキャリアの位置と連動して内容が変わる
キャリア位置カウンタ、19は印字すべき文字の文字ピ
ッチ量を記憶する文字ピッチ量保存域、31はキャリア
駆動部、32はラインフィード部である。
FIG. 1 is a block diagram of an electronic typewriter according to an embodiment. 1 is the device body, 2 is the keyboard, 21 is the mode switching key for switching between document processing mode and calculation processing mode, 22 is the left margin key for setting the left margin, 23 is the right margin key for setting the right margin, 3 is the right margin key This is the printer section. 11 is a main control unit that controls the entire device; 12 is a left margin storage area where the current left margin value set using the left margin key 22 is saved; 13 is a current right margin value set using the right margin key 23. 14 is an operand storage area where operands are stored, 15 is an operand storage area where operands are stored, 16 is an operation result storage area where calculation results are stored, 17 is a ROM that records a program according to the flowchart shown in FIG. 2; 18 is a carrier position counter whose contents change in conjunction with the position of the carrier; and 19 is a character that stores the character pitch amount of characters to be printed. A pitch amount storage area, 31 is a carrier drive section, and 32 is a line feed section.

以上の構成において、通常のタイプライタとして使用す
る場合の文書処理モード時に左マージンキー22、右マ
ージンキー23により、印字用紙上の印字範囲を設定し
、それに従って印字出力を行っている。そしてタイプラ
イタとして使用中にモード切り換えキーの操作により計
算処理モードが呼び出され、起算機能が用いられると主
制御部11は左マージン保存域12に保存された左マー
ジン位置にキャリアをキャリア駆動部31を制御して位
置させる。その後、キーボード部2より入力された被演
算数、演算数あるいは主制御部11で得られた演算結果
は、演算子の入力で印字を行う。その際、1文字度の印
字で、右マージン保存域13に保存されている右マージ
ンを越える場合には、印字前に、主制御部11はキャリ
ア駆動部31及びラインフィード部32を制御して改行
/復帰を行う。
In the above configuration, in the document processing mode when used as a normal typewriter, the printing range on the printing paper is set using the left margin key 22 and the right margin key 23, and printing is performed accordingly. Then, when the calculation processing mode is called up by operating the mode switching key while the typewriter is being used, and the starting function is used, the main control section 11 moves the carrier to the left margin position stored in the left margin storage area 12 using the carrier drive section 31. control and position. Thereafter, the operands and arithmetic numbers input from the keyboard section 2 or the operation results obtained from the main control section 11 are printed by inputting the operator. At this time, if printing one character exceeds the right margin stored in the right margin storage area 13, the main control unit 11 controls the carrier drive unit 31 and line feed unit 32 before printing. Perform line feed/carriage return.

第2図(a)、(b)は上述した動作をROM18に記
憶されたプログラムの実行により実現する場合のフロー
チャートである。ステップ(S)1でキャリアを左マー
ジンに位置させる。S2でキーボードより数値、演算子
及び制御キーの入力を行う。S3で入カキ−の判別を行
い制御キーの場合にはS6でキャリアの移動又は改行、
復帰を行う。モしてS6aに進み左マージンキー22、
右マージンキー23が押されたかどうかを判別し、押さ
れていなければS2へ戻り、押されたならばS6bへ進
み、左マージン保存域12、右マージン保存域の値をそ
れぞれ更新し新しいマージンを設定する。モしてS2へ
戻る。S3での判別が数値キーの場合には、S2に戻り
、次の人力を行う。この時33aを通り、ここでは、入
力された数値を被演算数保存域14、又は演算数保存域
15に記憶する。S3での判別が演算子の場合には、S
4で演算を行い演算結果を、演算結果保存域16に記憶
させ、S5で印字を行う。
FIGS. 2(a) and 2(b) are flowcharts in which the above-described operations are implemented by executing a program stored in the ROM 18. In step (S)1, the carrier is positioned at the left margin. In S2, numerical values, operators, and control keys are input from the keyboard. The input key is determined in S3, and if it is a control key, the carrier is moved or line feed is performed in S6.
Make a comeback. Go to S6a and press the left margin key 22.
It is determined whether the right margin key 23 has been pressed, and if it has not been pressed, the process returns to S2; if it has been pressed, the process proceeds to S6b, where the values of the left margin storage area 12 and the right margin storage area are updated, and a new margin is created. Set. Move and return to S2. If it is determined in S3 that the key is a numeric key, the process returns to S2 and the next manual operation is performed. At this time, the input value is stored in the operand storage area 14 or the operand storage area 15 through 33a. If the determination in S3 is an operator, S
The calculation is performed in Step 4, and the calculation result is stored in the calculation result storage area 16, and printed in Step S5.

第2図(b)は第2図(a)のステップ(S)5の詳細
である。S7では現在のキャリア位置を示すキャリア位
置カウンタ18の値と、次に印字する文字の文字ピッチ
量を示す文字ピッチ量保存域19の値とを加える。S8
ではS7で得られた値と右マージン保存域13の値とを
比較し、次の文字の印字に際して、それが右マージンを
越えるがどうかの判別を行う。判別の結果右マージンを
越えるとなった場合はS9へ進み、改行、復帰を行った
後にSIOへ進む。又S8の判別で右マージンを越えな
い時もS10へ進み、該当文字1文字を印字する。更に
Sllへ進み、全ての文字を印字し終ったかどうかの判
別を行い、全て印字が終っている場合はこの処理を抜は
出し、まだ印字が全て終了していない場合はS7に戻り
、次の印字文字の処理を行う。又印字の内容は、演算結
果のみでなく被演算数、演算数においても同様に印字可
能なことは言うまでもない。
FIG. 2(b) shows details of step (S)5 in FIG. 2(a). In S7, the value of the carrier position counter 18 indicating the current carrier position and the value of the character pitch amount storage area 19 indicating the character pitch amount of the next character to be printed are added. S8
Then, the value obtained in S7 is compared with the value in the right margin storage area 13, and it is determined whether or not the next character will exceed the right margin when printed. If the result of the determination is that it exceeds the right margin, the process proceeds to S9, where a line feed and return are performed, and then the process proceeds to SIO. Also, if it is determined in S8 that the right margin is not exceeded, the process proceeds to S10 and the corresponding character is printed. Further, proceed to Sll and determine whether all characters have been printed. If all characters have been printed, skip this process. If not all characters have been printed yet, return to S7 and proceed to the next step. Processes printed characters. It goes without saying that the contents of the printout can include not only the calculation results but also the operands and the calculation numbers.

〔発明の効果) 本発明による計算機能を有する電子タイプライタで計算
機能を実行し、演算処理における印字出力を既に設定し
た印字用紙のマージンに従わせることにより、タイプラ
イタとして印字した文字と整合性がとれ見やすい文、書
作成が可能となり、計算機能を電子タイプライタの諸機
能の一つとして実際に使用できるものとすることが可能
となる。
[Effects of the Invention] By executing the calculation function with the electronic typewriter having the calculation function according to the present invention and making the printout in the calculation process follow the already set margins of the printing paper, it is possible to achieve consistency with the characters printed by the typewriter. This makes it possible to create sentences and handwriting that are easy to read, and it becomes possible to actually use the calculation function as one of the functions of the electronic typewriter.

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

it図は本発明の一実施例の電子タイプライタのブロッ
ク図、第2図(a)、(b’)は本発明の一実施例の計
算機能を実行した際の動作を示すフローチャートである
。 図において、1一本体部、2−キーボード部、3−プリ
ンタ部、11−主制御部、12−左マージン値保存域、
13−右マージン値保存域、14−被演算数保存域、1
5−演算数保存域、16−演算結果保存域、17−RO
M、18−キャリア位置カウンタ、19−文字ピッチ量
保存域、31−キャリア駆動部、32−ラインフィード
部。
The IT diagram is a block diagram of an electronic typewriter according to an embodiment of the present invention, and FIGS. 2(a) and 2(b') are flowcharts showing operations when executing a calculation function according to an embodiment of the present invention. In the figure, 1-main body section, 2-keyboard section, 3-printer section, 11-main control section, 12-left margin value storage area,
13 - right margin value storage area, 14 - operand storage area, 1
5-operation number storage area, 16-operation result storage area, 17-RO
M, 18-carrier position counter, 19-character pitch amount storage area, 31-carrier drive section, 32-line feed section.

Claims (1)

【特許請求の範囲】[Claims] 印字用紙の印字範囲を設定するマージン設定手段と、文
書処理を行なう文書処理モードと計算処理を行なう計算
処理モードと、前記両モードを切り換えるモード切り換
え手段と、前記マージン設定手段によって設定された前
記印字範囲を前記両モード時において有効とすることを
特徴とする電子タイプライタ。
a margin setting means for setting a printing range of printing paper; a document processing mode for performing document processing; a calculation processing mode for performing calculation processing; a mode switching means for switching between the two modes; and the printing set by the margin setting means. An electronic typewriter characterized in that the range is valid in both of the modes.
JP4250386A 1986-02-27 1986-02-27 Electronic typewriter Pending JPS62199480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4250386A JPS62199480A (en) 1986-02-27 1986-02-27 Electronic typewriter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4250386A JPS62199480A (en) 1986-02-27 1986-02-27 Electronic typewriter

Publications (1)

Publication Number Publication Date
JPS62199480A true JPS62199480A (en) 1987-09-03

Family

ID=12637869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4250386A Pending JPS62199480A (en) 1986-02-27 1986-02-27 Electronic typewriter

Country Status (1)

Country Link
JP (1) JPS62199480A (en)

Similar Documents

Publication Publication Date Title
JPS60109892A (en) Electronic typewriter
JPH0473188B2 (en)
JPS62199480A (en) Electronic typewriter
JP3016515B2 (en) Character processing apparatus and method
JPH0332467B2 (en)
JPS63126775A (en) Document editing apparatus
JPS62255175A (en) Standardized format printer
JPH01150568A (en) Printer device
JPH0635903A (en) Document processor with printing correction mode
JPS60104360A (en) Character processing apparatus
JPS61294533A (en) Japanese word processor
JP2849505B2 (en) Document processing device
JPH0624910Y2 (en) Word processor
JPS62180460A (en) Character processor
JPH04141766A (en) Printer
JPH04111116A (en) Character processor
JPS62272746A (en) Document editing device
JPH07121510A (en) Document processor
JPH0311461A (en) Word processor input system using printer incorporating character and graphic detector
JPH0461778B2 (en)
JPH0624101A (en) Printer with data reader
JPH04345878A (en) Margin setting method for printer
JPS62282938A (en) Electronic typewriter
JPH03142266A (en) Printer
JPS61297169A (en) Document processor