JPH07276714A - Tape printer - Google Patents

Tape printer

Info

Publication number
JPH07276714A
JPH07276714A JP25998294A JP25998294A JPH07276714A JP H07276714 A JPH07276714 A JP H07276714A JP 25998294 A JP25998294 A JP 25998294A JP 25998294 A JP25998294 A JP 25998294A JP H07276714 A JPH07276714 A JP H07276714A
Authority
JP
Japan
Prior art keywords
print
length
tape
character
printing
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.)
Granted
Application number
JP25998294A
Other languages
Japanese (ja)
Other versions
JP2560650B2 (en
Inventor
Kazuhisa Hirono
和久 広野
Yasuyo Oshio
康代 大塩
Takashi 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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP6259982A priority Critical patent/JP2560650B2/en
Publication of JPH07276714A publication Critical patent/JPH07276714A/en
Application granted granted Critical
Publication of JP2560650B2 publication Critical patent/JP2560650B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To print an input character string by a specific printed length by a method wherein a character is printed on a tape of a length corresponding to a length of the inputted character string when the printed length is not set, and the character is printed by the printed length set by inputting when the printed length is set. CONSTITUTION:A code data of a character stored in an input data buffer 31 is rearranged in first and second rearrangement memories 32, 33 when printing is started. Then, a full width value of the character in the first rearrangement memory 32 is operated. A set length is compared with the full width value of the character, and a character space is operated on the basis of the compared result to print the character. Further, when a printed length is not set, the character is printed on a tape of a length corresponding to a length of an inputted character string to be displayed on a display 19. The inputted character string can be printed by a required printed length.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、テープ印字装置に関
し、特に入力した複数のキャラクタを、設定したテープ
の印字長さ内に印字したり、キャラクタ列の長さに応じ
たテープに印字したりできるようにしたものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tape printer, and more particularly, it prints a plurality of input characters within a set print length of a tape, or prints on a tape according to a length of a character string. Regarding what you made possible.

【0002】[0002]

【従来の技術】従来、幅約10ミリ前後の印字用テープ
に所望の文字列を印字する小型のテープ印字装置に関し
て種々提案されている。そこで、本願出願人は特開平1
−152070号公報において、印字可能な全角文字と
4倍角文字のうち全角文字について、印字するキャラク
タの印字位置を印字用テープの幅方向の中央位置に揃え
て印字するセンタ印字モードとその幅方向の下側に揃え
て印字する下揃え印字モードとを選択可能に構成した印
字位置変更可能な印字装置を提案した。
2. Description of the Related Art Heretofore, various proposals have been made for a small-sized tape printer for printing a desired character string on a printing tape having a width of about 10 mm. Therefore, the applicant of the present application filed Japanese Patent Application Laid-Open No.
In Japanese Patent Laid-Open No. 152070/1989, regarding a double-byte character that can be printed and a double-byte character, a center printing mode in which the printing position of the printing character is aligned with the center position in the width direction of the printing tape and the width direction We have proposed a printing device that can change the printing position, which is configured so that the bottom-aligned printing mode for printing on the lower side can be selected.

【0003】ところで、一般に、テープ印字装置で印字
されるキャラクタは、複数のサイズから任意に選択でき
るようになっており、印字テープの長さは、選択された
サイズに応じて決定されるように構成されている。
By the way, generally, a character to be printed by a tape printing device can be arbitrarily selected from a plurality of sizes, and the length of the printing tape is determined according to the selected size. It is configured.

【0004】[0004]

【発明が解決しようとする課題】このテープ印字装置を
用いて、例えばファイルの「表題」や「内容」を印字用
テープに印字し、この印字された印字用テープをファイ
ルの所定の貼付位置に貼着する場合が多い。このため貼
付位置における貼付範囲の長さに適合した長さのテープ
を得たい場合がある。
By using this tape printer, for example, the "title" and "contents" of a file are printed on a printing tape, and the printed printing tape is placed at a predetermined attachment position on the file. Often attached. Therefore, there is a case where it is desired to obtain a tape having a length suitable for the length of the attaching range at the attaching position.

【0005】しかしながら、前述したように、テープ長
さは選択されたキャラクタサイズにより決定されている
ので、できあがるテープ長さを予め知ることが困難であ
るという問題がある。
However, as described above, since the tape length is determined by the selected character size, there is a problem that it is difficult to know in advance the length of the tape to be completed.

【0006】ワードプロセッサなどでは、規定の用紙幅
を越えるキャラクタは、次の行で印字することができる
が、この種のテープ印字装置では、キャラクタ列をテー
プの長手方向に沿って印字する方法をとることと、上記
「表題」として使用する目的のために、ワードプロセッ
サで通常の文章を印字するような制御ができない。
In a word processor or the like, a character exceeding the specified paper width can be printed on the next line. In this type of tape printer, a character string is printed along the longitudinal direction of the tape. In addition, for the purpose of using it as the above-mentioned "title", it is not possible to control to print a normal sentence with a word processor.

【0007】またワードプロセッサのように用紙幅に制
限されずに、長いキャラクタ列のテープを得たい場合も
ある。
There is also a case where it is desired to obtain a tape having a long character string without being limited to the paper width as in a word processor.

【0008】本発明は、上述した問題点を解決するため
になされたものであり、入力したキャラクタ列を所望の
印字長さに印字したり、またキャラクタ列の長さに応じ
たテープに印字したりできるテープ印字装置を提供する
ことにある。
The present invention has been made to solve the above-mentioned problems, and prints an input character string in a desired print length or prints on a tape corresponding to the length of the character string. It is to provide a tape printer that can be used.

【0009】[0009]

【課題を解決するための手段】この目的を達成するため
に本発明のテープ印字装置は、印字媒体テープの長手方
向に沿ってキャラクタ列を印字する印字ヘッドと、前記
テープに印字するキャラクタを入力する入力手段と、そ
の入力手段により入力されたキャラクタに基づいて前記
印字ヘッドを前記テープとそのテープの長手方向に相対
移動しながら駆動する印字駆動手段と、前記テープの長
手方向の印字長さを設定するかしないかを指示する指示
手段と、前記テープの長手方向の印字長さを入力設定す
る印字長さ設定手段とを備え、前記指示手段により前記
印字長さを設定しない指示をしたとき、前記印字駆動手
段は、前記入力されたキャラクタ列の長さに応じた長さ
のテープに前記キャラクタを印字し、また前記指示手段
により前記印字長さを設定する指示をしたとき、前記印
字駆動手段は、前記印字長さ設定手段により入力設定さ
れた印字長さに前記キャラクタを印字する構成としてい
る。
To achieve this object, a tape printer according to the present invention inputs a character head for printing a character string along a longitudinal direction of a print medium tape and a character for printing on the tape. Input means, print drive means for driving the print head while moving the tape and the tape in the longitudinal direction of the tape based on the character input by the input means, and the print length in the longitudinal direction of the tape. An instruction means for instructing whether to set or not, and a print length setting means for inputting and setting the print length in the longitudinal direction of the tape are provided, and when the instruction means gives an instruction not to set the print length, The print drive means prints the character on a tape having a length corresponding to the length of the input character string, and the print length is output by the instruction means. When an instruction to be set, said print drive means has a configuration for printing the character in the input set print length by the printing length setting means.

【0010】本発明のテープ印字装置はさらに、前記入
力されたキャラクタ列の長さを求める演算手段と、前記
設定された印字長さと前記キャラクタ列の長さを比較す
る比較手段と、前記指示手段により前記印字長さを設定
する指示をし前記印字長さ設定手段により印字長さを入
力設定したとき、前記比較手段による比較の結果に基づ
いて、前記印字長さに前記キャラクタ列を印字可能かど
うかを判断する制御手段とを備える。
The tape printer according to the present invention further comprises a calculating means for obtaining the length of the input character string, a comparing means for comparing the set print length with the length of the character string, and the instructing means. When the instruction to set the print length is given by and the print length is input and set by the print length setting means, is it possible to print the character string at the print length based on the result of the comparison by the comparison means? And a control means for judging whether or not it is provided.

【0011】本発明のテープ印字装置はまた、前記印字
駆動手段による印字ヘッドの印字動作を開始させる印字
開始手段を備え、前記指示手段により印字長さを設定す
ることが指示され前記印字長さ設定手段により印字長さ
が入力設定されているとき、前記印字開始手段の出力に
よる前記印字動作の開始前に、前記比較手段による比較
の結果、設定された印字長さに前記キャラクタ列を印字
不可能な場合、前記制御手段はエラー出力をするととも
に前記印字駆動手段は印字動作の開始を中止し、印字可
能な場合、前記印字駆動手段は設定された印字長さに前
記キャラクタ列を印字するよう動作する構成としてい
る。
The tape printer according to the present invention further comprises a print start means for starting the print operation of the print head by the print drive means, and the print length setting is instructed by the instructing means. When the print length is input and set by the means, the character string cannot be printed to the set print length as a result of the comparison by the comparison means before the printing operation is started by the output of the print start means. In this case, the control means outputs an error and the print driving means stops the start of the printing operation, and when printing is possible, the print driving means operates to print the character string to the set print length. It is configured to do.

【0012】また本発明のテープ印字装置は、印字媒体
テープに印字するキャラクタのコードデータを入力する
入力手段と、その入力手段により入力されたコードデー
タを格納する入力データバッファと、多数のキャラクタ
のパターンデータを格納したパターンデータ格納手段
と、前記テープの長手方向に沿って前記入力されたキャ
ラクタ列を印字するようにそのテープに対し長手方向に
相対移動可能な印字ヘッドと、前記入力データバッファ
に格納されたコードデータに対応するパターンデータを
前記パターンデータ記憶手段から読み出し、そのパター
ンデータに基づいて前記印字ヘッドを前記テープとその
テープの長手方向に相対移動しながら駆動する印字駆動
手段と、前記テープの長手方向の印字長さを設定するか
しないかを指示する指示手段と、前記入力データバッフ
ァに格納されたコードデータに対応するキャラクタの幅
を合計して、キャラクタ列の長さを求める演算手段と、
前記テープの長手方向の印字長さを入力設定する印字長
さ設定手段と、前記設定された印字長さと前記キャラク
タ列の長さを比較する比較手段と、前記指示手段により
前記印字長さを設定する指示をし前記印字長さ設定手段
により印字長さを入力設定したとき、前記比較手段によ
る比較の結果に基づいて、設定された印字長さに前記キ
ャラクタ列を印字可能かどうか判断し、印字不可能なと
き前記印字駆動手段による印字ヘッドの印字動作開始前
にその印字を中止する制御手段とを備える。
The tape printer of the present invention further comprises an input means for inputting code data of characters to be printed on the print medium tape, an input data buffer for storing the code data input by the input means, and a large number of characters. Pattern data storage means for storing pattern data, a print head capable of moving in the longitudinal direction relative to the tape so as to print the inputted character string along the longitudinal direction of the tape, and the input data buffer. Pattern data corresponding to the stored code data is read from the pattern data storage means, and based on the pattern data, the print head and the print drive means for driving the print head while relatively moving in the longitudinal direction of the tape; Indicate whether to set the print length in the longitudinal direction of the tape And shows means sums the width of the corresponding character code stored data to the input data buffer, an arithmetic means for calculating the length of the character string,
A print length setting means for inputting and setting the print length in the longitudinal direction of the tape, a comparing means for comparing the set print length with the length of the character string, and the print length by the instructing means. When the print length setting means inputs and sets the print length, it is judged whether or not the character string can be printed at the set print length based on the result of the comparison by the comparing means, And a control means for stopping the printing operation of the print head by the print driving means before the printing operation is started.

【0013】本発明のテープ印字装置において、前記印
字駆動手段は、前記印字長さ設定手段で印字長さを設定
したとき、その印字長さにキャラクタを等しい間隔で割
り付けて印字するように前記印字ヘッドを駆動する構成
としている。
In the tape printer of the present invention, when the print length is set by the print length setting means, the print driving means prints by assigning characters to the print length at equal intervals. It is configured to drive the head.

【0014】[0014]

【作用】上記の構成を有する本発明のテープ印字装置に
おいては、指示手段でテープの長手方向の印字長さを設
定するかしないかを指示する。その指示手段により印字
長さを設定しない指示をしたとき、印字駆動手段は印字
ヘッドをテープの長手方向に相対移動しながら、キャラ
クタ列の長さに応じた長さのテープに入力されたキャラ
クタを印字する。また指示手段で印字長さを設定する指
示をしたとき、印字駆動手段は、印字長さ設定手段で入
力設定された印字長さに、キャラクタを印字する。これ
により所望長さのテープ、またはキャラクタ列の長さに
応じた自由な長さのテープを得ることができる。
In the tape printer of the present invention having the above construction, the instruction means gives an instruction as to whether or not the print length in the longitudinal direction of the tape is set. When the instruction means does not instruct to set the print length, the print drive means moves the print head relatively in the longitudinal direction of the tape to move the characters input to the tape having a length corresponding to the length of the character string. Print. When the instruction means gives an instruction to set the print length, the print drive means prints the character to the print length input and set by the print length setting means. This makes it possible to obtain a tape having a desired length or a tape having a free length corresponding to the length of the character string.

【0015】さらに指示手段により印字長さを設定する
指示をし印字長さ設定手段で印字長さを入力設定した場
合、演算手段で入力されたキャラクタ列の長さを求め、
比較手段で入力設定された印字長さとキャラクタ列の長
さを比較する。その比較の結果に基づいて、制御手段は
印字長さにキャラクタ列を印字可能かどうかを判断す
る。
Further, when the instructing means gives an instruction to set the print length and the print length setting means inputs and sets the print length, the length of the character string input by the calculating means is obtained,
The print length input and set by the comparison means is compared with the length of the character string. Based on the result of the comparison, the control means determines whether or not the character string can be printed in the print length.

【0016】上記判断は印字動作の開始前にされ、設定
された印字長さにキャラクタ列が印字不可能な場合、制
御手段はエラー出力をするとともに、印字駆動手段は印
字動作の開始を中止する。設定された印字長さにキャラ
クタ列が印字可能な場合、印字駆動手段はその印字長さ
にキャラクタ列を印字することができる。
The above judgment is made before the start of the printing operation, and when the character string cannot be printed within the set printing length, the control means outputs an error and the print driving means stops the start of the printing operation. . When the character string can be printed in the set print length, the print driving means can print the character string in the print length.

【0017】また本発明のテープ印字装置は、入力手段
により入力されたキャラクタのコードデータが入力デー
タバッファに格納される。入力データバッファに格納さ
れたコードデータに対応するパターンデータがパターン
データ記憶手段から読み出され、そのパターンデータに
基づいて印字ヘッドが駆動されるとともにその印字ヘッ
ドがテープに対し長手方向に相対移動され、テープ上に
印字がされる。指示手段により印字長さを設定すること
が指示され印字長さ設定手段で印字長さが入力設定され
ている場合、印字動作開始前に、入力設定されたテープ
の長手方向の印字長さと、入力データバッファに格納さ
れたキャラクタ列の長さとが比較され、その比較の結
果、設定された印字長さにキャラクタ列が印字不可能な
とき、その印字が中止される。
Further, in the tape printer of the present invention, the character code data inputted by the input means is stored in the input data buffer. Pattern data corresponding to the code data stored in the input data buffer is read from the pattern data storage means, the print head is driven based on the pattern data, and the print head is moved in the longitudinal direction relative to the tape. , Is printed on the tape. When the setting of the print length is instructed by the instructing means and the print length is input by the print length setting means, the print length in the longitudinal direction of the input tape and the input are set before the printing operation is started. The length of the character string stored in the data buffer is compared, and as a result of the comparison, if the character string cannot be printed within the set print length, the printing is stopped.

【0018】さらに印字駆動手段は、印字長さ設定手段
で印字長さを設定したとき、その印字長さにキャラクタ
を等しい間隔で割り付けて印字することができる。
Further, when the print length is set by the print length setting means, the print drive means can print characters by allocating characters to the print length at equal intervals.

【0019】[0019]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0020】本実施例は、漢字やひらがなやカタカナ及
びアルファベット文字などの多数のキャラクタを印字用
テープ(印字媒体テープ)に印字するテープ印字装置に
本発明を適用した場合のものである。
The present embodiment is a case where the present invention is applied to a tape printer for printing a large number of characters such as kanji, hiragana, katakana and alphabetic characters on a printing tape (print medium tape).

【0021】図2に示すように、テープ印字装置1の本
体フレーム2の前部には印字する為の文字や記号(以
下、キャラクタという)を選択するための環状の選字用
ダイヤル3が回転自在に配設されるとともに、キーボー
ド部4が配設され、選字用ダイヤル3の後方には6文字
分表示可能な液晶ディスプレイ19が設けられている。
この選字用ダイヤル3の中央部には、選字用ダイヤル3
の回転操作で選択したキャラクタを確定したり或いは印
字に関する設定内容を確定する為の設定キー5が設けら
れている。更に、選字用ダイヤル3の後方の本体フレー
ム2内には印字機構PMが内蔵されている。
As shown in FIG. 2, at the front portion of the main body frame 2 of the tape printer 1, an annular character selection dial 3 for selecting characters or symbols (hereinafter referred to as characters) for printing is rotated. In addition to being freely arranged, a keyboard portion 4 is arranged, and a liquid crystal display 19 capable of displaying 6 characters is provided behind the character selection dial 3.
The character selection dial 3 is provided at the center of the character selection dial 3.
There is provided a setting key 5 for confirming the character selected by the rotating operation or for confirming the setting contents concerning printing. Further, a printing mechanism PM is built in the main body frame 2 behind the character selection dial 3.

【0022】前記選字用ダイヤル3には1回転で50箇
所の停止位置が設けられており、選字用ダイヤル3の上
面にはこれら50箇所の停止位置の夫々に対応させてキ
ャラクタのイメージが2列に描かれている。尚、符号6
は選字位置マークである。
The character selection dial 3 is provided with 50 stop positions per rotation, and the upper surface of the character selection dial 3 has a character image corresponding to each of these 50 stop positions. It is drawn in two columns. Incidentally, reference numeral 6
Is a character selection position mark.

【0023】キーボード部4には、「ひらがな」と「カ
タカナ」と「アルファベット」との入力を択一的に切換
える為の文字種切換えキー、変換キー及び無変換キー、
2行印字を指示する2行印字キー、1行印字を指示する
1行印字キー、入力したキャラクタを設定した印字範囲
の長さに応じて均等割り付けによる印字を設定するため
の定長キー、印字を実行する印字キー、キャラクタの書
体を選択する書体選択キー、印字用テープ9をテープ送
りする為のテープ送りキー、電源をON・OFFする為
の電源スイッチなどが設けられている。
The keyboard unit 4 has a character type switching key for selectively switching the input of "Hiragana", "Katakana" and "Alphabet", a conversion key and a non-conversion key,
2-line print key for instructing 2-line print, 1-line print key for instructing 1-line print, fixed-length key for setting print by input characters evenly distributed according to the length of the print range set, print There are provided a print key for executing, a font selection key for selecting a character font, a tape feed key for feeding the printing tape 9 to the tape, a power switch for turning the power on and off, and the like.

【0024】次に、図3に基いて印字機構PMについて
簡単に説明すると、矩形状のテープ収納カセットCSに
は、透明なフィルムからなる印字用テープ9が巻装され
たテープスプール8と、インクリボン12が巻装された
リボン供給スプール13と、このインクリボン12を巻
取る巻取りスプール14と、印字用テープ9と同一幅を
有する両面テープ15が剥離紙を外側にして巻装された
供給スプール16と、これら印字用テープ9と両面テー
プ15とを接合させる接合ローラとが回転自在に設けら
れている。
Next, the printing mechanism PM will be briefly described with reference to FIG. 3. In the rectangular tape storage cassette CS, the tape spool 8 on which the printing tape 9 made of a transparent film is wound, and the ink. A ribbon supply spool 13 around which the ribbon 12 is wound, a take-up spool 14 around which the ink ribbon 12 is wound, and a double-sided tape 15 having the same width as the printing tape 9 are wound with the release paper outside. A spool 16 and a joining roller for joining the printing tape 9 and the double-sided tape 15 are rotatably provided.

【0025】印字用テープ9とインクリボン12とが重
なる位置には、サーマルヘッド7が立設され、これら印
字用テープ9とインクリボン12とをサーマルヘッド7
に押圧するプラテンローラ17と両テープ9・15を接
合ローラ10に押圧する送りローラ45とは支持体46
に回転可能に枢支されている。このサーマルヘッド7に
は、図5に示すように48個の発熱素子からなる発熱素
子群11が上下方向に列設されている。
A thermal head 7 is erected at a position where the printing tape 9 and the ink ribbon 12 overlap each other.
The platen roller 17 which presses the tape 9 and the feed roller 45 which presses both the tapes 9 and 15 against the joining roller 10 are a support member 46.
It is rotatably pivoted to. In this thermal head 7, as shown in FIG. 5, a heating element group 11 including 48 heating elements is vertically arranged.

【0026】従って、接合ローラ10と巻取りスプール
14とがテープ送りモータ(図4参照)18で所定の回
転方向に夫々同期して駆動されながら発熱素子群11に
通電されたとき、印字用テープ9上には図5に示すよう
に複数のドット列により文字が印字され、しかも印字用
テープ9は両面テープ15を接合した状態でテープ送り
方向Aにテープ送りされて本体フレーム2外に送出され
る。尚印字機構PMの詳細については特開平2−106
555号公報を参照。
Accordingly, when the joining roller 10 and the take-up spool 14 are driven by the tape feed motor (see FIG. 4) 18 in synchronism with each other in a predetermined rotation direction to energize the heating element group 11, the printing tape is printed. Characters are printed by a plurality of dot rows on the printer 9 as shown in FIG. 5, and the printing tape 9 is fed in the tape feeding direction A in a state where the double-sided tape 15 is joined and sent out of the main body frame 2. It Details of the printing mechanism PM are described in JP-A-2-106.
See Japanese Patent No. 555.

【0027】次に、テープ印字装置1の制御系は図4の
ブロック図に示すように構成されている。
Next, the control system of the tape printer 1 is constructed as shown in the block diagram of FIG.

【0028】表示機構DMは液晶ディスプレイ19と、
このディスプレイ19に表示データを出力するための表
示用RAMを有するディスプレイコントローラ(LCD
コントローラ)20とを備えた一般的なものである。選
字用ダイヤル3に連結された絶対値エンコーダ21は、
選字用ダイヤル3の50箇所の停止位置に対応して50
種類の絶対値エンコーダ信号ENSを夫々出力する為の
ものであり、これら絶対値エンコーダ信号ENSと文字
種切換えキーからの信号とに基いて選字位置マーク6に
対応させて選択されたキャラクタのコードデータが得ら
れるとともに、選択操作前の絶対値エンコーダ信号EN
Sと現在の絶対値エンコーダ信号ENSとを比較するこ
とにより選字用ダイヤル3の回転方向及びその回転量が
得られる。符号22はサーマルヘッド7を駆動する為の
駆動回路、符号23はテープ送りモータ18を駆動する
為の駆動回路である。
The display mechanism DM includes a liquid crystal display 19,
A display controller (LCD having a display RAM for outputting display data to the display 19)
Controller) 20 and a general controller. The absolute encoder 21 connected to the character selection dial 3
50 corresponding to the 50 stop positions of the character selection dial 3
It is for outputting each type of absolute value encoder signal ENS, and is the code data of the character selected in correspondence with the character selection position mark 6 based on the absolute value encoder signal ENS and the signal from the character type switching key. And the absolute value encoder signal EN before the selection operation
By comparing S with the current absolute value encoder signal ENS, the rotation direction and the rotation amount of the character selection dial 3 can be obtained. Reference numeral 22 is a drive circuit for driving the thermal head 7, and reference numeral 23 is a drive circuit for driving the tape feed motor 18.

