JPS62177622A - Print control system for printer - Google Patents

Print control system for printer

Info

Publication number
JPS62177622A
JPS62177622A JP61019303A JP1930386A JPS62177622A JP S62177622 A JPS62177622 A JP S62177622A JP 61019303 A JP61019303 A JP 61019303A JP 1930386 A JP1930386 A JP 1930386A JP S62177622 A JPS62177622 A JP S62177622A
Authority
JP
Japan
Prior art keywords
memory
print
data
head
line
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
JP61019303A
Other languages
Japanese (ja)
Inventor
Haruhiko Yagi
春彦 八木
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.)
Pentel Co Ltd
Original Assignee
Pentel 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 Pentel Co Ltd filed Critical Pentel Co Ltd
Priority to JP61019303A priority Critical patent/JPS62177622A/en
Publication of JPS62177622A publication Critical patent/JPS62177622A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a printed matter with satisfactory print quality and with no gap produced between print lines even in case the graphic print is carried out by a serial printer, by printing a part of the continuous memory data successively and duplicatively. CONSTITUTION:The print data are received from a host device and stored in the 1st memory 5. Then the data are outputted to a head I/O 8 after a print action timer 3 is started and printed by an amount equal to a single line by a print head 4 via a driver 9. When the next print data is stored in the 2nd memory 6, a print form is fed by 7 bits by both signals CR and LF to stop the timer 3. Then 1 is added to a line counter and it is checked whether the line counter is set at 9 or not. If not, the timer 3 is started. The print data of the memory 5 printed in the preceding time is read out by a single byte and stored in the 1st register in a CPU 1. While the print data of the memory 6 in the same address as the memory 5 is stored in the 2nd register of the CPU 1. Then both registers are shifted right simultaneously by an amount equal to the count value of the line counter. The contents of a register 2 are supplied to the head 4 via the head I/O 8 and the driver 9.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はシリアルプリンタのグラフィック印字の制御方
式に関し、特に印字されたグラフィックの行単位の印字
についてのデータの制御を行なうプリンタの印字制御方
式である。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a graphic printing control method for a serial printer, and particularly to a printer printing control method for controlling data for printing line by line of printed graphics. be.

(従来の技術) 従来のシリアルプリンタでのグラフィック印字は、順次
行単位で印字をしているため、原稿を読取った読取りヘ
ッドの印字データをそのままの形で逐次印字ヘッドに印
加して印字していた。
(Prior art) Graphic printing with conventional serial printers prints sequentially line by line, so the print data of the reading head that reads the original is sequentially applied to the print head in its original form for printing. Ta.

(発明が解決しようとする問題点) 前記した従来のグラフィック印字では、プリンタの用紙
送りの際機械の精度のバラツキにより用紙の送り量にバ
ラツキが生じ9行毎の印字間に隙間が生じ印字品質を低
下させるという問題点があった。
(Problems to be Solved by the Invention) In the conventional graphic printing described above, when paper is fed by the printer, the amount of paper fed varies due to variations in machine precision, resulting in gaps between printing every nine lines, which deteriorates printing quality. There was a problem in that it decreased.

(問題点を解決するための手段) 本発明は如上の問題点に鑑みなされたもので。(Means for solving problems) The present invention has been made in view of the above problems.

行単位で印字情報を記録する3個のメモリと。Three memories record print information line by line.

