JPS63274575A - Printer - Google Patents

Printer

Info

Publication number
JPS63274575A
JPS63274575A JP62109589A JP10958987A JPS63274575A JP S63274575 A JPS63274575 A JP S63274575A JP 62109589 A JP62109589 A JP 62109589A JP 10958987 A JP10958987 A JP 10958987A JP S63274575 A JPS63274575 A JP S63274575A
Authority
JP
Japan
Prior art keywords
printing
print
line
carriage
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62109589A
Other languages
Japanese (ja)
Inventor
Ryoichi Sasaki
佐々木 量一
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 JP62109589A priority Critical patent/JPS63274575A/en
Priority to KR1019880001485A priority patent/KR880013703A/en
Priority to DE19883884262 priority patent/DE3884262T2/en
Priority to EP19880303981 priority patent/EP0290219B1/en
Publication of JPS63274575A publication Critical patent/JPS63274575A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J25/00Actions or mechanisms not otherwise provided for
    • B41J25/02Key actions for specified purposes
    • B41J25/12Character spacing

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

PURPOSE:To fix intercharacter spaces in each printing line by moving a carriage to a further upper position from a printing start position in a following line with the printing direction of the following line as a reference before the start of printing in the following line after completion of printing in the existing printing line, when permitting the carriage to be moved to the printing start position of the following line. CONSTITUTION:An identification means 2 identifies whether the printing end position of each printing line identifies whether the existing printing head is positioned between the printing start position and printing and position of a following printing line, based on data of a data memory 1. Then if the identification means 2 determines that the printing end position of each printing position is set between the printing start position and printing end position, a control means 3 ends printing of the existing printing line, the carriage is allowed to move to an upper position than the printing start position of a following start position with the printing direction of a following line as a reference, and then to the printing start position of a following line. Consequently, P any adverse effect of a backlash by a drive system which drives the carriage or wire tension can be avoided, thus an intercharacter interval can be set constant.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は印字行単位で往復印字する印字装置に関し、特
に文書を複数の印字行に亙って印字する時に、各印字行
における文字間隔を一定にするようにした印字装置に関
するものである。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a printing device that performs reciprocating printing in units of print lines, and in particular, when printing a document over multiple print lines, it is possible to adjust the character spacing in each print line. The present invention relates to a printing device that maintains a constant level.

〔従来技術〕[Prior art]

−aに、電子タイプライタやプリンタ等の印字装置では
、テキストメモリに記憶したテキストデータや外部装置
から送られてくる印字データを複数の印字行に亙って印
字する時に、レフトマージン位置からライトマージン位
置方向への1方向で順次印字するものに加えて、印字速
度を向上させるだめに、右方向と左方向との両方向に往
復印字し得るように構成されたものがある。
-a. In printing devices such as electronic typewriters and printers, when printing text data stored in a text memory or print data sent from an external device over multiple print lines, it is necessary to write data from the left margin position. In addition to those that print sequentially in one direction toward the margin position, there are some that are configured to print reciprocally in both the right and left directions in order to increase printing speed.

更に、往復印字可能な印字装置では、次印字行を印字す
る時に、その行の左端印字位置(行頭印字位置)と右端
印字位置(行末印字位置)とを演算で求め、前行の最終
印字位置から最短距離の印字開始位置(左端印字位置或
いは右端印字位置)ヘキャリッジを移動させる最短印字
制御する(USP3,764,994号公報参照)よう
にし、印字速度をより向上させるようにしたものも製品
化されている。
Furthermore, in a printing device capable of reciprocating printing, when printing the next print line, the left end print position (line start print position) and right end print position (line end print position) are calculated, and the final print position of the previous line is calculated. We have also commercialized a product that performs shortest printing control (refer to USP 3,764,994) by moving the carriage to the shortest printing start position (leftmost printing position or rightmost printing position) to further improve printing speed. has been done.

例えば、第8図に示すように第1印字行(線分F)を右
方向で印字終了した時に、その最終印字位置Epが第2
印字行(線分S)の左端印字位置しρと右端印字位置R
pとの間に位置している場合には、先づ改行処理つまり
印字用紙がラインスペース分送られ、次にキャリッジが
右端印字位置Rpへ移動し右端印字位置Rpで行末文字
を印字した後、キャリッジを順次左方向へ移動し乍ら第
2行目を印字するように制御される。
For example, when printing the first printing line (line segment F) in the right direction as shown in FIG.
Left end printing position ρ and right end printing position R of the printing line (line segment S)
If it is located between Rp and Rp, the line feed process is performed first, that is, the printing paper is advanced by the line space, then the carriage moves to the rightmost printing position Rp, and after printing the end of line character at the rightmost printing position Rp, The carriage is controlled to move sequentially to the left while printing the second line.

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

上記往復印字可能な印字装置において、最短印字制御す
るものも含めて印字速度を向上させるための制御に工夫
が凝らされている。例えば、第8図のように第1印字行
を右方向で印字終了した時に、その最終印字位置Epか
らキャリッジを右端印字位置Rpへ移動し右端印字位置
Rpで行末文字を印字した後キャリッジを順次左方向へ
移動し乍ら第2行目を印字する場合に、行末文字はキャ
リッジを右方向へ駆動した状態で印字されるが、末尾文
字以外の各文字はキャリッジを左方向へ駆動した状態で
印字されることになる。
In the above-mentioned printing devices capable of reciprocating printing, ingenuity has been put into control to improve the printing speed, including those that control printing in the shortest possible time. For example, when printing the first printing line in the right direction as shown in Figure 8, move the carriage from the final printing position Ep to the rightmost printing position Rp, print the end of line character at the rightmost printing position Rp, and then move the carriage sequentially. When printing the second line while moving to the left, the character at the end of the line is printed with the carriage driven to the right, but each character other than the last character is printed with the carriage driven to the left. It will be printed.