【0029】制御装置Cは、CPU27と、CPU27
にデータバスなどのバス26を介して接続された入出力
インターフェイス25、ROM28・29及びRAM3
0とから構成されている。
The controller C has a CPU 27 and a CPU 27.
An input / output interface 25, ROMs 28 and 29, and a RAM 3 connected to a bus 26 such as a data bus.
It is composed of 0 and 0.

【0030】ROM(プログラムメモリ)28には、選
字用ダイヤル3で選択されたコードデータに対応させて
表示機構DMを制御する表示制御プログラム、設定キー
5が操作されたときのキャラクタのコードデータや印字
の設定内容に関する種々の設定データを入力データバッ
ファ31に格納する制御プログラム、印字バッファ39
のデータを順次読出してサーマルヘッド7とテープ送り
モータ18とを駆動制御する駆動制御プログラム、後述
のテープ印字制御の制御プログラムなどが格納されてい
る。
A ROM (program memory) 28 has a display control program for controlling the display mechanism DM corresponding to the code data selected by the character selection dial 3, and character code data when the setting key 5 is operated. Control program for storing various setting data relating to print and print setting contents in the input data buffer 31, print buffer 39
A drive control program for sequentially reading the data of 1 to control the thermal head 7 and the tape feed motor 18 and a control program for tape printing control, which will be described later, are stored.

