JPS62234975A - Automatic margin setting device of printer - Google Patents

Automatic margin setting device of printer

Info

Publication number
JPS62234975A
JPS62234975A JP5264386A JP5264386A JPS62234975A JP S62234975 A JPS62234975 A JP S62234975A JP 5264386 A JP5264386 A JP 5264386A JP 5264386 A JP5264386 A JP 5264386A JP S62234975 A JPS62234975 A JP S62234975A
Authority
JP
Japan
Prior art keywords
paper
margin
printer
value
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5264386A
Other languages
Japanese (ja)
Inventor
Kazuhiro Yasugata
安形 一宏
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.)
NEC Home Electronics Ltd
NEC Corp
Original Assignee
NEC Home Electronics Ltd
Nippon Electric Co 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 NEC Home Electronics Ltd, Nippon Electric Co Ltd filed Critical NEC Home Electronics Ltd
Priority to JP5264386A priority Critical patent/JPS62234975A/en
Publication of JPS62234975A publication Critical patent/JPS62234975A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the necessity for performing setting at each time when new paper is inserted even if the new paper has a size same to or different from that of the previous paper and the insert position thereof is different, by setting the margin position of the paper from the positions at both ends of the paper detected by a paper detector. CONSTITUTION:A paper both-end detection means 10 and a paper margin position setting means 20 are provided on a printer. The position where a printing head 6 moves to the leftmost side is set to 'O' as the origin and the position of each point from the origin on paper is measured in the right-hand direction. The printing head 6 moves to the left until detects paper absent state and the paper detector 1 carried on the head 6 is shifted from the left end of the paper and the detection signal thereof is blocked to detect the left end of the paper. The printing head 6 moves to the right and the right end C of the paper is detected and stored. A left margin lm is added to the value of the left end A to obtain the value of the left margin position X of the paper and right margin rm is added to the value of the right end C to obtain the value of the right margin position Y of the paper. In actual printing, the signals of the left end L and right end R of printing are generated, and X and L as well as Y and R are compared and coincidence values are respectively set as left and right margin positions.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はコンピューターあるいはワードプロセッサー等
の出力装置として用いられるプリンターに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer used as an output device for computers, word processors, and the like.

[従来の技術] 従来、この種のプリンターは用紙の大きさが変わると、
その都度マージン設定を行わなければならなかった。
[Conventional technology] Conventionally, when the paper size changes, this type of printer
Margins had to be set each time.

[発明が解決しようとする問題点] 即ち、寸法が以前と異なる用紙を使用する場合、マージ
ン設定を行わなければ、用紙いっばいに印刷することが
できないか、あるいはまた、用紙をはみだして印字する
ようになるという問題が起る。
[Problems to be Solved by the Invention] That is, when using paper with different dimensions than before, if margins are not set, it may not be possible to print on the paper all at once, or the printing may extend beyond the paper. The problem arises that it becomes like this.

[問題点を解決するための手段] このような問題点を、発明者は自動的にマージン位置を
設定する装置によって解決した。すなわち、この装置は
、 プラテンに沿フて往復運動をする、ハンマーバンクの上
に設けられた印字ヘッドによって印刷するプリンターで
、その印刷部に印刷用紙が装填されているか否かを検出
する用紙検出装置を、該ハンマーバンクあるいは該印字
ヘッドのいずれかの上に設けたプリンターに装着された
ものであって、 a)該用紙検出装置からの信号に基き、用紙の両端の位
置を検出する、用紙両端検出手段と、b)検出された両
端の位置から、用紙のマージン位置を設定する、マージ
ン位置設定手段とを有することを特徴とする、プリンタ
ーの自動マージン設定装置である。
[Means for Solving the Problems] The inventor solved these problems by using a device that automatically sets the margin position. In other words, this device is a printer that prints using a print head installed on a hammer bank that reciprocates along a platen, and has a paper detection device that detects whether printing paper is loaded in the printing section. a) a paper detecting device for detecting the positions of both ends of the paper based on signals from the paper detecting device; An automatic margin setting device for a printer is characterized in that it has a both-end detection means and b) a margin position setting means for setting a margin position of a sheet based on the detected positions of both ends.