即ち、末尾文字とその末尾文字の次の印字文字との文字
間隔がキャリッジを駆動する駆動系のバックラッシュや
ワイヤのテンション等により、他の文字の文字間隔より
も小さくなり、同一行において文字間隔が一定とならず
、又、上下行の文字のずれも発生し、綺麗な文書印字が
出来ないという問題がある。
In other words, the character spacing between the last character and the next printed character becomes smaller than the character spacing of other characters due to backlash in the drive system that drives the carriage, wire tension, etc., and the character spacing on the same line becomes smaller. There is a problem in that the characters are not constant, and the characters in the upper and lower lines are also misaligned, making it impossible to print documents neatly.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、複数の印字行を印字行単位で往復印字
する時に、各印字行における文字間隔を一定にし得るよ
うな印字装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a printing device that can make the character spacing in each print line constant when printing a plurality of print lines back and forth in print line units.

〔問題点を解決するための手段〕[Means for solving problems]

本発明に係る印字装置は、第1図の機能ブロック図に示
すように、文字や記号の印字データを記憶するデータメ
モリと、キャリッジに搭載された印字ヘッドをキャリッ
ジと共に移動させながら、印字データを印字媒体に印字
する印字手段と、印字データを印字する時に、キャリッ
ジを印字行単位で適宜往方向と復方向とに移動させなが
ら往復印字するように印字手段を制御する往復印字制御
手段とを備えた印字装置において、データメモリのデー
タに基いて、現在の印字ヘッドに対応する各印字行の印
字終了位置が、次印字行の印字開始位置と印字終了位置
との間に位置しているか否かを判別する判別手段と、判
別手段の判別結果に基いて、現在の印字行の印字完了後
次行の印字開始前に、次行の印字方向を基準として次行
の印字開始位置よりも更に上位側ヘキャリッジを移動さ
せた後、次行の印字開始位置へ移動させる制御手段とを
設けたものである。
As shown in the functional block diagram of FIG. 1, the printing device according to the present invention includes a data memory for storing print data of characters and symbols, and a print head mounted on a carriage, which prints the print data while moving together with the carriage. It is equipped with a printing means for printing on a printing medium, and a reciprocating printing control means for controlling the printing means to perform reciprocating printing while appropriately moving a carriage in the forward direction and backward direction in units of print lines when printing print data. In a printing device, whether or not the print end position of each print line corresponding to the current print head is located between the print start position and print end position of the next print line, based on data in the data memory. and, based on the determination result of the determining means, after the completion of printing of the current print line and before the start of printing of the next line, a position higher than the print start position of the next line based on the printing direction of the next line is determined. After the carriage is moved to the side, a control means is provided for moving the carriage to the printing start position of the next line.

尚、必要に応じて前記制御手段は、前記キャリッジを駆
動する駆動手段のバックラッシュを補正するためのバッ
クラッシュ補正手段を含むようにしてもよい。
Note that, if necessary, the control means may include backlash correction means for correcting backlash of the drive means for driving the carriage.

〔作用〕[Effect]

本発明に係る印字装置においては、文字や記号の印字デ
ータはデータメモリに記憶され、印字手段は印字ヘッド
をキャリッジと共に移動させながら印字データを印字媒
体に印字する。この時、キャリッジを印字行単位で適宜
往方向と復方向とに移動させながら往復印字するように
印字手段が制御される。
In the printing device according to the present invention, print data of characters and symbols is stored in the data memory, and the printing means prints the print data on the print medium while moving the print head together with the carriage. At this time, the printing means is controlled to perform reciprocating printing while appropriately moving the carriage in the forward and backward directions in units of print lines.

又、判別手段により、データメモリのデータに基いて現
在の印字ヘッドに対応する各印字行の印字終了位置が次
印字行の印字開始位置と印字終了位置との間に位置して
いるか否かが判別される。
Further, the determining means determines whether the print end position of each print line corresponding to the current print head is located between the print start position and print end position of the next print line based on the data in the data memory. It is determined.

そして、判別手段で各印字行の印字終了位置が次印字行
の印字開始位置と印字終了位置との間に位置していると
判別されると、制御手段は現在の印字行の印字を終了す
ると、次行の印字方向を基準として次行の印字開始位置
よりも更に上位側ヘキセリッジを移動させた後、次行の
印字開始位置へ移動させる。
When the determining means determines that the print end position of each print line is located between the print start position and print end position of the next print line, the control means terminates printing of the current print line. , the hexeridge is further moved higher than the print start position of the next line based on the print direction of the next line, and then moved to the print start position of the next line.

即ち、各印字行において印字開始位置から印字終了位置
に至る各文字は往方向或いは復方向にキャリッジを移動
し乍ら同一方向で印字されるので、キャリッジを駆動す
る駆動系のバックラッシュやワイヤのテンションなどの
影響が回避され、各文字の文字間隔が一定となる。
That is, in each printing line, each character from the print start position to the print end position is printed in the same direction while the carriage moves in the forward or backward direction, so backlash of the drive system that drives the carriage and wire Effects such as tension are avoided, and the character spacing between each character becomes constant.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明に係る印字装置によれば、
各印字行における各文字′は往方向或いは復方向にキャ
リッジを移動し乍ら同一方向で印字されることにより、
キャリッジ駆動系のバックラッシュやワイヤのテンショ
ンなどの影響が回避されるので、印字ピッチを変更しな
い限り印字開始位置から印字終了位置に至る各文字の文
字間隔が確実に一定となり、見栄えが良くしかも綺麗な
文書印字ができる。
As explained above, according to the printing device according to the present invention,
Each character' in each printing line is printed in the same direction while moving the carriage in the forward or backward direction.
Since the effects of backlash in the carriage drive system and wire tension are avoided, the spacing between each character from the print start position to the print end position is reliably constant unless the print pitch is changed, resulting in a good-looking and clean print. You can print documents.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基いて説明する。 Embodiments of the present invention will be described below with reference to the drawings.

本実施例は本発明を電子タイプライタに適用した場合の
ものである。
This embodiment is a case where the present invention is applied to an electronic typewriter.

