JPH02277682A - Printer control apparatus - Google Patents

Printer control apparatus

Info

Publication number
JPH02277682A
JPH02277682A JP10109689A JP10109689A JPH02277682A JP H02277682 A JPH02277682 A JP H02277682A JP 10109689 A JP10109689 A JP 10109689A JP 10109689 A JP10109689 A JP 10109689A JP H02277682 A JPH02277682 A JP H02277682A
Authority
JP
Japan
Prior art keywords
printing
paper
information
width
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.)
Granted
Application number
JP10109689A
Other languages
Japanese (ja)
Other versions
JP2510283B2 (en
Inventor
Kimihide Hashimoto
公秀 橋本
Ichiro Fujioka
一朗 藤岡
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP1101096A priority Critical patent/JP2510283B2/en
Publication of JPH02277682A publication Critical patent/JPH02277682A/en
Application granted granted Critical
Publication of JP2510283B2 publication Critical patent/JP2510283B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To set left and right margin spaces to the same pattern on both surfaces without conscious of surface/rear faces by simple constitution by performing perfecting printing on the basis of the data relating to a blank space. CONSTITUTION:Front surface printing is performed by a conventional printing control system and, in the case of rear printing, an operation result X of ['paper width data (i)'-'left margin printing impossible width data (m)'-'printing width data (b)'] is stored in a #3 register 13-5 and an operation result Y of ['paper width data (i)'-'left margin printing impossible width data (m)'-'left blank data (a)'] is stored in a #4 register 13-6. Printing is performed from the position corresponding to the above mentioned X to the position corresponding to the above mentioned Y on the basis of the contents of the #3 and #4 registers 13-5, 13-6. At the time of printing, character data is read from the b-column of a line buffer 15 to the a-column thereof reversely up and down in reverse order to perform the printing of one line. By this method, surface/rear faces printing can be performed so as to have the same left and right margin spaces.

Description

【発明の詳細な説明】 〔概要〕 用紙の反転機構をそなえ、用紙の表裏両面の連続印刷を
行うよう構成されたプリンタにおいて。
DETAILED DESCRIPTION OF THE INVENTION [Summary] A printer equipped with a paper reversing mechanism and configured to perform continuous printing on both the front and back sides of paper.

表裏両面における左右の空白スペースが同一となるよう
にするプリンタ制御方式に関し。
Regarding a printer control method that ensures that the left and right blank spaces on both the front and back surfaces are the same.

簡単な構成でもって2両面印刷時に表面/裏面を意識す
ることなく、左右の空白スペースを表裏両面共に同一と
なるようにすることも、綴じ代を表裏両面に設けること
も簡単にできるようにしたプリンタを提供することを目
的とし。
With a simple configuration, you can easily make the left and right blank spaces the same on both the front and back sides, and set binding margins on both sides, without having to be conscious of front/back sides when printing on two sides. Aimed at providing printers.

用紙幅情報が格納される用紙幅記憶手段と1表面印刷時
における印字開始位置を表す第1の情報と、当該表面印
刷時における印字終了位置を表す第2の情報と、 〔上
記用紙幅記憶手段の内容−(予め定められた左端印刷不
能幅情報+上記第2の情報)〕の演算結果を表す第3の
情報と、 〔上記用紙幅記憶手段の内容−(予め定めら
れた左端印刷不能幅情報+上記第1の情報)〕の演算結
果を表す第4の情報とを格納する手段とをそなえ。
a paper width storage means in which paper width information is stored; first information representing a print start position when printing one surface; and second information representing a print end position during printing the first surface; - (predetermined left edge unprintable width information + said second information)]; and [contents of said paper width storage means - (predetermined left edge unprintable width information + said second information)]. information + fourth information representing a calculation result of the first information)].

表裏両面に同一の左右空白部分を有するように両面印刷
を行う場合には2表面印刷時に、上記第1の情報の内容
にもとづく印字開始位置から上記第2の情報の内容にも
とづく印字終了位置までの範囲の印字を繰り返すことに
より各行の印字を行い。
When performing double-sided printing so that both sides have the same left and right blank areas, from the printing start position based on the content of the first information above to the printing end position based on the content of the second information above when printing on two sides. Each line is printed by repeating the printing of the range.

かつ用紙裏面を印刷する際には、上記第3の情報の内容
にもとづく印字開始位置から上記第4の情報の内容にも
とづく印字終了位置までの範囲の印字を繰り返すことに
より各行の印字を行うよう制御し、lIじ代を両面に設
ける場合には、裏面印刷の際に、上記第3の情報に上記
第1の情報を加算した内容にもとづく印字開始位置から
上記第4の情報に上記第1の情報を加算した内容にもと
づく印字終了位置までの範囲の印字を繰り返すことによ
り各行の印字を行うよう制御するように構成した。
In addition, when printing the back side of the paper, each line is printed by repeating printing in the range from the printing start position based on the content of the third information to the printing end position based on the content of the fourth information. control and provide a margin on both sides, when printing on the back side, the fourth information is added to the first information from the printing start position based on the content obtained by adding the first information to the third information. The system is configured to control printing of each line by repeating printing in the range up to the printing end position based on the added information of .

〔産業上の利用分野〕[Industrial application field]

本発明は、用紙の反転機構をそなえ、用紙の表裏両面の
連続印刷を行うよう構成されたプリンタにおいて9表裏
両面における左右の空白スペースが同一となるようにす
るプリンタ制御方式に関する。
The present invention relates to a printer control method for making the left and right blank spaces on both the front and back sides the same in a printer equipped with a paper reversing mechanism and configured to perform continuous printing on both the front and back sides of the paper.

