JP2606126C - - Google Patents

Info

Publication number
JP2606126C
JP2606126C JP2606126C JP 2606126 C JP2606126 C JP 2606126C JP 2606126 C JP2606126 C JP 2606126C
Authority
JP
Japan
Prior art keywords
recording
length
tape
character
input
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
Application number
Other languages
Japanese (ja)
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
Publication date

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】 本発明は、テープ状の被記録媒体に記録を行うテープ記録装置に関し、特に入
力した複数のキャラクタを、設定した記録長さに記録するようにしたものに関す
る。 【0002】 【従来の技術】 従来、テープ状の被記録媒体に記録を行うテープ記録装置の1種であるところ の、幅約10ミリ前後の印字用テープに所望の文字列を印字する小型のテープ印
字装置に関して種々提案されている。そこで、本願出願人は特開平1−1520
70号公報において、印字可能な全角文字と4倍角文字のうち全角文字について
、印字するキャラクタの印字位置を印字用テープの幅方向の中央位置に揃えて印
字するセンタ印字モードとその幅方向の下側に揃えて印字する下揃え印字モード
とを選択可能に構成した印字位置変更可能な印字装置を提案した。 【0003】 ところで、一般に、テープ印字装置で印字されるキャラクタは、複数のサイズ
から任意に選択できるようになっており、印字テープの長さは、選択されたサイ
ズに応じて決定されるように構成されている。 【0004】 【発明が解決しようとする課題】 一般に、このテープ印字装置を用いて、例えばファイルの「表題」や「内容」
を印字用テープに印字し、この印字された印字用テープをファイルの所定の貼付
位置に貼着する場合が多い。このため、貼付位置における貼付範囲の長さに適合
した長さのテープを得たい場合がある。 【0005】 しかしながら、前述したように、テープ長さは選択したキャラクタサイズによ
り決定されているので、できあがるテープ長さをあらかじめ知ることが困難であ
るという問題がある。 【0006】 ワードプロセッサなどでは、規定の用紙幅を越えるキャラクタは、次の行で印
字することができるが、この種のテープ印字装置では、キャラクタ列をテープの
長手方向に沿って印字する方法をとっていることと、上記「表題」として使用す
る目的のために、ワードプロセッサで文章を印字するような制御ができない。 【0007】 本発明は、上述した問題点を解決するためになされたものであり、入力したキ
ャラクタ列を設定した記録長さのテープに記録可能かどうか予め判断できるテー
プ記録装置を提供することにある。 【0008】 【課題を解決するための手段】 この目的を達成するために本発明の請求項1に係るテープ記録装置は、テープ
状の被記録媒体からなるテープの長手方向に沿ってキャラクタ列を記録する記録
ヘッドと、前記テープに記録するキャラクタを入力する入力手段と、その入力手
段により入力されたキャラクタに基づいて前記記録ヘッドを前記テープとそのテ
ープの長手方向に相対移動しながら駆動する記録駆動手段と、前記テープの長手
方向の記録長さを設定するかしないかを指示する指示手段と、前記テープの長手
方向の記録長さを入力設定する記録長さ設定手段と、前記入力されたキャラクタ
列の長さを求める演算手段と、前記設定された記録長さと前記キャラクタ列との
長さを比較する比較手段と、前記指示手段により前記記録長さを設定する指示を
したとき、前記比較手段による比較の結果、設定された記録長さに前記キャラク
タ列を記録可能かどうか判断する判断手段と、前記指示手段により前記記録長さ
を設定しない指示をしたとき、前記記録駆動手段を制御して、前記入力されたキ
ャラクタ列の長さに応じた長さのテープに前記キャラクタを記録する第1記録制
御手段と、前記指示手段により前記記録長さを設定する指示があり、且つ、前記
判断手段により記録可能と判断されたとき、前記記録駆動手段を制御して、前記
前記記録長さ設定手段により入力設定された記録長さに前記キャラクタを記録す
る第2記録制御手段と、前記指示手段により前記記録長さを設定する指示があり
、且つ、前記判断手段により記録不可能と判断されたとき、その旨を報知する報
知手段とを備える。 【0009】 また、請求項2に係るテープ記録装置は、請求項1のもの同様の構成を備える
が、前記記録駆動手段による記録ヘッドの記録動作の開始前に、前記判断手段に
より設定された記録長さに前記キャラクタ列を記録不可能と判断されたとき、前
記報知手段によりエラー報知を行わせるとともに、前記記録駆動手段による記録
動作の開始を中止する第3記録制御手段を備える。 【0010】 また、請求項3に係るテープ記録装置は、請求項1または請求項2のものと同 様の構成を備えるが、前記記録長さ設定手段は、所望のテープ長さを入力するも
のであり、前記比較手段は、その所望のテープ長さから記録開始部分と記録終端
部分の記録不可能な長さを引いたものと、前記キャラクタ列の長さとを比較する
。 【0011】 また、請求項4に係るテープ記録装置は、テープ状の被記録媒体からなるテー
プに記録するキャラクタのコードデータを入力する入力手段と、その入力手段に
より入力されたコードデータを格納する入力データバッファと、多数のキャラク
タのパターンデータを格納したパターンデータ格納手段と、前記テープの長手方
向に沿って前記入力されたキャラクタ列を記録するようにそのテープに対し長手
方向に相対移動可能な記録ヘッドと、前記入力データバッファに格納されたコー
ドデータに対応するパターンデータを前記パターンデータ記憶手段から読み出し
、そのパターンデータに基づいて前記記録ヘッドを駆動する記録駆動手段と、前
記テープの長手方向の記録長さを設定するかしないかを指示する指示手段と、前
記テープの長手方向の記録長さを入力設定する記録長さ設定手段と、前記入力デ
ータバッファに格納されたコードデータに対応するキャラクタの幅を合計して、
キャラクタ列の長さを求める演算手段と、前記設定された記録長さと前記演算手
段により求められたキャラクタ列の長さを比較する比較手段と、前記指示手段に
より前記記録長さを設定する指示をしたとき、前記比較手段による比較結果、設
定された記録長さに前記キャラクタ列を記録可能かどうか判断する判断手段と、
前記指示手段により前記記録長さを設定しない指示をしたとき、前記記録駆動手
段を制御して、前記入力されたキャラクタ列の長さに応じた長さのテープに前記
キャラクタを記録する第1記録制御手段と、前記指示手段により前記記録長さを
設定する指示があり、且つ、前記判断手段により記録可能と判断されたとき、前
記記録駆動手段を制御して、前記記録長さ設定手段により入力設定された記録長
さに前記キャラクタを記録する第2記録制御手段と、前記指示手段により前記記
録長さを設定する指示があり、且つ、前記判断手段により記録不可能と判断され
たとき、その旨を報知する報知手段とを備える。 【0012】 また、請求項5に係るテープ記録装置は、請求項1または請求項4のものと同
様の構成を備えるが、前記報知手段は、記録不可能な旨を表示する表示手段から
構成され、この表示手段は、前記記録長さ設定手段により入力した記録長さを表
示する。 【0013】 また、請求項6に係るテープ記録装置は、請求項1または請求項4のものと同
様の構成を備えるが、前記演算手段は、記録されるキャラクタが複数行あるとき
、その複数行のうちの長い行を判別して、前記キャラクタ列の長さを求める。 【0014】 また、請求項7に係るテープ記録装置は、請求項1または請求項4のものと同
様の構成を備えるが、記録可能なキャラクタのサイズは複数種類有り、前記演算
手段は各サイズに対応したキャラクタの幅を合計する。 【0015】 【作用】 上記の構成を有する本発明の請求項1に係るテープ記録装置においては、記録
長さ設定手段でテープに記録する記録長さが設定される。また入力手段から入力
されたキャラクタ列の長さが演算手段で求められる。 【0016】 そして、指示手段により記録長さを設定しない旨が指示されたとき、第1記録
制御手段が記録駆動手段を制御して、入力されたキャラクタ列の長さに応じた長
さのテープにキャラクタを記録する。 【0017】 一方、指示手段により記録長さを設定する旨が指示されたとき、比較手段によ
るの設定された記録長さと演算手段が求めたキャラクタ列の長さとの比較結果に
より、判断手段が記録可能と判断すれば、第2記録制御手段が記録駆動手段を制
御して、設定された記録長さキャラクタを記録する。また、指示手段により記録
長さを設定する旨が指示されたとき、判断手段が記録不可能と判断すれば、報知
手段がその旨を報知する。 【0018】 また、請求項2に係るテープ記録装置においては、請求項1のものと同様の作
用を奏するが、判断手段が記録不可能と判断したとき、第3記録制御手段が報知
手段にエラー報知を行わせるとともに、記録駆動手段による記録動作の開始を中
止する。 【0019】 また、請求項3に係るテープ記録装置においては、請求項1または請求項2の
ものと同様の作用を奏するが、記録長さ設定手段で入力される記録長さは、所望
のテープ長さであり、比較手段は、その所望のテープ長さから記録開始部分と記
録終端部分の記録不可能な長さを引いたものと、前記キャラクタ列の長さとを比
較する。 【0020】 また、請求項4に係るテープ記録装置においては、入力手段により入力された
キャラクタのコードデータが入力データバッファに格納される。入力データバッ
ファに格納されたコードデータに対応するパターンデータがパターンデータ記憶
手段から読み出され、そのパターンデータに基づいて記録ヘッドが駆動されると
ともにその記録ヘッドがテープに対して長手方向に相対移動され、テープ上に記
録がされる。 【0021】 また、記録長さ設定手段でテープに記録する記録長さが設定され、入力手段か
ら入力されたキャラクタ列の長さが演算手段で求められる。 【0022】 そして、指示手段により記録長さを設定しない旨が指示されたとき、第1記録
制御手段が記録駆動手段を制御して、入力されたキャラクタ列の長さに応じた長
さのテープにキャラクタを記録する。 【0023】 一方、指示手段により記録長さを設定する旨が指示されたとき、比較手による
の設定された記録長さと演算手段が求めたキャラクタ列の長さとの比較結果によ
り、判断手段が記録可能と判断すれば、第2記録制御手段が記録駆動手段を制御
して、設定された記録長さキャラクタを記録する。また、指示手段により記録長 さを設定する旨が指示されたとき、判断手段が記録不可能と判断すれば、報知手
段がその旨を報知する。 【0024】 また、請求項5に係るテープ記録装置においては、請求項1または請求項4の
ものと同様の作用を奏するが、記録長さの表示、及び記録不可能なときのエラー
表示が表示手段によりされる。 【0025】 また、請求項6に係るテープ記録装置においては、請求項1または請求4のも
のと同様の作用を奏するが、印字されるキャラクタが複数行ある時、その複数行
のうちの長い行を判別して、前記キャラクタ列の長さが演算手段により求められ
る。 【0026】 また、請求項6に係るテープ記録装置においては、請求項1または請求4のも
のと同様の作用を奏するが、記録可能なキャラクタのサイズは複数種類あり、各
サイズに対応したキャラクタの幅が演算手段により合計される。 【0027】 【実施例】 以下、本発明を具体化した一実施例を図面を参照して説明する。 【0028】 本実施例は、漢字やひらがなやカタカナ及びアルファベット文字などの多数の
キャラクタを印字用テープ(印字媒体テープ)に印字するテープ印字装置に本発
明を適用した場合のものである。 【0029】 図2に示すように、テープ印字装置1の本体フレーム2の前部には印字する為
の文字や記号(以下、キャラクタという)を選択するための環状の選字用ダイヤ
ル3が回転自在に配設されるとともに、キーボード部4が配設され、選字用ダイ
ヤル3の後方には6文字分表示可能な液晶ディスプレイ19が設けられている。
この選字用ダイヤル3の中央部には、選字用ダイヤル3の回転操作で選択したキ
ャラクタを確定したり或いは印字に関する設定内容を確定する為の設定キー5が 設けられている。更に、選字用ダイヤル3の後方の本体フレーム2内には印字機
構PMが内蔵されている。 【0030】 前記選字用ダイヤル3には1回転で50箇所の停止位置が設けられており、選
字用ダイヤル3の上面にはこれら50箇所の停止位置の夫々に対応させてキャラ
クタのイメージが2列に描かれている。尚、符号6は選字位置マークである。 【0031】 キーボード部4には、「ひらがな」と「カタカナ」と「アルファベット」との
入力を択一的に切換える為の文字種切換えキー、変換キー及び無変換キー、2行
印字を指示する2行印字キー、1行印字を指示する1行印字キー、入力したキャ
ラクタを設定した印字範囲の長さに応じて均等割り付けによる印字を設定するた
めの定長キー、印字を実行する印字キー、キャラクタの書体を選択する書体選択
キー、印字用テープ9をテープ送りする為のテープ送りキー、電源をON・OF
Fする為の電源スイッチなどが設けられている。 【0032】 次に、図3に基いて印字機構PMについて簡単に説明すると、矩形状のテープ
収納カセットCSには、透明なフィルムからなる印字用テープ9が巻装されたテ
ープスプール8と、インクリボン12が巻装されたリボン供給スプール13と、
このインクリボン12を巻取る巻取りスプール14と、印字用テープ9と同一幅
を有する両面テープ15が剥離紙を外側にして巻装された供給スプール16と、
これら印字用テープ9と両面テープ15とを接合させる接合ローラとが回転自在
に設けられている。 【0033】 印字用テープ9とインクリボン12とが重なる位置には、サーマルヘッド7が
立設され、これら印字用テープ9とインクリボン12とをサーマルヘッド7に押
圧するプラテンローラ17と両テープ9・15を接合ローラ10に押圧する送り
ローラ45とは支持体46に回転可能に枢支されている。このサーマルヘッド7
には、図5に示すように48個の発熱素子からなる発熱素子群11が上下方向に
列設されている。 【0034】 従って、接合ローラ10と巻取りスプール14とがテープ送りモータ(図4参
照)18で所定の回転方向に夫々同期して駆動されながら発熱素子群11に通電
されたとき、印字用テープ9上には図5に示すように複数のドット列により文字
が印字され、しかも印字用テープ9は両面テープ15を接合した状態でテープ送
り方向Aにテープ送りされて本体フレーム2外に送出される。尚印字機構PMの
詳細については特開平2−106555号公報を参照。 【0035】 次に、テープ印字装置1の制御系は図4のブロック図に示すように構成されて
いる。 【0036】 表示機構DMは液晶ディスプレイ19と、このディスプレイ19に表示データ
を出力するための表示用RAMを有するディスプレイコントローラ(LCDコン
トローラ)20とを備えた一般的なものである。選字用ダイヤル3に連結された
絶対値エンコーダ21は、選字用ダイヤル3の50箇所の停止位置に対応して5
0種類の絶対値エンコーダ信号ENSを夫々出力する為のものであり、これら絶
対値エンコーダ信号ENSと文字種切換えキーからの信号とに基いて選字位置マ
ーク6に対応させて選択されたキャラクタのコードデータが得られるとともに、
選択操作前の絶対値エンコーダ信号ENSと現在の絶対値エンコーダ信号ENS
とを比較することにより選字用ダイヤル3の回転方向及びその回転量が得られる
。符号22はサーマルヘッド7を駆動する為の駆動回路、符号23はテープ送り
モータ18を駆動する為の駆動回路である。 【0037】 制御装置Cは、CPU27と、CPU27にデータバスなどのバス26を介し
て接続された入出力インターフェイス25、ROM28・29及びRAM30と
から構成されている。 【0038】 ROM(プログラムメモリ)28には、選字用ダイヤル3で選択されたコード
データに対応させて表示機構DMを制御する表示制御プログラム、設定キー5が 操作されたときのキャラクタのコードデータや印字の設定内容に関する種々の設
定データを入力データバッファ31に格納する制御プログラム、印字バッファ3
9のデータを順次読出してサーマルヘッド7とテープ送りモータ18とを駆動制
御する駆動制御プログラム、後述のテープ印字制御の制御プログラムなどが格納
されている。 【0039】 ROM(パターンデータメモリ)29には、選字用ダイヤル3上面に描かれた
多数のキャラクタの夫々に関するドットパターンデータが、16ドット(縦)×
15ドット(横)からなるSS文字パターンデータと48ドット(縦)×48ド
ット(横)からなるL文字パターンデータとでキャラクタのコードデータに対応
づけて夫々格納されている。尚、SS文字パターンデータは2行印字及び表示に
使用される。また、L文字パターンデータは1行印字に使用される。尚、符号2
4は、種々の書体のドットパターンデータを格納したオプション用のROMカー
ドを接続するためのコネクタである。 【0040】 RAM30の入力データバッファ31には、印字するキャラクタのコードデー
タや印字の設定内容に関する種々の設定データが格納される(図19参照、尚、
先頭アドレスをA0000とする)。第1再配列メモリ32には、1行印字のコード
データ及び2行印字の上段行のコードデータが格納され(図20参照、尚、先頭
アドレスをa0000とする)、また第2再配列メモリ33には、2行印字の下段行
のコードデータが格納される(図20参照、尚、先頭アドレスをb0000とする)
。第1ポインタ34には、第1再配列メモリ32の1つのアドレスが格納され、
また第2ポインタ35には、第2再配列メモリ33の1つのアドレスが格納され
る。 【0041】 文字数カウンタ36には、スペースを含み印字するキャラクタの文字数が格納
される。設定文字間スペースメモリ37には、定長印字時に文字間に設ける等し
いスペース値が格納される。余りスペースメモリ38には、余白スペース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及び書体に関連するフラグなど
その他のフラグのフラグデータが夫々格納される。 【0042】 次に、テープ印字装置1の制御装置Cで行なわれるテープ印字制御のルーチン
について、図6〜図18のフローチャートに基いて説明する。尚、図中、Si(
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文字に関する下段行の通常印字基線位置PS3は前記印字基線位置PS
1よりも「4」ドット分上側の位置に設けられている。また、この制御において
は、文字や記号及びスペースを含めてキャラクタという。 【0043】 このテープ印字装置1に電源が投入されるとこの制御が開始され、先ず表示機 構DMや各メモリ31〜40をクリアするとともに、ディスプレイ19に1行印
字マーク「>」が表示され且つこの1行印字マーク「>」に対応する1行印字指
令データを入力データバッファ31の先頭アドレスに格納するなどの初期設定が
実行される(S1)。次に、選字用ダイヤル3が回転操作されたときに(S2:
No、S16:Yes)、何れのフラグF1・F3・F5・F6・・・もセット
されていないときには(S17・S22・S27・S29・S31:No)、絶
対値エンコーダ21からのエンコーダ信号ENSに基いて選択されたキャラクタ
がディスプレイ19に表示され(S33)、S2に戻る。 【0044】 そして、設定キーが操作されたときに(S2・S3:Yes)、フラグF1〜
F6は何れもセットされていないときには(S34・S41・S46・S49・
S51:No)、ディスプレイ19に表示中のキャラクタが確定されてそのコー
ドデータが入力データバッファ31に格納される(S53)。例えば、ディスプ
レイ19に文字「A」、「B」、「C」を表示させる毎に設定キーを操作したと
きには、図2・図19に示すように、各文字「A」、「B」、「C」のコードデ
ータが入力データバッファ31に順次格納される。 【0045】 次に、2行印字を実行する為に2行印字キーを操作したときには(S2:Ye
s、S3:No、S4:Yes)、2行印字に関する先頭の選択内容、例えば「
上段印字行」がディスプレイ19に表示され(S5)、フラグF1がセットされ
る(S6)。次に、選字用ダイヤル3が回転操作されたとき(S2:No、S1
6:Yes)、フラグF1がセットされているので(S17:Yes)、2行印
字に関する次の選択内容、例えば「下段印字行」がディスプレイ19に表示され
(S18)、「上段印字行」を表示しているときには(S19:Yes)、フラ
グF2がセットされるが(S20)、「下段印字行」を表示しているときには(
S19:No)、フラグF2がリセットされる(S21)。 【0046】 そして、設定キーが操作されたとき(S2・S3:Yes)、両フラグF1・
F2がセットされているときには(S34・S35:Yes)、上段印字行マー ク「△」がディスプレイ19に表示されるとともに、このマーク「△」に対応す
る上段行印字指令データが入力データバッファ31に格納される(S36)。ま
た、フラグF2がリセットされているときには(S34:Yes、S35:No
)、下段行印字行マーク「▽」がディスプレイ19に表示されるとともに、この
マーク「▽」に対応する下段行印字指令データが入力データバッファ31に格納
される(S37)。例えば、ディスプレイ19に「上段印字行」が表示されてい
るときに設定キーを操作したときには、上段印字行マーク「△」が表示され且つ
図19に示すように入力データバッファ31のアドレスA0004には上段行印字指
令データが格納される。 【0047】 そして、フラグF1がリセットされ(S38)、印字基線位置変更に関する先
頭の選択内容、例えば印字基線位置を通常印字基線位置PS2・PS3に対して
変更しない「通常基線位置」がディスプレイ19に表示され(S39)、フラグ
F3がセットされる(S40)。 【0048】 次に、選字用ダイヤル3が回転操作されたとき(S2:No、S16:Yes
)、フラグF3がセットされているので(S17:No、S22:Yes)、印
字基線位置変更に関する次の選択内容、例えば印字基線位置を変更する「基線位
置変更」がディスプレイ19に表示され(S23)、「基線位置変更」を表示し
ているときには(S24:Yes)、フラグF4がセットされるが(S25)、
「通常基線位置」を表示しているときには(S24:No)、フラグF4がリセ
ットされる(S26)。 【0049】 そして、設定キーが操作されたとき(S2・S3:Yes)、フラグF3がセ
ットされているときには(S34:No、S41:Yes)、このフラグF3が
リセットされ(S42)、更にフラグF4がセットされているときには(S43
:Yes)、印字基線位置に関する先頭の選択内容、例えば印字基線位置を通常
印字基線位置PS2・PS3に対して印字用テープ9の上端側に4ドット分だけ
変更する「基線位置+4」がディスプレイ19に表示され(S44)、フラグF 5がセットされる(S45)。 【0050】 次に、選字用ダイヤル3が回転操作されたとき(S2:No、S16:Yes
)、フラグF5がセットされているので(S17・S22:No、S27:Ye
s)、印字基線位置に関する次の選択内容、例えば「基線位置+3」がディスプ
レイ19に表示される(S28)。以後、選字用ダイヤル3を連続して回転操作
したときには、選択内容「基線位置+2」→「基線位置+1」→「基線位置−1
」→「基線位置−2」→「基線位置−3」→「基線位置−4」→「基線位置+4
」・・が順次ディスプレイ19に表示される。尚、「基線位置−1」〜「基線位
置−4」は、印字基線位置を通常印字基線位置PS2・PS3に対して印字用テ
ープ9の下端側への変更である。 【0051】 そして、設定キーが操作されたとき(S2・S3:Yes)、フラグF5がセ
ットされているので(S34・S41:No、S46:Yes)、ディスプレイ
19に表示されている選択内容に対応する印字基線位置変更量データが上段行印
字指令データ或いは下段行印字指令データ内に格納され(S47)、フラグF5
がリセットされる(S48)。 【0052】 例えば、選択内容「基線位置+4」がディスプレイ19に表示されているとき
に選択キーを操作したときには、図19に示すようにアドレスA0004の上段行印
字指令データ内に「+4ドット」の変更量データが格納される。更に、入力デー
タバッファ31において、以後選択された文字「D」、「E」、「F」の各コー
ドデータ、「−4ドット」の変更量データが格納された下段行印字指令データ、
選択された文字「G」、「H」、「I」、「J」の各コードデータが順次格納さ
れる。 【0053】 次に、1行印字のために1行印字キーが操作されたときには(S2:Yes、
S3・S4:No、S7:Yes)、1行印字マーク「>」がディスプレイ19
に表示され且つ1行印字指令データが入力データバッファ31に格納され(S8 )、フラグF1がリセットされる(S9)。例えば、図19に示すように入力デ
ータバッファ31には、アドレスA000Dに1行印字指令データが格納されるとと
もに、以後選択された文字「K」、「L」、「M」の各コードデータがアドレス
A000E〜アドレスA0010に亙って格納される。尚、選字用ダイヤル3が回転操作さ
れたとき(S2:No、S16:Yes)、フラグF1・F3・F5・F6以外
のフラグがセットされているときには(S17・S22・S27・S29:No
、S31:Yes)、そのセットされているフラグに対応する選択内容が順次表
示される(S32)。 【0054】 ところで、定長印字のために定長キーが操作されたときには(S2:Yes、
S3・S4・S7:No、S10:Yes)、印字範囲の長さを10cmに設定す
る設定画面「印字長さ 10」が表示され(S11)、フラグF6がセットされ
る(S12)。次に、選字用ダイヤル3が回転操作されたとき(S2:No、S
16:Yes)、フラグF6がセットされているので(S17・S22・S27
:No、S29:Yes)、選字用ダイヤル3の時計回転方向への回転に伴って
、印字長さの設定画面「印字長さ 11」が表示される(S30)。以後、選字
用ダイヤル3を連続して回転操作したときには、設定内容「印字長さ 12」→
「印字長さ13」→「印字長さ 14」→「印字長さ 15」→・・・・・→「
印字長さ 54」まで順次ディスプレイ19に表示される。尚、選字用ダイヤル
3を反時計回転方向へ回転させたときには、上記とは逆の表示順序で「印字長さ
5」まで設定内容が表示される。ここで、「印字長さ 54」が表示されてい
る状態で選字用ダイヤル3を時計回転方向へ回転させたときには、「印字長さ5
」が表示される。また、「印字長さ 5」が表示されている状態で選字用ダイヤ
ル3を反時計回転方向へ回転させたときには、「印字長さ 54」が表示される
。 【0055】 そして、設定キーが操作されたとき(S2・S3:Yes)、フラグF6がセ
ットされているので(S34・S41・S46:No、S49:Yes)、設定
画面に表示されている印字長さを10倍した値がデータとして印字長さメモリ4 0に格納される(S50)。また、設定キーの操作時に(S2・S3:Yes)
、その他のフラグがセットされているときには(S34・S41・S46・S4
9:No、S51:Yes)、そのフラグに対応する選択内容が設定される(S
52)。 【0056】 次に、印字キーが操作されたときには(S2:Yes、S3・S4・S7・S
10:No、S13:Yes)、印字処理制御(図12・図13参照)が実行さ
れる(S14)。この制御が開始されると、先ず印字に関する種々のフラグやメ
モリなどのイニシャライズが実行され(S60)、再配列処理制御(図14参照
)が実行される(S61)。尚、図19〜図23を参照しながらこの制御を説明
する。この制御が開始されると、図20に示すように、先ず入力データバッファ
31に格納されている全てのコードデータが第1再配列メモリ32に格納される
(S90)。但し、このこれら複数のコードデータの最後に終了データとして「
FF」が追加格納される。 【0057】 次に、第1ポインタ34に第1再配列メモリ32の先頭アドレスa0000(以下
、この内容をP1とし、第1ポインタP1という)がセットされ(S91)、こ
の第1ポインタP1で指示する第1再配列メモリ32のデータが読出され(S9
2)、読出されたデータが1行印字指令データのときには(S93・S105・
S103:No)、第1ポインタP1に次のアドレスがセットされ(S104)
、S92に戻る。そして、読出したデータがキャラクタのコードデータのときに
は上記と同様の制御が繰り返される。 【0058】 次に、第1ポインタP1が「アドレスa0004」のときには上段行印字指令デー
タなので(S93:Yes)、第1ポインタP1により第1再配列メモリ32が
検索され(S94)、上段行印字指令データの次の指令データとして下段行印字
指令データが格納されているとき(S95:Yes)、図21に示すように、第
1ポインタP1に対応する第2再配列メモリ33の「アドレスb0004」が第2ポ
インタ35にセット(以下、同様に第2ポインタP2という)され、下段行印字 指令データ及びこれに続く下段印字行LLに印字するキャラクタのコードデータ
が第2ポインタP2以降の各アドレスに格納される(S96)。 【0059】 次に、上段印字行ULに印字するキャラクタのコードデータ数UDNが下段印
字行LLのコードデータ数LDNより小さいときには(S98・S100:No
)、図22に示すように第1再配列メモリ32の「アドレスa0008」にスペース
コード「SP」が格納される(S101)。しかし、コードデータ数UDNがコー
ドデータ数LDNより大きいときには(S98:Yes)、第2再配列メモリ3
3の所定のアドレスにスペースコード「SP」が格納される(S99)。尚、両コ
ードデータ数UDN・LDNが等しいときには(S98:No、S100:Ye
s)、S102へ移行する。次に、図23に示すように第1再配列メモリ32に
おいて、第2再配列メモリ33に格納したデータを削除し且つ削除したデータ以
降の各データ「>、K、L、M、FF」を夫々移動させるなどの整理処理が実行さ
れ(S102)、第1再配列メモリ32内に検索するデータが存在するときには
(S103:No)、第1ポインタP1に次に検索するアドレスとして「アドレ
スb0009」がセットされる(S104)。 【0060】 そして、以降の各データ「>、K、L、M」については、S90〜S92、S
93・S105:No、S103〜S104が繰り返して実行され、終了データ
「FF」により(S103:Yes)、この制御を終了してリターンする。 【0061】 ところで、下段行印字指令データが存在しないときには(S95:No)、第
2再配列メモリ33内において、上段印字行ULのコードデータ数UDNに相当
するスペースコード「SP」が格納される(S97)。また、第1ポインタP1に
基いて読出したデータが下段行印字指令データのときには(S93:No、S1
05:Yes)、第1ポインタP1に対応する第2再配列メモリ33のアドレス
が第2ポインタP2にセットされ、下段行印字指令データ及びこれに続く下段印
字行LLに印字するキャラクタのコードデータが第2ポインタP2以降の各アド
レスに格納され(S106)、第1再配列メモリ32において、これら下段行印 字指令データ及び下段印字行LLに印字するキャラクタのコードデータが全てス
ペースコードに変換される(S107)。 【0062】 次に、印字処理制御にリターンし、フラグF6がセットされているときつまり
定長印字のときには(S62:Yes)、文字間スペース演算処理制御(図15
・図16参照)が実行される(S63)。この制御が開始されると、先ず文字数
カウンタ36の文字数カウント値MNと設定文字間スペースメモリ37の設定ス
ペース値SAと総文字幅値MWとが夫々クリアされ(S110)、第1ポインタ
P1に第1再配列メモリ32の先頭アドレスがセットされ(S111)、第1ポ
インタP1で指示するデータが読出され(S112)、読出されたデータが終了
データでなく且つコードデータでないときには(S113・S114:No)、
読出した印字指令データに基いてLサイズ或いはSSサイズの文字幅PW(ドッ
ト列数)が設定され(S115)、第1ポインタP1がインクリメントされる(
S118)。一方、読出されたデータがコードデータのときには(S113:N
o、S114:Yes)、文字数カウント値MNが1つインクリメントされ(S
116)、総文字幅値MW(ドット列数)が文字幅PW分だけ増加され(S11
7)、S118を経てS112に戻る。 【0063】 そして、読出されたデータが終了データのときには(S113:Yes)、印
字長さメモリ40に格納された設定印字長さSLから、印字開始部分及び印字終
了部分に印字不可能な印字長さ34mm(17mm×2)を差し引いた実際印字長さ
JLに設定され(S119)、10mmに約71ドット列分印字可能なので、この
実際印字長さJLに印字可能なドット列数NDがND=71×JLで求められる
(S120)。次に、この印字可能なドット列数NDが総文字幅値MW以上のと
きつまり入力された全てのキャラクタがこの実際印字長さJL内に印字可能なと
きには(121:Yes)、印字可能なドット列数NDから総文字幅値MWを差
し引いて残りの余白スペースYS(ドット列数)が演算される(S122)。更
に、この余白スペースYSが文字間の数(MN−1)以上のときには(S123
:Yes)、これら文字間の各々に1ドット列ずつのスペースを設けることが可 能なので、新規の余白スペースYSが演算され(S124)、設定スペース値S
Aが1ドット列分加算され(S125)、S123に戻る。 【0064】 そして、S123〜S125が実行されて、新規の余白スペースYSが文字間
の数より小さくなったときに(S123:No)、この余白スペースYSが「0
」でないときには(S126:No)、余白スペースYSが余りスペースSdと
して有りスペースメモリ38に格納され(S127)、フラグAFがセットされ
(S129)、この制御を終了してリターンする。しかし、余白スペースYSが
「0」のときには(S126:Yes)、フラグAFがリセットされる(S12
8)。また、入力された全てのキャラクタがこの実際印字長さJL内に印字不可
能なときには(121:No)、エラーメッセージ「定長印字不能」をディスプ
レイ19に表示するなどのエラー処理が実行され(S130)、フラグEFがセ
ットされる(S131)。そして、フラグEFがリセットされているときには(
S64:No)、S66へ移行するが、フラグEFがセットされているときには
(S64:Yes)、両フラグF6・EFが夫々リセットされ(S65)、リタ
ーンする。 【0065】 一方、文字間スペース演算処理後及び定長印字でないときには(S62:No
)、第1ポインタP1に第1再配列メモリ32の先頭アドレスがセットされ(S
66)、この第1ポインタP1に基いて第1再配列メモリ32のデータが読出さ
れ(S67)、この読出したデータが1行印字指令データのときには(S68・
S69:No、S70:Yes)、フラグF1がリセットされ(S71)、フラ
グF1に基いて1行印字に用いるL文字サイズの文字幅値PW(48ドット)が
RAM30に格納され(S73)、第1ボインタP1がインクリメントされ(S
74)、S67に戻る。次に、読出したデータが文字「A」のコードデータのと
きに(S68:No、S69:Yes)、定長印字でないときには(S75:N
o)、S77へ移行するが、定長印字のときには(S75:Yes)、文字間ス
ペース値設定処理制御(図17参照)を経てS77へ移行する。 【0066】 この文字間スペース値設定処理制御について説明すると、フラグAFがセット
されているときには(S140:Yes)、設定スペース値SAが1ドット列分
インクリメントされ(S141)、余りスペース値Sdが1ドット列分デクリメ
ントされ(S142)、余りスペース値Sdが「0」よりも大きいときは(S1
43:No)、この制御を終了してリターンする。しかし、余りスペース値Sd
が「0」になったときには(S143:Yes)、フラグAFがリセットされる
(S144)。そして、フラグF1がリセットされているので(S78:No)
、コードデータに対応するドットパターンデータがパターンデータメモリ29か
ら読出され、図24に示すように印字バッファ39に格納され(S79)、文字
「A」の印字が実行され(S81)、S74へ移行する。定長印字のときには、
この印字文字においては、最終のキャラクタ以外の各キャラクタを印字後に、S
141で求めた設定スペース値Sが設けられる。ところで、定長印字でないと
きは(S75:No)、L文字サイズに対応する文字間スペース値、例えば「3
ドット」が設定され(S77)、上記と同様にS78以降が実行される。 【0067】 次に、読出したデータが上段行印字指令データのときには(S68・S69・
S70:No)、フラグF1がセットされ(S72)、フラグF1に基いて2行
印字に用いるSS文字サイズの文字幅値PW(16ドット)がRAM30に格納
され(S73)、S74を経てS67に戻る。そして、次に文字「D」のコード
データが読出されたときには(S68:No、S69:Yes)、S75〜S7
7が実行される。ここで、定長印字でないときには(S75:No)、2行印字
に用いるSS文字サイズに対応する文字間スペース値、例えば「1ドット」が設
定される(S77)。 【0068】 次に、2行印字でありフラグF1がセットされているので(S78:Yes)
、データ合成処理制御(図18参照)が実行される(S80)。この制御が開始
されると、先ず第1ポインタP1に対応する第2再配列メモリ33のアドレス「
b0005」が第2ポインタP2にセットされ(S150)、第1ポインタP1で指
示する文字「D」のコードデータが読出され(S151)、図25に示すように このコードデータのドットパターンデータが印字バッファ39内の前記中央線C
Lに対応する位置上に格納され(S152)、上段行印字指令データに印字基線
位置変更量dが格納されているときには(S153:Yes)、その基線位置変
更量d(+4ドット)が読出され(S154)、図26に示すようにこのドット
パターンデータを上段行の通常印字基線位置PS2にシフトさせる為の「4ドッ
ト」にこの基線位置変更量dを加算したドット数分だけドット列方向にシフトさ
れる(S156)。 【0069】 更に、第2ポインタP2で指示する文字「G」のコードデータが読出され(S
157)、図27に示すようにこのコードデータのドットパターンデータが印字
バッファ39内の下端位置上に合成して格納され(S158)、同様に下段行印
字指令データに印字基線位置変更量dが格納されているときには(S159:Y
es)、その基線位置変更量d(−4ドット)が読出され(S160)、ドット
パターンデータを下段行の通常印字基線位置PS3にシフトさせる為の「4ドッ
ト」にこの基線位置変更量dを加算したドット数分だけドット列方向にシフトさ
れ(S162)、この制御を終了してリターンする。尚、S153でNoと判定
されたとき及びS159でNoと判定されたときには、印字基線位置変更量dと
して「0」が夫々格納される。 【0070】 その後、図27に示すように印字バッファ39に合成して格納された2文字分
のドットパターンデータに基いて文字印字処理が実行される(S81)。以下、
同様にして、図23に示すように第1及び第2再配列メモリ32・33に格納さ
れたデータが、S60〜S81の印字処理制御により印字される。 【0071】 従って、図28に示すように定長印字でないときには、印字用テープ9には文
字列「ABC、KLM」が印字領域PEに対応して1行印字されるとともに、文
字列「DEF」が上段印字行ULに印字され且つ文字列「GHIJ」が下段印字
行LLに印字される。しかも、これら文字列「DEF」と文字列「GHIJ」と
は、指示した印字基線位置変更量dに基いて夫々印字位置変更して印字される。 また、図29に示すように定長印字のときには、これら印字文字の各文字印字間
には、演算された設定スペース値SAが設けられ、入力した文字列を設定印字長
さSLのうちの実際印字長さJLの印字範囲の長さに自動的に拡げて印字される
。 【0072】 【第2実施例】 ここで、このテープ印字装置1により英文専用のタイプライタと同様に、入力
したキャラクタをパイカ印字ピッチやエリート印字ピッチで印字できしかも定長
印字させることも可能である。そのために、キーボード部4にパイカ印字ピッチ
やエリート印字ピッチなどの印字ピッチを指定する印字ピッチキーを設け、パタ
ーンデータメモリ29内に、L文字サイズとSS文字サイズとに対応させて印字
ピッチをその種類分格納した印字ピッチテーブルを夫々格納し、更に前記文字間
スペース演算処理制御のルーチンを、図30に示すようにS114とS116の
間にS170を設けて変更してもよい。 【0073】 即ち、読出されたデータがコードデータでないときには(S113・S114
:No)、読出した印字指令データと印字ピッチキーからの信号とに基いてピッ
チテーブルが選択され(S115)、次に読出したコードデータについて(S1
13:No、S114:Yes)、選択されたピッチテーブルから読出した印字
ピッチデータで文字幅値PWが設定される(S170)。そして、以下同様に制
御される。 【0074】 更に、プロポーショナルスペース機能を設けることも可能である。こきときに
は、前記パターンデータメモリ29内に、L文字サイズとSS文字サイズとに対
応させて、各キャラクタの文字幅データを格納したピッチテーブルを印字ピッチ
の種類分設け、S115において読出した印字指令データに対応するピッチテー
ブルを選択する一方、S170においてそのピッチテーブルから読出したコード
データに対応する文字幅データを文字幅値PWに設定すればよい。 【0075】 尚、パターンデータメモリ29に3〜4種類の文字サイズのドットパターンデ
ータを格納し、1行印字及び2行印字において所望の文字サイズを選択可能に構
成しても良い。 【0076】 尚、印字用バッファを追加し、ドット列データが印字の為に読出されている印
字バッファ以外の印字バッファに、次の印字の為のドット列データを格納するよ
うにしてもよい。 【0077】 以上説明したように、印字開始時に、入力データバッファ31に格納されたキ
ャラクタのコードデータが第1及び第2再配列メモリ32・33に再配列される
(S90〜S104)。定長印字がセットされているとき、第1再配列メモリ3
2に格納されたキャラクタの総文字幅値が演算され、設定された印字長さと総文
字幅値が比較される。設定された印字長さ内に印字不可能なときには、エラーメ
ッセージがディスプレイ19に表示される。印字可能なときには、第1再配列メ
モリ32のコードデータの数と設定された印字長さのデータに基いて、キャラク
タ間に設ける等しい文字間スペースが演算され(S110〜S129)、キャラ
クタ印字の際にこの文字間スペースが各キャラクタ間に自動的に設けられるので
、入力された文字列を所望の印字長さに拡げて印字することができる。 【0078】 また定長印字がセットされていないときには、文字サイズに対応するスペース
値を設定して(S77)印字する(S81)。テープの長さは、このスペース値
を含む文字サイズの総和に基づいて決定される。 【0079】 尚、印字用テープ9を手動で引き出しながら印字用テープ9上にキャラクタ印
字をするように構成したものやワイヤードット方式によるテープ印字装置など、
種々のテープ印字装置に本発明を適用し得ることは勿論である。 【0080】 【発明の効果】 以上説明したことから明かなように、本発明の請求項1または請求項4に係る テープ記録装置は、指示手段により記録長さを設定しない旨が指示されたときに
は、入力されたキャラクタ列の長さに応じた長さのテープにキャラクタ列が記録
され、指示手段により記録長さを設定する旨が指示されたときには、記録長さと
キャラクタ列の長さとを比較して、記録長さの内に記録可能かどうか判断し、記
録可能であれば、設定された記録長さのテープにキャラクタ列が記録され、記録
不可能であればその旨が報知されるので、入力したキャラクタ列の長さに応じた
長さのテープを作成することと、ファイルの「表題」などのために所望長さのテ
ープを作成することとを必要に応じて選択的に指示できることができ、且つ所望
の長さのテープを作成する際に、失敗がなく、実用上極めて優れるものである。 また、請求項2に係るテープ記録装置は、請求項1のものと同様の効果を奏す
るが、入力されたキャラクタ列が設定した記録長さ内に記録不可能なときには、
エラー報知が行われるとともに、記録動作の開始が中止されるので、所望の長さ
のテープを作成する際の失敗が確実になくなる。 【0081】 また、請求項3に係るテープ記録装置は、請求項1または請求項2のものと同
様の効果を奏するが、所望長さのテープに入力されたキャラクタ列が記録可能ど
うか正確に判断できる。 【0082】 また、請求項5に係るテープ記録装置は、請求項1または請求項4のものと同
様の効果を奏するが、入力した記録長さや記録不可能な旨を表示することで、確
実に使用者に報知することができる。 【0083】 また、請求項6及び請求項7に係るテープ記録装置は、請求項1または請求項
4のものと同様の効果を奏するが、入力されたキャラクタ列の長さを正確に求め
ることができる。
Description: BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to a tape recording apparatus that performs recording on a tape-shaped recording medium, and particularly relates to a tape recording apparatus.
Multiple recorded characters are recorded at the set recording length.
You. 2. Description of the Related Art Heretofore, a small-sized tape recording apparatus which records a desired character string on a printing tape having a width of about 10 mm, which is a kind of a tape recording apparatus for recording on a tape-shaped recording medium, has been conventionally used. Tape stamp
Various proposals have been made for character devices. Accordingly, the applicant of the present application has disclosed in
In Japanese Patent Publication No. 70, among printable full-width characters and quadruple-width characters,
Align the printing position of the character to be printed with the center of the printing tape in the width direction and print.
Center print mode to print characters and bottom aligned print mode to print aligned to the lower side in the width direction
We have proposed a printing device that can change the printing position, which is configured to be selectable. By the way, in general, a character printed by a tape printer has a plurality of sizes.
The length of the printing tape can be freely selected from
It is configured to be determined according to the size. [0004] Generally, using this tape printing apparatus, for example, the "title" and "content" of a file are used.
Is printed on a printing tape, and the printed printing tape is attached to a file in a predetermined manner.
It is often attached to a location. For this reason, it conforms to the length of the pasting range at the pasting position
Sometimes you want to get a tape of a certain length. However, as described above, the tape length depends on the selected character size.
It is difficult to know the completed tape length in advance.
Problem. In a word processor or the like, characters exceeding a specified paper width are marked on the next line.
However, with this type of tape printer, a character string is
The method of printing along the longitudinal direction is used, and the
For this purpose, it is not possible to control the printing of sentences by a word processor. The present invention has been made to solve the above-described problem, and has been made in consideration of an input key.
A table that allows you to determine in advance whether a character string can be recorded on a
And a recording device for recording. [0008] To achieve the above object, a tape recording apparatus according to claim 1 of the present invention is a tape recording apparatus.
Recording a character string along the longitudinal direction of a tape consisting of a tape-shaped recording medium
A head; input means for inputting a character to be recorded on the tape;
The recording head is connected to the tape and its tape based on a character input by a step.
Recording drive means for driving while relatively moving in the longitudinal direction of the tape;
Instructing means for instructing whether or not to set a recording length in the direction;
Recording length setting means for inputting and setting a recording length in the direction;
Calculating means for calculating the length of the character string;
Comparing means for comparing the length, and an instruction for setting the recording length by the instruction means.
When the character is compared, the character is added to the set recording length as a result of the comparison by the comparing means.
Determining means for determining whether or not the data sequence can be recorded; and the recording length by the instruction means.
When the user instructs not to set the key, the recording drive unit is controlled to control the input key.
A first recording system for recording the character on a tape having a length corresponding to the length of the character row
Control means, and an instruction to set the recording length by the instruction means, and
When it is determined that the recording can be performed by the determining unit, the recording driving unit is controlled to
The character is recorded at the recording length input and set by the recording length setting means.
Second recording control means, and an instruction for setting the recording length by the instruction means.
And when the determination means determines that recording is not possible, a notification to that effect.
And knowledge means. A tape recording apparatus according to a second aspect has a configuration similar to that of the first aspect.
Before the start of the recording operation of the recording head by the recording driving means,
When it is determined that the character string cannot be recorded in the set recording length,
The error notification is performed by the notifying unit, and the recording by the recording driving unit is performed.
A third recording control unit for stopping the operation is provided. A tape recording apparatus according to a third aspect has a configuration similar to that of the first or second aspect, but the recording length setting means inputs a desired tape length.
The comparison means determines a recording start portion and a recording end portion from the desired tape length.
Compare the non-recordable length of the part minus the length of the character string
. A tape recording device according to a fourth aspect is a tape recording device comprising a tape-shaped recording medium.
Input means for inputting the code data of the character to be recorded in the
An input data buffer for storing input code data and a number of characters
Pattern data storage means for storing pattern data of the tape;
Along the direction of the tape so as to record the input character string.
A recording head that is relatively movable in a direction, and a code stored in the input data buffer.
Read the pattern data corresponding to the read data from the pattern data storage means.
Recording drive means for driving the recording head based on the pattern data;
Instruction means for instructing whether or not to set the recording length in the longitudinal direction of the recording tape;
Recording length setting means for inputting and setting the recording length in the longitudinal direction of the recording tape;
Sum the width of the character corresponding to the code data stored in the data buffer,
Calculating means for determining the length of the character string; the set recording length and the calculating means;
Comparing means for comparing the length of the character string obtained by the step, and
When an instruction to set the recording length is given, the result of comparison by the comparing means
Determining means for determining whether or not the character string can be recorded at a determined recording length,
When an instruction not to set the recording length is issued by the instruction means, the recording drive
By controlling the steps, the tape having a length corresponding to the length of the input character string
First recording control means for recording a character, and the recording length is set by the instruction means.
When there is an instruction to set, and it is determined that recording is possible by the determination means,
The recording length is controlled by controlling the recording driving means, and the recording length input and set by the recording length setting means.
The second recording control means for recording the character and the instruction means provide the recording.
There is an instruction to set the recording length, and it is determined that recording is not possible
And a notifying means for notifying the user when the request is received. A tape recording apparatus according to a fifth aspect is the same as that of the first or fourth aspect.
Although the notifying means is provided from a display means for displaying that recording is impossible.
The display means displays the recording length input by the recording length setting means.
Show. [0013] A tape recording device according to claim 6 is the same as that of claim 1 or claim 4.
The operation means is provided when there are a plurality of lines of characters to be recorded.
, The long line of the plurality of lines is determined, and the length of the character string is obtained. According to a seventh aspect of the present invention, there is provided a tape recording apparatus similar to the first or fourth aspect.
However, there are multiple types of recordable characters,
The means sums the widths of the characters corresponding to each size. In the tape recording apparatus according to the first aspect of the present invention having the above configuration, recording is performed.
The recording length to be recorded on the tape is set by the length setting means. Also input from input means
The length of the character string obtained is obtained by the calculating means. When the instruction means instructs not to set the recording length, the first recording is performed.
The control means controls the recording drive means to determine the length according to the length of the input character string.
Record the character on the tape. On the other hand, when the instruction means instructs to set the recording length, the comparing means issues an instruction.
The comparison result between the set recording length and the character string length obtained by the calculation means
If the determining means determines that recording is possible, the second recording control means controls the recording driving means.
And records the set recording length character. Also recorded by instruction means
When the length setting is instructed and the judgment means judges that recording is not possible, a notification is issued.
Means informs to that effect. In the tape recording apparatus according to the second aspect, the same operation as that of the first aspect is performed.
The third recording control means informs when the judgment means judges that recording is not possible.
Means to notify the error and start the recording operation by the recording drive means.
Stop. According to a third aspect of the present invention, there is provided a tape recording apparatus according to the first or second aspect.
This has the same effect as the recording length setting, but the recording length input by the recording length setting means is
The comparison means records the recording start portion based on the desired tape length.
The length obtained by subtracting the unrecordable length of the recording end part from the length of the character string is compared.
Compare. Further, in the tape recording device according to the fourth aspect, the input is made by the input means.
Character code data is stored in the input data buffer. Input data buffer
The pattern data corresponding to the code data stored in the
Is read from the means and the recording head is driven based on the pattern data.
In both cases, the recording head is moved relative to the tape in the longitudinal direction, and the data is recorded on the tape.
Recorded. [0021] The recording length to be recorded on the tape is set by the recording length setting means.
The length of the input character string is obtained by the calculation means. When the instruction means instructs not to set the recording length, the first recording
The control means controls the recording drive means to determine the length according to the length of the input character string.
Record the character on the tape. On the other hand, when the instruction means instructs to set the recording length, the comparison
Of the character string length calculated by the calculation means
If the determining means determines that recording is possible, the second recording control means controls the recording driving means.
Then, the set recording length character is recorded. Also, when the instruction means instructs to set the recording length, if the judging means judges that recording is not possible, the notification
Dan notifies that effect. Further, in the tape recording device according to the fifth aspect, the tape recording device according to the first or fourth aspect is provided.
Performs the same operation as the above, but displays the recording length and an error when recording is not possible.
The display is made by the display means. Further, in the tape recording device according to claim 6, the tape recording device according to claim 1 or 4
Has the same effect as above, but when there are multiple lines of characters to be printed,
And the length of the character string is determined by the calculating means.
You. Further, in the tape recording device according to claim 6, the tape recording device according to claim 1 or 4 is also provided.
This has the same effect as the above, but there are multiple types of recordable character sizes.
The width of the character corresponding to the size is summed up by the calculating means. Embodiments of the present invention will be described below with reference to the drawings. In this embodiment, a large number of characters such as kanji, hiragana, katakana, and alphabetic characters are used.
Originally developed on a tape printing device that prints characters on printing tape (printing media tape).
It is the case where the light is applied. As shown in FIG. 2, printing is performed on the front part of the main body frame 2 of the tape printer 1.
For selecting characters and symbols (hereinafter referred to as characters)
The keyboard 3 is disposed in a rotatable manner, and a character selection die is provided.
A liquid crystal display 19 capable of displaying six characters is provided behind the dial 3.
A key selected by rotating the character selection dial 3 is provided at the center of the character selection dial 3.
A setting key 5 is provided for fixing a character or setting contents relating to printing. Further, a printing machine is provided in the main body frame 2 behind the character selection dial 3.
There is a built-in PM. The character selection dial 3 is provided with 50 stop positions for one rotation.
The upper surface of the character dial 3 is provided with a character corresponding to each of these 50 stop positions.
Kuta images are depicted in two columns. Reference numeral 6 denotes a character selection position mark. The keyboard unit 4 includes “Hiragana”, “Katakana”, and “Alphabet”.
Character type switching key for alternately switching input, conversion key and non-conversion key, 2 lines
Two-line print key to instruct printing, one-line print key to instruct one-line printing,
To set print by equal layout according to the length of the print area where
Fixed length key, print key to execute printing, font type selection to select character typeface
Key, tape feed key for feeding the printing tape 9, and power ON / OF
A power switch and the like for turning on the power are provided. Next, the printing mechanism PM will be briefly described with reference to FIG.
The storage cassette CS has a tape wound with a printing tape 9 made of a transparent film.
Group spool 8, a ribbon supply spool 13 around which the ink ribbon 12 is wound,
The winding spool 14 for winding the ink ribbon 12 has the same width as the printing tape 9.
A supply spool 16 wound with a double-sided tape 15 having a release paper outside,
The joining roller for joining the printing tape 9 and the double-sided tape 15 is rotatable.
It is provided in. At the position where the printing tape 9 and the ink ribbon 12 overlap, the thermal head 7
The printing tape 9 and the ink ribbon 12 are pressed against the thermal head 7.
Feed to press the platen roller 17 and the tapes 9 and 15 to be pressed against the joining roller 10
The roller 45 is rotatably supported by a support 46. This thermal head 7
As shown in FIG. 5, a heating element group 11 including 48 heating elements is vertically arranged.
It is lined up. Therefore, the joining roller 10 and the take-up spool 14 are connected to the tape feed motor (see FIG. 4).
(Electricity) is supplied to the heating element group 11 while being driven in synchronization with each other in a predetermined rotation direction at 18).
5, the character is printed on the printing tape 9 by a plurality of dot rows as shown in FIG.
Is printed, and the printing tape 9 is fed with the double-sided tape 15 joined.
The tape is fed in the direction A and sent out of the main body frame 2. The printing mechanism PM
See JP-A-2-106555 for details. Next, the control system of the tape printer 1 is configured as shown in the block diagram of FIG.
I have. The display mechanism DM includes a liquid crystal display 19 and display data on the display 19.
Display controller having a display RAM for outputting
(Troller) 20. Connected to the character selection dial 3
The absolute value encoder 21 has five positions corresponding to the 50 stop positions of the character selection dial 3.
This is for outputting zero kinds of absolute value encoder signals ENS.
The character selection position map is based on the value encoder signal ENS and the signal from the character type switch key.
In addition to obtaining code data of the character selected corresponding to the mark 6,
The absolute encoder signal ENS before the selection operation and the current absolute encoder signal ENS
And the rotation direction and the amount of rotation of the character selection dial 3 can be obtained by comparing
. Reference numeral 22 denotes a drive circuit for driving the thermal head 7, and reference numeral 23 denotes a tape feed.
This is a drive circuit for driving the motor 18. The control device C communicates with the CPU 27 via a bus 26 such as a data bus.
I / O interface 25, ROMs 28 and 29, and RAM 30
It is composed of The code selected by the character selection dial 3 is stored in a ROM (program memory) 28.
A display control program for controlling the display mechanism DM in accordance with the data, various settings relating to the character code data and the print setting contents when the setting key 5 is operated.
Control program for storing constant data in input data buffer 31, print buffer 3
9 are sequentially read to drive the thermal head 7 and the tape feed motor 18
Drive control program to be controlled, tape print control control program described later, etc. are stored.
Have been. The ROM (pattern data memory) 29 is drawn on the upper surface of the character selection dial 3.
The dot pattern data for each of a large number of characters is 16 dots (vertical) ×
SS character pattern data consisting of 15 dots (horizontal) and 48 dots (vertical) x 48 dots
And character code data with L character pattern data
In addition, each is stored. The SS character pattern data can be printed and displayed in two lines.
used. The L character pattern data is used for one-line printing. Note that reference numeral 2
4 is an optional ROM card storing dot pattern data of various fonts.
This is a connector for connecting a cable. The input data buffer 31 of the RAM 30 stores code data of a character to be printed.
Various setting data relating to data and printing settings are stored (see FIG. 19,
The start address is A0000). The first rearrangement memory 32 has a one-line print code
The data and the code data in the upper line of the two-line printing are stored (see FIG.
The address is set to a0000).
(See FIG. 20, the starting address is b0000)
. One address of the first rearrangement memory 32 is stored in the first pointer 34,
In the second pointer 35, one address of the second rearrangement memory 33 is stored.
You. The character number counter 36 stores the number of characters to be printed including spaces.
Is done. In the set character space memory 37, for example, a space is provided between characters during fixed length printing.
Space value is stored. In the extra space memory 38, a margin space YS is stored.
Stores the number of remaining dot columns divided by the number between characters. In the print buffer 39,
As shown in FIG. 24, 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.
Dot pattern data for characters to be printed
Is read from the pattern data memory 29 and stored. In the print length memory 40
The data of the set print length is stored. Two-line printing on flag memory 41
2 line print flag F1 which is set (data is "1") in 2 line print
Upper line flag F2 set when upper line printing (first line printing)
Display flag F3 set during display of selection contents related to position change, print base line position
Baseline position change flag F4 set when the position is changed,
Display flag F5, which is set during the display of the
Fixed-length print flag F6, which is generated when there is a surplus
Remaining flag AF, error flag EF, and flags related to typeface, etc.
The flag data of the other flags are respectively stored. Next, a tape print control routine performed by the controller C of the tape printer 1
Will be described with reference to the flowcharts of FIGS. In the figure, Si (
i = 1, 2, 3,...) are each step. Here, in this control, FIG.
As shown in the figure, when printing one line, the L character pattern
On the printing tape 9 corresponding to the heating element group 11 of the thermal head 7 based on the data
The print is performed on the print tape 9 over the entire print area PE.
Is based on the SS character pattern data, and the upper line is printed in the upper line in this print area PE.
The printing is performed on the printing line UL, and the printing of the lower row is performed on the lower printing row LL of the printing area PE.
It is. Further, the normal printing base line position PS1 of the L character is located at the lowermost position of the heating element group 11.
The printing baseline position PS2 in the upper row for the SS character is the width of the heating element group 11.
At a position "4" dots higher than the center line CL corresponding to the center position in the direction.
The normal printing baseline position PS3 in the lower row for the SS character is the printing baseline position PS.
It is provided at a position “4” dots higher than 1. In this control,
Is a character including characters, symbols and spaces. When the tape printer 1 is powered on, this control is started. First, the display mechanism DM and the memories 31 to 40 are cleared, and one line is marked on the display 19.
Character mark ">" is displayed and a one-line print finger corresponding to the one-line print mark ">" is displayed.
Command data at the start address of the input data buffer 31.
It is executed (S1). Next, when the character selection dial 3 is rotated (S2:
No, S16: Yes), set any of the flags F1, F3, F5, F6,.
If not performed (S17 / S22 / S27 / S29 / S31: No),
Character selected based on encoder signal ENS from log value encoder 21
Is displayed on the display 19 (S33), and the process returns to S2. When the setting key is operated (S2 · S3: Yes), the flag F1
When none of F6 is set (S34, S41, S46, S49,
S51: No), the character being displayed on the display 19 is determined, and
The read data is stored in the input data buffer 31 (S53). For example, the display
It is assumed that the setting key is operated each time the characters "A", "B", and "C" are displayed on the ray 19.
As shown in FIG. 2 and FIG. 19, the code decoding of each of the characters "A", "B"
Are sequentially stored in the input data buffer 31. Next, when a two-line print key is operated to execute two-line printing (S2: Ye
s, S3: No, S4: Yes), the first selection content regarding two-line printing, for example, “
The upper print line "is displayed on the display 19 (S5), and 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 (S17: Yes), the second line is marked
The next selection related to the character, for example, “lower print line” is displayed on the display 19.
(S18) When the "upper printing line" is displayed (S19: Yes),
F2 is set (S20), but when "lower print line" is displayed (
(S19: No), the flag F2 is reset (S21). When the setting key is operated (S2 · S3: Yes), both flags F1 ·
When F2 is set (S34 / S35: Yes), the upper print line mark “△” is displayed on the display 19, and the mark corresponding to the mark “△” is displayed.
The upper row print command data is stored in the input data buffer 31 (S36). Ma
When the flag F2 is reset (S34: Yes, S35: No
), The lower line 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.
Is performed (S37). For example, “upper print line” is displayed on the display 19.
When the setting key is operated at the same time, the upper line mark “△” is displayed and
As shown in FIG. 19, the address A0004 of the input data buffer 31
Command data is stored. Then, the flag F 1 is reset (S 38), and the destination related to the change of the print base line position is set.
The head selection contents, for example, the print base line position is set to the normal print base line position PS2 / PS3.
The "normal base line position" which is not changed is displayed on the display 19 (S39), and the flag is displayed.
F3 is set (S40). Next, when the character selection dial 3 is rotated (S2: No, S16: Yes)
), Since the flag F3 is set (S17: No, S22: Yes),
The following selections for changing the character base line position, for example, "Base line position
"Change position" is displayed on the display 19 (S23), and "Change base line position" is displayed.
(S24: Yes), the flag F4 is set (S25).
When the “normal base line position” is displayed (S24: No), the flag F4 is reset.
Is set (S26). When the setting key is operated (S2 · S3: Yes), the flag F3 is set.
Is set (S34: No, S41: Yes), this flag F3 is
It is reset (S42), and when the flag F4 is set (S43)
: Yes), the first selection of the print base line position, for example, the print base line position
Only 4 dots on the upper end side of the printing tape 9 with respect to the printing base line positions PS2 and PS3
The "base line position +4" to be changed is displayed on the display 19 (S44), and the flag F5 is set (S45). Next, when the character selection dial 3 is rotated (S2: No, S16: Yes)
), Since the flag F5 is set (S17 / S22: No, S27: Ye)
s), the next selection of the print base line position, for example, “base line position + 3” is displayed.
It is displayed on the ray 19 (S28). Afterwards, the character selection dial 3 is continuously rotated.
When the selection is made, the selection contents “baseline position + 2” → “baseline position + 1” → “baseline position−1”
"→ Baseline position-2" → "Baseline position-3" → "Baseline position-4" → "Baseline position + 4"
Are sequentially displayed on the display 19. In addition, "baseline position-1" to "baseline position
-4 "indicates that the printing baseline position is to be compared with the normal printing baseline position PS2 / PS3.
This is a change to the lower end of the loop 9. When the setting key is operated (S2 / S3: Yes), the flag F5 is set.
Display (S34 / S41: No, S46: Yes)
The print base line position change amount data corresponding to the selected content displayed in step 19 is marked in the upper row.
Is stored in the character command data or the lower row print command data (S47), and the flag F5
Is reset (S48). For example, when the selection content “baseline position + 4” is displayed on the display 19
19, when the selection key is operated, as shown in FIG.
The change amount data of “+4 dots” is stored in the character command data. In addition, input data
In the buffer 31, each of the characters “D”, “E”, and “F”
Row data, lower row print command data in which “−4 dot” change amount data is stored,
Code data of the selected characters "G", "H", "I", and "J" are sequentially stored.
It is. Next, when the one-line printing key is operated for one-line printing (S2: Yes,
S3 / S4: No, S7: Yes) One line print mark ">" is displayed on the display 19.
And 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.
When one line print command data is stored at address A000D in the data buffer 31,
The code data of the characters "K", "L", and "M" selected thereafter are addressed.
Stored from A000E to address A0010. Note that the character selection dial 3 is rotated.
(S2: No, S16: Yes), other than flags F1, F3, F5, and F6
Is set (S17 / S22 / S27 / S29: No)
, S31: Yes), the selection contents corresponding to the set flags are sequentially displayed.
Is displayed (S32). When the fixed-length key is operated for fixed-length printing (S2: Yes,
S3, S4, S7: No, S10: Yes), set the length of the print area to 10 cm
Is displayed (S11) and the flag F6 is set.
(S12). Next, when the character selection dial 3 is rotated (S2: No, S
16: Yes), since the flag F6 is set (S17, S22, S27)
: No, S29: Yes), with the clockwise rotation of the character selection dial 3
Then, a print length setting screen "print length 11" is displayed (S30). Afterwards, character selection
When the rotary dial 3 is continuously rotated, the setting content “print length 12” →
"Print length 13" → "Print length 14" → "Print length 15" → ...
The display length is displayed on the display 19 up to the print length 54 ". In addition, dial for character selection
3 is rotated in the counterclockwise direction, the printing order is reversed from the above.
The setting contents are displayed up to "5". Here, “print length 54” is displayed.
When the character selection dial 3 is rotated clockwise in a state where
Is displayed. In addition, with the “print length 5” displayed,
When the printer 3 is rotated in the counterclockwise direction, "print length 54" is displayed.
. When the setting key is operated (S2 · S3: Yes), the flag F6 is set.
(S34 / S41 / S46: No, S49: Yes)
A value obtained by multiplying the print length displayed on the screen by 10 is stored as data in the print length memory 40 (S50). When the setting key is operated (S2 · S3: Yes)
When other flags are set (S34, S41, S46, S4
9: No, S51: Yes), the selection corresponding to the flag is set (S:
52). Next, when the print key is operated (S2: Yes, S3, S4, S7, S
10: No, S13: Yes), print processing control (see FIGS. 12 and 13) is executed.
(S14). When this control is started, first, various flags and menus related to printing are set.
Initialization of a memory or the like is executed (S60), and rearrangement processing control (see FIG. 14)
Is performed (S61). This control will be described with reference to FIGS.
I do. When this control is started, first, as shown in FIG.
All the code data stored in 31 are stored in the first rearrangement memory 32.
(S90). However, at the end of the plurality of code data, "
FF ”is additionally stored. Next, a first address a0000 (hereinafter referred to as a first address) of the first rearrangement memory 32 is stored in the first pointer
, This content is referred to as P1, and a first pointer P1) is set (S91).
Is read from the first rearrangement memory 32 indicated by the first pointer P1 (S9).
2) When the read data is one-line print command data (S93, S105,
(S103: No), the next address is set to the first pointer P1 (S104).
, And returns to S92. When the read data is character code data,
, The same control as described above is repeated. Next, when the first pointer P 1 is “address a0004”, the upper row print command data
(S93: Yes), the first reordering memory 32 is stored by the first pointer P1.
Is searched (S94), and the lower line is printed as command data following the upper line print command data.
When the command data is stored (S95: Yes), as shown in FIG.
The “address b0004” of the second rearrangement memory 33 corresponding to one pointer P1 is the second pointer
The lower line print command data, which is set in the interface 35 (hereinafter also referred to as a second pointer P2), and the code data of the character to be printed on the lower line LL following this
Is stored in each address after the second pointer P2 (S96). Next, the code data number UDN of the character to be printed on the upper print line UL is
When the code data number LDN of the character line LL is smaller than the number (S98 / S100: No)
), As shown in FIG. 22, a space is placed at “address a0008” of the first rearrangement memory 32
The code “SP” is stored (S101). However, the code data number UDN is
If the number is larger than the data number LDN (S98: Yes), the second rearrangement memory 3
The space code "SP" is stored at the predetermined address of No. 3 (S99). In addition, both
When the number of load data UDN and LDN are equal (S98: No, S100: Ye
s), and proceed to S102. Next, as shown in FIG.
Here, the data stored in the second rearrangement memory 33 is deleted, and
Arrangement processing such as moving each descending data “>, K, L, M, FF” is executed.
(S102), when the data to be searched exists in the first rearrangement memory 32
(S103: No), the first pointer P1 has "address
Is set (S104). The subsequent data “>, K, L, M” are S90 to S92, S90
93 / S105: No, S103 to S104 are repeatedly executed, and the end data
With "FF" (S103: Yes), this control is terminated and the routine returns. By the way, when there is no lower row print command data (S95: No),
2 Equivalent to the code data number UDN of the upper print line UL in the rearrangement memory 33
The stored space code “SP” is stored (S97). Also, the first pointer P1
When the data read based on the data is lower row print command data (S93: No, S1
05: 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 lower row
The code data of the character to be printed on the character line LL is stored in each address after the second pointer P2.
In the first rearrangement memory 32, the lower row print command data and the character code data to be printed on the lower print row LL are all stored in the first rearrangement memory 32.
It is converted into a pace code (S107). Next, the process returns to the printing process control, and when the flag F6 is set,
At the time of fixed-length printing (S62: Yes), control for calculating the space between characters is performed (see FIG. 15).
(See FIG. 16) is executed (S63). When this control is started, first the number of characters
The character count value MN of the counter 36 and the setting space of the set character space memory 37
The pace value SA and the total character width value MW are cleared (S110), and the first pointer
The first address of the first rearrangement memory 32 is set to P1 (S111), and the first address is set.
The data specified by the interface P1 is read (S112), and the read data ends.
If it is not data and not code data (S113 / S114: No),
Based on the read print command data, the character width PW (dot
Is set (S115), and the first pointer P1 is incremented (S115).
S118). On the other hand, when the read data is code data (S113: N
o, S114: Yes), the character number count value MN is incremented by one (S
116), the total character width value MW (the number of dot rows) is increased by the character width PW (S11).
7) The process returns to S112 via S118. When the read data is end data (S 113: Yes),
From the set print length SL stored in the character length memory 40, the print start portion and print end
The actual print length minus the printable length of 34 mm (17 mm x 2) that cannot be printed at the end
JL is set (S119), and about 71 dot rows can be printed in 10 mm.
The number ND of dot rows that can be printed in the actual printing length JL is obtained by ND = 71 × JL.
(S120). Next, it is assumed that the number ND of printable dot rows is equal to or larger than the total character width value MW.
In other words, if all the input characters can be printed within this actual print length JL
(121: Yes), the total character width value MW is subtracted from the printable dot row number ND.
Then, the remaining blank space YS (the number of dot rows) is calculated (S122). Change
Meanwhile, when the blank space YS is equal to or more than the number of characters (MN-1) (S123).
: Yes), since a space of one dot row can be provided between each of these characters, a new blank space YS is calculated (S124), and the set space value S
A is added by one dot row (S125), and the process returns to S123. Then, S123 to S125 are executed, and a new blank space YS is set between the characters.
(S123: No), the blank space YS becomes "0".
(S126: No), the margin space YS becomes the surplus space Sd.
Is stored in the available space memory 38 (S127), and the flag AF is set.
(S129), ends this control and returns. However, the blank space YS
When it is "0" (S126: Yes), the flag AF is reset (S12).
8). In addition, all input characters cannot be printed within this actual print length JL.
If it is possible (121: No), the error message "Cannot print fixed length" is displayed.
Error processing such as display on the ray 19 is executed (S130), and the flag EF is
Is set (S131). When the flag EF is reset (
(S64: No), the process proceeds to S66, but when the flag EF is set
(S64: Yes), both flags F6 and EF are reset (S65), and the
To On the other hand, after the inter-character space calculation processing and when the printing is not the fixed length printing (S 62: No)
), The first address of the first rearrangement memory 32 is set to the first pointer P1 (S
66) The data in the first rearrangement memory 32 is read based on the first pointer P1.
(S67), when the read data is one-line print command data (S68
(S69: No, S70: Yes), the flag F1 is reset (S71), and the flag F1 is reset.
The character width value PW (48 dots) of the L character size used for one-line printing is
It is stored in the RAM 30 (S73), and the first pointer P1 is incremented (S73).
74), returning to S67. Next, the read data corresponds to the code data of the character “A”.
(S68: No, S69: Yes), if it is not the fixed length printing (S75: N
o), the process proceeds to S77, but in the case of fixed-length printing (S75: Yes), the character spacing
The flow shifts to S77 via the pace value setting process control (see FIG. 17). The control of the character space value setting processing will be described.
(S140: Yes), the set space value SA corresponds to one dot row.
Incremented ( S141), the remaining space value Sd is decremented by one dot row
(S142), and when the remaining space value Sd is larger than “0” (S1).
43: No), end this control and return. However, the remaining space value Sd
Becomes "0" (S143: Yes), the flag AF is reset.
(S144) . So Then, since the flag F1 has been reset (S78: No)
If the dot pattern data corresponding to the code data is in the pattern data memory 29,
24, and stored in the print buffer 39 as shown in FIG. 24 (S79).
The printing of “A” is executed (S81), and the process proceeds to S74. For fixed length printing,
In this print character, after printing each character other than the last character, S
Setting space value S obtained in 141 A Is provided. By the way, unless it is fixed length printing
(S75: No), the inter-character space value corresponding to the L character size, for example, "3
A "dot" is set (S77), and the steps from S78 are executed in the same manner as described above. Next, when the read data is the upper row print command data (S68 / S69 /
(S70: No), the flag F1 is set (S72), and two lines are set based on the flag F1.
Character width value PW (16 dots) of SS character size used for printing is stored in RAM 30
(S73), and the process returns to S67 via S74. And then the code for the letter "D"
When data is read (S68: No, S69: Yes), S75 to S7
7 is executed. Here, when the printing is not the fixed length printing (S75: No), two-line printing is performed.
Character space value corresponding to the SS character size used for
Is determined (S77). Next, since two lines are printed and the flag F1 is set (S78: Yes)
Then, data synthesis processing control (see FIG. 18) is executed (S80). This control starts
Then, first, the address "in the second rearrangement memory 33 corresponding to the first pointer P1"
b0005 "is set in the second pointer P2 (S150), and the finger is
The code data of the character "D" is read out (S151), and the dot pattern data of this code data is stored in the center line C in the print buffer 39 as shown in FIG.
L is stored at the position corresponding to L (S152), and the upper line print command data
When the position change amount d is stored (S153: Yes), the base line position change
The further amount d (+4 dots) is read out (S154), and as shown in FIG.
"4 dots" for shifting the pattern data to the normal printing baseline position PS2 in the upper row
To the dot row direction by the number of dots obtained by adding the base line position change amount d to
(S156). Further, the code data of the character “G” indicated by the second pointer P2 is read (S
157), the dot pattern data of this code data is printed as shown in FIG.
It is synthesized and stored on the lower end position in the buffer 39 (S158), and similarly, the lower row
When the print base line position change amount d is stored in the character command data (S159: Y
es) The base line position change amount d (−4 dots) is read out (S160), and
"4 dots" for shifting the pattern data to the normal printing baseline position PS3 in the lower row
To the dot row direction by the number of dots obtained by adding the base line position change amount d to
(S162), this control ends, and the routine returns. It is determined as No in S153.
Is performed, and when No is determined in S159, the print base line position change amount d
Then, "0" is stored respectively. Thereafter, as shown in FIG. 27, two characters corresponding to the two characters stored in the print buffer 39 are stored.
The character printing process is executed based on the dot pattern data (S81). Less than,
Similarly, the data stored in the first and second rearrangement memories 32 and 33 as shown in FIG.
The obtained data is printed by the print processing control of S60 to S81. Accordingly, as shown in FIG. 28, when the printing is not the fixed-length printing, the printing tape 9
The character string “ABC, KLM” is printed on one line corresponding to the print area PE, and
Character string "DEF" is printed on upper print line UL and character string "GHIJ" is printed on lower line
Printed on line LL. Moreover, these character strings “DEF” and character strings “GHIJ”
Are printed with their print positions changed based on the designated print base line position change amount d. In addition, as shown in FIG. 29, in the case of fixed-length printing, the space between these printing characters
Is provided with a calculated setting space value SA, and the input character string is
The print is automatically extended to the length of the print range of the actual print length JL of the SL
. [Second Embodiment] Here, input is performed by the tape printer 1 in the same manner as a typewriter dedicated to English text.
Characters can be printed at the pica printing pitch or elite printing pitch, and the length is fixed
It is also possible to print. For this purpose, the pica print pitch is
A print pitch key to specify the print pitch such as
In the data area 29 corresponding to the L character size and the SS character size
The print pitch tables storing the pitches for the respective types are stored respectively, and the pitch between the characters is further stored.
As shown in FIG. 30, the routine of the space calculation process control is executed in S114 and S116.
You may change by providing S170 between them. That is, when the read data is not code data (S113 / S114
: No), based on the read print command data and the signal from the print pitch key.
Is selected (S115), and the next read code data (S1).
13: No, S114: Yes), printing read from the selected pitch table
The character width value PW is set by the pitch data (S170). And, in the same way,
Is controlled. Further, a proportional space function can be provided. When
Corresponds to the L character size and the SS character size in the pattern data memory 29.
The pitch table that stores the character width data of each character
Of pitch tables corresponding to the print command data read in S115.
While selecting the code, the code read from the pitch table in S170
What is necessary is just to set the character width data corresponding to the data to the character width value PW. The pattern data memory 29 stores dot pattern data of three to four types of character sizes.
Data is stored, and a desired character size can be selected in one-line printing and two-line printing.
You can do it. It should be noted that a printing buffer is added, and the dot string data is read out for printing.
Store the dot string data for the next print in a print buffer other than the character buffer.
You may do it. As described above, at the start of printing, the key stored in the input data buffer 31 is used.
The character code data is rearranged in the first and second rearrangement memories 32 and 33.
(S90 to S104). When fixed length printing is set, the first rearrangement memory 3
The total character width value of the character stored in 2 is calculated, and the set print length and total text
The character width values are compared. If printing is not possible within the set print length, an error message
A message is displayed on the display 19. When printing is possible, the first rearrangement menu
Based on the number of code data of the memory 32 and the data of the set print length,
The same inter-character space provided between the characters is calculated (S110 to S129), and the character
This space between characters is automatically set between each character when printing
The input character string can be expanded to a desired print length and printed. When the fixed length printing is not set, the space corresponding to the character size is set.
A value is set (S77) and printing is performed (S81). The length of the tape is this space value
Is determined based on the sum of the character sizes including. Note that while manually pulling out the printing tape 9, a character mark is printed on the printing tape 9.
Such as those configured to print characters and tape printers using the wire dot method,
Of course, the present invention can be applied to various tape printers. As is apparent from the above description, in the tape recording apparatus according to the first or fourth aspect of the present invention, when the instruction means instructs not to set the recording length. To
Is a character string recorded on a tape of a length corresponding to the length of the input character string.
When the instruction means instructs to set the recording length, the recording length and
Compare with the character string length to judge whether it is possible to record within the recording length, and
If recording is possible, a character string is recorded on the tape of the set recording length, and recording is performed.
If it is not possible, you will be notified so
Make a tape of the desired length and use the desired length for the file title, etc.
Can be selectively instructed to create a
When producing a tape having a length of, there is no failure and is extremely excellent in practical use. Further, the tape recording apparatus according to the second aspect has the same effect as that of the first aspect.
However, if the input character string cannot be recorded within the set recording length,
The error notification is performed and the start of the recording operation is stopped.
The failure of creating a new tape is definitely eliminated. A tape recording apparatus according to a third aspect is the same as that of the first or second aspect.
This has the same effect, but it is possible to record a character string input on a tape of the desired length.
Can be accurately determined. A tape recording device according to a fifth aspect is the same as that of the first or fourth aspect.
This has the same effect, but by displaying the input recording length and the fact that recording is not possible,
Indeed, the user can be notified. Further, the tape recording device according to claim 6 and claim 7 is the tape recording device according to claim 1 or claim 2.
4 has the same effect as that of item 4, but the length of the input character string is accurately determined.
Can be