第2図に示すように、電子タイプライタ1の本体フレー
ム2の前部には、キーボード3が配置され、キーボード
3の後方で本体フレーム2には印字機構PMが配設され
、又、キーボード3の後部には入力した文字や記号等を
表示する1行の液晶ディスプレイ75が設けられている
As shown in FIG. 2, a keyboard 3 is arranged at the front of the main body frame 2 of the electronic typewriter 1, a printing mechanism PM is arranged on the main body frame 2 behind the keyboard 3, and the keyboard 3 A one-line liquid crystal display 75 is provided at the rear of the screen to display input characters, symbols, etc.

キーボード3には、アルファベットキーや数字キー及び
記号キーを含む文字キー10、テキストメモリ52のテ
キストデータを印字させるための印字開始キー11や各
種機能キーが通常のタイプライタと同様に設けられてい
る。
The keyboard 3 is provided with character keys 10 including alphabet keys, numeric keys, and symbol keys, a print start key 11 for printing text data in the text memory 52, and various function keys as in a normal typewriter. .

印字機構PMには、少なくとも、印字用紙を紙送りする
プラテン20とそれを駆動するモータとその駆動回路、
プラテン20と平行なガイド21に支持されたキャリッ
ジ22とそれを左右方向へ往復駆動するキャリッジ駆動
モータとキャリッジ駆動回路、ホイールカセット23に
収容された活字ホイール24とそれを駆動するモータと
その駆動回路、リボンカセット25に収納された印字リ
ボン26とそれを巻取るモータとその駆動回路、活字ホ
イール24の活字27を打撃する印字ハンマとそれを駆
動するソレノイド28とその駆動回路、印字リボン26
或いは訂正リボン29を選択的に印字位置に配置するリ
ボン切換機構などが設けられており、この印字機構PM
は通常の電子タイプライタの印字機構と同様のものであ
る。
The printing mechanism PM includes at least a platen 20 that feeds printing paper, a motor that drives the platen, and a drive circuit thereof.
A carriage 22 supported by a guide 21 parallel to the platen 20, a carriage drive motor and a carriage drive circuit that drive it back and forth in the left-right direction, a type wheel 24 housed in a wheel cassette 23, a motor that drives it, and its drive circuit. , the printing ribbon 26 stored in the ribbon cassette 25, the motor that winds it and its drive circuit, the printing hammer that hits the type 27 of the type wheel 24, the solenoid 28 that drives it and its drive circuit, the printing ribbon 26.
Alternatively, a ribbon switching mechanism for selectively arranging the correction ribbon 29 at a printing position is provided, and this printing mechanism PM
is similar to the printing mechanism of a normal electronic typewriter.

次に、電子タイプライタlの制御系の全体構成について
第3図のブロック図に基いて説明する。
Next, the overall configuration of the control system of the electronic typewriter I will be explained based on the block diagram of FIG.

電子タイプライタ1は基本的にはキーボード3、印字機
構PM、表示機構り及び制御装置C等で構成され、キー
ボード3、印字機構PM、表示機構りはデータバス等を
介して制御装置CのメインCPU(中央演算装置)39
に接続されている。
The electronic typewriter 1 basically consists of a keyboard 3, a printing mechanism PM, a display mechanism, a control device C, etc. The keyboard 3, printing mechanism PM, display mechanism are connected to the main controller C via a data bus, etc. CPU (central processing unit) 39
It is connected to the.

制御装置CはメインCPU39と、そのメインCPU3
9にデータバス等を介して接続されたROM(リード・
オンリ・メモリ)40及びRAM(ランダム・アクセス
・メモリ)50とから構成されている。
The control device C includes a main CPU 39 and its main CPU 3.
9 through a data bus etc.
RAM (Random Access Memory) 40 and RAM (Random Access Memory) 50.

ROM40のプログラムメモリ41には、キーボード3
の各文字キー10や各種機能キーから入力されるコード
データに対応させて印字機構PMや表示機構りを制御す
る制御プログラム及び後述の往復印字制御の制御プログ
ラムなどが記憶されている。
The program memory 41 of the ROM 40 includes the keyboard 3.
A control program for controlling the printing mechanism PM and display mechanism in correspondence with code data input from each character key 10 and various function keys, a control program for reciprocating printing control to be described later, and the like are stored.

RAM50には、印字位置と対応させて絶対原点からの
キャリッジ22(印字ヘッド)の現在位置を順次更新し
て記憶する現在位置メモリ51と、タイプライタモード
のときに印字された文字等のデータを印字位置と対応さ
せて順々に約500文字記憶する印字データメモリと、
メモリモード(表示モード)のときに、キーボード3か
ら入力され或いはテキストメモリ52から続出される文
字等のデータを記憶する入力バッファと、入力データを
ファイルデータとして記憶するテキストメモリ52と、
カーソル表示位置をディスプレイ75の各表示位置と対
応させてカーソル移動に応じてカウントするカーソル表
示位置カウンタとカーソル表示位置カウンタのデータに
対応して入力バッファのアドレスを指示するカーソル位
置ポインタと、メインCPU39で演算処理した結果を
一時的に記憶する各種メモリ等に加えて、テキストメモ
リ52のテキストデータを印字する際に右方向(ライト
マージン方向)で印字する時にセットされ、又左方向(
レフトマージン方向)で印字する時にリセットされる印
字方向フラグ53と、印字開始キー11が操作されると
テキストメモリ52或いは外部装置から印字すべき1印
字行分のテキストデータを順次読込んで記憶するプリン
トバッファ54と、設定されたレフトマージン位置を記
憶するレフトマージン位置メモリと、設定された印字ピ
ッチを記憶するピッチメモリなどが設けられている。
The RAM 50 includes a current position memory 51 that sequentially updates and stores the current position of the carriage 22 (print head) from the absolute origin in correspondence with the print position, and data such as characters printed in the typewriter mode. A print data memory that stores approximately 500 characters in sequence in correspondence with the print position;
an input buffer that stores data such as characters input from the keyboard 3 or successively output from the text memory 52 during the memory mode (display mode); a text memory 52 that stores the input data as file data;
A cursor display position counter that associates the cursor display position with each display position on the display 75 and counts according to the movement of the cursor; a cursor position pointer that indicates the address of the input buffer in accordance with the data of the cursor display position counter; and the main CPU 39. In addition to various memories that temporarily store the results of arithmetic processing in the text memory 52, it is set when printing text data in the text memory 52 in the right direction (right margin direction), and is set in the left direction (right margin direction).
The print direction flag 53 is reset when printing in the left margin direction), and when the print start key 11 is operated, one print line of text data to be printed is sequentially read from the text memory 52 or an external device and stored. A buffer 54, a left margin position memory for storing a set left margin position, a pitch memory for storing a set printing pitch, and the like are provided.