近年、用紙の表面と裏面とを連続して印刷できるように
したプリンタが種々開発されるようになっている。
In recent years, various printers have been developed that are capable of printing continuously on the front and back sides of paper.

本発明は、簡単な同一構成でもって1両面印刷時に表面
/裏面を意識することな(、左右の空白スペースを表裏
両面共に同一パターンとなるようにすることも、綴じ代
を表裏両面に設けることも簡単にできるようにしたプリ
ンタを提供する。
The present invention has a simple and identical configuration so that there is no need to be conscious of the front/back side when printing on both sides (it is possible to make the left and right blank spaces have the same pattern on both the front and back sides, and to provide binding margins on both the front and back sides). To provide a printer that can be easily used.

〔従来の技術〕[Conventional technology]

従来における用紙の表面と裏面とを連続印刷するプリン
タを第8図および第9図に関連して説明する。
A conventional printer that continuously prints on the front and back sides of paper will be described with reference to FIGS. 8 and 9.

第8図は従来例におけるプリンタの機構説明図。FIG. 8 is an explanatory diagram of the mechanism of a conventional printer.

第9図は第8図図示従来例における動作を説明するため
のフローチャートを示す。
FIG. 9 shows a flowchart for explaining the operation in the conventional example shown in FIG.

第8図において5符号1は印字ヘッド、2はプラテンで
、当該プラテン2と印字ヘッドlとの間に図示省略され
た用紙とインクリボンとが挿入され9同じく図示省略さ
れたCPUからの指令により印字ヘッド1が駆動されて
印字される。
In FIG. 8, 5 numeral 1 is a print head, 2 is a platen, and a sheet of paper and an ink ribbon (not shown) are inserted between the platen 2 and the print head 1. The print head 1 is driven to print.

3は用紙検出センサで5用紙の表面を印刷する時に用紙
の先端および後端を検出し、用紙の存在と不存在との期
間をそれぞれ送りパルス数によって測る紙有すカウント
と紙無しカウントとを制御する。
3 is a paper detection sensor 5 that detects the leading edge and trailing edge of paper when printing on the surface of the paper, and measures the period of presence and absence of paper by the number of feed pulses, respectively, and calculates a paper present count and a paper out count. Control.

4は用紙送りローラ、5は用紙吸入/排出口。4 is a paper feed roller, and 5 is a paper intake/discharge port.

6は用紙ガイド、7はガイドドラムで、用紙ガイド6と
共に用紙を反転する際のガイドとなる。
6 is a paper guide, and 7 is a guide drum, which together with the paper guide 6 serves as a guide when reversing the paper.

8は用紙検出センサで、用紙が反転した時の用紙の先端
および後端を検出し、上記用紙検出センサ3と同様に祇
有すカウントと紙無しカウントとを制御する。
A paper detection sensor 8 detects the leading edge and trailing edge of the paper when the paper is reversed, and similarly to the paper detection sensor 3, controls the paper count and paper out count.

Aは印字部で、印字ベンド1.プラテン2.用紙検出セ
ンサ3.用紙送りローラ4.および用紙検出センサ8か
ら構成されている。
A is the printing section, printing bend 1. Platen 2. Paper detection sensor 3. Paper feed roller 4. and a paper detection sensor 8.

また、Bは用紙の反転部で、用紙送りローラ4゜用紙ガ
イド6、およびガイドドラム7から構成されている。
Reference numeral B denotes a paper reversing section, which is composed of a paper feed roller 4°, a paper guide 6, and a guide drum 7.

このように構成された第8図図示プリンタの動作を第9
図図示フローチャートに関連して説明す図示されていな
い本体装置からラインフィード(LF)の実行指令が行
われる(71)。
The operation of the printer shown in FIG.
A line feed (LF) execution command is issued from the main unit (not shown), which will be explained in conjunction with the illustrated flowchart (71).

この実行指令にもとづいて用紙を送るパルスモータの励
磁相を切替え、用紙の送りを開始する(72)。
Based on this execution command, the excitation phase of the pulse motor for feeding the paper is switched, and feeding of the paper is started (72).

用紙の先端が用紙検出センサ3により検出されると、そ
の位置から本体装置により設定された書式に従った第1
行印字位置まで用紙がフィードされた時に、第1行の印
字が開始される(73)。
When the leading edge of the paper is detected by the paper detection sensor 3, the first paper is read from that position according to the format set by the main unit.
When the paper is fed to the line printing position, printing of the first line is started (73).

用紙検出センサ3のオン信号により紙無しカウントをク
リアする(74)。
The paper out count is cleared by the ON signal of the paper detection sensor 3 (74).

用紙検出センサ3によって用紙を検出できない時には1
紙無しカウントをカウントアンプする(75)。
1 when the paper cannot be detected by the paper detection sensor 3.
Amplify the paper out count (75).

紙無しカウントが規定された用紙切れカウントより大き
いかどうかを比較する(76)。
A comparison is made to see if the out-of-paper count is greater than a specified out-of-paper count (76).

紙無しカウントが規定された用紙切れカウントより大き
い場合には、用紙切れ処理を行う(77)。
If the paper out count is greater than the specified paper out count, paper out processing is performed (77).

紙無しカウントをクリア(74)および紙無しカウント
が規定された用紙切れカウントより大きくない場合には
1元に戻り新しい次の実行を繰り返す(78)。
Clear the out-of-paper count (74), and if the out-of-paper count is not greater than the specified out-of-paper count, return to 1 and repeat the next execution (78).

用紙の表面を印字した後9反転部已により用紙は反転さ
れ、用紙先端が用紙検出センサ8によって検出される。
After the front surface of the paper is printed, the paper is reversed by the reversing unit 9, and the leading edge of the paper is detected by the paper detection sensor 8.

その後の動作は、上述した用紙の表面印字と同様である
The subsequent operation is similar to the above-described paper surface printing.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したような従来のプリンタは、裏面印刷の場合には
、用紙の左右および上下の定義が表面印刷の場合と正反
対となる。そのため、裏面印刷の場合には1文字パター
ンデータの上下を逆転させると共に、一部分のデータの
左右を逆転させることにより2表面印刷と裏面印刷との
場合の上記用紙の左右および上下の定義を一致させるよ
うにすることが知られている。
In the conventional printer as described above, when printing on the back side, the definitions of the left and right sides and the top and bottom of the paper are exactly opposite to those when printing on the front side. Therefore, in the case of back side printing, by reversing the top and bottom of the single character pattern data and also reversing the left and right of a part of the data, the left and right and top and bottom definitions of the paper in the case of two side printing and back side printing are made to match. It is known to do so.

しかしながら、左右に設けられる空白スペースは1表面
印刷の場合と裏面印刷の場合とで相違が生しる。また、
綴じ代を設ける場合には、当該綴じ代の空白スペースの
位置は2表面印刷の場合と裏面印刷の場合と一致しない
という問題がある。
However, the blank spaces provided on the left and right sides differ between the case of printing on one side and the case of printing on the back side. Also,
When a binding margin is provided, there is a problem that the position of the blank space of the binding margin is not the same in the case of two-sided printing and the case of back-sided printing.

このような問題の解決を図る手段として1文書作成時に
、左右に設けられる空白スペースが表面印刷用文書と裏
面印刷用文書とに対応するよう考慮して文書作成を行う
ようにすることが考慮される。
As a means of solving this problem, consideration has been given to creating a document in such a way that the blank spaces provided on the left and right sides correspond to the front-side printing document and the back-side printing document. Ru.

または、ソフトウェアにて十分な配慮を行うようにする
ことが考慮される。しかし、前者の手段は文書作成が煩
雑′となるという問題があり、後者の手段は制御が複雑
となるという問題がある。
Alternatively, consideration should be given to providing sufficient consideration in the software. However, the former method has a problem in that document creation is complicated, and the latter method has a problem in that control is complicated.

本発明は1両面印刷時に表面/裏面を意識することなく
簡単に、空白スペースの一致化を可能とし、かつ綴じ化
分の空白スペースが設けられるようにして0両面印刷を
行うプリンタ制御方式を提供することを目的とする。
The present invention provides a printer control method that allows blank spaces to be easily matched without being aware of front/back sides during single-sided printing, and that performs 0-sided printing by providing blank spaces for binding. The purpose is to

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、上記目的を達成するため、用紙幅情報が格納
される用紙幅記憶手段と1表面印刷時における印字開始
位置を表す第1の情報と、当該表面印刷時における印字
終了位置を表す第2の情報と、上記用紙幅記憶手段の内
容−(予め定められた左端印刷不能幅情報+上記第2の
情報)の演算結果を表す第3の情報と、上記用紙幅記憶
手段の内容−(予め定められた左端印刷不能幅情報士上
記第1の情報)の演算結果を表す第4の情報とを格納す
る手段とをそなえ1表裏両面に同一の左右空白部分を有
するように両面印刷を行う場合には表面印刷時に、上記
第1の情報の内容にもとづく゛印字開始位置から上記第
2の情報の内容にもとづく印字終了位置までの範囲の印
字を繰り返すことにより各行の印字を行い、かつ用紙裏
面を印刷する際には、上記第3の情報の内容にもとづく
印字開始位置から上記第4の情報の内容にもとづく印字
終了位置までの範囲の印字を繰り返すことにより各行の
印字を行うよう制御し、$8じ代を両面に設ける場合に
は、裏面印刷の際に、上記第3の情報に上記第1の情報
を加算した内容にもとづく印字開始位置から上記第4の
情報に上記第1の情報を加算した内容にもとづく印字終
了位置までの範囲の印字を繰り返すことにより各行の印
字を行うように制御するようにした。
In order to achieve the above object, the present invention provides a paper width storage means in which paper width information is stored, first information representing the print start position when printing one surface, and first information representing the print end position when printing the first surface. 2, the content of the paper width storage means - (predetermined left edge unprintable width information + the second information), third information representing the calculation result, and the content of the paper width storage means - ( and a means for storing a predetermined left edge unprintable width information (first information above) and fourth information representing the calculation result, and perform double-sided printing so that both the front and back sides have the same left and right blank areas. In this case, when printing the front side, each line is printed by repeating printing in the range from the printing start position based on the content of the first information to the printing end position based on the content of the second information, In addition, when printing the back side of the paper, each line is printed by repeating printing in the range from the printing start position based on the content of the third information to the printing end position based on the content of the fourth information. When the $8 margin is provided on both sides, the fourth information is added to the fourth information from the printing start position based on the first information added to the third information when printing on the back side. Control is performed so that each line is printed by repeating printing in the range up to the print end position based on the added information of 1.

〔作用〕[Effect]

本発明では、空白スペースに関する情報にもとづいて1
両面印刷を行うようにしているため、簡単な構成でもっ
て1両面印刷時に表面/裏面を意識することなく、左右
の空白スペースを表裏両面共に同一パターンにすること
も、綴じ代を表裏両面に設けることも簡単にできるよう
にしたプリンタが提供できる。
In the present invention, 1
Since double-sided printing is possible, with a simple configuration, there is no need to be conscious of front/back sides when printing on one side, and it is also possible to use the same pattern for left and right blank spaces on both front and back sides, and to set binding margins on both front and back sides. We can provide a printer that makes it easy to do this.

〔実施例〕〔Example〕

第1図は本発明によるプリンタの一実施例の機構説明図
、第2図は本発明によるプリンタの一実施例のブロック
図、第3図Aおよび第3図Bは本発明における用紙送り
制御の説明図、第4図は本発明による印刷態様の一実施
例説明図、第5図は第4図図示実施例の裏面印刷時にお
ける印字バッファの文字パターン変換を説明するための
説明図。
FIG. 1 is a mechanical explanatory diagram of an embodiment of a printer according to the present invention, FIG. 2 is a block diagram of an embodiment of a printer according to the present invention, and FIGS. 3A and 3B are explanations of paper feed control in the present invention. FIG. 4 is an explanatory diagram of an embodiment of the printing mode according to the present invention, and FIG. 5 is an explanatory diagram for explaining character pattern conversion of the print buffer during back side printing of the embodiment illustrated in FIG. 4.

第6図は第4図図示実施例の印刷処理のフローチャート
、第7図は本発明による印刷態様の他の一実施例説明図
を示す。
FIG. 6 is a flowchart of the printing process of the embodiment shown in FIG. 4, and FIG. 7 is an explanatory diagram of another embodiment of the printing mode according to the present invention.

第1図図示実施例は、第8図図示従来例から用紙検出セ
ンサ8を削除したものであり、その他の機構的な構成は
第8図図示従来例と基本的に同様である。
The embodiment shown in FIG. 1 is the same as the conventional example shown in FIG. 8, except that the paper detection sensor 8 is removed, and the other mechanical configurations are basically the same as the conventional example shown in FIG. 8.

第1図ないし第3図に関連して本発明に係るプリンタの
基本動作を説明する。なお1図中の符号9は用紙、10
はCPU、11は本体装置、12はCPUl0と本体装
置11とを接続するインターフェース、13は紙有すカ
ウント13−1.用紙幅記憶部13−2.  レジスタ
13−3ないし13−6を有するデータ格納RAM、1
4はプリンタの制御プログラム或いは文字などを記憶す
るプログラム格納ROM、15は一部分の印字を記憶で
きるラインバッファ、16は印字ヘッド1のハンマを駆
動するハンマドライバ、17はモータドライバ、18は
キャリア移動用モータ、19はLF(ラインフィード)
用モータ、20は反転部モータで、各モータ1日ないし
20はモータドライバ17により駆動される。21はキ
ャリア。
The basic operation of the printer according to the present invention will be explained with reference to FIGS. 1 to 3. Note that the code 9 in Figure 1 is paper, and 10
1 is a CPU, 11 is a main unit, 12 is an interface for connecting the CPU 10 and the main unit 11, and 13 is a paper count 13-1. Paper width storage section 13-2. Data storage RAM 1 having registers 13-3 to 13-6
4 is a program storage ROM that stores printer control programs or characters, 15 is a line buffer that can store a portion of printing, 16 is a hammer driver that drives the hammer of the print head 1, 17 is a motor driver, and 18 is for carrier movement. Motor, 19 is LF (line feed)
The motor 20 is a reversing part motor, and each motor 1 to 20 is driven by a motor driver 17. 21 is a career.

22は用紙幅検出センサを表し、その他の符号は第8図
に対応している。
22 represents a paper width detection sensor, and other symbols correspond to those in FIG.

本体装W11からの実行指令により、CPU10は用紙
送りローラ4を回転させ、用紙吸入/排出口5から吸入
した用紙9を印字部Aに送る。
In response to an execution command from the main unit W11, the CPU 10 rotates the paper feed roller 4 and sends the paper 9 sucked in from the paper suction/discharge port 5 to the printing section A.

用紙9が用紙検出センサ3を通過してから送ったパルス
数をデータ格納RAM13に内蔵されている祇有りカウ
ント13−1でカウントを開始する。
After the paper 9 passes the paper detection sensor 3, the number of pulses sent is started to be counted by a counter 13-1 built in the data storage RAM 13.

上記パルス数をカウントしながら第1行印字位置まで用
紙9を送る(第3図Aの■参照)。
While counting the number of pulses mentioned above, feed the paper 9 to the first line printing position (see ■ in FIG. 3A).

第2図図示の機構により用紙9の表面には、印字と改行
とが繰り返され(当該表面印字および後述する裏面印字
の制御態様は第4図ないし第7図に関連して詳細に後述
する)、用紙検出センサ3上に用紙9が存在しなくなる
までカウントを続け。
By the mechanism shown in FIG. 2, printing and line feeds are repeated on the front side of the paper 9 (control modes for front side printing and back side printing will be described in detail later in connection with FIGS. 4 to 7). , and continues counting until the paper 9 no longer exists on the paper detection sensor 3.

その結果を上記データ格納RAM13内に記憶しておく
 (第3図Aの■参照)。
The result is stored in the data storage RAM 13 (see ■ in FIG. 3A).

用紙9の表面印字は、更に最終行まで続けられる(第3
図Aの■参照)。
Printing on the surface of paper 9 continues until the last line (third
(See ■ in Figure A).

表面印字が終了した用紙9は9反転部Bにより反転され
(第3図Aの■参照)、再び印字部Aに入り、用紙検出
センサ3が用紙9の先端を検出するまで用紙9は送られ
る(第3図Bの■参照)。
The paper 9 on which the surface printing has been completed is reversed by the 9 reversing unit B (see ■ in FIG. 3A), enters the printing unit A again, and the paper 9 is fed until the paper detection sensor 3 detects the leading edge of the paper 9. (See ■ in Figure 3B).

用紙検出センサ3は印字ヘッド1との間隔は予め定めら
れていて既知であるので、決められたカウント数だけ用
紙9を送り戻して、裏面の第1行位置に設定する(第3
[iUBの■参照)。
Since the distance between the paper detection sensor 3 and the print head 1 is predetermined and known, the paper 9 is sent back by a predetermined count number and set at the first row position on the back side (the third
[Refer to ■ in iUB).

用紙9を送ったパルス数を祇有りカウント13−1でカ
ウントしつつ印字と改行とを繰り返し。
Printing and line feed are repeated while counting the number of pulses that sent the paper 9 using the count 13-1.

上記第3図Aの■でカウントしたカウント数に達したと
ころで(裏面印刷終了)、用紙9を用紙吸入/排出口5
から排出する(第3図Bの■参照)。
When the count reached the number counted in ■ in Figure 3A above (printing on the back side is completed), transfer the paper 9 to the paper intake/ejection port 5.
(See ■ in Figure 3B).

以上2本発明に係るプリンタにおける基本動作について
説明したが、上記第3図Aの■における表面印刷および
第3図Bの■における裏面印刷の制wJ態様を、第4図
および第7図図示実施例に対応させてそれぞれ説明する
The basic operations of the two printers according to the present invention have been explained above, and the manner of controlling the front surface printing in (■) in FIG. 3A and the back surface printing in (■) in FIG. Each will be explained in conjunction with an example.

先ず、第4図図示実施例における印刷制御態様を第2図
、第5図および第6図と関連づけながら説明する。なお
、第4図(A)は表面、第4図(B)は裏面を示し、左
空白スペースおよび右空白スペースが表面/裏面共に同
様に設けられたものであり、 (イ)は左空白スペース
、 (ロ)は右空白スペース、 (ハ)は印字幅、 (
ニ)は用紙幅。
First, the print control mode in the embodiment illustrated in FIG. 4 will be explained in conjunction with FIGS. 2, 5, and 6. In addition, Figure 4 (A) shows the front side, Figure 4 (B) shows the back side, and the left blank space and right blank space are provided in the same way on both the front and back sides, and (A) shows the left blank space. , (b) is the right blank space, (c) is the printing width, (
D) is the paper width.

(ホ)は左端印字不能幅、 (へ)は右端印字不能幅、
(ト)は印字可能幅を示している。また、第5図(A)
は第2図に図示されてnカラムの容量を有するラインバ
ッファ15における1行分の文字データの格納B様、第
5図(B)は裏面印刷時の文字データ変換態様を示して
いる。
(e) is the left end unprintable width, (f) is the right end unprintable width,
(g) indicates the printable width. Also, Figure 5 (A)
2 shows a storage B of character data for one line in the line buffer 15 having a capacity of n columns, and FIG. 5(B) shows a character data conversion mode when printing on the back side.

第2図図示のデータ格納RAM13内の用紙幅記憶部1
3−2に上記用紙幅(ニ)に対応する用紙幅データi(
iは「用紙幅(ニ)−左端印字不能幅(ホ)」に対応す
るカラム数)、#ルジスタ13−3に左空白スペース(
イ)に対応する左空白データa (aは「左空白スペー
ス(イ)」−「左端印字不能幅(ホ)」に対応するカラ
ム数)。
Paper width storage section 1 in the data storage RAM 13 shown in FIG.
3-2 shows the paper width data i (corresponding to the paper width (d) above).
i is the number of columns corresponding to "Paper width (D) - Left edge unprintable width (E)"), and the left blank space (
Left blank data a corresponding to b) (a is the number of columns corresponding to "left blank space (a)" - "left end unprintable width (e)").

#2レジスタ13−4に印字幅(ハ)に対応する印字幅
データb (bは「左空白スペース(イ)」+「印字幅
(ハ)」−「左端印字不能幅(ホ)」に対応するカラム
数)、#3レジスタ13−5に〔「用紙幅データi」−
「左端印字不能幅データm (mは左端印字不能幅(ホ
)に対応するカラム数)」−[印字幅データbJ)の演
算結果、#4レジスク13−6に〔「用紙幅データi」
−「左端印字不能幅データmJ−r左空白データaJ)
の演算結果が予め格納されている。そして、上記ライン
バッファ15には、第5図(A)に図示されている如く
、#ルジスタ13−3.および#2レジスタ13−4の
内容にもとづいて1行分の文字データが順次格納される
#2 Register 13-4 contains print width data b corresponding to print width (c) (b corresponds to "left blank space (a)" + "print width (c)" - "left edge unprintable width (e)") number of columns) and in #3 register 13-5 [“paper width data i”-
The calculation result of "Left end unprintable width data m (m is the number of columns corresponding to the left end unprintable width (E))" - [Print width data bJ) is stored in #4 registration disk 13-6 as ["Paper width data i"]
- “Left end unprintable width data mJ-r left blank data aJ)
The calculation results are stored in advance. As shown in FIG. 5(A), the line buffer 15 includes #rugisters 13-3. One line of character data is sequentially stored based on the contents of the #2 register 13-4.

第4図(A)に図示されている表面印刷は、従来から行
われている印字制御方式により行う。即ち、第6図(A
)に図示されている如<、#ルジスタ13−3に左空白
データaが格納され(61A)、#2レジスタ13−4
に印字幅データbが格納され(62A)、 当該#ルジ
スタ13−3および#2レジスタ13−4の内容にもと
づいて上記左空白データaに対応する位置から印字起動
され(63A)、第5図(A)に図示されているライン
バッファ15のnカラムからbカラムまで順に文字デー
タが読み出されて1行分の印字が行われる(64A)、
当該bカラムまでの文字データが読み出されて1行分の
印字が終了しく65A)、改行動作(66A)の後1次
行の印字が同様に行われる。
The surface printing shown in FIG. 4(A) is performed using a conventional printing control method. That is, Fig. 6 (A
), left blank data a is stored in the # register 13-3 (61A), and the left blank data a is stored in the #2 register 13-4.
Printing width data b is stored in (62A), and printing is started from the position corresponding to the left blank data a based on the contents of the #register 13-3 and #2 register 13-4 (63A), as shown in FIG. Character data is sequentially read from the n column to the b column of the line buffer 15 shown in (A), and printing for one line is performed (64A).
The character data up to the b column is read and printing for one line is completed (65A), and after the line feed operation (66A), the printing of the first line is performed in the same way.

