JPH04135780A - Controlling circuit for printing start position of serial printer - Google Patents

Controlling circuit for printing start position of serial printer

Info

Publication number
JPH04135780A
JPH04135780A JP25778290A JP25778290A JPH04135780A JP H04135780 A JPH04135780 A JP H04135780A JP 25778290 A JP25778290 A JP 25778290A JP 25778290 A JP25778290 A JP 25778290A JP H04135780 A JPH04135780 A JP H04135780A
Authority
JP
Japan
Prior art keywords
head
data
printing
control part
printer
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
JP25778290A
Other languages
Japanese (ja)
Inventor
Makoto Sugino
杉野 眞
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP25778290A priority Critical patent/JPH04135780A/en
Publication of JPH04135780A publication Critical patent/JPH04135780A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To prevent shear in a printing position from being generated by a method wherein CCD sensors are provided to both ends of a printer print head, and a data analysing part analysing a data from this CCD sensor and a control part determining a start position of printing by the analysed result, are established. CONSTITUTION:A data concerning the order of a framework for printing when counted from an edge and printing data are sent to a printer control part 1 from a host computer 2. The printer control part 1 sends an indication for transferring a head to a head control part 5 to move the head with the head control part 5. A pair of CCD sensors 4 send variation of light, darkness, and light from a edge of paper, and detects a longitudinal straight line by detecting a width of the darkness herein. It sends a detected result to the printer control part 1. The printer control part 1, when a number of frames indicated with the host computer 2 is reached, sends the printing data to the head control part 5 to start printing.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシリアルプリンタ印字開始位置制御回路に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a print start position control circuit for a serial printer.

〔従来の技術〕[Conventional technology]

従来のプリンタ印字機構は、第4図に示すように、印字
ヘッドの左右の端を検出する機構をもっている。ヘッド
の位置を検出するためには、電源が入った時点で、プリ
ンタ制御部1の指示により、ヘッドの端検出器10より
の出力があるまで、右端に動かし、待機状態になる。ホ
ストコンピュータ2よりのデータ入力があったとき、ヘ
ッド制御部5のヘッド駆動用のパルスモータを動かし、
ヘッド移動部8で決められた位置までヘッドを動かす。
The conventional printer printing mechanism has a mechanism for detecting the left and right ends of the print head, as shown in FIG. In order to detect the position of the head, when the power is turned on, the head is moved to the right end according to an instruction from the printer control section 1 until an output is received from the head end detector 10, and the head is placed in a standby state. When data is input from the host computer 2, the pulse motor for driving the head of the head control unit 5 is operated.
The head is moved to a determined position by a head moving section 8.

この位置制御は、ヘッド駆動用のパルスモータへのパル
ス数をカウントすることにより行なっている。次にホス
トコンピュータ2よりのデータの印字を開始する。また
、用紙の途中より印字を開始するときは、ホストコンピ
ュータ2より、用紙の端からの距離を示すデータを受け
とるか、左端からの文字数分の空白データを受けとるこ
とにより、指示された距離まであるいは文字数分の距離
までヘッドを動かし、その位置より印字を開始する。
This position control is performed by counting the number of pulses sent to a pulse motor for driving the head. Next, printing of data from the host computer 2 is started. When starting printing from the middle of the paper, data indicating the distance from the edge of the paper is received from the host computer 2, or blank data corresponding to the number of characters from the left edge is received from the host computer 2 until the specified distance is reached or Move the head a distance equal to the number of characters and start printing from that position.

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

この従来の印字位置開始制御回路では、用紙送り制御部
6.用紙送り部7を有するのみで、用紙の位置の検出機
構をもたないため、用紙の位置ずれなどにより印字位置
のずれなどが生しる。また、用紙に初めより印刷しであ
るワク内に印字をしようとしたとき、印刷のずれや用紙
の固定位置のずれにより、定められた位置に印字できな
いときがある。
In this conventional print position start control circuit, the paper feed control section 6. Since it only has the paper feed section 7 and does not have a paper position detection mechanism, misalignment of the printing position may occur due to misalignment of the paper. Furthermore, when attempting to print within a certain area of paper that has already been printed, it may not be possible to print at a predetermined position due to misalignment of the printing or misalignment of the fixed position of the paper.

本発明の目的は、前記問題点を解決し、印字位置のずれ
が生じないようにしたシリアルプリンタ印字開始位置制
御回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a print start position control circuit for a serial printer that solves the above-mentioned problems and prevents the print position from shifting.