該3個のメモリ(こ記録された印字情報の各メモリの下
列のデータを次段のメモリの上列に移動させる2個のレ
ジスタと、該レジスタに移動されたデータを印字ヘッド
に印加する手段とを有し9行単位で印字するシリアルプ
リ/りの印字制御方式であって、前記連続したメモリの
データの一部を順次重複印字するプリンタの印字方式を
提案するものである。
The three memories (two registers for moving the data in the lower row of each memory of the recorded print information to the upper row of the next memory, and means for applying the data moved to the registers to the print head) The present invention proposes a serial printing control system that prints data in units of nine lines, and that sequentially prints a portion of the data in the continuous memory in duplicate.

(作用) 本発明では行単位で読取った印字データをメモリに順次
記憶させ、このメモリに記録されたデータを印字後、用
紙の送り量を印字ヘッドのドツト数よりも少なくすると
共に、印字された行のメモリの下側の所望のドツト数(
通常1〜2ドツト)のデータを次段のメモリの上側にシ
フトさせて、このシフトされたドツト数分を2回印字す
るようにしている。
(Function) In the present invention, print data read line by line is sequentially stored in a memory, and after printing the data recorded in this memory, the amount of paper feed is made smaller than the number of dots of the print head, and the printed data is Desired number of dots at the bottom of the row's memory (
The data (usually 1 to 2 dots) is shifted to the upper side of the next stage memory, and the shifted number of dots is printed twice.

(実施例) 以下1本発明の一実施例を添付図面を参照して説明する
。第1図は本発明を説明する電気的ブロック図であり、
0PU1により各デバイスが制御されるが、タイマー3
は印字のタイミングを知らせるため周期的にCPU1に
割込みをかけている。CPU 1ばこのタイマー3の割
込みにより印字ヘッド4への通電信号、キャリッジ用モ
ータM1および用紙用モータM2への、駆動信号を制御
している。第1メモリ5.第2メモリ6、第67モリ7
は、印字バッファであり。
(Example) An example of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is an electrical block diagram explaining the present invention,
Each device is controlled by 0PU1, but timer 3
interrupts the CPU 1 periodically to notify the timing of printing. The CPU 1 controls energizing signals to the print head 4 and drive signals to the carriage motor M1 and paper motor M2 by interrupting the timer 3 of the CPU. First memory5. 2nd memory 6, 67th memory 7
is the print buffer.

プリンタインターフェース2を介して図示しないホスト
より送られて来る印字データを行単位で順次記憶する。
Print data sent from a host (not shown) via the printer interface 2 is sequentially stored line by line.

この各メモ!J5,6.7に記憶された印字データはヘ
ッドI10ボート8を介してヘッドドライバ9によシ印
字ヘッド4の所望のドツトを付勢する。この印字ヘッド
4は縦に8ドツトあれば如何なる方式のものでも良いが
1本実施例ではサーマル方式で印字用紙は感熱紙として
説明する。キャリッジ用モータM1はモータ■10ポー
ト10からモータドライバ11を介して制御され、用紙
送り用モータM2はモータI10ポート12からモータ
ドライバ13を介して制御される。
Each note of this! The print data stored in J5, 6.7 is sent to the head driver 9 via the head I10 port 8 to energize a desired dot on the print head 4. This print head 4 may be of any type as long as it has 8 vertical dots, but in this embodiment, it will be explained that it is a thermal type and the printing paper is thermal paper. The carriage motor M1 is controlled from the motor I10 port 10 via the motor driver 11, and the paper feed motor M2 is controlled from the motor I10 port 12 via the motor driver 13.

次に第4図乃至7図のフローチャートを参照しながら実
際の動作を説明する。まず、印字している行を示す行カ
ウンタの値をクリアしく81)。
Next, the actual operation will be explained with reference to the flowcharts shown in FIGS. 4 to 7. First, clear the value of the line counter indicating the line being printed (81).

始めの1行目の印字状態とする。次に第1メモリ5.第
2メモリ6、第3メモリ7のメモリをクリアする(S2
)。ここでプリンタ■102を介して図示しないホスト
から印字データが送られて来ているかどうかを確認する
(S3)。
The printing condition is set to the first line at the beginning. Next, the first memory 5. Clear the second memory 6 and third memory 7 (S2
). Here, it is checked whether print data is being sent from a host (not shown) via the printer 102 (S3).