第4図(B)に図示されている裏面印刷は、第6図(B
)に図示されている如く、#3レジスタ13−5に〔「
用紙幅データi」=「左端印字不能幅データm」−[印
字幅データbJ]の演算結果Xが格納され(61B)、
#4レジスタ136に〔[用紙幅データi」−「左端印
字不能幅データm」−「左空白データaJ]の演算結果
Yが格納される(62B)。そして、上記#3レジスタ
13−5および#4レジスタ13−6の内容にもとづい
て上記Xに対応する位置から上記Yに対応する位置まで
印字が行われる(63B)、当該印字の際には、第5図
(A)に図示されているラインバッファ15のbカラム
からnカラムまで逆順にかつ第5図(B)に図示されて
いる如く上下逆に文字データが読み出されて1行分の印
字が行われる(64B)、このように文字データが読み
出されて1行分の印字が終了しく65B)、改行動作(
66B)の後1次行の印字が同様に行われる。
The reverse printing shown in Figure 4(B) is similar to that shown in Figure 6(B).
), the #3 register 13-5 is set to [“
The calculation result X of "paper width data i" = "left end unprintable width data m" - [printing width data bJ] is stored (61B),
The calculation result Y of [[paper width data i] - "left end unprintable width data m" - "left blank data aJ" is stored in #4 register 136 (62B). Then, the above #3 register 13-5 and Based on the contents of the #4 register 13-6, printing is performed from the position corresponding to the above X to the position corresponding to the above Y (63B). The character data is read out in reverse order from column b to column n of the line buffer 15, and upside down as shown in FIG. 5(B), and printing for one line is performed (64B). The character data is read out and the printing for one line is completed (65B), and the line feed operation (
The printing of the primary line after 66B) is performed in the same manner.