〔課回を解決するための手段〕[Means for resolving lesson times]

本発明のシリアルプリンタ印字開始位置制御回路の構成
は、プリンタ印字ヘッドの両端にCCDセンサを備え、
このCCDセンサからのデータを解析するデータ解析部
と、この解析部の解析結果により印字の開始位置を決め
る制御部とを備えることを特徴とする。
The configuration of the serial printer print start position control circuit of the present invention includes CCD sensors at both ends of the printer print head,
The present invention is characterized by comprising a data analysis section that analyzes data from the CCD sensor, and a control section that determines the printing start position based on the analysis result of the analysis section.

〔実施例〕〔Example〕

次に図面を参照しながら本発明を説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のシリアルプリンタ印字開始
位置制御回路のうちヘッド部分を示す斜視図である。
FIG. 1 is a perspective view showing a head portion of a serial printer print start position control circuit according to an embodiment of the present invention.

第1図において、本実施例のシリアルプリンタの印字部
分は、一対のCCDセンサ21をヘッド20の両端に取
り付け、ヘッド20が左右に移動するとき、ヘッド20
より先にCCDセンサ21は用紙22の端の位置や印刷
されているワク等のデータをひろうことができる。
In FIG. 1, in the printing part of the serial printer of this embodiment, a pair of CCD sensors 21 are attached to both ends of the head 20, and when the head 20 moves left and right,
In advance, the CCD sensor 21 can obtain data such as the position of the edge of the paper 22 and the printed marks.

第2図に、第1図のCCDセンサ21に一対の1次元の
CCDセンサ4を用いた一実施例の構成を示す。
FIG. 2 shows the configuration of an embodiment in which a pair of one-dimensional CCD sensors 4 are used in place of the CCD sensor 21 in FIG.

第2図において、ます用紙22の端より連続に印字する
ときを示す。ホストコンピュータ2より印字データがプ
リンタ制御部1に入力される。プリンタ制御部1では、
ヘッド制御部5に対しヘッドの移動を指示する。ヘッド
制御部5では、ヘッド移動部9によりヘッドを移動させ
る。へ、ンドの移動には、パルスモータ等を使用し、こ
のパルスモータの1ピツチごとの変化を指す信号(ヘッ
ド送りピッチ信号)を直線検出部3に送る。直線検出部
3では、たて方向に取付けた1次元センサ4によりたて
方向の明暗の変化データと、ヘッド制御部5からの送り
ピッチ信号とにより、暗から明となり、明が連続してい
る部分(これが用紙22の端を示す)を検出する。この
情報は、直線検出部3よりプリンタ制御部1に伝えられ
る。プリンタ制御部1では、ヘッド制御部5に対し印字
データを送り、印字開始の指示をする。指示されたヘッ
ド制御部5では、ヘッド移動部9により印字ヘッドを移
動させながら、印字部8にて印字を開始する。
In FIG. 2, printing is performed continuously from the edge of the square paper 22. Print data is input from the host computer 2 to the printer control section 1 . In the printer control unit 1,
The head controller 5 is instructed to move the head. In the head control section 5, a head moving section 9 moves the head. To move the head, a pulse motor or the like is used, and a signal (head feed pitch signal) indicating a change in each pitch of the pulse motor is sent to the linear detection section 3. In the straight line detection unit 3, the line changes from dark to bright, and the brightness continues, based on data on changes in brightness in the vertical direction from the one-dimensional sensor 4 installed in the vertical direction, and the feed pitch signal from the head control unit 5. Detect the portion (which indicates the edge of paper 22). This information is transmitted from the straight line detection section 3 to the printer control section 1. The printer control section 1 sends print data to the head control section 5 to instruct it to start printing. In the head control section 5 that has been instructed, printing is started in the printing section 8 while the print head is moved by the head moving section 9 .