【0031】ROM(パターンデータメモリ)29に
は、選字用ダイヤル3上面に描かれた多数のキャラクタ
の夫々に関するドットパターンデータが、16ドット
(縦)×15ドット(横)からなるSS文字パターンデ
ータと48ドット(縦)×48ドット(横)からなるL
文字パターンデータとでキャラクタのコードデータに対
応づけて夫々格納されている。尚、SS文字パターンデ
ータは2行印字及び表示に使用される。また、L文字パ
ターンデータは1行印字に使用される。尚、符号24
は、種々の書体のドットパターンデータを格納したオプ
ション用のROMカードを接続するためのコネクタであ
る。
In a ROM (pattern data memory) 29, dot pattern data relating to each of a large number of characters drawn on the upper surface of the character selection dial 3 is an SS character pattern consisting of 16 dots (vertical) × 15 dots (horizontal). L consisting of data and 48 dots (vertical) x 48 dots (horizontal)
The character pattern data and the character pattern data are stored in association with each other. The SS character pattern data is used for printing and displaying two lines. The L character pattern data is used for printing one line. Incidentally, reference numeral 24
Is a connector for connecting an optional ROM card which stores dot pattern data of various typefaces.

【0032】RAM30の入力データバッファ31に
は、印字するキャラクタのコードデータや印字の設定内
容に関する種々の設定データが格納される(図19参
照、尚、先頭アドレスをA0000 とする)。第1再配列メ
モリ32には、1行印字のコードデータ及び2行印字の
上段行のコードデータが格納され(図20参照、尚、先
頭アドレスをa0000 とする)、また第2再配列メモリ3
3には、2行印字の下段行のコードデータが格納される
(図20参照、尚、先頭アドレスをb0000 とする)。第
1ポインタ34には、第1再配列メモリ32の1つのア
ドレスが格納され、また第2ポインタ35には、第2再
配列メモリ33の1つのアドレスが格納される。
The input data buffer 31 of the RAM 30 stores the code data of the character to be printed and various setting data relating to the print setting contents (see FIG. 19, the leading address is A0000). The first rearrangement memory 32 stores the code data for one-line printing and the code data for the upper row of two-line printing (see FIG. 20, the leading address is a0000), and the second rearrangement memory 3
In 3, the code data of the lower line of the two-line print is stored (see FIG. 20, the start address is b0000). The first pointer 34 stores one address of the first rearrangement memory 32, and the second pointer 35 stores one address of the second rearrangement memory 33.

【0033】文字数カウンタ36には、スペースを含み
印字するキャラクタの文字数が格納される。設定文字間
スペースメモリ37には、定長印字時に文字間に設ける
等しいスペース値が格納される。余りスペースメモリ3
8には、余白スペースYSを文字間の数で割算した余り
のドット列数が格納される。印字バッファ39には、図
24に示すように、縦方向(ドット列方向)に48ドッ
トに対応する48ビット(6バイト)、横方向に48ド
ットに対応する48ビット(6バイト)からなる大きさ
のメモリ容量が設けられ、印字するキャラクタのドット
パターンデータがパターンデータメモリ29から読出し
て格納される。印字長さメモリ40には、設定された印
字長さのデータが格納される。フラグメモリ41には、
2行印字のときにセット(データが「1」)される2行
印字フラグF1、2行印字における上段行印字(1行目
印字)のときにセットされる上段行フラグF2、印字基
線位置変更に関する選択内容の表示中にセットされる表
示フラグF3、印字基線位置変更のときにセットされる
基線位置変更フラグF4、印字基線位置の変更量に関す
る選択内容の表示中にセットされる表示フラグF5、定
長印字のときにセットされる定長印字フラグF6、文字
間スペース演算の際に余りが発生したときにセットされ
る余りフラグAF、エラーフラグEF及び書体に関連す
るフラグなどその他のフラグのフラグデータが夫々格納
される。
The character number counter 36 stores the number of characters to be printed including spaces. The set inter-character space memory 37 stores an equal space value provided between characters during fixed length printing. Extra space memory 3
In 8, the number of remaining dot rows obtained by dividing the blank space YS by the number of characters is stored. As shown in FIG. 24, the print buffer 39 has a size of 48 bits (6 bytes) corresponding to 48 dots in the vertical direction (dot row direction) and 48 bits (6 bytes) corresponding to 48 dots in the horizontal direction. Is provided, and the dot pattern data of the character to be printed is read from the pattern data memory 29 and stored. The print length memory 40 stores data of the set print length. In the flag memory 41,
2-line print flag F1 that is set (data is "1") when 2-line print, upper line flag F2 that is set when 2-line print upper line print (first line print), print base line position change A display flag F3 that is set during the display of the selection content related to the print base line, a base line position change flag F4 that is set when the print base line position is changed, a display flag F5 that is set during the display of the selection content related to the change amount of the print base line position, Fixed-length print flag F6 that is set during constant-length printing, remainder flag AF that is set when a remainder occurs during character space calculation, error flag EF, and other flags such as flags related to typeface The data is stored respectively.

【0034】次に、テープ印字装置1の制御装置Cで行
なわれるテープ印字制御のルーチンについて、図6〜図
18のフローチャートに基いて説明する。尚、図中、S
i(i=1、2、3・・・)は各ステップである。ここ
で、この制御においては図5に示すように、1行印字の
ときには文字「A」で示すように、L文字パターンデー
タに基いてサーマルヘッド7の発熱素子群11に対応す
る印字用テープ9上の印字領域PE全域に亙って印字用
テープ9上に印字され、また2行印字のときにはSS文
字パターンデータに基いて、上段行の印字はこの印字領
域PE内の上段印字行ULに行なわれ、下段行の印字は
印字領域PEの下段印字行LLに行なわれる。更に、L
文字の通常印字基線位置PS1は発熱素子群11の最下
位置に対応し、またSS文字に関する上段行の印字基線
位置PS2は発熱素子群11の幅方向の中央位置に対応
する中央線CLよりも「4」ドット分上側の位置に設け
られ、SS文字に関する下段行の通常印字基線位置PS
3は前記印字基線位置PS1よりも「4」ドット分上側
の位置に設けられている。また、この制御においては、
文字や記号及びスペースを含めてキャラクタという。
Next, the tape print control routine executed by the controller C of the tape printer 1 will be described with reference to the flow charts of FIGS. In the figure, S
i (i = 1, 2, 3, ...) Is each step. Here, in this control, as shown in FIG. 5, the printing tape 9 corresponding to the heating element group 11 of the thermal head 7 is based on the L character pattern data, as indicated by the character "A" when printing one line. The entire upper printing area PE is printed on the printing tape 9, and when printing two lines, the upper row is printed on the upper printing row UL in this printing area PE based on the SS character pattern data. The lower row is printed on the lower print row LL of the print area PE. Furthermore, L
The normal print base line position PS1 of the character corresponds to the lowest position of the heating element group 11, and the print base line position PS2 of the upper row for the SS character is more than the center line CL corresponding to the center position of the heating element group 11 in the width direction. The normal printing base line position PS of the lower line for the SS character is provided at a position above "4" dots.
3 is provided at a position above the print base line position PS1 by "4" dots. Also, in this control,
It is called a character including characters, symbols and spaces.

【0035】このテープ印字装置1に電源が投入される
とこの制御が開始され、先ず表示機構DMや各メモリ3
1〜40をクリアするとともに、ディスプレイ19に1
行印字マーク「>」が表示され且つこの1行印字マーク
「>」に対応する1行印字指令データを入力データバッ
ファ31の先頭アドレスに格納するなどの初期設定が実
行される(S1)。次に、選字用ダイヤル3が回転操作
されたときに(S2:No、S16:Yes)、何れの
フラグF1・F3・F5・F6・・・もセットされてい
ないときには(S17・S22・S27・S29・S3
1:No)、絶対値エンコーダ21からのエンコーダ信
号ENSに基いて選択されたキャラクタがディスプレイ
19に表示され(S33)、S2に戻る。
When the tape printer 1 is powered on, this control is started. First, the display mechanism DM and each memory 3 are started.
Clear 1-40 and display 1 on 1
The line print mark ">" is displayed and the initial setting such as storing the one line print command data corresponding to the one line print mark ">" at the head address of the input data buffer 31 is executed (S1). Next, when the character selection dial 3 is rotated (S2: No, S16: Yes), and when none of the flags F1, F3, F5, F6 ... Is set (S17, S22, S27).・ S29 ・ S3
1: No), the character selected based on the encoder signal ENS from the absolute value encoder 21 is displayed on the display 19 (S33), and the process returns to S2.

【0036】そして、設定キーが操作されたときに(S
2・S3:Yes)、フラグF1〜F6は何れもセット
されていないときには(S34・S41・S46・S4
9・S51:No)、ディスプレイ19に表示中のキャ
ラクタが確定されてそのコードデータが入力データバッ
ファ31に格納される(S53)。例えば、ディスプレ
イ19に文字「A」、「B」、「C」を表示させる毎に
設定キーを操作したときには、図2・図19に示すよう
に、各文字「A」、「B」、「C」のコードデータが入
力データバッファ31に順次格納される。
When the setting key is operated (S
2 · S3: Yes), when none of the flags F1 to F6 is set (S34 · S41 · S46 · S4).
9. S51: No), the character being displayed on the display 19 is confirmed, and the code data thereof is stored in the input data buffer 31 (S53). For example, when the setting key is operated each time the characters “A”, “B”, and “C” are displayed on the display 19, as shown in FIGS. 2 and 19, the characters “A”, “B”, and “C” are displayed. Code data “C” is sequentially stored in the input data buffer 31.