以上説明したように表面/裏面印刷を行うことにより、
第4図に図示されている如く、同様な左右の空白スペー
スを有するように表面/裏面印刷を行うことができる。
By performing front/back printing as explained above,
As illustrated in FIG. 4, front/back printing can be performed with similar left and right blank spaces.

第7図図示印刷態様は綴じ化分の空白スペースを設ける
ようにしたものである。当該印刷態様は前述した第4図
図示印刷態様の場合と裏面印刷において若干異なるもの
の基本的に第4図図示印刷態様の場合と同様な印刷制御
により実現させることができる。即ち、第7図図示綴じ
代幅W1は。
In the printing mode shown in FIG. 7, a blank space is provided for binding. Although this printing mode is slightly different from the above-described printing mode shown in FIG. 4 in the printing on the back side, it can be basically realized by the same printing control as in the case of the printing mode shown in FIG. 4. That is, the binding margin width W1 shown in FIG.

第4図における左空白スペース(イ)に対応しており、
印字幅W2は第4図における印字幅(ハ)に対応してい
る。
It corresponds to the left blank space (a) in Figure 4,
The print width W2 corresponds to the print width (c) in FIG.

第7図図示印刷態様の印刷を行う場合、第2図図示のデ
ータ格納RAM13内の用紙幅記憶部13−2には、第
4図図示印刷態様の際と同様に用紙幅に対応する用紙幅
データiが格納され、#ルジスタ13−3には、lIし
代幅W1に対応する綴じ代幅データa′(第5図(A)
図示左空白データaに対応)が格納され、#2レジスタ
13−4には、印字幅W2に対応する印字幅データd(
第5図(A)図示印字幅データbに対応)が格納される
。そして、#3レジスタ13−5には。
When printing in the printing mode shown in FIG. 7, the paper width storage section 13-2 in the data storage RAM 13 shown in FIG. Data i is stored, and binding margin width data a' (FIG. 5(A)) corresponding to lI margin width W1 is stored in #register 13-3.
The #2 register 13-4 stores print width data d (corresponding to the left blank data a shown in the figure), and the print width data d (corresponds to the print width W2) is stored in the #2 register 13-4.
5(A) corresponding to the illustrated print width data b) is stored. And in #3 register 13-5.

