JPH0339282A - Printer - Google Patents

Printer

Info

Publication number
JPH0339282A
JPH0339282A JP17516589A JP17516589A JPH0339282A JP H0339282 A JPH0339282 A JP H0339282A JP 17516589 A JP17516589 A JP 17516589A JP 17516589 A JP17516589 A JP 17516589A JP H0339282 A JPH0339282 A JP H0339282A
Authority
JP
Japan
Prior art keywords
paper
data
paper width
width
image buffer
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
JP17516589A
Other languages
Japanese (ja)
Inventor
Kazuo Kitahata
北畑 一男
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP17516589A priority Critical patent/JPH0339282A/en
Publication of JPH0339282A publication Critical patent/JPH0339282A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To eliminate the variation of a page length even when a paper width changes and to perform the rule connection with the next line by eliminating an actual printing data memory region (image buffer) according to the paper width in the moving direction of a carriage detected by a paper width detector. CONSTITUTION:When the width 11 of paper 300 is equal to or larger than a scheduled printing width 8, data is transmitted to a head driving control part according to the content of an image buffer 301. When said paper width 1 is smaller than the printing width 8, the left and right of the image buffer being actual printing data are respectively eliminated according to the detection result of a paper width detector. For example, when a paper width 6 is narrow and paper is small by 10 dots on the left side thereof and scheduled printing data is printed from the left to the right, data is transmitted to the head driving control part from the data right I by 10 bites from the address 311 of the image buffer 301 shown by a drawing. When the paper is small on the right side, the transmission of data is stopped at the part of the address II being the eliminated result. By this method, the variation of a page length is eliminated.

Description

【発明の詳細な説明】 [産業上の利用分野] 用紙送りのための用紙送りモータ(以下PFモータと記
述する)駆動手段と、用紙の幅を検出する用紙幅検出手
段を有し、該用紙幅検出手段の結果により、キャリッジ
移動方向の印字領域を変更するプリンタに関する。
[Detailed Description of the Invention] [Industrial Application Field] A paper feed motor (hereinafter referred to as PF motor) driving means for feeding the paper, and a paper width detection means for detecting the width of the paper. The present invention relates to a printer that changes the printing area in the direction of carriage movement according to the result of the means.

【従来の技術] 従来の印字装置では1例えば特開昭62−234975
号に示されるように、用紙幅検出器の結果により、左右
のマージンを変更することによって印字領域を定めてい
た。
[Prior art] In conventional printing devices, for example, Japanese Patent Application Laid-Open No. 62-234975
As shown in the issue, the print area was determined by changing the left and right margins based on the results of the paper width detector.

〔発明が解決しようとする課題l しかし、前述の従来技術では、予定していた印字幅(第
4図(a))に対して、実際印字(101)する用紙1
00の幅が小さい場合、印字できない部分が次行に移る
ため予定していた行数が増加する(第4図(b))、そ
の結果、−枚の紙の中に印字する行数C以下、ページ長
と記述する。)が変化し、又罫線を印字する場合次の行
との位置関係が狂うため縦方向の接続が出来ないという
問題点を有する。
[Problem to be Solved by the Invention] However, in the above-mentioned prior art, the paper 1 to be actually printed (101) is
If the width of 00 is small, the part that cannot be printed will move to the next line, so the planned number of lines will increase (Figure 4 (b)), and as a result, the number of lines to be printed on - sheets of paper will be less than C. , page length. ) changes, and when printing a ruled line, the positional relationship with the next line becomes incorrect, making it impossible to connect in the vertical direction.

そこで本発明は、このような問題点を解決するちので、
この目的とするところは、用紙幅が変化してもページ長
の変動をなくし、次行との罫線接続ら可能とするところ
にある。
Therefore, the present invention solves these problems, so
The purpose of this is to eliminate fluctuations in page length even if paper width changes, and to enable ruled line connection with the next line.