【0037】次に、2行印字を実行する為に2行印字キ
ーを操作したときには(S2:Yes、S3:No、S
4:Yes)、2行印字に関する先頭の選択内容、例え
ば「上段印字行」がディスプレイ19に表示され(S
5)、フラグF1がセットされる(S6)。次に、選字
用ダイヤル3が回転操作されたとき(S2:No、S1
6:Yes)、フラグF1がセットされているので(S
17:Yes)、2行印字に関する次の選択内容、例え
ば「下段印字行」がディスプレイ19に表示され(S1
8)、「上段印字行」を表示しているときには(S1
9:Yes)、フラグF2がセットされるが(S2
0)、「下段印字行」を表示しているときには(S1
9:No)、フラグF2がリセットされる(S21)。
Next, when the 2-line print key is operated to execute the 2-line print (S2: Yes, S3: No, S
4: Yes) The selection contents at the beginning regarding two-line printing, for example, “upper print line” is displayed on the display 19 (S
5), the flag F1 is set (S6). Next, when the character selection dial 3 is rotated (S2: No, S1
6: Yes), since the flag F1 is set (S
17: Yes), the next selection content regarding 2-line printing, for example, "lower print line" is displayed on the display 19 (S1).
8) When the "upper print line" is displayed (S1
9: Yes), but the flag F2 is set (S2
0), when the "lower print line" is displayed (S1
9: No), the flag F2 is reset (S21).

【0038】そして、設定キーが操作されたとき(S2
・S3:Yes)、両フラグF1・F2がセットされて
いるときには(S34・S35:Yes)、上段印字行
マーク「△」がディスプレイ19に表示されるととも
に、このマーク「△」に対応する上段行印字指令データ
が入力データバッファ31に格納される(S36)。ま
た、フラグF2がリセットされているときには(S3
4:Yes、S35:No)、下段行印字行マーク
「▽」がディスプレイ19に表示されるとともに、この
マーク「▽」に対応する下段行印字指令データが入力デ
ータバッファ31に格納される(S37)。例えば、デ
ィスプレイ19に「上段印字行」が表示されているとき
に設定キーを操作したときには、上段印字行マーク
「△」が表示され且つ図19に示すように入力データバ
ッファ31のアドレスA0004 には上段行印字指令データ
が格納される。
When the setting key is operated (S2
If both flags F1 and F2 are set (S34: S35: Yes), the upper print line mark "△" is displayed on the display 19 and the upper row corresponding to this mark "△" is displayed. The line print command data is stored in the input data buffer 31 (S36). When the flag F2 is reset (S3
4: Yes, S35: No), the lower row print line mark “▽” is displayed on the display 19, and the lower row print command data corresponding to the mark “▽” is stored in the input data buffer 31 (S37). ). For example, when the setting key is operated while the “upper print line” is displayed on the display 19, the upper print line mark “Δ” is displayed and the address A0004 of the input data buffer 31 is displayed as shown in FIG. Stores upper row print command data.

【0039】そして、フラグF1がリセットされ(S3
8)、印字基線位置変更に関する先頭の選択内容、例え
ば印字基線位置を通常印字基線位置PS2・PS3に対
して変更しない「通常基線位置」がディスプレイ19に
表示され(S39)、フラグF3がセットされる(S4
0)。
Then, the flag F1 is reset (S3
8) The first selection content regarding the change of the print base line position, for example, "normal base line position" which does not change the print base line position with respect to the normal print base line positions PS2 and PS3 is displayed on the display 19 (S39), and the flag F3 is set. (S4
0).

【0040】次に、選字用ダイヤル3が回転操作された
とき(S2:No、S16:Yes)、フラグF3がセ
ットされているので(S17:No、S22:Ye
s)、印字基線位置変更に関する次の選択内容、例えば
印字基線位置を変更する「基線位置変更」がディスプレ
イ19に表示され(S23)、「基線位置変更」を表示
しているときには(S24:Yes)、フラグF4がセ
ットされるが(S25)、「通常基線位置」を表示して
いるときには(S24:No)、フラグF4がリセット
される(S26)。
Next, when the character selection dial 3 is rotated (S2: No, S16: Yes), the flag F3 is set (S17: No, S22: Ye).
s), the next selection content regarding the print base line position change, for example, "base line position change" for changing the print base line position is displayed on the display 19 (S23), and when "base line position change" is displayed (S24: Yes). ), The flag F4 is set (S25), but when the "normal base line position" is displayed (S24: No), the flag F4 is reset (S26).

【0041】そして、設定キーが操作されたとき(S2
・S3:Yes)、フラグF3がセットされているとき
には(S34:No、S41:Yes)、このフラグF
3がリセットされ(S42)、更にフラグF4がセット
されているときには(S43:Yes)、印字基線位置
に関する先頭の選択内容、例えば印字基線位置を通常印
字基線位置PS2・PS3に対して印字用テープ9の上
端側に4ドット分だけ変更する「基線位置+4」がディ
スプレイ19に表示され(S44)、フラグF5がセッ
トされる(S45)。
When the setting key is operated (S2
-S3: Yes), when the flag F3 is set (S34: No, S41: Yes), this flag F
3 is reset (S42), and when the flag F4 is set (S43: Yes), the first selection content regarding the print base line position, for example, the print base line position is set to the normal print base line positions PS2 and PS3 as the printing tape. “Baseline position + 4” for changing by 4 dots on the upper end side of 9 is displayed on the display 19 (S44), and the flag F5 is set (S45).

【0042】次に、選字用ダイヤル3が回転操作された
とき(S2:No、S16:Yes)、フラグF5がセ
ットされているので(S17・S22:No、S27:
Yes)、印字基線位置に関する次の選択内容、例えば
「基線位置+3」がディスプレイ19に表示される(S
28)。以後、選字用ダイヤル3を連続して回転操作し
たときには、選択内容「基線位置+2」→「基線位置+
1」→「基線位置−1」→「基線位置−2」→「基線位
置−3」→「基線位置−4」→「基線位置+4」・・が
順次ディスプレイ19に表示される。尚、「基線位置−
1」〜「基線位置−4」は、印字基線位置を通常印字基
線位置PS2・PS3に対して印字用テープ9の下端側
への変更である。
Next, when the character selection dial 3 is rotated (S2: No, S16: Yes), the flag F5 is set (S17 / S22: No, S27:
Yes), the next selection content regarding the print base line position, for example, "base line position +3" is displayed on the display 19 (S).
28). After that, when the character selection dial 3 is continuously rotated, the selection content “baseline position + 2” → “baseline position +
1 ”→“ baseline position-1 ”→“ baseline position-2 ”→“ baseline position-3 ”→“ baseline position-4 ”→“ baseline position + 4 ”... In addition, "baseline position-
1 "to" baseline position-4 "is a change of the print baseline position to the lower end side of the printing tape 9 with respect to the normal print baseline positions PS2 and PS3.

【0043】そして、設定キーが操作されたとき(S2
・S3:Yes)、フラグF5がセットされているので
(S34・S41:No、S46:Yes)、ディスプ
レイ19に表示されている選択内容に対応する印字基線
位置変更量データが上段行印字指令データ或いは下段行
印字指令データ内に格納され(S47)、フラグF5が
リセットされる(S48)。
When the setting key is operated (S2
・ S3: Yes) and the flag F5 is set (S34 ・ S41: No, S46: Yes), so the print baseline position change amount data corresponding to the selection contents displayed on the display 19 is the upper row print command data. Alternatively, it is stored in the lower row print command data (S47), and the flag F5 is reset (S48).

【0044】例えば、選択内容「基線位置+4」がディ
スプレイ19に表示されているときに選択キーを操作し
たときには、図19に示すようにアドレスA0004 の上段
行印字指令データ内に「+4ドット」の変更量データが
格納される。更に、入力データバッファ31において、
以後選択された文字「D」、「E」、「F」の各コード
データ、「−4ドット」の変更量データが格納された下
段行印字指令データ、選択された文字「G」、「H」、
「I」、「J」の各コードデータが順次格納される。
For example, when the selection key is operated while the selection content "baseline position +4" is displayed on the display 19, as shown in FIG. 19, "+4 dots" in the upper row print command data of the address A0004 is displayed. Change amount data is stored. Furthermore, in the input data buffer 31,
After that, the lower row print command data in which the respective code data of the selected characters "D", "E", "F" and the change amount data of "-4 dots" are stored, the selected characters "G", "H"",
Each code data of "I" and "J" is sequentially stored.

【0045】次に、1行印字のために1行印字キーが操
作されたときには(S2:Yes、S3・S4:No、
S7:Yes)、1行印字マーク「>」がディスプレイ
19に表示され且つ1行印字指令データが入力データバ
ッファ31に格納され(S8)、フラグF1がリセット
される(S9)。例えば、図19に示すように入力デー
タバッファ31には、アドレスA000D に1行印字指令デ
ータが格納されるとともに、以後選択された文字
「K」、「L」、「M」の各コードデータがアドレスA0
00E 〜アドレスA0010 に亙って格納される。尚、選字用
ダイヤル3が回転操作されたとき(S2:No、S1
6:Yes)、フラグF1・F3・F5・F6以外のフ
ラグがセットされているときには(S17・S22・S
27・S29:No、S31:Yes)、そのセットさ
れているフラグに対応する選択内容が順次表示される
(S32)。
Next, when the one-line print key is operated to print one line (S2: Yes, S3.S4: No,
(S7: Yes), the one-line print mark ">" is displayed on the display 19, the one-line print command data is stored in the input data buffer 31 (S8), and the flag F1 is reset (S9). For example, as shown in FIG. 19, the input data buffer 31 stores the print command data for one line at the address A000D and the code data for the characters “K”, “L”, and “M” selected thereafter. Address A0
Stored from 00E to address A0010. When the character selection dial 3 is rotated (S2: No, S1
6: Yes), and flags other than the flags F1, F3, F5, and F6 are set (S17, S22, S).
27, S29: No, S31: Yes), and the selection content corresponding to the set flag is sequentially displayed (S32).

【0046】ところで、定長印字のために定長キーが操
作されたときには(S2:Yes、S3・S4・S7:
No、S10:Yes)、印字範囲の長さを10cmに設
定する設定画面「印字長さ 10」が表示され(S1
1)、フラグF6がセットされる(S12)。次に、選
字用ダイヤル3が回転操作されたとき(S2:No、S
16:Yes)、フラグF6がセットされているので
(S17・S22・S27:No、S29:Yes)、
選字用ダイヤル3の時計回転方向への回転に伴って、印
字長さの設定画面「印字長さ 11」が表示される(S
30)。以後、選字用ダイヤル3を連続して回転操作し
たときには、設定内容「印字長さ 12」→「印字長さ
13」→「印字長さ 14」→「印字長さ 15」→
・・・・・→「印字長さ 54」まで順次ディスプレイ
19に表示される。尚、選字用ダイヤル3を反時計回転
方向へ回転させたときには、上記とは逆の表示順序で
「印字長さ 5」まで設定内容が表示される。ここで、
「印字長さ 54」が表示されている状態で選字用ダイ
ヤル3を時計回転方向へ回転させたときには、「印字長
さ5」が表示される。また、「印字長さ 5」が表示さ
れている状態で選字用ダイヤル3を反時計回転方向へ回
転させたときには、「印字長さ 54」が表示される。
By the way, when the fixed length key is operated for fixed length printing (S2: Yes, S3, S4, S7:
No, S10: Yes), and the setting screen "print length 10" for setting the length of the print range to 10 cm is displayed (S1
1), the flag F6 is set (S12). Next, when the character selection dial 3 is rotated (S2: No, S
16: Yes) and the flag F6 is set (S17, S22, S27: No, S29: Yes),
Along with the clockwise rotation of the character selection dial 3, the print length setting screen "print length 11" is displayed (S
30). After that, when the character selection dial 3 is continuously rotated, the setting contents "printing length 12" → "printing length 13" → "printing length 14" → "printing length 15" →
->"Print length 54" is sequentially displayed on the display 19. When the character selection dial 3 is rotated counterclockwise, the setting contents are displayed up to "print length 5" in the display order opposite to the above. here,
When the character selection dial 3 is rotated clockwise while "printing length 54" is displayed, "printing length 5" is displayed. Further, when the character selection dial 3 is rotated counterclockwise while "printing length 5" is displayed, "printing length 54" is displayed.