〔用紙幅データi−左端印字不能幅データm−印字幅デ
ータb′十上記綴じ代幅データd〕の演算結果が格納さ
れ、#4レジスタ13−6に〔用紙幅データi−左端印
字不能幅データm〕の演算結果が格納される。
The calculation result of [Paper width data i - Left end unprintable width data m - Print width data b'10+ binding margin width data d] is stored in #4 register 13-6 [Paper width data i - Left end unprintable width data m] is stored.

このように、上記データ格納RAM13の内容を設定し
た上で、第6図図示フローチャートの手順に従って表面
/裏面印刷を行うことにより、第4図図示印刷態様の印
刷を行うことができる。
In this way, by setting the contents of the data storage RAM 13 and performing front/back printing according to the procedure of the flowchart shown in FIG. 6, printing in the printing mode shown in FIG. 4 can be performed.

なお、第2図図示のデータ格納RAM13内の用紙幅記
憶部13−2には、予め用紙幅データiを格納するよう
に説明したが、第2図図示キャリア21に設けられた用
紙幅検出センサ22により用紙幅を検出し、当該用紙幅
データを上記用紙幅記憶部13−2に格納するようにし
ても良い、このようにすることにより、その都度上記用
紙幅データiを入力することなく、上記用紙幅データは
自動的に用紙幅記憶部13−2に格納されることとなる
Although it has been explained that the paper width data i is stored in advance in the paper width storage section 13-2 in the data storage RAM 13 shown in FIG. 2, the paper width detection sensor provided on the carrier 21 shown in FIG. 22 may be used to detect the paper width and store the paper width data in the paper width storage section 13-2. By doing so, the paper width data i can be detected without inputting the paper width data i each time. The paper width data is automatically stored in the paper width storage section 13-2.

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

以上説明した如く2本発明によれば、空白スペースに関
する情報にもとづいて1両面印刷を行うようにしている
ため、簡単な構成でもって1両面印刷時に表面/裏面を
意識することなく、左右の空白部分を表裏両面共に同一
パターンにすることも、lIじ代を表裏両面に設けるこ
とも簡単にできるようにしたプリンタを提供することが
できる。
As explained above, according to the present invention, since single-sided printing is performed based on information regarding blank spaces, the left and right blank spaces can be It is possible to provide a printer in which it is possible to easily make a portion have the same pattern on both the front and back sides, and to provide a same margin on both the front and back sides.

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

第1図は本発明によるプリンタの一実施例の機構説明図
、第2図は本発明によるプリンタの一実施例のブロック
図、第3図Aおよび第3図Bは本発明における用紙送り
制御の説明図、第4図は本発明による印刷態様の一実施
例説明図、第5図は第4図図示実施例の裏面印刷時にお
ける印字バッファの文字パターン変換を説明するための
説明図。 第6図は第4図図示実施例の印刷処理のフローチャート
、第7図は本発明による印刷態様の他の一実施例説明図
、第8図は従来例におけるプリンタの機構説明図、第9
図は第8図図示従来例における動作を説明するためのフ
ローチャートを示す。 図中、lは印字ヘッド、2はプラテン、3は用紙検出セ
ンサ、4は用紙送りローラ、5は用紙吸入/排出口、6
は用紙ガイド、7はガイドドラム。 9は用紙、10はCPU、11は本体装置、12はイン
ターフェース、13はデータ格納RAM。 13−1は紙有りカウント、13−2は用紙幅記憶部、
13−3ないし13−6はレジスタ、14はプログラム
格納ROM、15はラインバッファ。 16はハンマドライバ、17はモータドライバ。 1日はキャリア移動用モータ、19はLF(ラインフィ
ード)用モータ、20は反転部モータ。 21はキャリア、22は用紙幅検出センサを表す。 特許出願人 株式会社ピーエフニー 代理人  弁理士森1)寛(外2名) ネ# !R+4 A・11壜川祇送′鵬・1巾り杖明区
第 3 図(B) 文字11°ノーン7傅゛L閉pノ]Gコ第 、5 ロ →〃う4書l 茅 1叉
FIG. 1 is a mechanical explanatory diagram of an embodiment of a printer according to the present invention, FIG. 2 is a block diagram of an embodiment of a printer according to the present invention, and FIGS. 3A and 3B are explanations of paper feed control in the present invention. FIG. 4 is an explanatory diagram of an embodiment of the printing mode according to the present invention, and FIG. 5 is an explanatory diagram for explaining character pattern conversion of the print buffer during back side printing of the embodiment illustrated in FIG. 4. 6 is a flowchart of the printing process of the embodiment shown in FIG. 4, FIG. 7 is an explanatory diagram of another embodiment of the printing mode according to the present invention, FIG. 8 is an explanatory diagram of the mechanism of the printer in the conventional example, and FIG.
This figure shows a flowchart for explaining the operation in the conventional example shown in FIG. In the figure, l is the print head, 2 is the platen, 3 is the paper detection sensor, 4 is the paper feed roller, 5 is the paper intake/ejection port, 6
is a paper guide, and 7 is a guide drum. 9 is paper, 10 is a CPU, 11 is a main unit, 12 is an interface, and 13 is a data storage RAM. 13-1 is paper count, 13-2 is paper width storage unit,
13-3 to 13-6 are registers, 14 is a program storage ROM, and 15 is a line buffer. 16 is a hammer driver, and 17 is a motor driver. 1st is a carrier moving motor, 19 is an LF (line feed) motor, and 20 is a reversing part motor. 21 represents a carrier, and 22 represents a paper width detection sensor. Patent applicant Pfn Co., Ltd. Agent Patent attorney Hiroshi Mori (2 others) Ne#! R+4 A・11 Tsugawa Gifu'Peng・1 width Tsumeiku 3rd figure (B) Character 11° noon 7ゅ゛L closed pノ] G co No., 5 ro →