次にワタ等に印字するときを示す。ホストコンピュータ
2よりプリンタ制御部1に端から何番目のワクに印字す
るかのデータと印字データを送る。プリンタ制御部1で
は、ヘッドを移動させる指示をヘッド制御部5に送り、
ヘッド制御部5によりヘッドを移動させる。一対のCC
Dセンサ4は、用紙22の端より、明暗明の変化を直線
検出部3に送り、ここで暗の幅を検出することにより、
たて方向の直線を検出する。検出結果をプリンタ制御部
1に送る。プリンタ制御部1では、ホストコンピュータ
2より指示されたワクの数になると、印字データをヘッ
ド制御部5に送り、印字を開始する。
Next, we will show how to print on cotton, etc. The host computer 2 sends to the printer control unit 1 data on which workpiece to print from the end and print data. The printer control unit 1 sends an instruction to move the head to the head control unit 5,
The head is moved by the head control section 5. A pair of CCs
The D sensor 4 sends the change in brightness to the straight line detection unit 3 from the edge of the paper 22, and detects the width of darkness there.
Detects vertical straight lines. The detection results are sent to the printer control section 1. When the number of workpieces instructed by the host computer 2 is reached, the printer control section 1 sends print data to the head control section 5 and starts printing.

第3図に、第1図のCCDセンサ21に、2次元のCC
Dセンサ4を用いた他の実施例の構成を示す。第3図に
おいて、本実施例が第2図と異なるところは、CCDセ
ンサ4が2次元CCDセンサ4になった点と、直線検出
部3がCCDセンサ4よりのデータにより、図形を解析
するデータ解析部3Aと、ホストコンピュータ2より送
られたデータとデータ解析部3Aとのデータを比較する
データ比較部3Bとからなる点である。
In FIG. 3, a two-dimensional CC sensor is added to the CCD sensor 21 in FIG.
The configuration of another example using the D sensor 4 is shown. In FIG. 3, this embodiment is different from FIG. 2 in that the CCD sensor 4 is now a two-dimensional CCD sensor 4, and the straight line detection section 3 uses data from the CCD sensor 4 to analyze the figure. It consists of an analysis section 3A and a data comparison section 3B that compares the data sent from the host computer 2 and the data from the data analysis section 3A.

次に用紙の端より印字する方法を述べる。第2図の実施
例と、ヘッド移動までは同一の動作をする。CCDセン
サ部4よりのデータとデータ解析部3Aにより、センサ
4よりのデータがたて方向に「暗明」となるパターンを
検出する(用紙22の端の検出)。その信号をプリンタ
制御部1にデータを送り、ここでは第2図の実施例と同
じように、印字を開始する。
Next, we will explain how to print from the edge of the paper. The operation is the same as the embodiment shown in FIG. 2, up to the movement of the head. The data from the CCD sensor section 4 and the data analysis section 3A detect a pattern in which the data from the sensor 4 becomes "dark and bright" in the vertical direction (detection of the edge of the paper 22). The signal is sent to the printer control section 1, and printing is started here in the same way as in the embodiment shown in FIG.

次にワク等に印字する例を示す。ホストコンビュータ2
より印字データと何番目のワタのデータかとワクの図形
データをプリンタ制御部1に送る。プリンタ制御部1で
は、ヘッドを第2図のときと同様に移動させるとともに
、ワクの図形データをデータ比較部3Bに送る。ヘッド
移動にともないC,CDセンサ4よりのデータとヘッド
制御部5より送られるヘッド送りピッチ信号とにより、
データ解析部3Aで図形のパターンを解析する。
Next, an example of printing on the crease etc. is shown. host computer 2
Then, the print data, the data of the number of the weave, and the graphic data of the weave are sent to the printer control section 1. In the printer control section 1, the head is moved in the same manner as in FIG. 2, and the graphic data of the workpiece is sent to the data comparison section 3B. As the head moves, data from the C and CD sensors 4 and a head feed pitch signal sent from the head control section 5 are used.
The data analysis unit 3A analyzes the graphic pattern.

データ比較部3Bでは、データ解析部3Aのデータとホ
ストコンピュータ2より送られた図形データとを比較し
、類似を検出すると、プリンタ制御部1に信号を送る。
The data comparison section 3B compares the data from the data analysis section 3A with the graphic data sent from the host computer 2, and sends a signal to the printer control section 1 if similarity is detected.

プリンタ制御部lでは、ホストコンピュータ2より指示
された回数になると印字データをヘッド制御部5に送り
、印字を開始させる。
The printer control unit 1 sends print data to the head control unit 5 to start printing when the number of times instructed by the host computer 2 has been reached.

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

以上説明したように、本発明は、用紙の端や、ワクの位
置を検出できるようにしたので、用紙の固定位置のずれ
や、ワクの印刷ずれが発生しても、所定の位置より印字
を開始できるという効果を有する。
As explained above, the present invention makes it possible to detect the edge of the paper and the position of the markings, so even if the fixed position of the paper shifts or the markings are misaligned, printing can be performed from a predetermined position. It has the effect of being able to start.

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