【0047】そして、設定キーが操作されたとき(S2
・S3:Yes)、フラグF6がセットされているので
(S34・S41・S46:No、S49:Yes)、
設定画面に表示されている印字長さを10倍した値がデ
ータとして印字長さメモリ40に格納される(S5
0)。また、設定キーの操作時に(S2・S3:Ye
s)、その他のフラグがセットされているときには(S
34・S41・S46・S49:No、S51:Ye
s)、そのフラグに対応する選択内容が設定される(S
52)。
When the setting key is operated (S2
-S3: Yes) and the flag F6 is set (S34, S41, S46: No, S49: Yes),
A value obtained by multiplying the print length displayed on the setting screen by 10 is stored in the print length memory 40 as data (S5).
0). Also, when operating the setting keys (S2, S3: Ye
s), when other flags are set (S
34, S41, S46, S49: No, S51: Ye
s), the selection content corresponding to the flag is set (S)
52).

【0048】次に、印字キーが操作されたときには(S
2:Yes、S3・S4・S7・S10:No、S1
3:Yes)、印字処理制御(図12・図13参照)が
実行される(S14)。この制御が開始されると、先ず
印字に関する種々のフラグやメモリなどのイニシャライ
ズが実行され(S60)、再配列処理制御(図14参
照)が実行される(S61)。尚、図19〜図23を参
照しながらこの制御を説明する。この制御が開始される
と、図20に示すように、先ず入力データバッファ31
に格納されている全てのコードデータが第1再配列メモ
リ32に格納される(S90)。但し、このこれら複数
のコードデータの最後に終了データとして「FF」が追加
格納される。
Next, when the print key is operated (S
2: Yes, S3, S4, S7, S10: No, S1
3: Yes), and the print processing control (see FIGS. 12 and 13) is executed (S14). When this control is started, various flags relating to printing and initialization of the memory are first executed (S60), and rearrangement processing control (see FIG. 14) is executed (S61). The control will be described with reference to FIGS. 19 to 23. When this control is started, as shown in FIG. 20, first, the input data buffer 31
All the code data stored in is stored in the first rearrangement memory 32 (S90). However, “FF” is additionally stored as the end data at the end of the code data.

【0049】次に、第1ポインタ34に第1再配列メモ
リ32の先頭アドレスa0000 (以下、この内容をP1と
し、第1ポインタP1という)がセットされ(S9
1)、この第1ポインタP1で指示する第1再配列メモ
リ32のデータが読出され(S92)、読出されたデー
タが1行印字指令データのときには(S93・S105
・S103:No)、第1ポインタP1に次のアドレス
がセットされ(S104)、S92に戻る。そして、読
出したデータがキャラクタのコードデータのときには上
記と同様の制御が繰り返される。
Next, the first address a0000 of the first rearrangement memory 32 (hereinafter, the content is referred to as P1 and the first pointer P1) is set in the first pointer 34 (S9).
1) The data in the first rearrangement memory 32 designated by the first pointer P1 is read (S92), and when the read data is the one-line print command data (S93 / S105).
-S103: No), the next address is set to the first pointer P1 (S104), and the process returns to S92. When the read data is character code data, the same control as above is repeated.

【0050】次に、第1ポインタP1が「アドレスa000
4 」のときには上段行印字指令データなので(S93:
Yes)、第1ポインタP1により第1再配列メモリ3
2が検索され(S94)、上段行印字指令データの次の
指令データとして下段行印字指令データが格納されてい
るとき(S95:Yes)、図21に示すように、第1
ポインタP1に対応する第2再配列メモリ33の「アド
レスb0004 」が第2ポインタ35にセット(以下、同様
に第2ポインタP2という)され、下段行印字指令デー
タ及びこれに続く下段印字行LLに印字するキャラクタ
のコードデータが第2ポインタP2以降の各アドレスに
格納される(S96)。
Next, the first pointer P1 moves to "address a000.
If it is "4", it means the upper row print command data (S93:
Yes), the first rearrangement memory 3 by the first pointer P1
2 is retrieved (S94), and when the lower row print command data is stored as the instruction data next to the upper row print instruction data (S95: Yes), as shown in FIG.
The "address b0004" of the second rearrangement memory 33 corresponding to the pointer P1 is set in the second pointer 35 (hereinafter, also referred to as the second pointer P2), and the lower row print command data and the subsequent lower row print line LL are set. The code data of the character to be printed is stored in each address after the second pointer P2 (S96).

【0051】次に、上段印字行ULに印字するキャラク
タのコードデータ数UDNが下段印字行LLのコードデ
ータ数LDNより小さいときには(S98・S100:
No)、図22に示すように第1再配列メモリ32の
「アドレスa0008 」にスペースコード「SP」が格納され
る(S101)。しかし、コードデータ数UDNがコー
ドデータ数LDNより大きいときには(S98:Ye
s)、第2再配列メモリ33の所定のアドレスにスペー
スコード「SP」が格納される(S99)。尚、両コード
データ数UDN・LDNが等しいときには(S98:N
o、S100:Yes)、S102へ移行する。次に、
図23に示すように第1再配列メモリ32において、第
2再配列メモリ33に格納したデータを削除し且つ削除
したデータ以降の各データ「>、K、L、M、FF」を夫
々移動させるなどの整理処理が実行され(S102)、
第1再配列メモリ32内に検索するデータが存在すると
きには(S103:No)、第1ポインタP1に次に検
索するアドレスとして「アドレスb0009 」がセットされ
る(S104)。
Next, when the code data number UDN of the character to be printed on the upper print line UL is smaller than the code data number LDN of the lower print line LL (S98 / S100:
No), the space code "SP" is stored in "address a0008" of the first rearrangement memory 32 as shown in FIG. 22 (S101). However, when the code data number UDN is larger than the code data number LDN (S98: Ye
s), the space code "SP" is stored at a predetermined address of the second rearrangement memory 33 (S99). When both code data numbers UDN and LDN are equal (S98: N
o, S100: Yes) and S102. next,
As shown in FIG. 23, in the first rearrangement memory 32, the data stored in the second rearrangement memory 33 is deleted and each data “>, K, L, M, FF” after the deleted data is moved. Arrangement processing such as is executed (S102),
When data to be searched exists in the first rearrangement memory 32 (S103: No), "address b0009" is set in the first pointer P1 as an address to be searched next (S104).

【0052】そして、以降の各データ「>、K、L、
M」については、S90〜S92、S93・S105:
No、S103〜S104が繰り返して実行され、終了
データ「FF」により(S103:Yes)、この制御を
終了してリターンする。
Then, each of the following data ">, K, L,
For “M”, S90 to S92, S93 and S105:
No, S103 to S104 are repeatedly executed, and with the end data "FF" (S103: Yes), this control is ended and the process returns.

【0053】ところで、下段行印字指令データが存在し
ないときには(S95:No)、第2再配列メモリ33
内において、上段印字行ULのコードデータ数UDNに
相当するスペースコード「SP」が格納される(S9
7)。また、第1ポインタP1に基いて読出したデータ
が下段行印字指令データのときには(S93:No、S
105:Yes)、第1ポインタP1に対応する第2再
配列メモリ33のアドレスが第2ポインタP2にセット
され、下段行印字指令データ及びこれに続く下段印字行
LLに印字するキャラクタのコードデータが第2ポイン
タP2以降の各アドレスに格納され(S106)、第1
再配列メモリ32において、これら下段行印字指令デー
タ及び下段印字行LLに印字するキャラクタのコードデ
ータが全てスペースコードに変換される(S107)。
By the way, when there is no lower row print command data (S95: No), the second rearrangement memory 33 is used.
The space code "SP" corresponding to the code data number UDN of the upper print line UL is stored therein (S9).
7). When the data read based on the first pointer P1 is the lower row print command data (S93: No, S
105: Yes), the address of the second rearrangement memory 33 corresponding to the first pointer P1 is set to the second pointer P2, and the lower row print command data and the code data of the character to be printed on the subsequent lower print row LL are displayed. It is stored in each address after the second pointer P2 (S106).
In the rearrangement memory 32, all the code data of the lower row print command data and the character data to be printed on the lower row print line LL are converted into space codes (S107).

【0054】次に、印字処理制御にリターンし、フラグ
F6がセットされているときつまり定長印字のときには
(S62:Yes)、文字間スペース演算処理制御(図
15・図16参照)が実行される(S63)。この制御
が開始されると、先ず文字数カウンタ36の文字数カウ
ント値MNと設定文字間スペースメモリ37の設定スペ
ース値SAと総文字幅値MWとが夫々クリアされ(S1
10)、第1ポインタP1に第1再配列メモリ32の先
頭アドレスがセットされ(S111)、第1ポインタP
1で指示するデータが読出され(S112)、読出され
たデータが終了データでなく且つコードデータでないと
きには(S113・S114:No)、読出した印字指
令データに基いてLサイズ或いはSSサイズの文字幅P
W(ドット列数)が設定され(S115)、第1ポイン
タP1がインクリメントされる(S118)。一方、読
出されたデータがコードデータのときには(S113:
No、S114:Yes)、文字数カウント値MNが1
つインクリメントされ(S116)、総文字幅値MW
(ドット列数)が文字幅PW分だけ増加され(S11
7)、S118を経てS112に戻る。
Next, returning to the print processing control, when the flag F6 is set, that is, when the fixed length printing is performed (S62: Yes), the inter-character space calculation processing control (see FIGS. 15 and 16) is executed. (S63). When this control is started, first, the character number count value MN of the character number counter 36, the set space value SA of the set inter-character space memory 37, and the total character width value MW are cleared (S1).
10), the start address of the first rearrangement memory 32 is set in the first pointer P1 (S111), and the first pointer P
When the data designated by 1 is read (S112), and the read data is neither end data nor code data (S113 / S114: No), the character width of L size or SS size is read based on the read print command data. P
W (the number of dot rows) is set (S115), and the first pointer P1 is incremented (S118). On the other hand, when the read data is code data (S113:
No, S114: Yes), the character number count value MN is 1
Is incremented by one (S116), and the total character width value MW
(Number of dot rows) is increased by the character width PW (S11
7), through S118, the process returns to S112.

【0055】そして、読出されたデータが終了データの
ときには(S113:Yes)、印字長さメモリ40に
格納された設定印字長さSLから、印字開始部分及び印
字終了部分に印字不可能な印字長さ34mm(17mm×
2)を差し引いた実際印字長さJLに設定され(S11
9)、10mmに約71ドット列分印字可能なので、この
実際印字長さJLに印字可能なドット列数NDがND=
71×JLで求められる(S120)。次に、この印字
可能なドット列数NDが総文字幅値MW以上のときつま
り入力された全てのキャラクタがこの実際印字長さJL
内に印字可能なときには(121:Yes)、印字可能
なドット列数NDから総文字幅値MWを差し引いて残り
の余白スペースYS(ドット列数)が演算される(S1
22)。更に、この余白スペースYSが文字間の数(M
N−1)以上のときには(S123:Yes)、これら
文字間の各々に1ドット列ずつのスペースを設けること
が可能なので、新規の余白スペースYSが演算され(S
124)、設定スペース値SAが1ドット列分加算され
(S125)、S123に戻る。
When the read data is the end data (S113: Yes), the print length that cannot be printed at the print start portion and the print end portion from the set print length SL stored in the print length memory 40. 34 mm (17 mm x
It is set to the actual print length JL after subtracting 2) (S11
9) About 71 dot rows can be printed on 10 mm, so the number of dot rows ND that can be printed on this actual print length JL is ND =
It is calculated by 71 × JL (S120). Next, when the number of printable dot rows ND is greater than or equal to the total character width value MW, that is, all the input characters have the actual print length JL.
When it is possible to print inside (121: Yes), the total character width value MW is subtracted from the printable dot row number ND to calculate the remaining blank space YS (dot row number) (S1).
22). Further, this blank space YS is the number of characters (M
When it is N-1) or more (S123: Yes), a space of one dot row can be provided between each of these characters, so that a new blank space YS is calculated (S).
124), the set space value SA is added for one dot row (S125), and the process returns to S123.