【図面の簡単な説明】 【図1】 本発明の構成を示す機能ブロック図である。 【図2】 テープ印字装置の平面図である。 【図3】 印字機構の概略平面図である。 【図4】 テープ印字装置の制御系のブロック図である。 【図5】 印字用テープ及びサーマルヘッドを示す印字機構の部分正面図である。 【図6】 テープ印字制御のルーチンの概略フローチャートの一部分である。 【図7】 テープ印字制御のルーチンの概略フローチャートの一部分である。 【図8】 テープ印字制御のルーチンの概略フローチャートの一部分である。 【図9】 テープ印字制御のルーチンの概略フローチャートの一部分である。 【図10】 テープ印字制御のルーチンの概略フローチャートの一部分である。 【図11】 テープ印字制御のルーチンの概略フローチャートの一部分である。 【図12】 テープ印字制御に含まれる印字処理制御のルーチンの概略フローチャートの一
部分である。 【図13】 テープ印字制御に含まれる印字処理制御のルーチンの概略フローチャートの一
部分である。 【図14】 印字処理制御に含まれる再配列処理制御のルーチンの概略フローチャートであ
る。 【図15】 印字処理制御に含まれる文字間スペース演算処理制御のルーチンの概略フロー
チャートの一部分である。 【図16】 印字処理制御に含まれる文字間スペース演算処理制御のルーチンの概略フロー
チャートの一部分である。 【図17】 印字処理制御に含まれる文字間スペース値設定処理制御のルーチンの概略フロ
ーチャートである。 【図18】 印字処理制御に含まれるデータ合成処理制御のルーチンの概略フローチャート
である。 【図19】 入力データバッファ内のデータを模式的に示す説明図である。 【図20】 第1及び第2再配列メモリ内のデータを模式的に示す説明図である。 【図21】 第1及び第2再配列メモリ内のデータを模式的に示す説明図である。 【図22】 第1及び第2再配列メモリ内のデータを模式的に示す説明図である。 【図23】 第1及び第2再配列メモリ内のデータを模式的に示す説明図である。 【図24】 印字バッファ内のドットパターンデータを模式的に示す説明図である。 【図25】 印字バッファ内のドットパターンデータを模式的に示す説明図である。 【図26】 印字バッファ内のドットパターンデータを模式的に示す説明図である。 【図27】 印字バッファ内のドットパターンデータを模式的に示す説明図である。 【図28】 1行及び2行の文字列を、定長印字させないで印字用テープに印字した印字例
を示す例示図である。 【図29】 1行及び2行の文字列を、設定した印字長さで印字用テープに定長印字した印
字例を示す例示図である。 【図30】 第2実施例に係る文字間スペース演算処理制御の文字間スペース演算処理制御
のルーチンの概略フローチャートの一部分である。 【符号の説明】 1 テープ印字装置 3 選字用ダイヤル 4 キーボード部 5 選択キー 7 サーマルヘッド 9 印字用テープ 27 CPU 28 ROM(プログラムメモリ) 29 ROM(パターンデータメモリ) 30 RAM 31 入力データバッファ 37 設定文字間スペースメモリ 39 印字バッファ 40 印字長さメモリ C 制御装置
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a functional block diagram showing a configuration of the present invention. FIG. 2 is a plan view of the tape printer. FIG. 3 is a schematic plan view of a printing mechanism. FIG. 4 is a block diagram of a control system of the tape printer. FIG. 5 is a partial front view of a printing mechanism showing a printing tape and a thermal head. FIG. 6 is a part of a schematic flowchart of a tape print control routine; FIG. 7 is a part of a schematic flowchart of a tape print control routine; FIG. 8 is a part of a schematic flowchart of a tape print control routine. FIG. 9 is a part of a schematic flowchart of a tape print control routine. FIG. 10 is a part of a schematic flowchart of a tape print control routine; FIG. 11 is a part of a schematic flowchart of a tape print control routine. FIG. 12 is a part of a schematic flowchart of a print processing control routine included in the tape print control. FIG. 13 is a part of a schematic flowchart of a print processing control routine included in the tape print control. FIG. 14 is a schematic flowchart of a rearrangement process control routine included in the print process control. FIG. 15 is a part of a schematic flowchart of a routine of character space calculation processing control included in print processing control; FIG. 16 is a part of a schematic flowchart of a routine of character space calculation processing control included in print processing control; FIG. 17 is a schematic flowchart of a routine of a character space value setting process control included in the print process control. FIG. 18 is a schematic flowchart of a data synthesis process control routine included in the print process control. FIG. 19 is an explanatory diagram schematically showing data in an input data buffer. FIG. 20 is an explanatory diagram schematically showing data in the first and second rearrangement memories. FIG. 21 is an explanatory diagram schematically showing data in first and second rearrangement memories. FIG. 22 is an explanatory diagram schematically showing data in the first and second rearrangement memories. FIG. 23 is an explanatory diagram schematically showing data in the first and second rearrangement memories. FIG. 24 is an explanatory diagram schematically showing dot pattern data in a print buffer. FIG. 25 is an explanatory diagram schematically showing dot pattern data in a print buffer. FIG. 26 is an explanatory diagram schematically showing dot pattern data in a print buffer. FIG. 27 is an explanatory diagram schematically showing dot pattern data in a print buffer. FIG. 28 is an illustration showing an example of printing a character string of one line and two lines on a printing tape without performing fixed-length printing. FIG. 29 is an illustration showing an example of printing a character string of one line and two lines on a printing tape in a fixed length at a set printing length. FIG. 30 is a part of a schematic flowchart of a routine of character space calculation processing control of character space calculation processing control according to the second embodiment; [Description of Signs] 1 Tape printer 3 Character selection dial 4 Keyboard 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 Setting Character space memory 39 Print buffer 40 Print length memory C Controller