ホストから印字データが送られて来ていない場合は、ホ
ストから印字データが来る迄待ち、印字データが来ると
第1メモリ5に1バイトずつ記録する(S4)。この1
バイトずつデータを第1メモリ5の各番地に総て記録す
るか終了信号があれば(SS)、印字動作開始タイマ3
を起動する(S6)。第1メモリ5.第2メモリ6、第
3メモリ7のデータ格納状況を第2図を参照して説明す
る。各メモリ5,6.7は0番地からn番地迄DO〜D
7の8ピツトずつ格納する。ここで第1メモリ5の0番
地のデータを読み出しヘッドI10ボート8へ印加し、
ヘッドドライバ9を介して印字ヘッド4ヘデータを印加
する(S7)。ここで前記ホストより印字データがある
かどうかを判断(s s ) L、データがある場合に
は第2メモリ6へ0番地から順次格納する(S9)。ホ
ストからの印字データが無いか、有る場合には第2メモ
リ乙に格納した場合に行カウンタの値が0かどうか判断
(S10)する。行カウンタの値が0の場合は第1メモ
リ5に格納されている印字データが総て印字されたかど
うか判断(S11)し、印字が終了していない場合はス
テップ7へ戻って印字を継続する。このステップ11で
1行分の印字が終了したことを検出すると印字ヘッド4
での印字動作が停止したかどうか検出(812)1.、
停止していない場合には印字動作タイマ3を停止(81
3)させ、印字を終了したメモリの次のメモリ(この場
合は第2メそり6)に印字データが格納されているかど
うか確認(S 14 ) L、印字データの格納がなさ
れていない場合は動作を終了する。ステップ14で第2
メモリ乙に印字データが格納されている場合はキャリッ
ジリターン信号C几をキャリッジ用モータM1に印加し
てキャリッジを戻し、ラインフィード信号LPを用紙送
り用モータM2に印加して印字用紙を7ビツト分送る(
815)。次に、第2メモリ6への印字データの格納が
終了したかどうか判断(816)I、、格納が終了して
いない場合はステップ8へ戻る。第2メモリ6へのデー
タの格納が終了した場合は、キャリッジ用モータM1へ
のCR倍信号用紙送り用モータM2へのLP倍信号印加
されたかどうか確認(817)L。
If print data has not been sent from the host, wait until print data arrives from the host, and when print data arrives, record it one byte at a time in the first memory 5 (S4). This one
When all the data is recorded byte by byte at each address of the first memory 5 or if there is an end signal (SS), the print operation start timer 3 is activated.
(S6). First memory5. The data storage status of the second memory 6 and third memory 7 will be explained with reference to FIG. Each memory 5, 6.7 is DO~D from address 0 to address n.
Store 8 pits of 7. Here, the data at address 0 of the first memory 5 is applied to the read head I10 boat 8,
Data is applied to the print head 4 via the head driver 9 (S7). Here, it is determined whether or not there is print data from the host (s s )L. If there is data, it is sequentially stored in the second memory 6 starting from address 0 (S9). It is determined whether there is no print data from the host, and if there is, whether the value of the line counter is 0 when stored in the second memory B (S10). If the value of the line counter is 0, it is determined whether all the print data stored in the first memory 5 has been printed (S11), and if the printing has not been completed, the process returns to step 7 to continue printing. . When it is detected in this step 11 that printing for one line has been completed, the print head 4
Detecting whether the printing operation has stopped (812) 1. ,
If it has not stopped, stop printing operation timer 3 (81
3) Check whether the print data is stored in the memory next to the memory where printing has finished (in this case, the second memory 6) (S14) L. If the print data is not stored, operate. end. In step 14, the second
If the print data is stored in memory B, apply the carriage return signal C to the carriage motor M1 to return the carriage, and apply the line feed signal LP to the paper feed motor M2 to advance the printing paper by 7 bits. (
815). Next, it is determined whether the storage of the print data in the second memory 6 has been completed (816). If the storage has not been completed, the process returns to step 8. When the data has been stored in the second memory 6, it is checked whether the CR multiplier signal to the carriage motor M1 and the LP multiplier signal to the paper feed motor M2 have been applied (817)L.

確認されたらタイマ3の動作を停止する(818)。Once confirmed, the operation of timer 3 is stopped (818).

次に行カウンタの値に1を加え(この場合は1)(81
9)、行カウンタの値が9かどうか判断(S 20 )
 l、、行カウンタの値が9でない場合は印字動作タイ