[課題を解決するための手段1 本発明のプリンタは、用紙幅検出器の結果により測定さ
れた用紙幅に従い、プリンタ内部のPAM内に確保され
た印字を行うデータの領域(以下、イメージバッファと
記述する。)を左右それぞれ削除することを特徴とする
[Means for Solving the Problems 1] The printer of the present invention uses a data area for printing (hereinafter referred to as image buffer) secured in PAM inside the printer according to the paper width measured by the paper width detector. It is characterized by deleting both the left and right sides.

(作 用1 本発明の上記の構成によれば、用紙幅が変化してち印字
行数が変化しないため、ページ長の変動がむく、また次
行との罫線接続が可能となる。
(Function 1) According to the above configuration of the present invention, the number of printed lines does not change even if the paper width changes, so fluctuations in page length are avoided, and ruled line connection with the next line becomes possible.

[実 施 例] 第1図は1本発明の構成を示す図である。[Example] FIG. 1 is a diagram showing the configuration of the present invention.

プリンタ匍目卸装置は、インターフェース(1/F)制
御部13を介して外部のホストコンピュータ14とのデ
ータのやりとりを行う、ホストコンビュークからは、印
字制御及び改行制御のコマンド及び印字データが送られ
てくる。これらのブタは、I/F部l:3または、RA
M4に一旦蓄積される。I/F部13には、アドレスデ
ータバス8を介してCP IJ 2が接続される。CP
U2は、アドレスデータバス8を介してROM5と接続
され、このROM5内の制御プログラムに従って印字制
(卸を行う、制御プログラムに従い、蓄積されたデータ
を解析し、CPU2は各駆動部分0制御をアドレスデー
タバスを介して行う、CI〕lJ2は、ヘッド9を搭載
し用紙に対し水平方向に移動するキャリッジ(CR)モ
ータ7の駆ナカをCRモータ制御部6を介して、ヘッド
9の駆動をヘッド駆動制御部lOを介して、PFモータ
12の駆動をPFモータ制御部11を介して行う、RA
M4内には、イメージバッファの領域が確保される。
The printer inventory device exchanges data with an external host computer 14 via an interface (1/F) control unit 13. Print control and line feed control commands and print data are sent from the host computer. It's coming. These pigs have I/F part l:3 or RA
It is temporarily stored in M4. A CP IJ 2 is connected to the I/F section 13 via an address data bus 8. C.P.
U2 is connected to the ROM 5 via the address data bus 8, and according to the control program in this ROM 5, prints (distributes), analyzes the accumulated data according to the control program, and the CPU 2 addresses each driving part 0 control. The CI]lJ2 controls the drive of the carriage (CR) motor 7, which carries the head 9 and moves in the horizontal direction relative to the paper, via the CR motor control unit 6, and controls the drive of the head 9 via the data bus. RA that drives the PF motor 12 via the PF motor control unit 11 via the drive control unit 1O.
An area for an image buffer is secured in M4.

このイメージバッファは、印字するためのそのちののデ
ータであり、データのビットは、ヘッドの1つのビンに
相当する。CPU2はアドレスデータバス8を介してR
AMJ内より、このデータを順番に取り出す、データは
、再びアドレスデータバス8を介し、CPtJ2よりヘ
ッド駆動制御部10に送られる。ヘッド駆動制御部lO
では、このデータをラッチし、このデータに従い例えば
、データ内のビットかセットされていればそのビットは
、印字するということであると解釈し、印字するようヘ
ッド9を匍口卸する。
This image buffer is the subsequent data for printing, and a bit of data corresponds to one bin of the head. The CPU 2 receives R via the address data bus 8.
This data is taken out in order from within the AMJ and is sent to the head drive control section 10 from the CPtJ2 via the address data bus 8 again. Head drive control unit lO
Then, this data is latched, and according to this data, for example, if a bit in the data is set, that bit is interpreted as indicating that printing is to be performed, and the head 9 is opened to print.

用紙幅検出器3は、フォトセンサーなどで構成され、用
紙の有無を判断できるようになっており、プリンタ本体
の紙経路上あるいは、印字ヘッドの横に装着されるが、
本特許は紙幅検出器の構造及び位置により制限を受ける
ちのではない。
The paper width detector 3 is composed of a photo sensor, etc., and can determine the presence or absence of paper, and is mounted on the paper path of the printer body or next to the print head.
This patent is not limited by the structure and location of the paper width detector.

印字制御に先立ち、または印字中逐次用紙幅を用紙幅検
出器により検出する。その結果は、RAM4内に記憶さ
れ、用紙幅内に印字結果が収まるよう印字を行う際に参
照される。
Prior to printing control or sequentially during printing, the paper width is detected by a paper width detector. The results are stored in the RAM 4 and referenced when printing so that the print results fit within the paper width.

第2図は、複数のドツト200により文字を構成するド
ツトマトリクスプリンタのイメージバッファ201の構
造例を示す図である0図では、8ドツトによるマトリク
スの例を示す、/(第2図(a))を8ピンドツトマト
リクスプリンタで、左端に印字する場合、イメージバッ
ファには第2図(b)に示すように展開される。つまり
、/゛のデータが、−旦1バイトごとのブタにバラバラ
にされる。そのデータは、バッファのアドレス211よ
り順番に格納される。アドレスは211.212どちら
が下位で6上位でも構わない、左から右へ印字する場合
は、このデータをアドレス211より順番に取り出しそ
のままヘッドにつながるヘッド駆動制御部に転送し、制
御駆動部内でラッチされる。つまり、格納した順番にデ
ータを読み取る。一方、右から左に印字する場合は、ア
ドレス212より順番に取り出す。
FIG. 2 is a diagram showing an example of the structure of an image buffer 201 of a dot matrix printer in which characters are composed of a plurality of dots 200. In FIG. 2, an example of a matrix of 8 dots is shown. ) is printed on the left edge with an 8-pin dot matrix printer, it is developed in the image buffer as shown in FIG. 2(b). In other words, the data in /' is broken up into 1-byte byte groups. The data is stored in order starting from address 211 of the buffer. It doesn't matter which address is 211 or 212, whichever is lower or 6 is higher. When printing from left to right, this data is taken out in order from address 211 and transferred as it is to the head drive control unit connected to the head, and is latched in the control drive unit. Ru. In other words, data is read in the order it was stored. On the other hand, when printing from right to left, the data are taken out in order starting from address 212.

つまり、格納した罷後の方からデータを取り出す、また
、例えば左スペースを5ドツト追加する場合はスペース
のデータ(ooh)が5バイト、イメージバッファにア
ドレス■より追加される(第2図(c))、印字する際
には、上記と同様にアドレス■から順番にデータが取り
出される。
In other words, if data is retrieved from the stored end, or if, for example, 5 dots are added to the left space, 5 bytes of space data (ooh) are added to the image buffer from address ■ (Figure 2 (c) )), when printing, data is taken out in order from address ■ in the same way as above.