Claims (1)

【特許請求の範囲】 【請求項1】 テープ状の被記録媒体からなるテープの長手方向に沿ってキャ
ラクタ列を記録する記録ヘッドと、 前記テープに記録するキャラクタを入力する入力手段と、 その入力手段により入力されたキャラクタに基づいて前記記録ヘッドを前記テ
ープとそのテープの長手方向に相対移動しながら駆動する記録駆動手段と、 前記テープの長手方向の記録長さを設定するかしないかを指示する指示手段と
、 前記テープの長手方向の記録長さを入力設定する記録長さ設定手段と、 前記入力されたキャラクタ列の長さを求める演算手段と、 前記設定された記録長さと前記キャラクタ列との長さを比較する比較手段と、 前記指示手段により前記記録長さを設定する指示をしたとき、前記比較手段に
よる比較の結果、設定された記録長さに前記キャラクタ列を記録可能かどうか判
断する判断手段と、 前記指示手段により前記記録長さを設定しない指示をしたとき、前記記録駆動
手段を制御して、前記入力されたキャラクタ列の長さに応じた長さのテープに前
記キャラクタを記録する第1記録制御手段と、 前記指示手段により前記記録長さを設定する指示があり、且つ、前記判断手段
により記録可能と判断されたとき、前記記録駆動手段を制御して、前記前記記録
長さ設定手段により入力設定された記録長さに前記キャラクタを記録する第2記
録制御手段と、 前記指示手段により前記記録長さを設定する指示があり、且つ、前記判断手段
により記録不可能と判断されたとき、その旨を報知する報知手段と を備えることを特徴とするテープ記録装置。 【請求項2】 請求項1において、さらに 前記記録駆動手段による記録ヘッドの記録動作の開始前に、前記判断手段によ
り設定された記録長さに前記キャラクタ列を記録不可能と判断されたとき、前記 報知手段によりエラー報知を行わせるとともに、前記記録駆動手段による記録動
作の開始を中止する第3記録制御手段を備えることを特徴とするテープ記録装置
。 【請求項3】 請求項1または2において、 前記記録長さ設定手段は、所望のテープ長さを入力するものであり、 前記比較手段は、その所望のテープ長さから記録開始部分と記録終端部分の記
録不可能な長さを引いたものと、前記キャラクタ列の長さとを比較することを特
徴とするテープ記録装置。 【請求項4】 テープ状の被記録媒体からなるテープに記録するキャラクタの
コードデータを入力する入力手段と、 その入力手段により入力されたコードデータを格納する入力データバッファと
、 多数のキャラクタのパターンデータを格納したパターンデータ格納手段と、 前記テープの長手方向に沿って前記入力されたキャラクタ列を記録するように
そのテープに対し長手方向に相対移動可能な記録ヘッドと、 前記入力データバッファに格納されたコードデータに対応するパターンデータ
を前記パターンデータ記憶手段から読み出し、そのパターンデータに基づいて前
記記録ヘッドを駆動する記録駆動手段と、 前記テープの長手方向の記録長さを設定するかしないかを指示する指示手段と
、 前記テープの長手方向の記録長さを入力設定する記録長さ設定手段と、 前記入力データバッファに格納されたコードデータに対応するキャラクタの幅
を合計して、キャラクタ列の長さを求める演算手段と、 前記設定された記録長さと前記演算手段により求められたキャラクタ列の長さ
を比較する比較手段と、 前記指示手段により前記記録長さを設定する指示をしたとき、前記比較手段に
よる比較結果、設定された記録長さに前記キャラクタ列を記録可能かどうか判断
する判断手段と、 前記指示手段により前記記録長さを設定しない指示をしたとき、前記記録駆動 手段を制御して、前記入力されたキャラクタ列の長さに応じた長さのテープに前
記キャラクタを記録する第1記録制御手段と、 前記指示手段により前記記録長さを設定する指示があり、且つ、前記判断手段
により記録可能と判断されたとき、前記記録駆動手段を制御して、前記記録長さ
設定手段により入力設定された記録長さに前記キャラクタを記録する第2記録制
御手段と、 前記指示手段により前記記録長さを設定する指示があり、且つ、前記判断手段
により記録不可能と判断されたとき、その旨を報知する報知手段と を備えることを特徴とするテープ記録装置。 【請求項5】 前記請求項1または4において、 前記報知手段は、記録不可能な旨を表示する表示手段から構成され、この表示
手段は、前記記録長さ設定手段により入力した記録長さを表示することを特徴と
するテープ記録装置。 【請求項6】 請求項1または4において、 前記演算手段は、記録されるキャラクタが複数行あるとき、その複数行のうち
の長い行を判別して、前記キャラクタ列の長さを求めることを特徴とするテープ
記録装置。 【請求項7】 請求項1または4において、さらに 記録可能なキャラクタのサイズは複数種類有り、前記演算手段は各サイズに対
応したキャラクタの幅を合計することを特徴とするテープ記録装置。
Claims: 1. A recording head for recording a character string along a longitudinal direction of a tape formed of a tape-shaped recording medium, an input unit for inputting a character to be recorded on the tape, and an input thereof. Recording drive means for driving the recording head while relatively moving the tape and the tape in the longitudinal direction of the tape based on the character input by the means; and instructing whether to set the recording length in the longitudinal direction of the tape. Instruction means for inputting, recording length setting means for inputting and setting the recording length in the longitudinal direction of the tape, computing means for obtaining the length of the input character string, and the set recording length and the character string Comparing means for comparing the length of the recording length, and when an instruction to set the recording length is issued by the instruction means, the result of the comparison by the comparing means is set. Determining means for determining whether or not the character string can be recorded in a recording length; and when instructing not to set the recording length by the instructing means, controlling the recording driving means to control the input character string. A first recording control unit for recording the character on a tape having a length corresponding to the length, and an instruction for setting the recording length by the instruction unit, and when the determination unit determines that recording is possible. A second recording control unit that controls the recording driving unit to record the character at the recording length input and set by the recording length setting unit; and an instruction to set the recording length by the instruction unit. And a notifying means for notifying that the recording is impossible by the judging means. 2. The method according to claim 1, further comprising, before the start of the recording operation of the recording head by the recording driving unit, determining that the character string cannot be recorded at the recording length set by the determining unit. A tape recording apparatus, comprising: a third recording control unit for causing the notifying unit to notify an error and stopping the start of a recording operation by the recording driving unit. 3. The recording length setting unit according to claim 1, wherein the recording length setting unit inputs a desired tape length, and the comparison unit determines a recording start portion and a recording end portion based on the desired tape length. A tape recording apparatus, wherein a length obtained by subtracting a non-recordable length of a portion is compared with a length of the character string. 4. An input means for inputting code data of a character to be recorded on a tape formed of a tape-shaped recording medium; an input data buffer for storing the code data input by the input means; Pattern data storage means for storing data, a recording head movable in the longitudinal direction relative to the tape so as to record the input character string along the longitudinal direction of the tape, and stored in the input data buffer Read out pattern data corresponding to the obtained code data from the pattern data storage means, and drive the recording head based on the pattern data; and determine whether or not to set a recording length in the longitudinal direction of the tape. Input means for inputting and setting a recording length in a longitudinal direction of the tape. Recording length setting means, calculating means for summing the widths of the characters corresponding to the code data stored in the input data buffer to determine the length of a character string, and the set recording length and the calculating means Comparing means for comparing the length of the determined character string; and when the instruction means gives an instruction to set the recording length, the character string is recorded on the set recording length as a result of the comparison by the comparing means. A determination unit for determining whether the recording length is possible, and a tape having a length corresponding to the length of the input character string by controlling the recording driving unit when an instruction not to set the recording length is issued by the instruction unit. First recording control means for recording the character, and an instruction for setting the recording length by the instruction means, and determining by the determination means that recording is possible. A recording control unit that controls the recording driving unit to record the character at a recording length input and set by the recording length setting unit; and sets the recording length by the instruction unit. And a notifying means for notifying the user that there is an instruction to perform the recording and that the judging means judges that the recording is not possible. 5. The recording device according to claim 1, wherein the notifying unit includes a display unit for displaying that recording is not possible, and the display unit displays the recording length input by the recording length setting unit. A tape recording device for displaying. 6. The method according to claim 1, wherein, when there are a plurality of characters to be recorded, the calculating unit determines a long line among the plurality of characters and obtains the length of the character string. Characteristic tape recording device. 7. The tape recording apparatus according to claim 1, wherein there are a plurality of recordable character sizes, and said calculating means sums up the widths of the characters corresponding to each size.