第1図は本発明の一実施例の7リアルプリンタ印字開始
位置制御回路のCCDセンサとヘッド位置との関係を示
す斜視図、第2図は第1図のセンサとして1次元CCD
センサを用いた一実施例のブロツク図、第3図は第1図
のセンサとして2次元のCCDセンサを用いた他の実施
例のブロック図、第4図は従来のシリアルプリンタのブ
ロック図である。 l・・・プリンタ制御部、2・・・ホストコンピュータ
、3・・・直線検出部、3A・・・データ解析部、3B
・・・データ比較部、4・・・CCDセンサ、5・・・
ヘッド制御部、6・・・用紙送り制御部、7・・・用紙
送り部、8・・・印字部、9・・・ヘッド移動部、10
・・・端検出部、20・・・プリンタのヘッド、21・
・・CCDセンサ、22・・・用紙。
FIG. 1 is a perspective view showing the relationship between the CCD sensor and the head position of a 7-real printer print start position control circuit according to an embodiment of the present invention, and FIG. 2 is a one-dimensional CCD as the sensor in FIG.
FIG. 3 is a block diagram of another embodiment using a two-dimensional CCD sensor as the sensor shown in FIG. 1. FIG. 4 is a block diagram of a conventional serial printer. . l...Printer control unit, 2...Host computer, 3...Line line detection unit, 3A...Data analysis unit, 3B
...Data comparison section, 4...CCD sensor, 5...
Head control unit, 6...Paper feed control unit, 7...Paper feed unit, 8...Printing unit, 9...Head moving unit, 10
. . . end detection unit, 20 . . . printer head, 21.
...CCD sensor, 22...paper.

Claims (1)

【特許請求の範囲】[Claims] プリンタ印字ヘッドの両端にCCDセンサを備え、この
CCDセンサからのデータを解析するデータ解析部と、
この解析部の解析結果により印字の開始位置を決める制
御部とを備えることを特徴とするシリアルプリンタ印字
開始位置制御回路。
a data analysis unit that includes CCD sensors at both ends of the printer print head and analyzes data from the CCD sensors;
A serial printer print start position control circuit comprising: a control section that determines a print start position based on the analysis result of the analysis section.
JP25778290A 1990-09-27 1990-09-27 Controlling circuit for printing start position of serial printer Pending JPH04135780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25778290A JPH04135780A (en) 1990-09-27 1990-09-27 Controlling circuit for printing start position of serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25778290A JPH04135780A (en) 1990-09-27 1990-09-27 Controlling circuit for printing start position of serial printer

Publications (1)

Publication Number Publication Date
JPH04135780A true JPH04135780A (en) 1992-05-11

Family

ID=17311028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25778290A Pending JPH04135780A (en) 1990-09-27 1990-09-27 Controlling circuit for printing start position of serial printer

Country Status (1)

Country Link
JP (1) JPH04135780A (en)

Similar Documents

Publication Publication Date Title
EP1453289A2 (en) Graphic printer roller transport apparatus and method
JPS63112185A (en) Printer
ES2073309T3 (en) DEVICE FOR THE DETECTION OF PRINTING ERRORS IN A ROTARY PRINTER MACHINE.
JP2002127371A (en) Structure for detection of register mark
KR920008596B1 (en) Color discrimination apparatus for color ink ribbon
US6592198B2 (en) Recording apparatus with control of a recording medium conveying mechanism
US5216258A (en) Optical density tracking sensor for aligning media
JPH04135780A (en) Controlling circuit for printing start position of serial printer
EP0533400B1 (en) Paper width detecting device in a printing
EP0341671B1 (en) Bidirectional printing device
JPS638913B2 (en)
JPH037371A (en) Paper width detecting apparatus
JP2666405B2 (en) Paper detection device
JPH0528669B2 (en)
JP2933292B2 (en) Joint correction method of image reading by plural reading sensors
US5450164A (en) Electrophotographic imaging device with marking function
JP2731460B2 (en) Left and right edge position detection method for printer paper
EP0496300A2 (en) Method of detecting a length of sheet of a printer
JPH10100414A (en) Method for registering in ink jet printer and device thereof
JPS6362754A (en) Printing apparatus
JPH079728A (en) Printer device
JPH02243376A (en) Serial printer
JPH0430497Y2 (en)
JPH01173271A (en) Mark reading system
KR940009027B1 (en) Printer head position control method