Claims (2)

【特許請求の範囲】[Claims] (1)用紙の反転機構をそなえ、用紙の表裏両面の印刷
を行うよう構成されたプリンタにおいて、用紙幅情報が
格納される用紙幅記憶手段と、表面印刷時における印字
開始位置を表す第1の情報と、当該表面印刷時における
印字終了位置を表す第2の情報と、〔上記用紙幅記憶手
段の内容−(予め定められた左端印刷不能幅情報+上記
第2の情報)〕の演算結果を表す第3の情報と、〔上記
用紙幅記憶手段の内容−(予め定められた左端印刷不能
幅情報+上記第1の情報)〕の演算結果を表す第4の情
報とを格納する手段とをそなえ、 表面印刷の際には、上記第1の情報の内容にもとづく印
字開始位置から上記第2の情報の内容にもとづく印字終
了位置までの範囲の印字を繰り返すことにより各行の印
字を行い、かつ裏面印刷の際には、上記第3の情報の内
容にもとづく印字開始位置から上記第4の情報の内容に
もとづく印字終了位置までの範囲の印字を繰り返すこと
により各行の印字を行うように制御されることを特徴と
するプリンタ制御方式。
(1) In a printer equipped with a paper reversing mechanism and configured to print on both the front and back sides of paper, there is a paper width storage unit that stores paper width information, and a first memory unit that indicates the print start position when printing on the front side. information, second information representing the printing end position when printing the front side, and the calculation result of [contents of the paper width storage means - (predetermined left end unprintable width information + second information)] and means for storing fourth information representing the calculation result of [contents of the paper width storage means - (predetermined left edge unprintable width information + the first information)]. In preparation, when printing the front surface, each line is printed by repeating printing in the range from the printing start position based on the content of the first information to the printing end position based on the content of the second information, and When printing on the back side, each line is controlled to be printed by repeating printing in the range from the printing start position based on the content of the third information to the printing end position based on the content of the fourth information. A printer control method characterized by:
(2)上記請求項(1)記載のプリンタ制御方式におい
て、 裏面印刷の場合には、上記第3の情報に上記第1の情報
を加算した内容にもとづく印字開始位置から上記第4の
情報に上記第1の情報を加算した内容にもとづく印字終
了位置までの範囲の印字を繰り返すことにより各行の印
字を行うように制御されることを特徴とするプリンタ制
御方式。
(2) In the printer control method according to claim (1) above, in the case of back side printing, the fourth information is changed from the printing start position based on the content obtained by adding the first information to the third information. A printer control method characterized in that the printer is controlled to print each line by repeating printing in a range up to a print end position based on the content added with the first information.
JP1101096A 1989-04-20 1989-04-20 Printer control method Expired - Fee Related JP2510283B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1101096A JP2510283B2 (en) 1989-04-20 1989-04-20 Printer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1101096A JP2510283B2 (en) 1989-04-20 1989-04-20 Printer control method