尚、テキストメモリ52にはそのテキストデータの最終
データの次にEOT (エンド・オブ・テキスト)コー
ドが記憶されている。
Note that an EOT (end of text) code is stored in the text memory 52 after the final data of the text data.

メインCPU39は、制御プログラムに基いて、各文字
キー10から入力されるデータに対応する文字・記号を
印字機構PMに印字させ、印字データを印字位置と対応
させて印字データメモリに順次記憶させる。更に、メイ
ンCPU39は、メモリモードの時、1印字行分の入力
データを入力バッファに記憶させると共にディスプレイ
75に表示させ、リターンキー12の操作に応じてその
1行分のデータをテキストメモリ52に記憶させる。
Based on the control program, the main CPU 39 causes the printing mechanism PM to print characters and symbols corresponding to data input from each character key 10, and sequentially stores the print data in the print data memory in correspondence with the print position. Furthermore, when in the memory mode, the main CPU 39 stores input data for one print line in the input buffer and displays it on the display 75, and stores the data for one line in the text memory 52 in response to the operation of the return key 12. Make me remember.

表示機構りは、インターフェイス70と表示用CPIJ
71とキャラクタジェネレータ72とディスプレイコン
トローラ73と液晶ディスプレイ75とから構成され、
図示のように接続されている。
The display mechanism consists of an interface 70 and a CPIJ for display.
71, a character generator 72, a display controller 73, and a liquid crystal display 75.
Connected as shown.

尚、表示機構りは公知のものと同様であり、本発明とは
直接関係がないので、説明は省略する。
Note that the display mechanism is the same as a known one and has no direct relation to the present invention, so a description thereof will be omitted.

次に、電子タイプライタ1の制御袋2cで行われる往復
印字制御について、第4図のフローチャートに基いて説
明する。
Next, the reciprocating printing control performed by the control bag 2c of the electronic typewriter 1 will be explained based on the flowchart shown in FIG.

尚、この制御を第5図(a)〜(j)を参照し乍ら説明
する。この図において、線分Fは第1行目の印字位置を
示し、線分Sは第2行目の印字位置を示す。又、E、は
第1印字行の最終印字位置、LPは第2印字行の左端印
字位置(行頭の印字位置)R,は第2印字行の右端印字
位置(行末の印字位置)、点線は印字用紙送り、矢印「
−」はキャリッジの右方向移動、矢印「=」はキャリッ
ジの左方向移動を示すものとする。
This control will be explained with reference to FIGS. 5(a) to 5(j). In this figure, line segment F indicates the printing position on the first line, and line segment S indicates the printing position on the second line. Also, E, is the final printing position of the first printing line, LP is the left end printing position of the second printing line (printing position at the beginning of the line), R, is the rightmost printing position of the second printing line (printing position at the end of the line), and the dotted line is Print paper advance, arrow ``
-" indicates rightward movement of the carriage, and arrow "=" indicates leftward movement of the carriage.

タイプライタ1に電源が投入されるとこの制御が開始さ
れステップSl(以下、単にSlで表し、他のステップ
も同様に扱う)へ移行して第1行目を右方向へ印字する
ために印字方向フラグ53をセット(印字方向フラグデ
ータ「1」)するなどの初期設定が実行され、S2にお
いてキー人力待ちをする。キー人力されるとS3へ移行
する。
When the typewriter 1 is powered on, this control starts and moves to step Sl (hereinafter simply referred to as Sl, and other steps are handled in the same way), where the first line is printed in the right direction. Initial settings such as setting the direction flag 53 (printing direction flag data "1") are performed, and the process waits for key input in S2. When the key is pressed, the process moves to S3.

S3では、印字開始キー11か否かが判定され、印字開
始キー11の時にはS4へ移行する。S4では、テキス
トメモリ52から最初の1印字行分のテキストデータが
読出されてプリントバッファ54に書込まれる0次の5
5にて、テキストメモ1J52のデータに基いてテキス
トデータが有るか否かが判定され、テキストデータが有
る場合にはS6へ移行する。S6では、テキストデータ
の最初のデータが文字印字される。尚、文字印字後印字
ヘッドは1文字分右方向へ移動される。この時、メイン
CPU39は印字機構PMの各駆動回路に制御信号を出
力する。
In S3, it is determined whether or not the print start key 11 is pressed, and if it is the print start key 11, the process moves to S4. In S4, text data for the first one print line is read from the text memory 52 and written to the print buffer 54.
At step 5, it is determined whether or not there is text data based on the data of the text memo 1J52, and if there is text data, the process moves to S6. In S6, the first data of the text data is printed as characters. Incidentally, after printing a character, the print head is moved to the right by one character. At this time, the main CPU 39 outputs control signals to each drive circuit of the printing mechanism PM.

次いでS7ではプリントバッファ54から次の印字すべ
きデータが読出される。S8では、その読出したデータ
は終了データか否かつまりEOTコードか否かが判定さ
れ、E OT’コードでない時にはS9へ移行する。S
9にて、そのデータは行の最終データか否かつまりリタ
ーンコードの1つ前のデータか否かが判定され、Noの
時にはS6に戻る。そして、56〜S9が繰返され、例
えば−第5図(a)〜(j)に示す線分Fの最終印字位
WE、の1文字前のデータまで印字すると89でYes
と判定されてS10へ移行する。S10では、行の最終
データが最終印字位fE、に印字される。尚、この時、
印字ヘッドは最終印字位置Epにある。
Next, in S7, the next data to be printed is read from the print buffer 54. In S8, it is determined whether the read data is end data, that is, an EOT code, and if it is not an EOT' code, the process moves to S9. S
At step 9, it is determined whether the data is the last data in the row, that is, whether it is the data immediately before the return code, and if the answer is No, the process returns to S6. Then, steps 56 to S9 are repeated and, for example, when the data of one character before the final printing position WE of the line segment F shown in FIGS.
It is determined that the process moves to S10. In S10, the final data of the line is printed at the final print position fE. Furthermore, at this time,
The print head is at the final print position Ep.

Sllにおいて、テキストメモリ52のテキストデータ
に基いて次の1印字行分のテキストデータが読出されプ
リントバッファ54に書込まれる。
At Sll, text data for the next print line is read out based on the text data in the text memory 52 and written into the print buffer 54.

S12では、現在位置メモリ51のデータとプリントバ
ッファ54のデータとピッチメモリのデータとに基いて
、次行における線分Sの左端印字位置LPと右端印字位
置R,とが演算により求められ、最終印字位置E、は左
端印字位置し、と右端印字位置R2との間に位置してい
るか否かが判定され、Yesの時つまりキャリッジ22
のバックラッシュ補正を必要とする時にば313へ移行
する0例えば第5図(b)、(e)に示すように、最終
印字位置Epは線分Fの左端印字位置t、pと右端印字
位置Rpとの間に位置している。
In S12, the left end printing position LP and right end printing position R of the line segment S in the next line are calculated based on the data in the current position memory 51, the data in the print buffer 54, and the data in the pitch memory, and the final printing position is calculated. It is determined whether the print position E is located between the left end print position and the right end print position R2, and if Yes, that is, the carriage 22
For example, as shown in FIGS. 5(b) and 5(e), the final printing position Ep is the left end printing position t, p of the line segment F and the right end printing position. It is located between Rp.

S13では、最終印字位置Epから左端印字位置t、p
を引き算した絶対値は最終印字位置Epから右端印字位
置Rpを引き算した絶対値よりも小さいか否かが判定さ
れ、Yesの時つまりキャリッジ22を最終印字位WE
pから右端印字位置Rpへ移動するよりも左端印字位置
t、pへ移動するほうが近い時にはS14へ移行する(
最短印字制御)。例えば第5図(e)に示す場合である
In S13, from the final printing position Ep to the left end printing position t, p
It is determined whether the absolute value obtained by subtracting is smaller than the absolute value obtained by subtracting the right end printing position Rp from the final printing position Ep. If Yes, that is, the carriage 22 is moved to the final printing position WE.
If it is closer to move to the left end print position t, p than to move from p to the right end print position Rp, the process moves to S14 (
(shortest printing control). For example, there is a case shown in FIG. 5(e).

S14において、左端印字位置t、pと現在位置メモリ
51のデータとに基いて印字ヘッド(キャリッジ22)
が左端印字位置t、pより1文字骨上位側(レフトマー
ジン方向)へ移動される。次の515にて、印字用紙を
設定されたラインスペース分紙送りするなどの改行処理
される。更に、S16において印字ヘッドが左端印字位
’11 L pへ移動される(第5図(e)参照)。
In S14, the print head (carriage 22) is
is moved one character bone above the left end printing positions t and p (towards the left margin). In the next step 515, line feed processing such as feeding the printing paper by the set line space is performed. Furthermore, in S16, the print head is moved to the left end printing position '11 Lp (see FIG. 5(e)).

S17では、印字方向フラグ53のデータに基いて前回
の印字は右方向が否がつまり現在の印字方向フラグ53
のデータが「1」が否かが判定され、この場合、フラグ
53のデータは「1」であルノテ、S6に戻る。又、印
字方向フラグ53のデータがrl、の場合は、318に
移行して、フラグ53のデータが反転(フラグデータが
「1」の時には「0」に、又「o」の時には「1」に変
更)され、S6に戻る。
In S17, based on the data of the printing direction flag 53, it is determined that the previous printing was not in the right direction.
It is determined whether the data of the flag 53 is "1" or not. In this case, the data of the flag 53 is "1" and the process returns to step S6. Also, if the data of the printing direction flag 53 is rl, the process moves to 318, and the data of the flag 53 is inverted (when the flag data is "1", it becomes "0", and when it is "o", it becomes "1"). ) and returns to S6.

一方、313でNoと判定された時つまりキャリッジ2
2を最終印字位置Epから左端印字位置t、pへ移動す
るよりも右端印字位置Rρへ移動するほうが近い時には
319へ移行する0例えば第5図(b)に示す場合であ
る。
On the other hand, when the determination in 313 is No, that is, the carriage 2
When it is closer to move 2 from the final print position Ep to the right end print position Rρ than to the left end print positions t, p, the process moves to 319.0 For example, in the case shown in FIG. 5(b).

S19では、右端印字位MRpと現在位置メモIJ51
のデータとに基いて印字ヘッドが右端印字位WRpより
1文字骨上位側(ライトマージン方向)へ移動される0
次の320にて、印字用紙を設定されたラインスペース
分紙送りするなどの改行処理される。321にて、印字
ヘッドが右端印字位置Rpへ移動される(第5図(b)
参照)。
In S19, the right end printing position MRp and the current position memo IJ51
The print head is moved from the right end printing position WRp to the upper side of the character bone (in the direction of the right margin) based on the data of 0.
In the next step 320, line feed processing such as feeding the printing paper by the set line space is performed. At 321, the print head is moved to the rightmost printing position Rp (FIG. 5(b)
reference).

そして、S22では前回の印字は右方向か否かが判定さ
れ、右方向の時には前記31Bへ移行し、又左方向の時
にはS6に戻る。
Then, in S22, it is determined whether or not the previous printing was in the right direction. If it was in the right direction, the process moves to 31B, and if it was in the left direction, the process returns to S6.