なお、用紙検出装置を印字装置の往復運動をする部分に
設けたこのプリンターは、本発明者の発明として同時に
特許出願中である。本発明はこの発明のプリンターに、
自動マージン設定装置を付加したものである。
Note that this printer, in which a paper detection device is provided in a reciprocating portion of the printing device, is currently pending for a patent as an invention by the present inventor. The present invention provides a printer according to the present invention,
An automatic margin setting device is added.

[実施例] 本発明を実施例の図面により説明する。第1図は本発明
の構成を示す全体構成図、第2図は用紙と用紙マージン
位置との関係を示す説明図、第3図はこの装置の作用を
示すフローチャート、第4図は本発明の具体例を示す工
程図である。
[Example] The present invention will be explained with reference to drawings of an example. FIG. 1 is an overall configuration diagram showing the structure of the present invention, FIG. 2 is an explanatory diagram showing the relationship between sheets and paper margin positions, FIG. 3 is a flowchart showing the operation of this device, and FIG. 4 is a diagram showing the structure of the present invention. It is a process diagram showing a specific example.

第1図において、ガイドシャフト3上をプラテン2に沿
って往復運動する、ハンマーバンク4上に、印字ヘッド
6が設けられている。ペーパーエンプティー検出用の用
紙検出装置1は、この印字ヘッド6の上に設けられてい
る。また、ハンマーバンク4はハンマーバンク駆動装置
(第4図参照)によって駆動される。
In FIG. 1, a print head 6 is mounted on a hammer bank 4 that reciprocates along a platen 2 on a guide shaft 3. A paper detection device 1 for detecting paper empty is provided above this print head 6. Further, the hammer bank 4 is driven by a hammer bank drive device (see FIG. 4).

このプリンターの上に、a)用紙の用紙両端検出手段1
0と、b)用紙のマージン位置設定手段20とが新たに
設けられている。なお、このプリンターには、用紙検出
装置1が既に印字ヘッドの上に設けられている。
On this printer, a) Paper both ends detection means 1
0, and b) paper margin position setting means 20 are newly provided. Note that in this printer, the paper detection device 1 is already provided on the print head.

第2図において、印字ヘッドが最左側に寄ったときの位
置を“0”とし、ここを原点として右側方向に紙上の各
点の位置を測るものとする。用紙幅をW、左マージンを
1m、右マージンをrmとし、左マージン位置をX、右
マージン位置をY、用紙Pの左端をA、右端をC1印字
ヘッドが任意に左右に掘れるとき、その左右の位置をり
、 R(それぞれ原点0からの距111i)とする。
In FIG. 2, the position when the print head is closest to the left side is defined as "0", and the position of each point on the paper is measured in the right direction from this point as the origin. The paper width is W, the left margin is 1m, the right margin is rm, the left margin position is X, the right margin position is Y, the left edge of paper P is A, and the right edge is C1. Let the position be R (each distance 111i from the origin 0).

これらの手段およびプリンター間の作用を第3図のフロ
ーチャートにより説明する。
The interaction between these means and the printer will be explained with reference to the flowchart of FIG.

第1図および第3図において、プリンターがスタートし
、 ■用紙無の状態より用紙が挿入され、これが印字ヘッド
上に設けられでいる用紙検出装置1により用紙有の状態
が検出される。(はじめ印字ヘッドは中央付近にある) ■ ■の状態が検出されると1〜2秒待ち誤挿入誤動作
でないことが用紙検出装置1によりチェックされる。
In FIGS. 1 and 3, the printer is started, (1) paper is inserted from a state of no paper, and the presence of paper is detected by the paper detection device 1 provided on the print head. (Initially, the print head is near the center.) (1) When the condition (2) is detected, the sheet detection device 1 waits for 1 to 2 seconds and checks that there is no erroneous insertion malfunction.

01〜2秒後も用紙有の状態が検出されると、次に印字
ヘッドを用紙無の状態を検出するまで左へ移動する。
If the presence of paper is detected even after 01 to 2 seconds, the print head is then moved to the left until the state of no paper is detected.

■用紙検出装置1が用紙の左端から外れ、用紙検出信号
が断たれることにより用紙の左端Aを検出する。
(2) The paper detection device 1 comes off the left edge of the paper and the paper detection signal is cut off, thereby detecting the left edge A of the paper.

■ ■により検出された位置をAとする。この場合印字
ヘッド6と用紙検出装置1との距離を考慮に入れてAの
値を検出記憶する。(以下同様)0次に印字ヘッドを右
へ移動する。
■ Let A be the position detected by ■. In this case, the value of A is detected and stored in consideration of the distance between the print head 6 and the paper detection device 1. (Similarly below) Move the print head to the right in the 0th order.

