JPH053613B2 - - Google Patents
Info
- Publication number
- JPH053613B2 JPH053613B2 JP59058947A JP5894784A JPH053613B2 JP H053613 B2 JPH053613 B2 JP H053613B2 JP 59058947 A JP59058947 A JP 59058947A JP 5894784 A JP5894784 A JP 5894784A JP H053613 B2 JPH053613 B2 JP H053613B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- program
- printing
- control means
- paper
- 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 - Lifetime
Links
- 230000000694 effects Effects 0.000 description 2
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
- Document Processing Apparatus (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Description
技術分野
この発明はキーボード部の各キーの操作に伴つ
て印字用紙上に文字などが印字されるように用紙
送り装置、駆動装置及び印字ヘツドを制御するよ
うにしたタイプライタに係り、特にプログラム制
御可能なタイプライタに関するものである。
従来技術
一般に、作表を行う場合、BASICを使用する
コンピユータでグラフイツクモードを設定して複
雑な設計作業を行つたり、通常のタイプライタに
おいて、キーの手動操作に基づいて印字用紙の逆
方向送りを行つた後、アンダーラインを印字させ
たりする必要があり、その作業、例えばキー操作
が煩雑であつた。
発明の目的
この発明は上記の事情に鑑みてなされたもので
あつて、その目的は、印字用紙を順方向又は逆方
向に送るための情報をプログラムに組入れること
ができ、そのプログラムの実行に伴い、前記情報
に基づいて印字部を制御することができ、それに
よつて容易に作表することができるプログラム制
御可能なタイプライタを提供することにある。
発明の構成
上記の目的を達成するためにこの発明において
は、プログラム制御モード設定時に使用されるプ
ログラムのデータを記憶するための記憶手段と、
プログラム制御モード設定時における前記プログ
ラムの実行に伴つて前記印字用紙上に文字などが
印字されるよう前記印字制御手段を制御するため
の第一の制御手段と、前記プログラムの実行に伴
つて前記印字用紙が順方向に送られるように前記
用紙送り装置を制御する第二の制御手段と、前記
プログラムの実行に伴つて前記印字用紙が逆方向
に送られるように前記用紙送り装置を制御する第
実施例
以下、この発明を具体化した一実施例を第1図
〜第6図に従つて説明する。第1図に示すように
タイプライタの本体ケース1の後側部には左右に
延びるプラテン2が支持され、そのプラテン2上
において印字用紙3が第3図に示す周知の用紙送
り装置4の作動に基づき順方向あるいは逆方向へ
移送されるようになつている。前記プラテン2の
前方にはそのプラテン2と平行に延びるガイドロ
ツド5が配設され、そのガイドロツド5にはキヤ
リツジ6がプラテン2に沿つて左右に、すなわち
用紙移動方向と直交する方向に移動可能に支持さ
れるとともに、ガイドロツド5の回りで回動可能
に支持されている。このキヤリツジ6上にはサー
マルヘツド7が装着されている。そして、第3図
に示す周知の駆動装置8の作動に基づき、キヤリ
ツジ6がガイドロツド5に沿つて左右に移動され
るとともに回動され、そのキヤリツジ6の回動に
伴いサーマルヘツド7が印字用紙3が押付けられ
るプリント位置と、印字用紙から離間する休止位
置との間で移動し得るようになつている。
前記本体ケース1の前部にはキーボード部9が
設けられ、そのキーボード部9には1行より短い
24桁の文字を表示し得る液晶製の表示部10が設
けられている。さらに、キーボード部9上にはこ
のタイプライタを操作するための各種キー、スイ
ツチなどが配設されている。
すなわち、それらは、アルフアベツトの各文字
を入力するためのアルフアベツトキー11、0〜
9の数字を入力するための数字キー12、バツク
スペースキー13、リターンキー14、マージン
セツトキー15、ラインインデントキーを兼用す
るマージンリリースキー16、タブクリアキーを
兼用するタブセツトキー17、パラグラフインデ
ントキーを兼用するタブレターキー18、ライン
タブキーを兼用するデシマルタブキー19であ
り、又シフトキー20、セカンドシフトキー2
1、シフトロツクキー22、コードキー23、リ
ピートキー24、スペースキー25、前記印字用
紙3を順方向へ移送するためのインデツクスキー
26、印字用紙3を逆方向へ移送するためのリバ
ースインデツクスキー27である。
又、表示部10の右側においてキーボード部9
上には後述するプログラム制御モード設定時にお
いて表示部10に表示中のプログラムの所定の行
よりも1つ前の行のデータを表示部10に表示す
るために操作される上スクロールキー35、表示
部10に表示中の行よりも1つ後の行のデータを
表示させるために操作される下スクロールキー3
6、表示部10上においてデータ入力位置を示す
カーソル10aを左右に移動させるためのカーソ
ル右移動キー37、カーソル左移動キー38が設
けられるとともに、インサートキー39、プリン
トキー40、イグジツトキー41、デリートキー
42、コンテイニユーキー43及びエスケープキ
ー44が設けられている。
前記表示部10の左側においてキーボード部9
上には改行操作時における印字用紙3の送り量を
選択的に設定するための三位置スライド式のライ
ンスペースセレクトスイツチ45及びタイプモー
ド、ワードプロセツサモード及びプログラム制御
モードのうちのいずれかを選択するための三位置
スライド式のモードセレクトスイツチ46がそれ
ぞれ設けられている。
又、各数字キー12の下部上面にはプログラム
制御モード設定時において演算を行うための
SIN,COSなどの関数表示文が付設されるととも
に、各アルフアベツトキー11の下部上面には同
じくプログラム制御モード時において入力される
RUN,NEWなどのコマンド表示文及びEND,
FOR,NEXTなどのステートメント表示文が付
設されている。さらに、アルフアベツトキー11
とリターンキー14との間にはコマンド表示文あ
るいはステートメント表示文のみが付設された複
数の専用キー47が配設されている。
そして、モードセレクトスイツチ46によりタ
イプモードが設定された時には、この実施例にお
けるタイプライタを通常のタイプライタとして使
用することができ、ワードプセサモードが設定さ
れた時にはこのタイプライタをワードプロセツサ
として使用することができ、プログラム制御モー
ドが設定された時にはこのタイプライタをプログ
ラミング言語としてBASICを用いたパーソナル
コンピユータとして使用できるようになつてい
る。
そして、プログラム制御モード設定時におい
て、コードキー23とともにアルフアベツトキー
11、数字キー12のうちのいずれかが操作され
た時、それらのキー11,12が単独で操作され
た場合に入力されるコードデータとは異なるコー
ドデータを入力できるようになつている。
次に、この実施例におけるタイプライタの制御
回路を第3図に従つて説明する。同図において5
0は中央処理装置(CPU)であり、このCPU5
0には前記用紙送り装置4、駆動装置8及びサー
マルヘツド7により構成された印字部51が接続
されるとともに、キーボード部9、表示部10、
リードオンリーメモリ(ROM)52及びランダ
ムアクセスメモリ(RAM)53がそれぞれ接続
されている。
前記ROM52にはモードセレクトスイツチ4
6の操作によつてそれぞれ選択されるモードに対
応してタイプライタの作動を制御するための3種
類のプログラムが記憶されたメモリエリア54〜
56が設けられている。
前記RAM53にはマージン、タブ、デシマル
タブ及び作表タブの位置データを記憶可能なデー
タ記憶手段としてのメモリエリア57、プログラ
ムのデータを記憶するプログラム記憶手段として
のメモリエリア58、ワードプロセツサモード設
定時において入力される文字データなどを記憶す
るためのメモリエリア59及びプログラム制御モ
ード設定時において演算された結果を記憶するた
めの変数エリア60などが設けられている。
前記CPU50は印字制御手段61、記憶制御
手段62及び第一の制御手段63を含んでいる。
さらに前記印字制御手段61は第二の制御手段6
1a及び第三の制御手段61bを含んでいる。そ
して、印字制御手段61はタイプモード設定時に
おいてRAM53のメモリエリア57に記憶され
たマージン、タブ、デシマルタブ及び作表タブの
位置データに基づいて前記印字部51を制御し、
印字用紙3上に文字や縦線などを印字できるよう
になつている。特に、第二の制御手段61aは印
字用紙3が順方向に送られるように前記用紙送り
装置4を制御し、第三の制御手段61bは印字用
紙33が逆方向に送られるように用紙送り装置4
を制御する。又、プログラム制御モード設定時に
おいてCPU50はプログラムのデータをRAM5
3のメモリエリア58に記憶させるとともに、記
憶制御手段62はそのプログラム中のマージン、
タブ、デシマルタブ、作表タブの位置データを前
記メモリエリア58から読み出して前記メモリエ
リア57に記憶させる。さらに、第一の制御手段
63はプログラムの実行に伴い、メモリエリア5
7から読出した各位置データに基づき印字用紙3
上において印字動作が行われるように前記印字制
御手段61を制御するようになつている。
さて、第2図に示すモードセレクトスイツチ4
6の操作に基づいてタイプモードを設定した状態
でマージン位置及び作表タブ位置を設定する場合
には、まず、スペースキー25あるいはバツクス
ペースキー13を操作すると、CPU50により
駆動装置8が作動され、その駆動装置8の作動に
基づいてキヤリツジ6がプラテン2に沿つて移動
される。そして、スペースキー25あるいはバツ
クスペースキー13の操作を停止すればキヤリツ
ジ6を所望の桁位置に配置することができる。そ
の状態で、マージンセツトキー15のみを操作す
れば左マージン位置を設定することができ、その
位置データがRAM53のメモリエリア57に記
憶される。又、スペースキー25あるいはバツク
スペースキー13の操作後、マージンセツトキー
15とコードキー23とを同時に操作すれば右マ
ージン位置を設定することができ、その位置デー
タが前記メモリエリア57に記憶される。このよ
うに設定された左右のマージン位置を解除する場
合には、各マージン位置までキヤリツジ6を移動
させた後、マージンリリースキー1を操作すれ
ば、キヤリツジ6をその左右のマージン位置の両
側外方へ移動させることができる。
所定位置に縦線を印字するために、作表タブ位
置を設定する場合には前記の場合と同様にスペー
スキー25あるいはバツクスペースキー13を操
作してキヤリツジ6を所望の位置まで移動させた
後、コードキー23とともにラインタブキーを兼
用するデシマルタブキー19を操作すれば、作表
タブ位置のデータが前記メモリエリア57に記憶
される。次に、タブレターキー18を操作すれば
前記の操作によつて設定された作表タブ位置まで
キヤリツジ6を移動させてサーマルヘツド7によ
り縦線を印字させることができる。なお、この作
表タブ位置は複数個設定することができる。設定
された作表タブ位置を解除する場合には、キヤリ
ツジ6をその作表タブ位置まで移動してタブクリ
アキーを兼用するタブセツトキー17とともにコ
ードキー23を操作すればよい。
さらに、印字済みの文字の下側部にアンダーラ
インを印字する場合には、前記スペースキー25
あるいはバツクスペースキー13を操作してキヤ
リツジ6を文字印字位置まで移動させた後、アン
ダーライン印字用の所定のキーを操作し、アンダ
ーラインを印字したい範囲でサーマルヘツド7を
移動させれば、そのサーマルヘツド7によりアン
ダーラインが印字される。従つて、タイプモード
設定時において、前記縦線の印字及びアンダーラ
インの印字を組み合わせて行えば作表することが
できる。
次に、この発明に関する処理を第4図〜第6図
及び表1に従つて説明する。まず、タイプライタ
に電源を投入した後、第4図のステツプS1にお
いてモードセレクトスイツチ46を操作してプロ
グラム制御モード設定すると、CPU50は表示
部10に所定の初期設定画面を表示する。すなわ
ち、RAM53のメモリエリア58に記憶するプ
ログラムのフアイルナンバーを選択指定するため
の画面と、フアイル名を入力するための画面が順
次表示され、その表示に基づいてフアイルナンバ
ー、フアイル名をそれぞれ入力した後、リターン
キー14を操作すれば、第2図に示すように表示
部10の先頭桁にカーソル10aが点灯される。
Technical Field The present invention relates to a typewriter that controls a paper feeding device, a drive device, and a print head so that characters, etc. are printed on printing paper in accordance with the operation of each key on a keyboard, and in particular, the invention relates to a typewriter that is programmable. It is about typewriters. Prior Art Generally, when creating tabulations, a computer using BASIC is set to graphic mode to perform complex design work, or a regular typewriter is used to manually rotate the printing paper in the reverse direction. After feeding, it is necessary to print an underline, which requires complicated operations such as key operations. Purpose of the Invention This invention has been made in view of the above circumstances, and its purpose is to be able to incorporate information for feeding printing paper in the forward or reverse direction into a program, and to The object of the present invention is to provide a programmable typewriter that can control a printing section based on the information and thereby facilitate tabulation. Structure of the Invention In order to achieve the above object, the present invention includes a storage means for storing data of a program used when setting a program control mode;
a first control means for controlling the printing control means so that characters or the like are printed on the printing paper as the program is executed when a program control mode is set; A second control means for controlling the paper feeding device so that the paper is fed in the forward direction; and a first embodiment for controlling the paper feeding device so that the printing paper is fed in the reverse direction as the program is executed. An embodiment embodying the present invention will be described with reference to FIGS. 1 to 6. As shown in FIG. 1, a platen 2 extending left and right is supported on the rear side of the main body case 1 of the typewriter, and a printing paper 3 is transferred onto the platen 2 by the operation of a well-known paper feeding device 4 shown in FIG. It is designed to be transported forward or backward based on the location. A guide rod 5 is disposed in front of the platen 2 and extends parallel to the platen 2, and a carriage 6 is supported on the guide rod 5 so as to be movable left and right along the platen 2, that is, in a direction perpendicular to the paper moving direction. and is rotatably supported around the guide rod 5. A thermal head 7 is mounted on this carriage 6. Then, based on the operation of the well-known drive device 8 shown in FIG. 3, the carriage 6 is moved left and right along the guide rod 5 and rotated. The printer is movable between a printing position where it is pressed and a rest position where it is separated from the printing paper. A keyboard section 9 is provided at the front of the main body case 1, and the keyboard section 9 has a line shorter than one line.
A display section 10 made of liquid crystal and capable of displaying 24 digit characters is provided. Furthermore, various keys, switches, etc. for operating this typewriter are arranged on the keyboard section 9. That is, they are alphabet keys 11, 0 to 1 for inputting each letter of the alphabet.
Numeric key 12 for entering the number 9, backspace key 13, return key 14, margin set key 15, margin release key 16 that also serves as line indent key, tab set key 17 that also serves as tab clear key, and paragraph indent key. A tab letter key 18 that doubles as a line tab key, a decimal tab key 19 that also serves as a line tab key, a shift key 20, and a second shift key 2.
1. Shift lock key 22, code key 23, repeat key 24, space key 25, index key 26 for transporting the printing paper 3 in the forward direction, reverse index for transporting the printing paper 3 in the reverse direction. It is ski 27. Also, on the right side of the display section 10, a keyboard section 9 is provided.
At the top, there is an upward scroll key 35 that is operated to display on the display section 10 the data of one line before a predetermined line of the program being displayed on the display section 10 when setting the program control mode, which will be described later. Down scroll key 3 operated to display data on the line one line after the line currently displayed in section 10
6. A cursor right movement key 37 and a cursor left movement key 38 for moving the cursor 10a indicating the data input position left and right on the display unit 10 are provided, as well as an insert key 39, a print key 40, an exit key 41, and a delete key. 42, a continue key 43, and an escape key 44 are provided. A keyboard section 9 is provided on the left side of the display section 10.
At the top is a three-position sliding line space select switch 45 for selectively setting the feed amount of the printing paper 3 during line feed operations, and selecting one of type mode, word processor mode, and program control mode. A three-position sliding mode select switch 46 is provided for each. Also, on the upper surface of the lower part of each number key 12, there is a button for performing calculations when setting the program control mode.
Function display statements such as SIN and COS are attached, and inputs are also made in the program control mode on the upper surface of the lower part of each alphanumeric key 11.
Command display statements such as RUN, NEW and END,
Statement display statements such as FOR and NEXT are attached. In addition, Alphabet key 11
A plurality of dedicated keys 47 are provided between the return key 14 and the return key 14 to which only command display sentences or statement display sentences are attached. When the type mode is set by the mode select switch 46, the typewriter in this embodiment can be used as a normal typewriter, and when the word processor mode is set, the typewriter can be used as a word processor. When set to program control mode, the typewriter can be used as a personal computer using BASIC as the programming language. When the program control mode is set, when either the alphanumeric key 11 or the numeric key 12 is operated together with the code key 23, a code is input when those keys 11 and 12 are operated alone. It is now possible to input code data that is different from the data. Next, the typewriter control circuit in this embodiment will be explained with reference to FIG. In the same figure, 5
0 is the central processing unit (CPU), and this CPU5
0 is connected to a printing section 51 composed of the paper feeding device 4, drive device 8, and thermal head 7, as well as a keyboard section 9, a display section 10,
A read only memory (ROM) 52 and a random access memory (RAM) 53 are connected respectively. The ROM 52 includes a mode select switch 4.
Memory areas 54 to 6 store three types of programs for controlling the operation of the typewriter in accordance with the modes selected by the operations in step 6.
56 are provided. The RAM 53 includes a memory area 57 as a data storage means capable of storing position data of margins, tabs, decimal tabs, and tabulation tabs, a memory area 58 as a program storage means for storing program data, and a memory area 58 as a program storage means for storing program data, when the word processor mode is set. A memory area 59 for storing character data etc. inputted in the program control mode and a variable area 60 for storing the results calculated when setting the program control mode are provided. The CPU 50 includes a print control means 61, a storage control means 62, and a first control means 63.
Further, the printing control means 61 is a second control means 6.
1a and a third control means 61b. Then, the printing control means 61 controls the printing section 51 based on the position data of the margin, tab, decimal tab, and tabulation tab stored in the memory area 57 of the RAM 53 when setting the type mode,
It is possible to print characters, vertical lines, etc. on the printing paper 3. In particular, the second control means 61a controls the paper feeding device 4 so that the printing paper 3 is fed in the forward direction, and the third control means 61b controls the paper feeding device 4 so that the printing paper 33 is fed in the reverse direction.
control. Also, when setting the program control mode, the CPU 50 stores program data in the RAM 5.
The storage control means 62 stores the margins in the program in the memory area 58 of 3.
The position data of the tab, decimal tab, and table tab are read from the memory area 58 and stored in the memory area 57. Further, the first control means 63 controls the memory area 5 as the program is executed.
Print paper 3 based on each position data read from 7.
The printing control means 61 is controlled so that the printing operation is performed at the top. Now, mode select switch 4 shown in Figure 2
When setting the margin position and tabulation tab position with the type mode set based on the operation in step 6, first operate the space key 25 or backspace key 13, and the drive device 8 is activated by the CPU 50. Based on the operation of the drive device 8, the carriage 6 is moved along the platen 2. Then, by stopping the operation of the space key 25 or the backspace key 13, the carriage 6 can be placed at the desired digit position. In this state, the left margin position can be set by operating only the margin set key 15, and the position data is stored in the memory area 57 of the RAM 53. Further, after operating the space key 25 or backspace key 13, the right margin position can be set by simultaneously operating the margin set key 15 and code key 23, and the position data is stored in the memory area 57. . To cancel the left and right margin positions set in this way, move the carriage 6 to each margin position and then operate the margin release key 1 to move the carriage 6 to the outside of the left and right margin positions. can be moved to. When setting the table tab position in order to print vertical lines at a predetermined position, move the carriage 6 to the desired position by operating the space key 25 or backspace key 13 in the same way as in the previous case. , by operating the decimal tab key 19 which also serves as a line tab key along with the code key 23, the data of the tabulation tab position is stored in the memory area 57. Next, by operating the tab letter key 18, the carriage 6 can be moved to the tabulation tab position set by the above operation, and the vertical lines can be printed by the thermal head 7. Note that a plurality of tabulation tab positions can be set. In order to cancel a set tabulation tab position, it is sufficient to move the carriage 6 to the tabulation tab position and operate the code key 23 together with the tab set key 17 which also serves as a tab clear key. Furthermore, if you want to print an underline below the printed characters, press the space key 25.
Alternatively, after operating the backspace key 13 to move the carriage 6 to the character printing position, operate the specified key for underline printing and move the thermal head 7 within the range where you want to print the underline. An underline is printed by the thermal head 7. Therefore, when setting the type mode, tabulation can be achieved by printing the vertical lines and printing the underlines in combination. Next, processing related to the present invention will be explained with reference to FIGS. 4 to 6 and Table 1. First, after turning on the power to the typewriter, in step S1 of FIG. 4, the mode select switch 46 is operated to set the program control mode, and the CPU 50 displays a predetermined initial setting screen on the display section 10. That is, a screen for selecting and specifying the file number of the program to be stored in the memory area 58 of the RAM 53 and a screen for inputting the file name are sequentially displayed, and the user inputs the file number and file name respectively based on the display. After that, when the return key 14 is operated, a cursor 10a is illuminated at the first digit of the display section 10, as shown in FIG.
【表】
次に、第4図のステツプS2において各種のキ
ー操作を行い、例えば表1に示すプログラムを入
力する。このプログラムは「10」,「20」などの行
番号と「INPUT“mgns=”;M」などの実行文
とからなつている。そして、例えば「INPUT」
というステートメントを入力する場合には「I」
のアルフアベツトキー11とコードキー23とを
同時に押し下げ操作すればよく、そのステートメ
ントの入力後においてステツプS3でCPU50
の作動に基づき、表示部10にその文字が表示さ
れるとともに、RAM53のメモリエリア58に
コード化された状態で記憶される。そして、第4
図のステツプS4に進みプログラムの入力操作を
終了したか否かが判別され、その結果がYESに
なるとプログラムの入力が終了する。
表1に示す作表用のプログラムについて説明す
ると、10行及び20行においては左マージン位置及
びアンダーラインの印字回数値がそれぞれ変数
「M」,「C」として設定されている。30行の実行
文は変数「M」に代入された左マージンの位置デ
ータをRAM53のメモリエリア57に記憶させ
て左マージンを設定する実行文である。50行は
「mgns= length= 」というメツセージを
印字するための実行文であり、55行は印字用紙3
を2分の1行ピツチずつ4回逆方向へ移送するた
めの実行文であり、60行〜90行までは前記メツセ
ージの印字後においてそのメツセージの上側方に
一文字分のアンダーラインを連続させて横線を印
字するための実行文である。110行〜140行の実行
文は前記メツセージの下側部分に一文字分のアン
ダーラインを連続させて横線を印字するためのも
のであり、160行の実行文は「M+1」,「C+M
+1」の各位置データをRAM53のメモリエリ
ア57に記憶させて作表タブを設定するためのも
のである。又170行の実行文は各横線の両端部間
を縦線によつて接続するために印字用紙3の逆方
向へ2分の1行ピツチずつ2回移送するためのも
のであり、180行の実行文は前記「M+1」,「C
+M+1」の各位置に縦線を印字するための実行
文である。40行、100行及び150行の実行文はサー
マルヘツド7を「M」のマージン位置まで移動及
び1行分の改行を行うためのものである。なお、
60行及び110行はアンダーラインの印字に先立ち、
1字分の空印字を行うための実行文である。
このプログラムを実行するためにまず「R」の
アルフアベツトキー11とともにコードキー23
を操作した後リターンキー14を操作すると、第
5図のステツプS5において各実行文の妥当性の
解析がCPU50によつて行われ、ステツプS6
に進み、各実行文に誤りがあるか否かが判別され
る。その結果がYESであれば表示部10におい
て「SYNTAX ERROR」などのエラー表示が行
われる。前記結果がNOである場合はステツプS
7に進みマージン位置「M」及びアンダーライン
の印字回数「C」を設定するためのデータの入力
を促す表示が行われ、その表示に従い数字キー1
2を操作して前記各変数「M」及び「C」にそれ
ぞれ例えば、「0」「20」と入力すると、各データ
がメモリエリア57に書込まれる。その後、前記
各データに基づいて印字用紙3上に前記メツセー
ジ及び作表線を印字するために、印字部51を制
御する印字制御手段61が第一の制御手段63に
よつて制御され、かつ第二、第三の制御手段61
a,61bによつて用紙送り装置4が制御され
る。
すなわち、表1に示すプログラムの40行の命令
文に基づき、RAM53のメモリエリア57に記
憶された左マージン位置までキヤリツジ6が移動
された後、50行の実行文に基づき、「mgns=0
length=20」というメツセージが印字されて改
行動作が行われるとともにキヤリツジ6が再び左
マージン位置に配置される。次に、55行の実行文
に基づき、第三の制御手段61bにより用紙送り
装置4が制御されて印字用紙3が2行分逆送りさ
れる。ついで60行〜90行の実行文に基づき、印字
部51が制御されて、前記メツセージの上側方に
21桁分のアンダーラインが連続して印字される。
次に、100行の実行文に基づき、改行動作が行わ
れるとともに、キヤリツジ6が左マージン位置ま
で移動され、110行〜140行の実行文に基づき、印
字部51が制御されて、前記メツセージの下側方
に21桁分のアンダーラインが連続して印字され
る。そして、150行の実行文に基づき、改行動作
が行われるとともに、キヤリツジ6が左マージン
位置まで移動され、160行の実行文に基づき、作
表タブ位置が前記メモリエリア57に記憶されて
作表タブが設定される。
次に、170行の実行文に基づき、1行文の印字
用紙3の逆送りが行われた後、前記メモリエリア
57に記憶された作表タブ位置データに基づいて
縦線が印字され、第6図に示すように、前記メツ
セージが作表線によつて囲まれる。
このプログラムに従い別のマージン及びアンダ
ーライン印字回数のデータに基づいて印字動作を
行う場合には、プログラムの実行に伴つてマージ
ン位置データ及びアンダーライン印字回数データ
の入力が促された時に、数字キー12及びリター
ンキー14をそれぞれ操作して「9」,「20」の数
値をそれぞれ入力すれば、その各データに基づ
き、第6図に示すように、文字及び作表線がそれ
ぞれ順次自動的に印字される。
上記のように、この実施例においては、プログ
ラムの実行時においてマージン位置データ及びア
ンダーライン印字回数データを入力するだけで、
その各データに基づいて自動的に作表印字を行う
ことができる。従つて、作表タブ位置の設定を行
うために煩雑なキー操作を行う必要がない。
発明の効果
以上詳述したようにこの発明は印字用紙を順方
向又は逆方向に送るための情報をプログラムに組
入れることができ、そのプログラムの実行に伴
い、前記情報に基づいて印字部を制御することが
でき、それによつて例えば作表を容易に行うこと
ができるという優れた効果を奏する。[Table] Next, in step S2 of FIG. 4, various key operations are performed to input the program shown in Table 1, for example. This program consists of line numbers such as “10” and “20” and executable statements such as “INPUT “mgns=”;M”. And for example "INPUT"
"I" to enter the statement
All you have to do is press down the alphanumeric key 11 and the code key 23 at the same time, and after inputting that statement, the CPU 50 is activated in step S3.
Based on the operation, the character is displayed on the display unit 10 and is stored in a coded state in the memory area 58 of the RAM 53. And the fourth
Proceeding to step S4 in the figure, it is determined whether or not the program input operation has been completed, and if the result is YES, the program input is completed. To explain the tabulation program shown in Table 1, in the 10th and 20th lines, the left margin position and the number of underline prints are set as variables "M" and "C", respectively. The executable statement on line 30 is an executable statement that sets the left margin by storing the left margin position data assigned to the variable "M" in the memory area 57 of the RAM 53. Line 50 is an executable statement to print the message ``mgns=length='', and line 55 is print paper 3.
This is an executable statement to move the message in the opposite direction 4 times by 1/2 line pitch, and from line 60 to line 90, after printing the message, an underline of one character is continuously added to the upper side of the message. This is an executable statement to print a horizontal line. The executable statements on lines 110 to 140 are for printing a horizontal line with a continuous underline for one character at the bottom of the message, and the executable statements on line 160 are for "M+1", "C+M".
+1'' is stored in the memory area 57 of the RAM 53 to set a tabulation tab. Also, the execution statement on line 170 is for moving the printing paper 3 twice by half a line pitch in the opposite direction in order to connect the ends of each horizontal line with a vertical line. The executable sentences are the above “M+1” and “C
+M+1" is an executable statement for printing vertical lines at each position. The executable statements on lines 40, 100, and 150 are for moving the thermal head 7 to the "M" margin position and performing a line feed for one line. In addition,
Lines 60 and 110 are printed before underlining.
This is an executable statement to perform blank printing for one character. To run this program, first press the alphabet key 11 of "R" and the code key 23.
When the return key 14 is operated after operating , the validity of each executable statement is analyzed by the CPU 50 in step S5 of FIG.
Then, it is determined whether each executable statement contains an error. If the result is YES, an error message such as "SYNTAX ERROR" is displayed on the display unit 10. If the result is NO, step S
Proceed to step 7. A display prompting you to enter data to set the margin position "M" and the number of underline prints "C" will appear, and follow the display by pressing number key 1.
2 and enters, for example, "0" and "20" into the variables "M" and "C", each data is written into the memory area 57. Thereafter, in order to print the message and tabulation line on the printing paper 3 based on the respective data, the printing control means 61 that controls the printing section 51 is controlled by the first control means 63, and the first control means 63 controls the printing section 51. Second and third control means 61
The paper feed device 4 is controlled by a and 61b. That is, after the carriage 6 is moved to the left margin position stored in the memory area 57 of the RAM 53 based on the command statement on line 40 of the program shown in Table 1, "mgns=0" is executed based on the executable statement on line 50.
The message "length=20" is printed, a changeover operation is performed, and the carriage 6 is again placed at the left margin position. Next, based on the 55-line executable statement, the paper feed device 4 is controlled by the third control means 61b, and the printing paper 3 is reversely fed by two lines. Then, based on the execution statement in lines 60 to 90, the printing unit 51 is controlled to print the message on the upper side.
21 digits of underline will be printed continuously.
Next, based on the executable statement on line 100, a change operation is performed, the carriage 6 is moved to the left margin position, and the printing unit 51 is controlled based on the executable statement on lines 110 to 140 to print the message. An underline of 21 digits is printed continuously at the bottom. Then, based on the execution statement on line 150, a change operation is performed, and the carriage 6 is moved to the left margin position, and based on the execution statement on line 160, the tabulation tab position is stored in the memory area 57, and tabulation is performed. Tabs are set. Next, based on the 170-line execution statement, the one-line statement printing paper 3 is reversely fed, and then a vertical line is printed based on the tabulation tab position data stored in the memory area 57, and the sixth As shown, the message is surrounded by tabulation lines. When performing a printing operation based on data on different margins and underline printing number according to this program, when prompted to input margin position data and underline printing number data as the program is executed, press the numeric key 12. By operating the and return keys 14 and inputting the numerical values "9" and "20," the characters and tabulation lines will be automatically printed in sequence based on the respective data, as shown in Figure 6. be done. As mentioned above, in this embodiment, just by inputting the margin position data and the underline printing number data when executing the program,
Tables can be automatically printed based on each data. Therefore, there is no need to perform complicated key operations to set the tabulation tab position. Effects of the Invention As detailed above, in this invention, information for feeding printing paper in the forward or reverse direction can be incorporated into a program, and as the program is executed, the printing unit can be controlled based on the information. This has the excellent effect of making tabulation easier, for example.
第1図はこの発明を具体化したタイプライタの
斜視図、第2図はキーボード部を示す平面図、第
3図はタイプライタのブロツク図、第4図及び第
5図はフローチヤート、第6図はプログラムの実
行結果を示す図である。
図において3は印字用紙、4は用紙送り装置、
6はキヤリツジ、7はサーマルヘツド、8は駆動
装置、9はキーボード部、58は記憶手段として
のメモリエリア、61は印字制御手段、61aは
第二の制御手段、61bは第三の制御手段、63
は第一の制御手段である。
Fig. 1 is a perspective view of a typewriter embodying the present invention, Fig. 2 is a plan view showing the keyboard section, Fig. 3 is a block diagram of the typewriter, Figs. 4 and 5 are a flowchart, and Fig. The figure shows the results of program execution. In the figure, 3 is printing paper, 4 is a paper feeding device,
6 is a carriage, 7 is a thermal head, 8 is a drive device, 9 is a keyboard section, 58 is a memory area as a storage means, 61 is a print control means, 61a is a second control means, 61b is a third control means, 63
is the first control means.
Claims (1)
ド部9と、 印字用紙3を送るための用紙送り装置4と、 前記印字用紙3の移動方向と直交する方向にキ
ヤリツジ6を駆動するための駆動装置8と、 前記キヤリツジ6上に載置された印字ヘツド7
と、 タイプモード設定時における前記キーボード部
9の各キーの操作に伴つて印字用紙3上に文字な
どが印字されるように前記用紙送り装置4、駆動
装置8及び印字ヘツド7を制御するための印字制
御手段61と から構成されたタイプライタにおいて、 プログラム制御モード設定時に使用されるプロ
グラムのデータを記憶するための記憶手段58
と、 プログラム制御モード設定時における前記プロ
グラムの実行に伴つて前記印字用紙3上に文字な
どが印字されるよう前記印字制御手段61を制御
するための第一の制御手段63と、 前記プログラムの実行に伴つて前記印字用紙3
が順方向に送られるように前記用紙送り装置4を
制御する第二の制御手段61aと、 前記プログラムの実行に伴つて前記印字用紙が
逆方向に送られるように前記用紙送り装置4を制
御する第三の制御手段61bと を備えることを特徴とするプログラム制御可能な
タイプライタ。[Claims] 1. A keyboard section 9 including character/numeric keys 11 and 12; a paper feed device 4 for feeding the printing paper 3; and a carriage 6 for driving a carriage 6 in a direction perpendicular to the moving direction of the printing paper 3. a drive device 8 for printing, and a print head 7 placed on the carriage 6.
and a printing function for controlling the paper feed device 4, drive device 8, and print head 7 so that characters, etc. are printed on the print paper 3 in accordance with the operation of each key of the keyboard section 9 when setting the type mode. In a typewriter comprising a control means 61, a storage means 58 for storing program data used when setting the program control mode.
and a first control means 63 for controlling the print control means 61 so that characters, etc. are printed on the printing paper 3 as the program is executed when the program control mode is set; and execution of the program. Accordingly, the printing paper 3
a second control means 61a that controls the paper feeding device 4 so that the printing paper is fed in the forward direction; and a third control means 61a that controls the paper feeding device 4 so that the printing paper is fed in the reverse direction as the program is executed. A program-controllable typewriter characterized in that it comprises a control means 61b.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59058947A JPS60201431A (en) | 1984-03-26 | 1984-03-26 | Program controllable typewriter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59058947A JPS60201431A (en) | 1984-03-26 | 1984-03-26 | Program controllable typewriter |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS60201431A JPS60201431A (en) | 1985-10-11 |
JPH053613B2 true JPH053613B2 (en) | 1993-01-18 |
Family
ID=13099018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59058947A Granted JPS60201431A (en) | 1984-03-26 | 1984-03-26 | Program controllable typewriter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60201431A (en) |
-
1984
- 1984-03-26 JP JP59058947A patent/JPS60201431A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS60201431A (en) | 1985-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5127748A (en) | Documentation system having multilingual function | |
JPS59188475A (en) | Electronic typewriter | |
JPS58192144A (en) | Word processor | |
JPS60109878A (en) | Electronic typewriter with editing function | |
JPS60111284A (en) | typewriter with display device | |
JPH053613B2 (en) | ||
US4564304A (en) | Typewriter with resetting function for margin position and tab position | |
JPS6172571A (en) | Document processing apparatus | |
JPS60199682A (en) | programmable typewriter | |
JP2956702B2 (en) | Romaji Kana conversion method | |
JPS60201973A (en) | Program-controllable typewriter | |
JPS63149758A (en) | Information processor | |
US5121481A (en) | Text (word processor) having right end justified variable size display area for information related to input data | |
JPS61294533A (en) | Japanese word processor | |
JPS61122774A (en) | Japanese input/output device | |
JPS60206687A (en) | Program-controllable typewriter | |
JPH0560628B2 (en) | ||
JPS60207954A (en) | Typewriter | |
JPS6347884A (en) | Graphic generating device | |
JPH0638256B2 (en) | I / O device | |
JPS61122778A (en) | Input/output device with display device | |
JPH0583389B2 (en) | ||
JPH01311312A (en) | Input device | |
JPS60111283A (en) | Typewriter | |
JPS62160259A (en) | typewriter display device |