第3図は、本発明の一実施例を示す図である。FIG. 3 is a diagram showing an embodiment of the present invention.

予定していた印字幅8(第3図(a))に対し用紙30
0の用紙幅11が等しいまたは、大きい場合は、イメー
ジバッファ301の内容通りヘッド駆動制御部にデータ
を転送する(第3図(b))、小さい場合は、実際の印
字データであるイメージバッファを用紙幅検出器の検出
結果に従い左右をそれぞれ削除する。例えば用紙幅6が
狭く左側が10ドツト分小さく、予定していた印字デー
タが第3図(C)で、左から右に印字するとき1図に示
すイメージバッファ301のアドレス311から、lO
バイト右Iのデータよりヘッド駆動制御部にデータを転
送する。また、右側が小さい場合は、削除した結果であ
るアドレス11の部分で、データの転送を停止すればよ
い、このような印字制御を行ったときに得られる印字結
果を第3図(d)に示す。
The paper size was 30 mm for the planned print width of 8 (Figure 3 (a)).
If the paper width 11 of 0 is equal or larger, the data is transferred to the head drive control unit according to the contents of the image buffer 301 (Fig. 3(b)); if it is smaller, the image buffer containing the actual print data is transferred. Delete the left and right sides respectively according to the detection results of the paper width detector. For example, if the paper width 6 is narrow and the left side is 10 dots smaller, and the planned print data is as shown in FIG.
Data is transferred to the head drive control section from the data of the right byte I. In addition, if the right side is small, data transfer can be stopped at address 11, which is the result of deletion. The print result obtained when performing such print control is shown in Figure 3 (d). show.

一方、右から左に印字する場合で、右側が予定していた
印字幅より小さいときは、アドレス312の方向から■
のほうへ、小さい幅の分アドレスを戻したところつまり
アドレス1■から始めればよい。また左側が小さい場合
は、削除した結果であるアドレスIの部分でデータの転
送を停止する。
On the other hand, when printing from right to left, if the right side is smaller than the planned printing width, from the direction of address 312
You can start from address 1■, which is where the address is moved back by a smaller width. If the left side is smaller, data transfer is stopped at address I, which is the result of deletion.