■再び用紙検出信号が検出される。■The paper detection signal is detected again.

■ ■と同様に用紙検出装置1が用紙の右端から外れる
ことにより、用紙の右端Cを検出する。
(2) Similarly to (2), when the paper detecting device 1 comes off the right edge of the paper, the right edge C of the paper is detected.

■ ■と同様にCの値を検出記憶する。■ Detect and store the value of C in the same way as in ■.

[相] ■で検出されたAの値に左余白1mが加算され
用紙の左マージン位置Xの値が得られる。
[Phase] A left margin of 1 m is added to the value of A detected in step (3) to obtain the value of the left margin position X of the paper.

■ ■で検出された右余白rmが減算され用紙の右マー
ジン位置Yの値が得られる。
(2) The right margin rm detected in (2) is subtracted to obtain the value of the right margin position Y of the paper.

■実際の印字に当っては印字の左端りと右端Rの信号が
発生される。
(2) During actual printing, signals for the left edge and right edge R of printing are generated.

@XとLが比較され、一致した値が左マージン位置とさ
れる。
@X and L are compared and the matched value is set as the left margin position.

[相]同様にYとRが比較され、一致した値が右マージ
ンとされる。
[Phase] Similarly, Y and R are compared, and the matched value is set as the right margin.

次にこの装置の具体的な実施例の工程図を第4図に示す
Next, a process diagram of a specific embodiment of this device is shown in FIG.

第4図において、印字ヘッドを移動させるための、ステ
ッピングモーター駆動回路100より出るパルスを利用
し、印字最左端でクリアされたカウンタ■101および
カウンタ■102をアップさせ、それぞれ用紙左端およ
び右端位置でカウンタ■101および■102をストッ
プさせる。この値に加算器111および減算器112に
より、それぞれ用紙左および右余白を加えて比較器12
1および122に人力する。実際に印字する際は印字ヘ
ッドを移動させることによりアップするカウンタ■10
3を使用し、比較器に格納されている値と比較し、右マ
ージン、左マージンを判断する。
In FIG. 4, the pulses output from the stepping motor drive circuit 100 for moving the print head are used to increase the counter 101 and the counter 102, which were cleared at the leftmost edge of printing, so that the counters 101 and 102 are cleared at the leftmost and rightmost positions of the paper, respectively. Counters 101 and 102 are stopped. Adder 111 and subtracter 112 add the left and right margins of the paper to this value, and comparator 12
1 and 122 by hand. When actually printing, the counter increases by moving the print head■10
3 is used and compared with the value stored in the comparator to determine the right margin and left margin.

以上説明したように、本発明は既製のプリンターに、最
小限の手段を付は加えることによって実現したものであ
る。付は加えられた各手段は、コンピューターあるいは
ワードプロセッサーを構成する装置の中に、すべて組み
込むことができるので、部品等増加する要素はほとんど
ない。
As explained above, the present invention was realized by adding a minimum number of means to an existing printer. Since all of the added means can be incorporated into the device constituting the computer or word processor, there are almost no additional elements such as parts.

また配線等も印字ヘッドの駆動用の配線(フレキシブル
ケーブル等)と共用すること等により、はとんど増加は
ない。
In addition, since the wiring and the like are shared with the wiring for driving the print head (flexible cables, etc.), there is almost no increase in the number of wiring.

また、これらの手段はすべて在来のありふれたもので充
分であり、公知のものであるので詳細な説明は省略する
Further, all of these means are conventional and common ones and are well known, so detailed explanations will be omitted.

[発明の効果コ 本発明により、新しい用紙が挿入されたとき、以前の用
紙と大きさが同じでも異なっても、また挿入位置が異な
っても、その都度マージン設定を行う必要はなくなり、
直ちに印字を行うことができるようになった。
[Effects of the Invention] According to the present invention, it is no longer necessary to set margins each time a new sheet is inserted, whether the size is the same or different from the previous sheet, or whether the insertion position is different.
Now you can print immediately.

また、一定の形(長方形)の用紙に限らず、例えば円形
または三角形のような、特殊の形状の用紙への印刷も可
能となった。
Furthermore, it has become possible to print not only on paper of a fixed shape (rectangle) but also on paper of special shapes, such as circular or triangular shapes.

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

第1図は本発明の構成を示す全体構成図、第2図は用紙
と用紙マージン位置との関係を示す説明図、第3図はこ
の装置の作用を示すフローチャート、第4図は本発明の
具体例を示す工程図である。 1・・・用紙検出装置、 6・・・印字ヘッド、 10・・・紙幅検出手段、 20・・・マージン位置設定手段。
FIG. 1 is an overall configuration diagram showing the structure of the present invention, FIG. 2 is an explanatory diagram showing the relationship between sheets and paper margin positions, FIG. 3 is a flowchart showing the operation of this device, and FIG. 4 is a diagram showing the structure of the present invention. It is a process diagram showing a specific example. DESCRIPTION OF SYMBOLS 1...Paper detection device, 6...Print head, 10...Paper width detection means, 20...Margin position setting means.

Claims (1)

【特許請求の範囲】 プラテンに沿って往復運動をする、ハンマーバンクの上
に設けられた印字ヘッドによって印刷するプリンターで
、その印刷部に印刷用紙が装填されているか否かを検出
する用紙検出装置を、該ハンマーバンクあるいは該印字
ヘッドのいずれかの上に設けたプリンターに装着された
ものであって、 a)該用紙検出装置からの信号に基き、用紙の両端の位
置を検出する、用紙両端検出手段と、b)検出された両
端の位置から、用紙のマージン位置を設定する、マージ
ン位置設定手段とを有することを特徴とする、プリンタ
ーの自動マージン設定装置。
[Claims] A paper detection device for detecting whether or not printing paper is loaded in the printing section of a printer that prints using a print head provided on a hammer bank that reciprocates along a platen. is mounted on a printer provided on either the hammer bank or the print head, the printer having: a) a paper both edge detector that detects the positions of both edges of the paper based on signals from the paper detection device; 1. An automatic margin setting device for a printer, comprising: a detecting device; and b) a margin position setting device for setting a margin position of a sheet based on the detected positions of both ends.
JP5264386A 1986-03-12 1986-03-12 Automatic margin setting device of printer Pending JPS62234975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5264386A JPS62234975A (en) 1986-03-12 1986-03-12 Automatic margin setting device of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5264386A JPS62234975A (en) 1986-03-12 1986-03-12 Automatic margin setting device of printer

Publications (1)

Publication Number Publication Date
JPS62234975A true JPS62234975A (en) 1987-10-15

Family

ID=12920516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5264386A Pending JPS62234975A (en) 1986-03-12 1986-03-12 Automatic margin setting device of printer

Country Status (1)

Country Link
JP (1) JPS62234975A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH045068A (en) * 1990-04-23 1992-01-09 Pfu Ltd Printer having automatic adjusting function for left margin blank
JP2007098760A (en) * 2005-10-04 2007-04-19 Seiko Epson Corp Recorder, recording control program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH045068A (en) * 1990-04-23 1992-01-09 Pfu Ltd Printer having automatic adjusting function for left margin blank
JP2007098760A (en) * 2005-10-04 2007-04-19 Seiko Epson Corp Recorder, recording control program

Similar Documents

Publication Publication Date Title
JPS62234975A (en) Automatic margin setting device of printer
US5169249A (en) Printer control device and method thereof
US5087134A (en) Method of and device for printer control
EP0533400B1 (en) Paper width detecting device in a printing
EP0249794A2 (en) Automatic stop code insertion feature for a word processing apparatus
JPH0747347B2 (en) Reciprocating printing method
JPS61258774A (en) Paper position detecting mechanism for serial printer
JPS58201683A (en) Automatic setting system of paper in printer
JPS6111277A (en) Printer
EP3915794A1 (en) Sheet feeding device and image forming apparatus incorporating same
JP2808688B2 (en) Printer
JPH02158367A (en) Printer control method
JP2749949B2 (en) Media state detection method
JPS6354268A (en) Paper detector for printer
JPH0335110B2 (en)
JP2860577B2 (en) Time clock with double printing prevention function
JPH0664285A (en) Printer
JPS61254367A (en) Printer-controlling circuit
JPH044588B2 (en)
JPH0313989B2 (en)
JPH0422821B2 (en)
JPS61179747A (en) System for controlling space of printer
JPH01122864A (en) Automatic original feeding device
JPS6090791A (en) Controlling system for stoppage of carrier
JPH0350688A (en) Mark reading system