Publications (2)

Publication Number Publication Date
JPH02277682A true JPH02277682A (en) 1990-11-14
JP2510283B2 JP2510283B2 (en) 1996-06-26

Family

ID=14291563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1101096A Expired - Fee Related JP2510283B2 (en) 1989-04-20 1989-04-20 Printer control method

Country Status (1)

Country Link
JP (1) JP2510283B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2414964A (en) * 2004-06-07 2005-12-14 Silver Fox Ltd Printing apparatus for printing on both sides of print media
CN113787839A (en) * 2021-09-18 2021-12-14 苏州工业园区鑫海胜电子有限公司 Double-sided printing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61288552A (en) * 1985-06-14 1986-12-18 Ricoh Co Ltd Picture processor
JPS633986A (en) * 1986-06-25 1988-01-08 Canon Inc Perfecting recording apparatus
JPS63236653A (en) * 1987-03-25 1988-10-03 Toshiba Corp Printing region controller in perfecting press

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61288552A (en) * 1985-06-14 1986-12-18 Ricoh Co Ltd Picture processor
JPS633986A (en) * 1986-06-25 1988-01-08 Canon Inc Perfecting recording apparatus
JPS63236653A (en) * 1987-03-25 1988-10-03 Toshiba Corp Printing region controller in perfecting press

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2414964A (en) * 2004-06-07 2005-12-14 Silver Fox Ltd Printing apparatus for printing on both sides of print media
GB2414964B (en) * 2004-06-07 2008-03-19 Silver Fox Ltd Printing apparatus
CN113787839A (en) * 2021-09-18 2021-12-14 苏州工业园区鑫海胜电子有限公司 Double-sided printing method and device