マ6を起動させ(S21)、前回印字したメモリ(第1
メモリ5)の印字データを1バイト読出しCPU i内
の第ルジスタ14へ格納しく822)、第2メモリ6の
第1メモリ5の同一番地の印字データをCP[J i内
の第2レジスタ15へ格納する。(S23)(第り図a
参照)ここで行カウンタの値(この場合は1)だけ第1
メモリ5の1バイト分を第2メモリ6へ矢印方向へシフ
トする(824)。
Next, add 1 to the row counter value (1 in this case) (81
9), determine whether the value of the row counter is 9 (S 20 )
l., If the value of the line counter is not 9, start the printing operation timer 6 (S21) and store the memory (first
Read 1 byte of the print data from the memory 5) and store it in the register 14 in the CPU i (822), and read the print data at the same location in the first memory 5 of the second memory 6 into the second register 15 in the CPU [Ji]. Store. (S23) (Figure a
Reference) Here, the value of the row counter (1 in this case) is
One byte of memory 5 is shifted to second memory 6 in the direction of the arrow (824).

(第6図す参照)このシフトされた印字データを格納し
た第2レジスタ15の印字データをヘッドエフ0ボート
8.ヘツドドライバ9を介して印字ヘッド4へ印加し印
字する(825)。
(See Figure 6) The print data in the second register 15, which stores this shifted print data, is transferred to the head ef 0 port 8. The voltage is applied to the print head 4 via the head driver 9 to print (825).

ここで1バイト分の印字データが印字されるとステップ
8へ戻り前述した動作を繰り返す。
When one byte worth of print data is printed here, the process returns to step 8 and repeats the above-described operation.

第5図のステップ20で行カウンタの値が9の場合は、
即ち、メモリのデータのシフト回数が8ビット分終了し
たということで第6図の端子■から印字動作タイマ3を
起動しく826)。
If the value of the row counter is 9 in step 20 of FIG.
That is, since the number of shifts of data in the memory has been completed for 8 bits, the printing operation timer 3 is activated from the terminal (2) in FIG. 6 (826).

行カウンタの値を1としく827)、前前回印字を終了
したメモリ(この場合は第1メモリ5)の印字データを
1バイト読み出し0PUI内の第ルジスタ14へ格納し
、前回印字を終了した第2メモリ6の第1メモリ5の同
一番地の印字データをCPU 1の第2レジスタ15へ
格納する。(第り図a参照)(828,829)ここで
2行カウンタの値(ここでは1)だけ第1メモリ5の1
バイト分を第2メモリ6ヘシフトする(850)。(第
6図す参照)このシフトされた印字データを格納した第
2レジスタ15の印字データをヘッド■10ボート8.
ヘッドドライバ9を介して印字ヘクト4へ印加し印字す
る。(831)第2メモリ乙に格納された印字データが
総て印字されたかどうか確認(832)し、1行分の印
字が終了していない場合はステップ28へ戻り、このス
テップ32で1行分の印字が終了したことを確認すると
第5図のステップ13へ戻る。次にステップ7.25.
31の印字動作は第7図の割込み処理ルーチンがコール
されて処理される。
Set the value of the line counter to 1 (827), read out 1 byte of the print data in the memory where the previous printing was completed (in this case, the first memory 5), store it in the register 14 in the 0PUI, The print data at the same location in the first memory 5 of the second memory 6 is stored in the second register 15 of the CPU 1. (See Figure a) (828, 829) Here, the value of the 2-line counter (here 1) is 1 in the first memory 5.
The bytes are shifted to the second memory 6 (850). (Refer to Figure 6) The print data in the second register 15, which stores this shifted print data, is transferred to the head ■10 port 8.
It is applied to the printing hect 4 via the head driver 9 to print. (831) Check whether all the print data stored in the second memory B has been printed (832). If printing of one line has not been completed, return to step 28, and in this step 32 print data for one line. When it is confirmed that printing has been completed, the process returns to step 13 in FIG. Next step 7.25.
The printing operation 31 is processed by calling the interrupt processing routine shown in FIG.

(発明の効果) 本発明は如上のような構成となしたので、写真やグラフ
等のグラフィック印字をシリアルプリンタで行なう場合
でも印字行間の隙間が生ぜず印字品質の良好な印字物を
得られるものである。
(Effects of the Invention) Since the present invention has the above-described configuration, even when printing graphics such as photographs and graphs using a serial printer, there is no gap between printed lines and printed matter with good quality can be obtained. It is.

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

図面は本発明の実施例を示すもので、第1図は本発明を
適用した印字装置の電気的ブロック図、第2図はメモリ
の説明図、第5図はレジスタ展開説明図、第4図、第5
図、第6図、第7図はフローチャート図である。 1・・・・・・CPU、2・・・・・・プリンタI10
゜6・・・・・・印字動作タイマ、  4・・・・・・
印字ヘッド。 5.6.7・・・・・・メモリ、   Ml・・・・・
・キャリッジ用モータ、M2・・・・・・用紙送り用モ
ータ。
The drawings show an embodiment of the present invention, and FIG. 1 is an electrical block diagram of a printing device to which the present invention is applied, FIG. 2 is an explanatory diagram of a memory, FIG. 5 is an explanatory diagram of expanded registers, and FIG. , 5th
6 and 7 are flowcharts. 1...CPU, 2...Printer I10
゜6...Printing operation timer, 4...
print head. 5.6.7...Memory, Ml...
- Carriage motor, M2...Paper feed motor.

Claims (1)

【特許請求の範囲】[Claims] 行単位で印字情報を記録する3個のメモリと、該3個の
メモリに記録された印字情報の各メモリの下列のデータ
を次段のメモリの上列に移動させる2個のレジスタと、
該レジスタに移動されたデータを印字ヘッドに印加する
手段とを有し、行単位で印字するシリアルプリンタの印
字制御方式であって、前記連続したメモリのデータの一
部を順次重複印字することを特徴とするプリンタの印字
制御方式。
three memories that record print information line by line; two registers that move the data in the lower row of each memory of the print information recorded in the three memories to the upper row of the next memory;
A printing control method for a serial printer that prints line by line, the device having a means for applying data moved to the register to a print head, and printing part of the data in the continuous memory sequentially and repeatedly. Features printer print control method.
JP61019303A 1986-01-31 1986-01-31 Print control system for printer Pending JPS62177622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61019303A JPS62177622A (en) 1986-01-31 1986-01-31 Print control system for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61019303A JPS62177622A (en) 1986-01-31 1986-01-31 Print control system for printer

Publications (1)

Publication Number Publication Date
JPS62177622A true JPS62177622A (en) 1987-08-04

Family

ID=11995650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61019303A Pending JPS62177622A (en) 1986-01-31 1986-01-31 Print control system for printer

Country Status (1)

Country Link
JP (1) JPS62177622A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5599114A (en) * 1994-11-28 1997-02-04 Fujitsu Limited Printing control method and printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5599114A (en) * 1994-11-28 1997-02-04 Fujitsu Limited Printing control method and printer
CN1069269C (en) * 1994-11-28 2001-08-08 富士通株式会社 Printing control method and printer

Similar Documents

Publication Publication Date Title
JPS6022234A (en) Form overlay type printer
JPS5962163A (en) Printer
JPS62177622A (en) Print control system for printer
JPH0359835B2 (en)
JP2877036B2 (en) Printing method and dot printer
JPH02196672A (en) Controlling method for serial recorder
JP3098435B2 (en) Control system for multiple thermal heads
JP2844731B2 (en) Print data processing device
JPH0533913B2 (en)
JPS6164470A (en) Printing method of printer
JPS60143988A (en) Underline-printing method for dot printer
JPS59212271A (en) Correction between printing heads
JPH0325115B2 (en)
JPH041702B2 (en)
JPH0357484Y2 (en)
JPS61195853A (en) Ink jet printer
JPH0120990B2 (en)
JPH0811341A (en) Thermal transfer printer
JPH077999B2 (en) Divided drive system such as facsimile
JPS63212563A (en) Thermal transfer type printer
JPS61222758A (en) Contracted letter printing system
JPH0611553B2 (en) Print control method
JPH0543511B2 (en)
JPH08128860A (en) Recorder and printing method for it
JPS6364778A (en) Recording apparatus