512においてNoと判定された時、即ち最終印字位置
E、は左端印字位fL、と右端印字位置R,との間に位
置していないと判定された時には、キャリッジ22のバ
ックラッシュ補正を必要としないので523へ移行する
0例えば第5図(a)、(c)、(d)に示すように、
最終印字位置E。
When it is determined No in step 512, that is, when it is determined that the final printing position E is not located between the leftmost printing position fL and the rightmost printing position R, backlash correction of the carriage 22 is required. For example, as shown in FIGS. 5(a), (c), and (d),
Final print position E.

は線分Fの左端印字位置Lpと右端印字位置Rpとの間
に位置していない。
is not located between the left end printing position Lp and the right end printing position Rp of the line segment F.

323では、最終印字位置Epから左端印字位WLpを
引き算した絶対値は最終印字位置Epから右端印字位W
Rpを引き算した絶対値よりも小さいか否かが判定され
、Yesの時つまりキャリッジ22を最終印字位ffE
pから右端印字位WRpへ移動するよりも左端印字位置
Lpへ移動するほうが近い(最短印字制御I)時には3
15に移行する0例えば第5図(d)に示す場合である
。又、Noと判定された時つまりキャリッジ22を最終
印字位置Epから左端印字位置しpへ移動するよりも右
端印字位置Rpへ移動するほうが近い時にはS20に移
行する0例えば第5図(a)、(C)に示す場合である
323, the absolute value obtained by subtracting the left end printing position WLp from the final printing position Ep is the right end printing position W from the final printing position Ep.
It is determined whether or not it is smaller than the absolute value obtained by subtracting Rp, and if Yes, that is, the carriage 22 is moved to the final printing position ffE.
3 when moving from p to the left end printing position Lp is closer than moving to the right end printing position WRp (shortest printing control I).
For example, this is the case shown in FIG. 5(d). Further, when the determination is No, that is, when it is closer to move the carriage 22 from the final printing position Ep to the rightmost printing position Rp than from the leftmost printing position P, the process moves to S20. For example, as shown in FIG. 5(a), This is the case shown in (C).

そして、印字方向が左方向となり印字方向フラグ53に
フラグデータ「0」が書き込まれた時には印字が右方向
のときと同様に36〜S23を経て制御される。
Then, when the printing direction is leftward and flag data "0" is written in the printing direction flag 53, control is performed through steps 36 to S23 in the same way as when printing is rightward.

即ち、例えば、第5図(g)の時には86〜S18を経
てキャリッジ22のバックラッシュ補正を含めて往復印
字制御され、第5図(j)の時にはS6〜313・S1
9〜S22を経てキャリッジ22のバックラッシュ補正
を含めて往復印字制御される。又、第5図(f)、(h
)の時にはS6〜S12・S23・S15〜S18を経
てキャリッジ22のバックラッシュ補正されないで往復
印字制御され、更に第5図(i)の時には36〜S12
・S23・S20〜S22を経てキャリッジ22のバッ
クラッシュ補正されないで往復印字制御される。
That is, for example, in the case of FIG. 5(g), reciprocating printing is controlled including backlash correction of the carriage 22 through steps 86 to S18, and in the case of FIG.
Through steps 9 to S22, reciprocating printing is controlled including backlash correction of the carriage 22. Also, Fig. 5 (f), (h
), reciprocating printing is controlled through steps S6 to S12, S23, and S15 to S18 without backlash correction of the carriage 22, and further, in the case of FIG.
- Through S23 and S20 to S22, reciprocating printing is controlled without backlash correction of the carriage 22.

テキストメモリ52の全てのテキストデータが印字され
ると、S8にてYesと判定されてS24へ移行しプリ
ントバッファ54のデータをクリアするなどの印字終了
処理され、S2に戻る。
When all the text data in the text memory 52 has been printed, a YES determination is made in S8, and the process moves to S24, where printing termination processing such as clearing the data in the print buffer 54 is performed, and the process returns to S2.

尚、S5でNoと判定されると525へ移行し、ブザー
を鳴動するなどのアラーム処理されてS2に戻る。又、
S3において、NOと判定された時、即ち印字開始キー
11以外のキーを操作した時にはS26へ移行し、操作
したキーに対応する処理が実行され、S2に戻る。
Note that if the determination is No in S5, the process moves to 525, where an alarm process such as sounding a buzzer is performed, and the process returns to S2. or,
When the determination in S3 is NO, that is, when a key other than the print start key 11 is operated, the process moves to S26, the process corresponding to the operated key is executed, and the process returns to S2.

以上説明したように、最短印字制御を含めて複数行に亙
って印字行単位で往復印字する時に、最終印字位置が次
印字行の左端印字位置と右端印字位置との間に位置する
場合に、印字ヘッドを左端印字位置へ移動する時には印
字ヘッドを左端印字位置より1文字骨上位側へ移動した
後左端印字位置へ移動し、又印字ヘッドを右端印字位置
へ移動する時には印字ヘッドを右端印字位置より1文字
骨上位側へ移動した後右端印字位置へ移動するので各印
字行の各印字文字は同一方向で印字することになる。即
ち、同一行において各文字の文字間隔が一定となり、綺
麗な文書印字をすることが出来る。
As explained above, when performing reciprocating printing for multiple lines including shortest printing control, if the final printing position is located between the leftmost printing position and rightmost printing position of the next printing line, When moving the print head to the left end printing position, the print head is moved one character above the left end printing position, and then moved to the left end printing position, and when moving the print head to the right end printing position, the print head is moved to the right end printing position. After moving one character above the position, it moves to the right end printing position, so each printing character in each printing line is printed in the same direction. That is, the character spacing between each character on the same line is constant, and it is possible to print a document neatly.