【0056】そして、S123〜S125が実行され
て、新規の余白スペースYSが文字間の数より小さくな
ったときに(S123:No)、この余白スペースYS
が「0」でないときには(S126:No)、余白スペ
ースYSが余りスペースSdとして有りスペースメモリ
38に格納され(S127)、フラグAFがセットされ
(S129)、この制御を終了してリターンする。しか
し、余白スペースYSが「0」のときには(S126:
Yes)、フラグAFがリセットされる(S128)。
また、入力された全てのキャラクタがこの実際印字長さ
JL内に印字不可能なときには(121:No)、エラ
ーメッセージ「定長印字不能」をディスプレイ19に表
示するなどのエラー処理が実行され(S130)、フラ
グEFがセットされる(S131)。そして、フラグE
Fがリセットされているときには(S64:No)、S
66へ移行するが、フラグEFがセットされているとき
には(S64:Yes)、両フラグF6・EFが夫々リ
セットされ(S65)、リターンする。
Then, when S123 to S125 are executed and the new blank space YS becomes smaller than the number of characters (S123: No), this blank space YS.
When is not "0" (S126: No), the blank space YS is stored as the remaining space Sd in the existing space memory 38 (S127), the flag AF is set (S129), and this control is ended and the process returns. However, when the blank space YS is "0" (S126:
Yes), the flag AF is reset (S128).
Further, when all the input characters cannot be printed within the actual print length JL (121: No), error processing such as displaying an error message "fixed length print impossible" on the display 19 is executed ( In step S130, the flag EF is set (step S131). And flag E
When F is reset (S64: No), S
When the flag EF is set (S64: Yes), both flags F6 and EF are reset (S65) and the process returns.

【0057】一方、文字間スペース演算処理後及び定長
印字でないときには(S62:No)、第1ポインタP
1に第1再配列メモリ32の先頭アドレスがセットされ
(S66)、この第1ポインタP1に基いて第1再配列
メモリ32のデータが読出され(S67)、この読出し
たデータが1行印字指令データのときには(S68・S
69:No、S70:Yes)、フラグF1がリセット
され(S71)、フラグF1に基いて1行印字に用いる
L文字サイズの文字幅値PW(48ドット)がRAM3
0に格納され(S73)、第1ポインタP1がインクリ
メントされ(S74)、S67に戻る。次に、読出した
データが文字「A」のコードデータのときに(S68:
No、S69:Yes)、定長印字でないときには(S
75:No)、S77へ移行するが、定長印字のときに
は(S75:Yes)、文字間スペース値設定処理制御
(図17参照)を経てS77へ移行する。
On the other hand, after the inter-character space calculation processing and when the fixed length printing is not performed (S62: No), the first pointer P
The first address of the first re-arrangement memory 32 is set to 1 (S66), the data of the first re-arrangement memory 32 is read based on the first pointer P1 (S67), and the read data is a one-line printing command. When it is data (S68 ・ S
69: No, S70: Yes), the flag F1 is reset (S71), and the character width value PW (48 dots) of the L character size used for printing one line is RAM3 based on the flag F1.
It is stored in 0 (S73), the first pointer P1 is incremented (S74), and the process returns to S67. Next, when the read data is the code data of the character "A" (S68:
No, S69: Yes), if the fixed length printing is not performed (S
75: No), the process proceeds to S77, but when the fixed length printing is performed (S75: Yes), the process proceeds to S77 via the character space value setting process control (see FIG. 17).

【0058】この文字間スペース値設定処理制御につい
て説明すると、フラグAFがセットされているときには
(S140:Yes)、設定スペース値SAが1ドット
列分インクリメントされた値を新たな設定スペース値S
Bとして記憶し(S141)、余りスペース値Sdが1
ドット列分デクリメントされ(S142)、余りスペー
ス値Sdが「0」よりも大きいときは(S143:N
o)、この制御を終了してリターンする。しかし、余り
スペース値Sdが「0」になったときには(S143:
Yes)、フラグAFがリセットされる(S144)。
また、フラグAFがリセットされているときには(S1
40:No)、設定スペース値SAを新たな設定スペー
ス値SBとして記憶する(S145)。そして、フラグ
F1がリセットされているので(S78:No)、コー
ドデータに対応するドットパターンデータがパターンデ
ータメモリ29から読出され、図24に示すように印字
バッファ39に格納され(S79)、文字「A」の印字
が実行され(S81)、S74へ移行する。定長印字の
ときには、この印字文字においては、最終のキャラクタ
以外の各キャラクタを印字後に、S141で求めた設定
スペース値SBが設けられる。ところで、定長印字でな
いときは(S75:No)、L文字サイズに対応する文
字間スペース値、例えば「3ドット」が設定され(S7
7)、上記と同様にS78以降が実行される。
This inter-character space value setting process control will be described. When the flag AF is set (S140: Yes), the value obtained by incrementing the set space value SA by one dot row is used as the new set space value S.
It is stored as B (S141), and the remaining space value Sd is 1
It is decremented by the dot row (S142), and when the remaining space value Sd is larger than "0" (S143: N
o), this control is terminated and the process returns. However, when the remaining space value Sd becomes "0" (S143:
Yes), the flag AF is reset (S144).
Further, when the flag AF is reset (S1
40: No), the set space value SA is stored as a new set space value SB (S145). Then, since the flag F1 is reset (S78: No), the dot pattern data corresponding to the code data is read from the pattern data memory 29 and stored in the print buffer 39 as shown in FIG. 24 (S79), and the character The printing of "A" is executed (S81), and the process proceeds to S74. In the case of constant-length printing, the set space value SB obtained in S141 is provided after printing each character other than the last character in this printed character. By the way, when the fixed length printing is not performed (S75: No), the inter-character space value corresponding to the L character size, for example, "3 dots" is set (S7).
7), S78 and subsequent steps are executed in the same manner as above.

【0059】次に、読出したデータが上段行印字指令デ
ータのときには(S68・S69・S70:No)、フ
ラグF1がセットされ(S72)、フラグF1に基いて
2行印字に用いるSS文字サイズの文字幅値PW(16
ドット)がRAM30に格納され(S73)、S74を
経てS67に戻る。そして、次に文字「D」のコードデ
ータが読出されたときには(S68:No、S69:Y
es)、S75〜S77が実行される。ここで、定長印
字でないときには(S75:No)、2行印字に用いる
SS文字サイズに対応する文字間スペース値、例えば
「1ドット」が設定される(S77)。
Next, when the read data is the upper row print command data (S68, S69, S70: No), the flag F1 is set (S72), and the SS character size used for two-line printing is set based on the flag F1. Character width value PW (16
The dot) is stored in the RAM 30 (S73), and returns to S67 via S74. Then, when the code data of the character "D" is read next (S68: No, S69: Y
es), S75 to S77 are executed. Here, when the fixed-length printing is not performed (S75: No), the inter-character space value corresponding to the SS character size used for two-line printing, for example, "1 dot" is set (S77).