Family

ID=

Similar Documents

Publication Publication Date Title
JP2536322B2 (en) Tape printing device
EP0577247B1 (en) Tape print device
JP3111442B2 (en) Document processing device
US5551785A (en) Divisionally-printable label producing apparatus
JPH0596789A (en) Tape printer
JP2629516B2 (en) Tape printer
JPH0778140A (en) Document processor
JP2606126C (en)
JP2546194B2 (en) Tape printer capable of printing multiple lines of data
JP2560650B2 (en) Tape printer
JP3063544B2 (en) Tape printer
JP2606126B2 (en) Tape recorder
EP0606768A2 (en) Registration dot pattern data processor of a text processing apparatus
JPH06198962A (en) Preparing device for registration dot pattern data of tape printer
JP3292393B2 (en) Document processing device
JPH05185654A (en) Tape printing apparatus
JP2560650C (en)
JP3139514B2 (en) Tape printer
JP2513441B2 (en) Tape printing device capable of printing multiple lines
JP3095046B2 (en) Dot pattern data creation device for registration of tape printer
JPH07276715A (en) Tape printer capable of printing a plurality of blocks in optional number of lines
JP3047751B2 (en) Tape printer capable of printing on multiple print lines
JPH0872321A (en) Tapelike label forming apparatus
JP3213154B2 (en) Tape printer
JPH0596790A (en) Tape printer