尚、上記実施例では、バックラッシュを補正するために
、印字へ、ラドを移動させる時に1文字分乗分に移動さ
せた後、1文字骨灰して正規の位置に移動させるように
したが、1文字に限られるものではなく、要するにキャ
リッジのバックラッシュを補正し得るに十分な移動量で
あれば良い。
In the above embodiment, in order to correct backlash, when moving the Rad to print, it is moved by one character, and then one character is moved to the normal position. It is not limited to characters, and in short, any movement amount sufficient to correct the backlash of the carriage may be used.

更に、前記実施例は印字行単位で往復印字する時につい
て説明したが、本発明はカバーオーブン処理した後のキ
ャリッジの移動にも同様に適用し得ることは勿論である
Furthermore, although the above embodiments have been described with respect to reciprocating printing in units of print lines, it goes without saying that the present invention can be similarly applied to movement of the carriage after cover oven processing.

〔第2実施例〕 前記実施例における往復印字制御では、印字方向を反転
して次印字行を印字する時に、キャリッジを所定量余分
に移動させた後、所定量だけキャリッジを反対方向に戻
すことにより、それ以降のバックラッシュの影響を防止
して文字間隔を一定にしたが、実際には印字方向を反転
して次印字行を印字する時に、現在の印字行と次印字行
とでは各文字の印字位置にズレが生じる。つまり、右方
向で印字した後左方向で印字した各印字位置は、前記右
方向で印字した印字位置より右方にズレる。
[Second Embodiment] In the reciprocating printing control in the above embodiment, when the printing direction is reversed and the next print line is printed, the carriage is moved an extra predetermined amount, and then the carriage is returned in the opposite direction by a predetermined amount. This prevents the effects of backlash and keeps the character spacing constant, but in reality, when the printing direction is reversed and the next printing line is printed, each character is different between the current printing line and the next printing line. A misalignment occurs in the printing position. In other words, each print position that is printed in the right direction and then printed in the left direction is shifted to the right from the print position that is printed in the right direction.

又、左方向印字後に右方向で印字した各印字位置は、左
方向で印字した印字位置よりも左方にズレる。
Further, after printing in the left direction, each print position printed in the right direction is shifted to the left from the print position printed in the left direction.

その位置ズレを回避させるために、前記実施例における
往復印字制御のルーチンを第6図に示すように部分的に
変更し、前述のバックラッシュ補正をした後印字方向が
反転する時には、左方向(右方向)で印字する各印字文
字の印字位置を右方向(左方向)で印字する各印字文字
の印字位置に対応するように、キャリッジ駆動モータの
回転量つまりバックラッシュ補正量を制御するように構
成してもよい。
In order to avoid this positional deviation, the reciprocating printing control routine in the above embodiment is partially changed as shown in FIG. 6, and when the printing direction is reversed after the backlash correction described above, The amount of rotation of the carriage drive motor, that is, the amount of backlash correction, is controlled so that the print position of each character printed in the right direction (right direction) corresponds to the print position of each character printed in the right direction (left direction). may be configured.

即ち、この第2実施例の往復印字制御のルーチンについ
て第6図のフローチャートに基いて説明すると、318
で印字方向フラグ53のデータが反転されてS30へ移
行する。S30にて、印字方向フラグ53のデータは「
1」から「0」に反転されたか否かつまり印字方向が右
方向印字から左方向印字に反転されたか否かが判定され
、YeSのときには331へ移行する。S31では、キ
ャリッジ駆動モータの回転にもかかわらずキャリッジ2
2が実際に移動しないキャリッジ駆動モータの回転量(
バックラッシュ補正量)分キャリッジ駆動モータが逆回
転駆動されて、印字ヘッドが左方向へ所定距離移動され
、S6へ移行する。
That is, the reciprocating printing control routine of this second embodiment will be explained based on the flowchart of FIG. 6.
Then, the data of the printing direction flag 53 is inverted, and the process moves to S30. At S30, the data of the printing direction flag 53 is “
It is determined whether or not the printing direction has been reversed from "1" to "0", that is, whether the printing direction has been reversed from rightward printing to leftward printing, and if Yes, the process moves to 331. At S31, the carriage 2 is not rotated despite the rotation of the carriage drive motor.
2 is the rotation amount of the carriage drive motor that does not actually move (
The carriage drive motor is driven to rotate in the opposite direction by the amount of backlash correction (backlash correction amount), and the print head is moved a predetermined distance to the left, and the process moves to S6.

S30でNOと判定されたときつまり印字方向フラグ5
3のデータが「0」から「IJに反転されたときには、
S32へ移行する。S32では、バックラッシュ補正量
分キャリッジ駆動モータが正回転駆動されて、印字ヘッ
ドが右方向へ所定距離移動され、S6へ移行する。
When the determination is NO in S30, that is, the printing direction flag 5
When the data of 3 is reversed from "0" to "IJ",
The process moves to S32. In S32, the carriage drive motor is rotated forward by the amount of backlash correction, and the print head is moved a predetermined distance to the right, and the process proceeds to S6.

これにより、キャリッジ22は見掛は上も位置ズレのな
い所定の位置に文字印字できる。尚、バックラッシュ補
正量は、実際の位置ズレの距離を計測して求めROM4
0にデータとして記憶させてもよいし、又オペレータが
任意に設定できるようにしてもよい。
Thereby, the carriage 22 can print characters at a predetermined position with no apparent upward positional deviation. The backlash correction amount is calculated by measuring the actual positional deviation distance.
0 may be stored as data, or may be set arbitrarily by the operator.

この往復印字制御のルーチンは第4図或いは第6図に示
すフローチャートに限られるものではなく、第7図に示
すルーチンに変更してもよい。
This reciprocating printing control routine is not limited to the flowchart shown in FIG. 4 or FIG. 6, but may be changed to the routine shown in FIG. 7.

前記実施例においては、活字ホイール式プリンタを備え
た電子タイプライタについて説明したが、本発明はサー
マルプリンタやシャトル式プリンタ及びドツトマトリッ
クス式プリンタを備えたタイプライタにも同様に適用し
得ることは言うまでもない。
In the above embodiment, an electronic typewriter equipped with a type wheel type printer has been described, but it goes without saying that the present invention is equally applicable to typewriters equipped with a thermal printer, a shuttle type printer, and a dot matrix type printer. stomach.

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

第1図は本発明の詳細な説明する機能ブロック図、第2
図〜第5図は本発明の実施例を示すもので、第2図は電
子タイプライタの斜視図、第3図はタイプライタの制御
系のブロック図、第4図は印字制御のルーチンのフロー
チャート、第5図は往復印字制御を説明する図、第6図
は第2実施例の第4図相当部分図、第7図は第2実施例
の変形例に係る第4図相当部分図、第8図は従来の往復
印字制御を説明する図である。 11・・印字開始キー、  22・・キャリッジ、39
・・メインCPU、 40・・ROM。 50・・RAM、 51・・現在位置メモリ、52・・
テキストメモリ、 53・・印字方向フラグ、 C・・
制御装置、 PM・・印字機構。 第6図 第7図
Fig. 1 is a functional block diagram explaining the present invention in detail;
5 to 5 show embodiments of the present invention, FIG. 2 is a perspective view of an electronic typewriter, FIG. 3 is a block diagram of the typewriter control system, and FIG. 4 is a flowchart of the printing control routine. , FIG. 5 is a diagram for explaining reciprocating printing control, FIG. 6 is a partial diagram corresponding to FIG. 4 of the second embodiment, and FIG. 7 is a partial diagram corresponding to FIG. 4 according to a modification of the second embodiment. FIG. 8 is a diagram illustrating conventional reciprocating printing control. 11...Print start key, 22...Carriage, 39
...Main CPU, 40...ROM. 50...RAM, 51...Current position memory, 52...
Text memory, 53...Print direction flag, C...
Control device, PM...printing mechanism. Figure 6 Figure 7

Claims (2)

【特許請求の範囲】[Claims] (1)文字や記号の印字データを記憶するデータメモリ
と、 キャリッジに搭載された印字ヘッドをキャリッジと共に
移動させながら、印字データを印字媒体に印字する印字
手段と、 印字データを印字する時に、キャリッジを印字行単位で
適宜往方向と復方向とに移動させながら往復印字するよ
うに印字手段を制御する往復印字制御手段とを備えた印
字装置において、 前記データメモリのデータに基いて、現在の印字ヘッド
に対応する各印字行の印字終了位置が、次印字行の印字
開始位置と印字終了位置との間に位置しているか否かを
判別する判別手段と、前記判別手段の判別結果に基いて
、現在の印字行の印字完了後次行の印字開始前に、次行
の印字方向を基準として次行の印字開始位置よりも更に
上位側へキャリッジを移動させた後、次行の印字開始位
置へ移動させる制御手段とを設けたことを特徴とする印
字装置。
(1) A data memory that stores print data of characters and symbols; a printing means that prints print data on a print medium while moving a print head mounted on a carriage with the carriage; and a reciprocating printing control means for controlling the printing means to perform reciprocating printing while appropriately moving the printing line in the forward and backward directions in units of printing lines. a determining means for determining whether or not a print end position of each print line corresponding to the head is located between a print start position and a print end position of the next print line, based on the determination result of the determination means; , After the current printing line is completed and before the next line starts printing, move the carriage further above the next line's printing start position based on the next line's printing direction, and then set the next line's print start position. A printing device characterized in that it is provided with a control means for moving the printing device.
(2)前記制御手段は、前記キャリッジを駆動する駆動
手段のバックラッシュを補正するためのバックラッシュ
補正手段を含むことを特徴とする特許請求の範囲第1項
記載の印字装置。
(2) The printing apparatus according to claim 1, wherein the control means includes backlash correction means for correcting backlash of the drive means for driving the carriage.
JP62109589A 1987-05-02 1987-05-02 Printer Pending JPS63274575A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP62109589A JPS63274575A (en) 1987-05-02 1987-05-02 Printer
KR1019880001485A KR880013703A (en) 1987-05-02 1988-02-15 Printing equipment
DE19883884262 DE3884262T2 (en) 1987-05-02 1988-05-03 Device for controlling carriage movement in a printer.
EP19880303981 EP0290219B1 (en) 1987-05-02 1988-05-03 Carriage movement control in a printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62109589A JPS63274575A (en) 1987-05-02 1987-05-02 Printer

Publications (1)

Publication Number Publication Date
JPS63274575A true JPS63274575A (en) 1988-11-11

Family

ID=14514093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62109589A Pending JPS63274575A (en) 1987-05-02 1987-05-02 Printer

Country Status (2)

Country Link
JP (1) JPS63274575A (en)
KR (1) KR880013703A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03197071A (en) * 1989-12-26 1991-08-28 Canon Inc Recorder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03197071A (en) * 1989-12-26 1991-08-28 Canon Inc Recorder

Also Published As

Publication number Publication date
KR880013703A (en) 1988-12-21

Similar Documents

Publication Publication Date Title
EP0267801B1 (en) Electronic typewriter with word correction function
JPH01225987A (en) Character string displaying device
JPS63274575A (en) Printer
JPH0761724B2 (en) Printer
US4881834A (en) Printing apparatus capable of backlash regulation
JPS62246773A (en) Printer
EP0290219B1 (en) Carriage movement control in a printer
JPS62113571A (en) Recorder
JP2560297B2 (en) Output device
JPS63296163A (en) Document processor
JPH01234968A (en) Document editing device
JPS62294578A (en) Printing apparatus
JPS62294575A (en) Printing apparatus
JPS62294576A (en) Printing apparatus
JPS60110481A (en) Electronic typewriter
JPS62181171A (en) Printer
JPH0671811B2 (en) Character erasable printing device
JPS63306052A (en) Impact type dot printer
JPS62294579A (en) Printing apparatus
JPS63297082A (en) Electronic typewriter
JPS62240572A (en) Printing apparatus
JPS6317064A (en) Printer
JPS62240573A (en) Printing apparatus
JPS62269195A (en) String display unit
JPS63286378A (en) Printer