【0060】次に、2行印字でありフラグF1がセット
されているので(S78:Yes)、データ合成処理制
御(図18参照)が実行される(S80)。この制御が
開始されると、先ず第1ポインタP1に対応する第2再
配列メモリ33のアドレス「b0005 」が第2ポインタP
2にセットされ(S150)、第1ポインタP1で指示
する文字「D」のコードデータが読出され(S15
1)、図25に示すようにこのコードデータのドットパ
ターンデータが印字バッファ39内の前記中央線CLに
対応する位置上に格納され(S152)、上段行印字指
令データに印字基線位置変更量dが格納されているとき
には(S153:Yes)、その基線位置変更量d(+
4ドット)が読出され(S154)、図26に示すよう
にこのドットパターンデータを上段行の通常印字基線位
置PS2にシフトさせる為の「4ドット」にこの基線位
置変更量dを加算したドット数分だけドット列方向にシ
フトされる(S156)。
Next, since two lines are printed and the flag F1 is set (S78: Yes), the data synthesizing process control (see FIG. 18) is executed (S80). When this control is started, first, the address "b0005" of the second rearrangement memory 33 corresponding to the first pointer P1 is set to the second pointer P.
2 is set (S150), and the code data of the character "D" designated by the first pointer P1 is read (S15).
1) As shown in FIG. 25, the dot pattern data of this code data is stored in the print buffer 39 at the position corresponding to the center line CL (S152), and the print base line position change amount d is added to the upper row print command data. Is stored (S153: Yes), the baseline position change amount d (+
(4 dots) is read (S154), and the number of dots obtained by adding this baseline position change amount d to "4 dots" for shifting this dot pattern data to the normal print baseline position PS2 of the upper row as shown in FIG. It is shifted by the amount in the dot row direction (S156).

【0061】更に、第2ポインタP2で指示する文字
「G」のコードデータが読出され(S157)、図27
に示すようにこのコードデータのドットパターンデータ
が印字バッファ39内の下端位置上に合成して格納され
(S158)、同様に下段行印字指令データに印字基線
位置変更量dが格納されているときには(S159:Y
es)、その基線位置変更量d(−4ドット)が読出さ
れ(S160)、ドットパターンデータを下段行の通常
印字基線位置PS3にシフトさせる為の「4ドット」に
この基線位置変更量dを加算したドット数分だけドット
列方向にシフトされ(S162)、この制御を終了して
リターンする。尚、S153でNoと判定されたとき及
びS159でNoと判定されたときには、印字基線位置
変更量dとして「0」が夫々格納される。
Further, the code data of the character "G" designated by the second pointer P2 is read (S157), and FIG.
As shown in, the dot pattern data of this code data is combined and stored on the lower end position in the print buffer 39 (S158). Similarly, when the print base line position change amount d is stored in the lower row print command data, (S159: Y
es), the base line position change amount d (-4 dots) is read (S160), and the base line position change amount d is set to "4 dots" for shifting the dot pattern data to the normal print base line position PS3 in the lower row. The number of added dots is shifted in the dot row direction (S162), the control is terminated, and the process returns. When it is determined No in S153 and No in S159, "0" is stored as the print baseline position change amount d.

【0062】その後、図27に示すように印字バッファ
39に合成して格納された2文字分のドットパターンデ
ータに基いて文字印字処理が実行される(S81)。以
下、同様にして、図23に示すように第1及び第2再配
列メモリ32・33に格納されたデータが、S60〜S
81の印字処理制御により印字される。
Thereafter, as shown in FIG. 27, the character print processing is executed based on the dot pattern data for two characters which are combined and stored in the print buffer 39 (S81). Hereinafter, similarly, the data stored in the first and second rearrangement memories 32 and 33 as shown in FIG.
Printing is performed by the print processing control 81.

【0063】従って、図28に示すように定長印字でな
いときには、印字用テープ9には文字列「ABC、KL
M」が印字領域PEに対応して1行印字されるととも
に、文字列「DEF」が上段印字行ULに印字され且つ
文字列「GHIJ」が下段印字行LLに印字される。し
かも、これら文字列「DEF」と文字列「GHIJ」と
は、指示した印字基線位置変更量dに基いて夫々印字位
置変更して印字される。また、図29に示すように定長
印字のときには、これら印字文字の各文字印字間には、
演算された設定スペース値SAが設けられ、入力した文
字列を設定印字長さSLのうちの実際印字長さJLの印
字範囲の長さに自動的に拡げて印字される。
Therefore, when the fixed length printing is not performed as shown in FIG. 28, the printing tape 9 has the character strings "ABC, KL".
One line of "M" is printed corresponding to the print area PE, the character string "DEF" is printed on the upper print line UL, and the character string "GHIJ" is printed on the lower print line LL. Moreover, the character strings "DEF" and "GHIJ" are printed with their print positions changed based on the designated print base line position change amount d. Further, as shown in FIG. 29, in the case of constant-length printing, between the printing of these print characters,
The calculated set space value SA is provided, and the input character string is automatically expanded and printed within the print range of the actual print length JL of the set print length SL.

【0064】[0064]

【第2実施例】ここで、このテープ印字装置1により英
文専用のタイプライタと同様に、入力したキャラクタを
パイカ印字ピッチやエリート印字ピッチで印字できしか
も定長印字させることも可能である。そのために、キー
ボード部4にパイカ印字ピッチやエリート印字ピッチな
どの印字ピッチを指定する印字ピッチキーを設け、パタ
ーンデータメモリ29内に、L文字サイズとSS文字サ
イズとに対応させて印字ピッチをその種類分格納した印
字ピッチテーブルを夫々格納し、更に前記文字間スペー
ス演算処理制御のルーチンを、図30に示すようにS1
14とS116の間にS170を設けて変更してもよ
い。
[Second Embodiment] Here, similarly to a typewriter dedicated to English, the tape printer 1 can print an input character at a pica print pitch or an elite print pitch and can also print it at a fixed length. For that purpose, a print pitch key for designating a print pitch such as a pica print pitch or an elite print pitch is provided in the keyboard portion 4, and the print pitch corresponding to the L character size and the SS character size is set in the pattern data memory 29. The print pitch tables stored for each minute are stored respectively, and the routine for controlling the inter-character space calculation processing is executed as shown in FIG.
You may change by providing S170 between 14 and S116.

【0065】即ち、読出されたデータがコードデータで
ないときには(S113・S114:No)、読出した
印字指令データと印字ピッチキーからの信号とに基いて
ピッチテーブルが選択され(S115)、次に読出した
コードデータについて(S113:No、S114:Y
es)、選択されたピッチテーブルから読出した印字ピ
ッチデータで文字幅値PWが設定される(S170)。
そして、以下同様に制御される。
That is, when the read data is not the code data (S113 / S114: No), the pitch table is selected based on the read print command data and the signal from the print pitch key (S115), and then read. About code data (S113: No, S114: Y
es), the character width value PW is set by the print pitch data read from the selected pitch table (S170).
Then, the same control is performed thereafter.

【0066】更に、プロポーショナルスペース機能を設
けることも可能である。こきときには、前記パターンデ
ータメモリ29内に、L文字サイズとSS文字サイズと
に対応させて、各キャラクタの文字幅データを格納した
ピッチテーブルを印字ピッチの種類分設け、S115に
おいて読出した印字指令データに対応するピッチテーブ
ルを選択する一方、S170においてそのピッチテーブ
ルから読出したコードデータに対応する文字幅データを
文字幅値PWに設定すればよい。
Further, it is possible to provide a proportional space function. At this time, the pattern data memory 29 is provided with pitch tables for storing the character width data of each character corresponding to the print character data corresponding to the L character size and the SS character size, and the print command data read in S115. While selecting the pitch table corresponding to, the character width data corresponding to the code data read from the pitch table in S170 may be set to the character width value PW.

【0067】尚、パターンデータメモリ29に3〜4種
類の文字サイズのドットパターンデータを格納し、1行
印字及び2行印字において所望の文字サイズを選択可能
に構成しても良い。
The pattern data memory 29 may store dot pattern data of 3 to 4 different character sizes so that a desired character size can be selected for one-line printing and two-line printing.

【0068】尚、印字用バッファを追加し、ドット列デ
ータが印字の為に読出されている印字バッファ以外の印
字バッファに、次の印字の為のドット列データを格納す
るようにしてもよい。
A print buffer may be added to store dot string data for the next printing in a print buffer other than the print buffer in which the dot string data is read for printing.

【0069】以上説明したように、印字開始時に、入力
データバッファ31に格納されたキャラクタのコードデ
ータが第1及び第2再配列メモリ32・33に再配列さ
れる(S90〜S104)。定長印字がセットされてい
るとき、第1再配列メモリ32に格納されたキャラクタ
の総文字幅値が演算され、設定された印字長さと総文字
幅値とが比較される。設定された印字長さ内に印字不可
能なときには、エラーメッセージがディスプレイ19に
表示される。印字可能なときには、第1再配列メモリ3
2のコードデータの数と設定された印字長さのデータに
基いて、キャラクタ間に設ける等しい文字間スペースが
演算され(S110〜S129)、キャラクタ印字の際
にこの文字間スペースが各キャラクタ間に自動的に設け
られるので、入力された文字列を所望の印字範囲に自動
的に拡げて印字することができる。また定長印字がセッ
トされていないとき、文字サイズに対応するスペース値
を設定して(S77)印字をする(S81)。テープ長
さは、このスペース値を含む文字サイズの総和に基づい
て決定される。
As described above, at the start of printing, the character code data stored in the input data buffer 31 is rearranged in the first and second rearrangement memories 32 and 33 (S90 to S104). When the constant length print is set, the total character width value of the characters stored in the first rearrangement memory 32 is calculated, and the set print length and the total character width value are compared. When printing cannot be performed within the set print length, an error message is displayed on the display 19. When printing is possible, the first rearrangement memory 3
Based on the number of the code data of 2 and the data of the set print length, the equal inter-character spaces provided between the characters are calculated (S110 to S129), and when the characters are printed, the inter-character spaces are set between the characters. Since it is automatically provided, the input character string can be automatically expanded and printed in a desired printing range. When the fixed length printing is not set, a space value corresponding to the character size is set (S77) and printing is performed (S81). The tape length is determined based on the sum of character sizes including this space value.

【0070】尚、印字用テープ9を手動で引き出しなが
ら印字用テープ9上にキャラクタ印字をするように構成
したものやワイヤードット方式によるテープ印字装置な
ど、種々のテープ印字装置に本発明を適用し得ることは
勿論である。
The present invention is applied to various tape printers such as a printer configured to print characters on the print tape 9 while manually pulling out the print tape 9 and a wire dot tape printer. Of course you can get it.

【0071】[0071]

【発明の効果】以上説明したことから明かなように、本
発明のテープ印字装置は、ファイルの「表題」などのた
めに設定した印字長さのテープを作成したり、印字長さ
に制限されないで長いキャラクタ列を印字したりするこ
とができ、実用上きわめて優れるものである。
As is apparent from the above description, the tape printer according to the present invention does not create a tape having a print length set for the "title" of a file or the like, and is not limited to the print length. It is possible to print a long character string with and is extremely excellent in practical use.

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

【図1】本発明の構成を示す機能ブロック図である。FIG. 1 is a functional block diagram showing a configuration of the present invention.

【図2】テープ印字装置の平面図である。FIG. 2 is a plan view of the tape printer.

【図3】印字機構の概略平面図である。FIG. 3 is a schematic plan view of a printing mechanism.

【図4】テープ印字装置の制御系のブロック図である。FIG. 4 is a block diagram of a control system of the tape printer.

【図5】印字用テープ及びサーマルヘッドを示す印字機
構の部分正面図である。
FIG. 5 is a partial front view of a printing mechanism showing a printing tape and a thermal head.

【図6】テープ印字制御のルーチンの概略フローチャー
トの一部分である。
FIG. 6 is a part of a schematic flowchart of a tape print control routine.

【図7】テープ印字制御のルーチンの概略フローチャー
トの一部分である。
FIG. 7 is a part of a schematic flowchart of a tape print control routine.

【図8】テープ印字制御のルーチンの概略フローチャー
トの一部分である。
FIG. 8 is a part of a schematic flowchart of a tape print control routine.

【図9】テープ印字制御のルーチンの概略フローチャー
トの一部分である。
FIG. 9 is a part of a schematic flowchart of a tape print control routine.

【図10】テープ印字制御のルーチンの概略フローチャ
ートの一部分である。
FIG. 10 is a part of a schematic flowchart of a tape print control routine.

【図11】テープ印字制御のルーチンの概略フローチャ
ートの一部分である。
FIG. 11 is a part of a schematic flowchart of a tape print control routine.

【図12】テープ印字制御に含まれる印字処理制御のル
ーチンの概略フローチャートの一部分である。
FIG. 12 is a part of a schematic flowchart of a print processing control routine included in the tape print control.

【図13】テープ印字制御に含まれる印字処理制御のル
ーチンの概略フローチャートの一部分である。
FIG. 13 is a part of a schematic flowchart of a print processing control routine included in the tape print control.

【図14】印字処理制御に含まれる再配列処理制御のル
ーチンの概略フローチャートである。
FIG. 14 is a schematic flowchart of a rearrangement process control routine included in the print process control.

【図15】印字処理制御に含まれる文字間スペース演算
処理制御のルーチンの概略フローチャートの一部分であ
る。
FIG. 15 is a part of a schematic flowchart of a routine for inter-character space calculation processing control included in print processing control.

【図16】印字処理制御に含まれる文字間スペース演算
処理制御のルーチンの概略フローチャートの一部分であ
る。
FIG. 16 is a part of a schematic flowchart of a routine for character space calculation processing control included in the print processing control.

【図17】印字処理制御に含まれる文字間スペース値設
定処理制御のルーチンの概略フローチャートである。
FIG. 17 is a schematic flowchart of a routine for character space value setting processing control included in print processing control.

【図18】印字処理制御に含まれるデータ合成処理制御
のルーチンの概略フローチャートである。
FIG. 18 is a schematic flowchart of a data composition process control routine included in the print process control.

【図19】入力データバッファ内のデータを模式的に示
す説明図である。
FIG. 19 is an explanatory diagram schematically showing data in an input data buffer.

【図20】第1及び第2再配列メモリ内のデータを模式
的に示す説明図である。
FIG. 20 is an explanatory diagram schematically showing data in first and second rearrangement memories.

【図21】第1及び第2再配列メモリ内のデータを模式
的に示す説明図である。
FIG. 21 is an explanatory diagram schematically showing data in first and second rearrangement memories.

【図22】第1及び第2再配列メモリ内のデータを模式
的に示す説明図である。
FIG. 22 is an explanatory diagram schematically showing data in first and second rearrangement memories.

【図23】第1及び第2再配列メモリ内のデータを模式
的に示す説明図である。
FIG. 23 is an explanatory diagram schematically showing data in first and second rearrangement memories.

【図24】印字バッファ内のドットパターンデータを模
式的に示す説明図である。
FIG. 24 is an explanatory diagram schematically showing dot pattern data in a print buffer.

【図25】印字バッファ内のドットパターンデータを模
式的に示す説明図である。
FIG. 25 is an explanatory diagram schematically showing dot pattern data in a print buffer.

【図26】印字バッファ内のドットパターンデータを模
式的に示す説明図である。
FIG. 26 is an explanatory diagram schematically showing dot pattern data in a print buffer.

【図27】印字バッファ内のドットパターンデータを模
式的に示す説明図である。
FIG. 27 is an explanatory diagram schematically showing dot pattern data in a print buffer.

【図28】1行及び2行の文字列を、定長印字させない
で印字用テープに印字した印字例を示す例示図である。
FIG. 28 is an exemplary diagram showing a printing example in which character strings of one line and two lines are printed on a printing tape without being printed in a fixed length.

【図29】1行及び2行の文字列を、設定した印字長さ
で印字用テープに定長印字した印字例を示す例示図であ
る。
FIG. 29 is an exemplary diagram showing a printing example in which character strings of one line and two lines are printed on a printing tape in a fixed length with a set printing length.

【図30】第2実施例に係る文字間スペース演算処理制
御の文字間スペース演算処理制御のルーチンの概略フロ
ーチャートの一部分である。
FIG. 30 is a part of a schematic flowchart of a routine for inter-character space arithmetic processing control of inter-character space arithmetic processing control according to the second embodiment.

【符号の説明】[Explanation of symbols]

1 テープ印字装置 3 選字用ダイヤル 4 キーボード部 5 選択キー 7 サーマルヘッド 9 印字用テープ 27 CPU 28 ROM(プログラムメモリ) 29 ROM(パターンデータメモリ) 30 RAM 31 入力データバッファ 37 設定文字間スペースメモリ 39 印字バッファ 40 印字長さメモリ C 制御装置 1 Tape printing device 3 Character selection dial 4 Keyboard section 5 Selection key 7 Thermal head 9 Printing tape 27 CPU 28 ROM (program memory) 29 ROM (pattern data memory) 30 RAM 31 Input data buffer 37 Set character space memory 39 Print buffer 40 Print length memory C Controller

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 B41J 21/00 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location B41J 21/00 Z

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 印字媒体テープの長手方向に沿ってキャ
ラクタ列を印字する印字ヘッドと、 前記テープに印字するキャラクタを入力する入力手段
と、 その入力手段により入力されたキャラクタに基づいて前
記印字ヘッドを前記テープとそのテープの長手方向に相
対移動しながら駆動する印字駆動手段と、 前記テープの長手方向の印字長さを設定するかしないか
を指示する指示手段と、 前記テープの長手方向の印字長さを入力設定する印字長
さ設定手段とを備え、前記指示手段により前記印字長さ
を設定しない指示をしたとき、前記印字駆動手段は、前
記入力されたキャラクタ列の長さに応じた長さのテープ
に前記キャラクタを印字し、また前記指示手段により前
記印字長さを設定する指示をしたとき、前記印字駆動手
段は、前記印字長さ設定手段により入力設定された印字
長さに前記キャラクタを印字することを特徴とするテー
プ印字装置。
1. A print head for printing a character string along a longitudinal direction of a print medium tape, input means for inputting a character to be printed on the tape, and the print head based on the character input by the input means. Print driving means for driving the tape and the tape while relatively moving in the longitudinal direction of the tape, instructing means for instructing whether to set the print length in the longitudinal direction of the tape, and printing in the longitudinal direction of the tape. A print length setting means for inputting and setting a length, and when the instruction means gives an instruction not to set the print length, the print driving means causes the print length to correspond to the length of the input character string. When the character is printed on the tape and the setting means sets the print length, the print drive means sets the print length setting. Tape printer, characterized by printing the character in the input set print length by means.
【請求項2】 請求項1において、さらに前記入力され
たキャラクタ列の長さを求める演算手段と、 前記設定された印字長さと前記キャラクタ列の長さを比
較する比較手段と、 前記指示手段により印字長さを設定する指示をし前記印
字長さ設定手段により印字長さを入力設定したとき、前
記比較手段による比較の結果に基づいて、前記印字長さ
に前記キャラクタ列を印字可能かどうかを判断する制御
手段とを備えることを特徴とするテープ印字装置。
2. The operation means according to claim 1, further comprising: a computing means for determining the length of the input character string, a comparing means for comparing the set print length and the character string length, and the instructing means. When an instruction to set the print length is made and the print length is input and set by the print length setting means, it is determined whether the character string can be printed at the print length based on the result of the comparison made by the comparing means. A tape printing apparatus comprising: a control unit for making a judgment.
【請求項3】 請求項2において、さらに前記印字駆動
手段による印字ヘッドの印字動作を開始させる印字開始
手段を備え、前記指示手段により印字長さを設定するこ
とが指示され前記印字長さ設定手段により印字長さが入
力設定されているとき、前記印字開始手段の出力による
前記印字動作の開始前に、前記比較手段による比較の結
果、設定された印字長さに前記キャラクタ列を印字不可
能な場合、前記制御手段はエラー出力をするとともに前
記印字駆動手段は印字動作の開始を中止し、印字可能な
場合、前記印字駆動手段は設定された印字長さに前記キ
ャラクタ列を印字するよう動作することを特徴とするテ
ープ印字装置。
3. The print length setting means according to claim 2, further comprising a print start means for starting the print operation of the print head by the print drive means, wherein the instruction means is instructed to set the print length. When the print length is input and set by, the character string cannot be printed at the set print length as a result of the comparison by the comparison means before the printing operation by the output of the print start means is started. In this case, the control means outputs an error and the print driving means stops the start of the printing operation, and if printing is possible, the print driving means operates to print the character string to the set print length. A tape printer characterized in that
【請求項4】 印字媒体テープに印字するキャラクタの
コードデータを入力する入力手段と、 その入力手段により入力されたコードデータを格納する
入力データバッファと、 多数のキャラクタのパターンデータを格納したパターン
データ格納手段と、 前記テープの長手方向に沿って前記入力されたキャラク
タ列を印字するようにそのテープに対し長手方向に相対
移動可能な印字ヘッドと、 前記入力データバッファに格納されたコードデータに対
応するパターンデータを前記パターンデータ記憶手段か
ら読み出し、そのパターンデータに基づいて前記印字ヘ
ッドを前記テープとそのテープの長手方向に相対移動し
ながら駆動する印字駆動手段と、 前記テープの長手方向の印字長さを設定するかしないか
を指示する指示手段と、 前記入力データバッファに格納されたコードデータに対
応するキャラクタの幅を合計して、キャラクタ列の長さ
を求める演算手段と、 前記テープの長手方向の印字長さを入力設定する印字長
さ設定手段と、 前記設定された印字長さと前記キャラクタ列の長さを比
較する比較手段と、 前記指示手段により前記印字長さを設定する指示をし前
記印字長さ設定手段により印字長さを入力設定したと
き、前記比較手段による比較の結果に基づいて、設定さ
れた印字長さに前記キャラクタ列を印字可能かどうか判
断し、印字不可能なとき前記印字駆動手段による印字ヘ
ッドの印字動作開始前にその印字を中止する制御手段と
を備えることを特徴とするテープ印字装置。
4. An input means for inputting code data of a character to be printed on a print medium tape, an input data buffer for storing code data input by the input means, and pattern data for storing pattern data of a large number of characters. Storage means, a print head capable of relatively moving in the longitudinal direction with respect to the tape so as to print the inputted character string along the longitudinal direction of the tape, and corresponding to the code data stored in the input data buffer. Pattern data to be read from the pattern data storage means, and based on the pattern data, the print head that drives the print head while moving the tape and the tape in the longitudinal direction of the tape, and the print length in the longitudinal direction of the tape. Means for instructing whether to set the input data, and the input data Calculating means for summing the widths of the characters corresponding to the code data stored in the buffer to obtain the length of the character string; print length setting means for inputting and setting the print length in the longitudinal direction of the tape; Comparing means for comparing the set print length with the length of the character string; and an instruction to set the print length by the instructing means, and when the print length is input and set by the print length setting means, Based on the result of the comparison by the comparison means, it is judged whether or not the character string can be printed in the set print length, and when printing is impossible, the printing is stopped before the printing operation of the print head by the print driving means is started. And a control unit for controlling the tape printing device.
【請求項5】 請求項1、2、3、または4において、 前記印字駆動手段は、前記印字長さ設定手段で印字長さ
を設定したとき、その印字長さにキャラクタを等しい間
隔で割り付けて印字するように前記印字ヘッドを駆動す
ることを特徴とするテープ印字装置。
5. The print drive unit according to claim 1, wherein when the print length is set by the print length setting unit, characters are assigned to the print length at equal intervals. A tape printer, wherein the print head is driven so as to print.
JP6259982A 1994-10-25 1994-10-25 Tape printer Expired - Lifetime JP2560650B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6259982A JP2560650B2 (en) 1994-10-25 1994-10-25 Tape printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6259982A JP2560650B2 (en) 1994-10-25 1994-10-25 Tape printer

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP6080432A Division JP2606126B2 (en) 1994-04-19 1994-04-19 Tape recorder

Publications (2)

Publication Number Publication Date
JPH07276714A true JPH07276714A (en) 1995-10-24
JP2560650B2 JP2560650B2 (en) 1996-12-04

Family

ID=17341642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6259982A Expired - Lifetime JP2560650B2 (en) 1994-10-25 1994-10-25 Tape printer

Country Status (1)

Country Link
JP (1) JP2560650B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000033742A (en) * 1998-07-21 2000-02-02 Brother Ind Ltd Tape printer

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63262276A (en) * 1987-04-20 1988-10-28 Casio Comput Co Ltd Small-size character printer
JPS63262273A (en) * 1987-04-20 1988-10-28 Casio Comput Co Ltd Small-size character printer
JPS63166441U (en) * 1987-04-21 1988-10-28
JPS641563A (en) * 1987-06-25 1989-01-05 Canon Inc Manual scanning type recording apparatus
JPH0185050U (en) * 1987-11-28 1989-06-06
JPH01152070A (en) * 1987-12-10 1989-06-14 Brother Ind Ltd Printer capable of changing printing position
JPH02255912A (en) * 1989-01-31 1990-10-16 Casio Comput Co Ltd Word processor
JPH04182153A (en) * 1990-11-16 1992-06-29 Seiko Epson Corp Tape printer
JPH05104810A (en) * 1991-03-28 1993-04-27 Brother Ind Ltd Tape printer

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63262276A (en) * 1987-04-20 1988-10-28 Casio Comput Co Ltd Small-size character printer
JPS63262273A (en) * 1987-04-20 1988-10-28 Casio Comput Co Ltd Small-size character printer
JPS63166441U (en) * 1987-04-21 1988-10-28
JPS641563A (en) * 1987-06-25 1989-01-05 Canon Inc Manual scanning type recording apparatus
JPH0185050U (en) * 1987-11-28 1989-06-06
JPH01152070A (en) * 1987-12-10 1989-06-14 Brother Ind Ltd Printer capable of changing printing position
JPH02255912A (en) * 1989-01-31 1990-10-16 Casio Comput Co Ltd Word processor
JPH04182153A (en) * 1990-11-16 1992-06-29 Seiko Epson Corp Tape printer
JPH05104810A (en) * 1991-03-28 1993-04-27 Brother Ind Ltd Tape printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000033742A (en) * 1998-07-21 2000-02-02 Brother Ind Ltd Tape printer

Also Published As

Publication number Publication date
JP2560650B2 (en) 1996-12-04

Similar Documents

Publication Publication Date Title
JP2536322B2 (en) Tape printing device
JP2940404B2 (en) Label making device
JPH0596789A (en) Tape printer
JP2629516B2 (en) Tape printer
JPH05305748A (en) Printer
JPH05185695A (en) Printing device
JP2560650B2 (en) Tape printer
JPH0778140A (en) Document processor
JP3063544B2 (en) Tape printer
JP2546194B2 (en) Tape printer capable of printing multiple lines of data
JP2606126B2 (en) Tape recorder
JPH06198962A (en) Preparing device for registration dot pattern data of tape printer
JP2513441B2 (en) Tape printing device capable of printing multiple lines
JPH06198961A (en) Register dot pattern data processor of document processor
JPH08314924A (en) Document processor
JP3292393B2 (en) Document processing device
JP3047751B2 (en) Tape printer capable of printing on multiple print lines
JPH07276715A (en) Tape printer capable of printing a plurality of blocks in optional number of lines
JPH0596790A (en) Tape printer
JP2560650C (en)
JP2760246B2 (en) Tape printer
JP3123376B2 (en) Printing device
JPH0752496A (en) Printer
JPH06198964A (en) Preparing device for registration dot pattern data of tape printer
JP2606126C (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20070919

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20080919

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090919

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090919

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100919

Year of fee payment: 14

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100919

Year of fee payment: 14

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 15

Free format text: PAYMENT UNTIL: 20110919

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 15

Free format text: PAYMENT UNTIL: 20110919