〔発明の効果J 以上述べたように本発明によれば、用紙幅検出器の結果
に従いイメージバッファを削除することにより、用紙幅
が変化して6ページ長は変化せず、また次行との罫線接
続が可能となる。
[Effect of the invention J As described above, according to the present invention, by deleting the image buffer according to the result of the paper width detector, the paper width changes but the 6 page length does not change, and the difference between the next line and Ruled line connections are possible.

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

第1図は、本発明の構成を示す図。 第2図は、イメージバッファの構造を示す図。 第3図は、本発明の説明する図。 第4図は、従来の印字結果を示す図である。 プリンタ制御装置 PU 用紙幅検出器 AM OM I: )゛ハフ11・18p1! 第1 図 ノ (b) 第2図 3n ■312 (d) 第3図 第4:1 FIG. 1 is a diagram showing the configuration of the present invention. FIG. 2 is a diagram showing the structure of an image buffer. FIG. 3 is a diagram explaining the present invention. FIG. 4 is a diagram showing conventional printing results. printer control device P.U. paper width detector A.M. OM I:) ゛Huff 11.18p1! 1st figure of (b) Figure 2 3n ■312 (d) Figure 3 Chapter 4:1

Claims (1)

【特許請求の範囲】 印字ヘッドを搭載したキャリッジを、キャリッジ(CR
)モータにより用紙送り方向と直角な方向に往復運動さ
せて用紙上に文字等を印刷する手段と、印字動作後必要
に応じて用紙送り(PF)モータ駆動手段により用紙送
りを行う手段と、実印字データを記憶する手段と、キャ
リッジ移動方向の用紙幅を検出する用紙幅検出手段を有
する、シリアル式のプリンタに於て、 前記用紙幅検出器により検出されたキャリッジ移動方向
の用紙幅に従って、実印字データ記憶領域(イメージバ
ッファ)を削除することを特徴とするプリンタ。
[Claims] The carriage on which the print head is mounted is a carriage (CR).
) A means for printing characters, etc. on paper by reciprocating the paper in a direction perpendicular to the paper feeding direction by a motor, a means for feeding the paper by means of a paper feed (PF) motor drive means as necessary after the printing operation, and a means for transferring the actual print data. In a serial printer having a storage means and a paper width detection means for detecting the paper width in the carriage movement direction, actual print data is stored according to the paper width in the carriage movement direction detected by the paper width detector. A printer characterized by deleting an area (image buffer).
JP17516589A 1989-07-06 1989-07-06 Printer Pending JPH0339282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17516589A JPH0339282A (en) 1989-07-06 1989-07-06 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17516589A JPH0339282A (en) 1989-07-06 1989-07-06 Printer

Publications (1)

Publication Number Publication Date
JPH0339282A true JPH0339282A (en) 1991-02-20

Family

ID=15991403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17516589A Pending JPH0339282A (en) 1989-07-06 1989-07-06 Printer

Country Status (1)

Country Link
JP (1) JPH0339282A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6234694B1 (en) * 1997-07-29 2001-05-22 Ascom Hasler Mailing Systems Inc. Media control to eliminate printing images beyond the media boundaries
US6909525B1 (en) * 1999-06-18 2005-06-21 Oki Data Corporation Facsimile machine and image margin adjustment method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6234694B1 (en) * 1997-07-29 2001-05-22 Ascom Hasler Mailing Systems Inc. Media control to eliminate printing images beyond the media boundaries
US6909525B1 (en) * 1999-06-18 2005-06-21 Oki Data Corporation Facsimile machine and image margin adjustment method

Similar Documents

Publication Publication Date Title
US4769648A (en) Dot-printing device with independently operated data-processing units
US20030007180A1 (en) Printing control method for long pages
JP2007164773A (en) Image forming system, recorder for the system and image forming method
JPH0948154A (en) Serial type printer
JPH0339282A (en) Printer
US4956717A (en) Method of and apparatus for controller duplex page printer
JP3127091B2 (en) Additional printing processing method
JPS58117036A (en) Print controller
JP2000006483A (en) Printer, print command generation apparatus and printing system
JPH0519472B2 (en)
JP2704264B2 (en) Recording device
JP2844731B2 (en) Print data processing device
JP3098435B2 (en) Control system for multiple thermal heads
JPH1158891A (en) Recording system, recording method, and memory medium
JP3326042B2 (en) Printing system
JPH0615927A (en) Output method and device
JP2984156B2 (en) Recording method and apparatus
JP3703363B2 (en) Image data conversion circuit, recording apparatus having the circuit, and image data conversion method
JP2001270177A (en) Serial printer
JP3183188B2 (en) Inkjet printer
JP2767245B2 (en) Printhead print control method
JP2690759B2 (en) Recording device
JP2535623Y2 (en) Ink ribbon end detection device
JPH04103376A (en) Printer device
JPH01101174A (en) Dot matrix printer