Also Published As

Publication number Publication date
JP2510283B2 (en) 1996-06-26

Similar Documents

Publication Publication Date Title
US7782349B2 (en) Thermal printer and method of controlling the same
JPH02277682A (en) Printer control apparatus
JP4632405B2 (en) Recording apparatus and recording apparatus control method
JP2007320188A (en) Thermal printer and its controlling method
JPH0739197B2 (en) Printer controller
JPH0356549B2 (en)
JPH0289669A (en) Printer control system
JP4201953B2 (en) Serial printer
JPH0745333Y2 (en) Printer
JPH067403Y2 (en) Identification mark reader
JP2789744B2 (en) Printer
JPH07223343A (en) Thermal transfer printer
JPS62246773A (en) Printer
JP4568250B2 (en) Character attribute management system for double-sided printing apparatus and character attribute management method thereof
JPH01135681A (en) Thermal transfer recorder
JP3007094B2 (en) Recording device
JP3083646B2 (en) Video printer
JPH0435174Y2 (en)
JPH01118460A (en) Sheet feeder for printer
JPH074920Y2 (en) Identification mark recording device
JPH0452784B2 (en)
JP2708614B2 (en) Printing method
JPH05318830A (en) Dot printer
JP2690759B2 (en) Recording device
JPH01192579A (en) Recorder

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees