JPH0723009B2 - Printer control method - Google Patents

Printer control method

Info

Publication number
JPH0723009B2
JPH0723009B2 JP60018520A JP1852085A JPH0723009B2 JP H0723009 B2 JPH0723009 B2 JP H0723009B2 JP 60018520 A JP60018520 A JP 60018520A JP 1852085 A JP1852085 A JP 1852085A JP H0723009 B2 JPH0723009 B2 JP H0723009B2
Authority
JP
Japan
Prior art keywords
print
data
line
buffer
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.)
Expired - Lifetime
Application number
JP60018520A
Other languages
Japanese (ja)
Other versions
JPS61177253A (en
Inventor
守一 曽雌
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60018520A priority Critical patent/JPH0723009B2/en
Publication of JPS61177253A publication Critical patent/JPS61177253A/en
Publication of JPH0723009B2 publication Critical patent/JPH0723009B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/26Devices, non-fluid media or methods for cancelling, correcting errors, underscoring or ruling

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は印字データを複数の印字データに分けて印字す
るプリンタ印字に係り、特に罫線印字の制御に好適なプ
リンタ制御方法に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to printer printing in which print data is divided into a plurality of print data and printed, and more particularly to a printer control method suitable for controlling ruled line printing.

〔発明の背景〕[Background of the Invention]

従来の印刷装置は、第1図で示される端末制御装置(TC
E)1から印字データ及び漢字ドットパターンを受け取
り、それぞれ印字コードバッファ2,文字発生器(CG)3
へ蓄える。次に印字指示により印字コードバッファ2の
内容に従い、CG3を用いてイメージバッファ5に入力
し、印字バッファ6に移し1行毎に印字する。又、罫線
データがあれば、一般には1度に罫線と文字データが印
字できないので、上罫線,文字データと縦罫線,下けい
線等の如く1行分を分割して印字する。
The conventional printing device is a terminal control device (TC
E) Receives print data and Kanji dot pattern from 1, print code buffer 2 and character generator (CG) 3 respectively
Store in. Then, in accordance with the contents of the print code buffer 2 in accordance with the print instruction, the image data is input to the image buffer 5 using CG3, moved to the print buffer 6 and printed line by line. Further, if there is ruled line data, generally ruled lines and character data cannot be printed at once, so one line is divided and printed such as upper ruled lines, character data and vertical ruled lines and lower ruled lines.

最終行には終了コード(EM)があり、最終行を印字し、
改行して印字完了する。
There is an end code (EM) in the last line, print the last line,
A new line is printed and printing is completed.

また、印字効率を上げるために1つの印字データを複数
のユニットに分け、これを制御する複数の印字コードバ
ッファを持つ制御方式を第2図に示す。この従来例は印
字コードバッファ8〜11を持つ例である。
Further, FIG. 2 shows a control method in which one print data is divided into a plurality of units in order to improve the printing efficiency and a plurality of print code buffers for controlling the print data are provided. This conventional example has print code buffers 8 to 11.

上位装置1はユニットを空いている印字コードバッファ
8〜11に次々と入力し、印字起動をかける。
The host device 1 sequentially inputs the units into the empty print code buffers 8 to 11 to start printing.

印字コードバッファのユニットを印字すると、印字コー
ドバッファの印字完了を上位装置に報告する。この制御
方式では、1つの印字コードバッファの印字データを印
字中に他の印字コードバッファにデータを転送し、次々
と印字が可能なので印字効率が上がる。
When the unit of the print code buffer is printed, the print completion of the print code buffer is reported to the host device. In this control method, the print data in one print code buffer is transferred to another print code buffer while the print data is being printed, and the print data can be printed one after another, so that the printing efficiency is improved.

次に、ユニットのデータ中に罫線指示がない例を第3図
(a)に示す。この従来例では1行が3つのユニットに
分かれている。上位装置が第3図のユニット1〜3を第
2図の8〜10の印字コードバッファに送り各々印字指示
を発行しているとき、印字コードバッファ8に格納して
いるユニット1の印字データとCG3を使用し、イメージ
バッファ5に入力して印字コードバッファ8の印字完了
とする。
Next, an example in which there is no ruled line designation in the unit data is shown in FIG. In this conventional example, one line is divided into three units. When the host device sends the units 1 to 3 shown in FIG. 3 to the print code buffers 8 to 10 shown in FIG. 2 and issues respective print instructions, the print data of the unit 1 stored in the print code buffer 8 CG3 is used and input to the image buffer 5 to complete printing in the print code buffer 8.

同様にユニット2,3をイメージバッファ5に入力する。
ユニット3にはNL(NEWLINE)があるので、ユニット1
〜3の文字データ1行分のドット展開は完了し、印字バ
ッファ6へ移し、プリンタ7で印字してユニット3の入
っている印字コードバッファ10の印字完了となる。
Similarly, the units 2 and 3 are input to the image buffer 5.
Unit 3 has NL (NEWLINE), so Unit 1
The dot expansion for one line of the character data 1 to 3 is completed, the dot data is transferred to the print buffer 6, the printer 7 prints, and the print code buffer 10 containing the unit 3 completes printing.

この様に、印字データに罫線がない場合はイメージバッ
ファは一面で可能であった。
Thus, when the print data has no ruled line, the image buffer can be used on one side.

さらに、1行の印字データが複数のユニットに分かれて
おり、さらに罫線指示がある従来例を第4図に示す。
Further, FIG. 4 shows a conventional example in which one line of print data is divided into a plurality of units and there is a ruled line instruction.

上位装置が第4図(a)のユニット1〜3を第2図の8
〜10の印字コードバッファに送り各々印字指示を発行し
ているとする。
The host device replaces the units 1 to 3 in FIG. 4 (a) with 8 in FIG.
It is assumed that the print instructions are sent to the print code buffers of ~ 10 and each print instruction is issued.

いま、1行のデータは第4図(b)に示す如く、上罫
線,文字データと縦罫線,下罫線に分けて各々イメージ
バッファに入れ印字する場合を考える。第4図(a)の
ユニット1の上罫線データを第2図のイメージバッファ
5に入力し、ユニット1の印字完了とすれば、ユニット
1のデータとこれに対応するCGが消され文字データと縦
罫線,下罫線が印字できなくなる。
Now, consider a case in which one line of data is divided into an upper ruled line, character data and a vertical ruled line, and a lower ruled line, respectively, as shown in FIG. When the upper ruled line data of the unit 1 of FIG. 4 (a) is input to the image buffer 5 of FIG. 2 and the printing of the unit 1 is completed, the data of the unit 1 and the corresponding CG are erased and character data is obtained. Vertical ruled lines and lower ruled lines cannot be printed.

又、ユニット1の文字データのみをイメージバッファ5
に入力し、ユニット1の印字完了とすれば、文字データ
は保存できるが上・下罫線データは印字できなくなる。
Moreover, only the character data of the unit 1 is transferred to the image buffer 5
If the data is input to, and the printing of the unit 1 is completed, the character data can be saved but the upper and lower ruled line data cannot be printed.

また、印字指示コード,NL(NEWLINE),FF(FRMFEE
D)等がユニットに現れるまで1行の全ユニットを保持
する方法も考えられる。
In addition, print instruction code, NL (NEWLINE), FF (FRMFEE
It is also possible to hold all the units in one line until D) etc. appear in the unit.

しかし例えば、印字コードバッファが4個から成り、し
かも4つのユニット中に印字指示コードがなければ、ど
のユニットからも印字コードバッファの印字完了が、上
位装置に対して上らなくなってしまう。この印字データ
の例を第4図(c)に示す。
However, for example, if there are four print code buffers and there is no print instruction code in the four units, the completion of printing of the print code buffer from any unit will not reach the host device. An example of this print data is shown in FIG.

以上の如く従来の方式では、印字データを複数の印字デ
ータに分けて印字する場合、罫線の印字ができないとい
う問題がある。
As described above, the conventional method has a problem in that ruled lines cannot be printed when the print data is divided into a plurality of print data for printing.

〔発明の目的〕[Object of the Invention]

本発明の目的は、従来の問題を解決するために、上位装
置が印刷装置に印字データを複数の印字データに分けて
送っても罫線印字が可能となるプリンタ制御方法を提供
することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a printer control method capable of performing ruled line printing even if a host device divides print data into a plurality of print data and sends the print data to a printer in order to solve the conventional problems.

〔発明の概要〕[Outline of Invention]

複数のユニットに分割され文字データと罫線データを含
む1行毎の印字データを、ユニット単位で複数の印字コ
ードバッファに格納し、複数の印字コードバッファに格
納された印字データの文字データ及び罫線データを文字
発生器を介してドット分解し、印字可能データとして作
成し、この印字可能データを空きのイメージバッファに
格納するとともに、罫線データを退避行バッファに退避
し、印字データ中に1行の印字指示コードのあるユニッ
トを検出した時、既にイメージバッファに格納された印
字可能データ及び退避行バッファに退避された印字デー
タの罫線データをドット分解した印字可能データを順次
印字バッファに移してドットプリンタに印字せしめるこ
とを特徴とする。
Character data and ruled line data of print data stored in a plurality of print code buffers are stored in a plurality of print code buffers that are divided into a plurality of units and print data for each line including character data and ruled line data is stored in units of units. Is decomposed into dots as a printable data by using a character generator, this printable data is stored in an empty image buffer, the ruled line data is saved in the save line buffer, and one line is printed in the print data. When a unit with an instruction code is detected, the printable data that has already been stored in the image buffer and the ruled line data of the print data saved in the save line buffer are decomposed into dots, and the printable data is sequentially transferred to the print buffer and transferred to the dot printer. It is characterized by being printed.

〔発明の実施例〕Example of Invention

以下、本発明の一実施例を第5図〜第7図により詳細に
説明する。
An embodiment of the present invention will be described in detail below with reference to FIGS.

第5図はプリンタ制御装置の制御方式を説明するための
ブロック図である。
FIG. 5 is a block diagram for explaining the control system of the printer control device.

1は上位装置の端末制御装置(TCE)、3はTCE1が送り
込むCGである。8〜11は印字コードバッファであり、こ
の中に複数の分割した印字データであるユニットを格納
している。4は印字制御部であり、印字コードバッファ
8〜11の印字データに従い、ドットに分解してイメージ
バッファ12〜16に入力する。6は印字バッファで、プリ
ンタ7が印字中のデータを格納している。17は退避行バ
ッファで、1行の印字データがユニットにまたがる時、
印字データを退避しておき罫線印字時に使用する。第6
図,第7図の18は罫線スタート,19は罫線停止の印字コ
ードを示す。
Reference numeral 1 is a terminal control device (TCE) of a host device, and 3 is a CG sent by TCE1. Reference numerals 8 to 11 denote print code buffers in which a plurality of divided print data units are stored. Reference numeral 4 denotes a print control unit which decomposes the data into dots according to the print data in the print code buffers 8 to 11 and inputs the dots into the image buffers 12 to 16. A print buffer 6 stores the data being printed by the printer 7. 17 is a save line buffer, when one line of print data spans the unit,
Save the print data and use it when printing ruled lines. Sixth
In FIG. 7 and FIG. 18, 18 is a ruled line start print code, and 19 is a ruled line stop print code.

第5図において、罫線データと文字データをすべてドッ
トに展開してイメージバッファ12〜16の5面に保持する
時は、退避行バッファ17は不用である。
In FIG. 5, when all the ruled line data and the character data are developed into dots and held on the five sides of the image buffers 12 to 16, the save line buffer 17 is unnecessary.

一方、イメージバッファ12、13の2面と退避行バッファ
17を使う場合は、イメージバッファ14〜16は不用であ
る。
On the other hand, two sides of the image buffers 12 and 13 and the save line buffer
When using 17, the image buffers 14 to 16 are unnecessary.

まず、イメージバッファ12〜16の5面を使用する場合に
ついて説明する。
First, the case of using the five sides of the image buffers 12 to 16 will be described.

プリンタ7の印字ヘッドが縦24ドットからなり、ドット
とドットの間隔は1/180インチ、1行の印字幅は13.2イ
ンチ(2376ドット)のシリアルプリンタとする。この時
のイメージバッファ12〜16の大きさは24ドット×2376ド
ットである。漢字1字は24×24ドットの場合、印字ヘッ
ドの往復印字によるドットずれをなくすために文字は一
度に印字するのが好ましい。
It is assumed that the print head of the printer 7 is composed of 24 dots in the vertical direction, the dot spacing is 1/180 inch, and the print width of one line is 13.2 inch (2376 dots). The size of the image buffers 12 to 16 at this time is 24 dots × 2376 dots. When one Chinese character has 24 × 24 dots, it is preferable to print the characters at one time in order to eliminate dot misalignment due to reciprocal printing of the print head.

従って、1行の印字は24×24ドットの文字を行の中心に
して、上罫線,下罫線とで構成する。従って、1行のイ
メージバッファは改行間隔が1/3インチとすると60ドッ
トからなる。即ち、文字位置を1行の中心に24ドットと
なると、1行の構成は第6図(b)に示す様になりイメ
ージバッファは3面必要である。また、改行間隔が1/2
インチなら1行は90ドットからなる。従って、1行の構
成は第6図(c)に示す様になりイメージバッファは5
面必要である。
Therefore, the printing of one line is composed of the upper ruled line and the lower ruled line with the character of 24 × 24 dots as the center of the line. Therefore, one line of image buffer consists of 60 dots when the line feed interval is 1/3 inch. That is, if the character position is 24 dots in the center of one line, the structure of one line is as shown in FIG. 6 (b), and three image buffers are required. Also, the line feed interval is 1/2
In inches, one line consists of 90 dots. Therefore, the structure of one line is as shown in FIG.
Face is necessary.

次に、1/2インチで第6図(a)に示す印字データを印
字する場合を示す。ユニット1の印字データは、第6図
(c)のイメージバッファ12〜16へドットに展開して印
字完了を上位装置に返す。
Next, the case of printing the print data shown in FIG. The print data of the unit 1 is expanded into dots in the image buffers 12 to 16 of FIG. 6 (c), and the print completion is returned to the host device.

同様にユニット2もイメージバッファ12〜16へドットに
展開して印字完了を上位装置に返す。ユニット3のデー
タもイメージバッファ12〜16へドットに展開しNLコード
を検出すると、イメージバッファ12→13→14→15→16と
印字ドット分も改行しながら1行を印字する。以上の様
に、罫線を含む1行の印字データが複数のユニットに分
割されてもイメージバッファに退避することにより罫線
が印字可能となる。
Similarly, the unit 2 also develops dots in the image buffers 12 to 16 and returns the print completion to the upper device. When the data of the unit 3 is also expanded into dots in the image buffers 12 to 16 and the NL code is detected, the image buffer 12 → 13 → 14 → 15 → 16 is printed and one line is printed while the print dots are also line feed. As described above, even if one line of print data including ruled lines is divided into a plurality of units, the ruled lines can be printed by saving them in the image buffer.

第6図(c)で、イメージバッファ13と15が同一データ
なら一方をなくしてよい。もしイメージバッファ15をな
くすと、印字順序はイメージバッファ12→13→14→13→
16となる。
In FIG. 6 (c), if the image buffers 13 and 15 have the same data, one of them may be omitted. If the image buffer 15 is removed, the print order is image buffer 12 → 13 → 14 → 13 →
16

次に、イメージバッファ1面は24ドット×2376ドットで
約7KBであるが、メモリ節約のために第5図のイメージ
バッファ12,13の2面と、罫線データ退避用の退避行バ
ッファ17とで実現する一実施例を以下に示す。
Next, one image buffer is 24 dots x 2376 dots, which is about 7 KB. To save memory, the two faces of the image buffers 12 and 13 in Fig. 5 and the save line buffer 17 for saving ruled line data are used. An example of implementation is shown below.

以下、第7図(a)で示される印字データを、改行間隔
1/2インチで印字する場合を説明する。
Below, the print data shown in Fig. 7 (a)
The case of printing at 1/2 inch will be described.

印字は、第7図(b)のイメージバッファ12→第7図
(c)のイメージバッファ12→第7図(b)のイメージ
バッファ13→第7図(c)のイメージバッファ12→第7
図(d)のイメージバッファ13の順序で行われる。
Printing is performed by the image buffer 12 in FIG. 7 (b) → the image buffer 12 in FIG. 7 (c) → the image buffer 13 in FIG. 7 (b) → the image buffer 12 in FIG. 7 (c) → the seventh.
The image buffer 13 shown in FIG.

即ち、イメージバッファに印字データを作成する順序
は、まず、第7図(b)に示す如く、上罫線データをイ
メージバッファ12に、また、縦罫線データの一部及び文
字データをイメージバッファ13に作成する。印字データ
をドット分解したイメージに変化する時には、第5図に
示すCG(文字発生器)3からドットデータを取り出し
て、イメージバッファ12、13に格納する。
That is, the order in which the print data is created in the image buffer is as shown in FIG. 7 (b). First, the upper ruled line data is stored in the image buffer 12, and part of the vertical ruled line data and the character data are stored in the image buffer 13. create. When the print data is changed to an image in which dots are decomposed, the dot data is taken out from the CG (character generator) 3 shown in FIG. 5 and stored in the image buffers 12 and 13.

ユニット1〜4の印字データは、第5図の印字コードバ
ッファ8〜11に入る。最初にユニット1のドット分解に
入り、上罫線データの一部はイメージバッファ12に、縦
罫線データの一部及び文字データはイメージバッファ13
に、第5図に示すCG3を使ってドット分解する。
The print data of the units 1 to 4 enters the print code buffers 8 to 11 of FIG. First, the dot division of the unit 1 is started, and part of the upper ruled line data is stored in the image buffer 12, and part of the vertical ruled line data and character data is stored in the image buffer 13.
Then, dot decomposition is performed using CG3 shown in FIG.

ユニット1にはNLコードのような印字を示すコードがな
く、罫線データがあるので、退避行バッファ17へユニッ
ト1の罫線データを退避して、印字コードバッファ8の
印字完了を上位装置に報告する。
Since the unit 1 does not have a code such as the NL code indicating printing and has ruled line data, the ruled line data of the unit 1 is saved in the save line buffer 17 and the completion of printing in the print code buffer 8 is reported to the host device. .

ユニット1の縦罫線のデータの一部及び文字データは、
既にイメージバッファ13にドット分解されているので、
退避行バッファ17には罫線データを退避する。
Part of the vertical ruled line data of unit 1 and character data are
Since the dots have already been decomposed in the image buffer 13,
Ruled line data is saved in the save row buffer 17.

次に、上位装置は、印字完了報告により印字コードバッ
ファ8が空いたことがわかるので、印字コードバッファ
8ヘユニット5の印字データを送る。印字コードバッフ
ァ9〜11のユニット2〜4の印字データもユニット1と
同様に処理し、退避行バッファ17に罫線データを退避す
る。
Next, the upper device recognizes from the print completion report that the print code buffer 8 is empty, and therefore sends the print data of the unit 5 to the print code buffer 8. The print data in the units 2 to 4 of the print code buffers 9 to 11 are processed in the same manner as in the unit 1, and the ruled line data is saved in the save line buffer 17.

即ち、上罫線データは、ドット分解しイメージバッファ
12にユニット1で作った罫線イメージデータの上に重ね
ていく。同様に縦罫線データの一部及び文字データもド
ット分解しイメージバッファ13で先の縦罫線データの一
部及び文字データに重ねていく。
That is, the upper ruled line data is decomposed into dots
Overlaid on the ruled line image data created by Unit 1 to 12. Similarly, a part of the vertical ruled line data and the character data are dot-decomposed, and the image buffer 13 superimposes them on the part of the vertical ruled line data and the character data.

さらに、印字コードバッファ8のユニット5の印字デー
タも同様にイメージバッファ12、13にドット分解して保
持する(この結果を第7図(b)に示す)。また、退避
行バッファ17に罫線データを退避する。
Further, the print data of the unit 5 of the print code buffer 8 is similarly dot-decomposed and held in the image buffers 12 and 13 (the result is shown in FIG. 7B). Further, the ruled line data is saved in the save row buffer 17.

ユニット5の印字データにはNLコード(印字指示コー
ド)が付与されており、このNLコードを検出すると、イ
メージバッファ12の上罫線データの一部を印字バッファ
6に移して印字し、印字分改行する。
An NL code (printing instruction code) is added to the print data of the unit 5. When this NL code is detected, a part of the upper ruled line data of the image buffer 12 is moved to the print buffer 6 for printing, and line feed for printing is performed. To do.

次に、退避行バッファ17より、ユニット1〜5の縦罫線
データをイメージバッファ12へ、第7図(c)に示す如
くドット分解した後、印字バッファ6に移して印字し、
印字分改行する。
Next, the vertical ruled line data of the units 1 to 5 is divided into dots from the save line buffer 17 into the image buffer 12 as shown in FIG. 7 (c), and then transferred to the print buffer 6 for printing.
Line break for printing.

さらに、第7図(b)に示すイメージバッファ13の内容
を印字バッファ6に移して印字し、印字分改行する。
Further, the contents of the image buffer 13 shown in FIG. 7 (b) are transferred to the print buffer 6 for printing, and line feed is performed for each print.

また、イメージバッファ12に先にドット分解済の第7図
(c)の縦罫線データを、印字バッファ6に移して印字
し、印字分改行する。
Also, the vertical ruled line data of FIG. 7 (c), which has been dot-decomposed first, is moved to the print buffer 6 for printing in the image buffer 12, and a line feed for printing is performed.

最後に、退避行バッファ17よりユニット1〜5の下罫線
データを読み出し、イメージバッファ13へ第7図(d)
に示す如くドットに分解した後、印字バッファ6に移し
て印字し、印字分改行し1行の印字が終る。
Finally, the lower ruled line data of the units 1 to 5 are read from the save row buffer 17 and stored in the image buffer 13 as shown in FIG.
After being divided into dots as shown in (1), they are moved to the print buffer 6 and printed, and line feed for the print is completed to finish printing one line.

〔発明の効果〕〔The invention's effect〕

以上の説明の如く本発明によれば、印字データを複数の
ユニットに分けて印字効率を向上させるとともに、罫線
印字を可能にするという効果がある。
As described above, according to the present invention, it is possible to divide the print data into a plurality of units to improve the printing efficiency and to enable the ruled line printing.

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

第1図は従来の制御方式を説明するためのブロック図、
第2図は複数の印字コードバッファを持つ制御方式を説
明するためのブロック図、第3図は従来の罫線なし時の
印字を説明するための図、第4図は従来の印字方式で罫
線がある場合の印字を説明するための図、第5図は本発
明の制御方式を説明するためのブロック図、第6図は改
行間隔により必要なイメージバッファ数を説明するため
の図、第7図はイメージバッファ2面と退避行バッファ
を持つ場合の印字を説明するための図である。 1……端末制御装置(TCE)、2……印字コードバッフ
ァ、3……文字発生器(CG)、4……印字制御部、5…
…イメージバッファ、6……印字バッファ、7……プリ
ンタ、8〜11……印字コードバッファ、12〜16……イメ
ージバッファ、17……退避行バッファ、18……罫線開始
コード、19……罫線終了コード。
FIG. 1 is a block diagram for explaining a conventional control method,
FIG. 2 is a block diagram for explaining a control system having a plurality of print code buffers, FIG. 3 is a diagram for explaining printing without a ruled line in the related art, and FIG. FIG. 5 is a diagram for explaining printing in a certain case, FIG. 5 is a block diagram for explaining the control system of the present invention, FIG. 6 is a diagram for explaining the number of image buffers required by the line feed interval, and FIG. FIG. 6 is a diagram for explaining printing when the image buffer has two sides and a save line buffer. 1 ... Terminal control unit (TCE), 2 ... Print code buffer, 3 ... Character generator (CG), 4 ... Print control unit, 5 ...
... image buffer, 6 ... print buffer, 7 ... printer, 8-11 ... print code buffer, 12-16 ... image buffer, 17 ... save line buffer, 18 ... ruled line start code, 19 ... ruled line Exit code.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文字データと罫線データを含む印字データ
をドット分解する文字発生器と、印字のための印字デー
タを格納する印字バッファを備えた改行間隔が1/2イン
チのドットプリンタにおいて、複数のユニットに分割さ
れた1行毎の印字データをユニット単位に複数の印字コ
ードバッファに格納し、該複数の印字コードバッファに
ユニット単位で格納された印字データの上罫線データと
縦罫線データの一部及び文字データを該文字発生器を介
してドット分解し、それぞれ第1、第2のイメージバッ
ファに作成するとともに、ユニット単位の印字データ中
に1行分の印字指示コードがない場合、退避行バッファ
に印字データの罫線データを退避し、ユニット単位の印
字データ中に1行分の印字指示コードがあるまで上記処
理を繰返し、ユニット単位の印字データ中に1行分の印
字指示コードが検出されると、該第1のイメージバッフ
ァに格納された上罫線データを該印字バッファに移し印
字して印字分改行し、次に、該退避行バッファから縦罫
線データの一部を該文字発生器を介してドット分解し、
該第1のイメージバッファに作成して、該印字バッファ
に移し印字して印字分改行し、次に、該第2のイメージ
バッファに格納された縦罫線データの一部及び文字デー
タを該印字バッファに移し印字して印字分改行し、さら
に、該第1のイメージバッファに格納された縦罫線デー
タの一部を該印字バッファに移し印字して印字分改行
し、最後に、該退避行バッファに退避された下罫線デー
タを該文字発生器を介してドット分解し、該第2のイメ
ージバッファに作成して、該印字バッファに移し印字し
て印字分改行することにより1行分の印字データの印字
が終了することを特徴とするプリンタ制御方法。
1. A dot printer with a line feed interval of 1/2 inch, comprising a character generator for dot-decomposing print data including character data and ruled line data, and a print buffer for storing print data for printing. The print data for each line divided into units is stored in a plurality of print code buffers in units, and the upper ruled line data and the vertical ruled line data of the print data stored in the plurality of print code buffers in unit units are stored. Copies and character data are divided into dots in the first and second image buffers by the character generator, and when there is no print instruction code for one line in the print data for each unit, the save line The ruled line data of the print data is saved in the buffer, and the above process is repeated until the print instruction code for one line is included in the print data for each unit. When a print instruction code for one line is detected in the unit print data, the upper ruled line data stored in the first image buffer is moved to the print buffer and printed, and the line feed for the print is performed, and then Dot decomposition of part of the vertical ruled line data from the save line buffer via the character generator,
Created in the first image buffer, transferred to the print buffer, printed, and line feed for printing, and then part of the vertical ruled line data and character data stored in the second image buffer are printed in the print buffer. To print and line feed for printing, and further move a part of the vertical ruled line data stored in the first image buffer to the print buffer, print and line feed for printing, and finally to the save line buffer. The saved lower ruled-line data is dot-decomposed via the character generator, is created in the second image buffer, is moved to the print buffer, is printed, and is line-printed for printing. A printer control method characterized by ending printing.
JP60018520A 1985-02-04 1985-02-04 Printer control method Expired - Lifetime JPH0723009B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60018520A JPH0723009B2 (en) 1985-02-04 1985-02-04 Printer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60018520A JPH0723009B2 (en) 1985-02-04 1985-02-04 Printer control method

Publications (2)

Publication Number Publication Date
JPS61177253A JPS61177253A (en) 1986-08-08
JPH0723009B2 true JPH0723009B2 (en) 1995-03-15

Family

ID=11973899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60018520A Expired - Lifetime JPH0723009B2 (en) 1985-02-04 1985-02-04 Printer control method

Country Status (1)

Country Link
JP (1) JPH0723009B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5820488A (en) * 1981-07-29 1983-02-05 Hitachi Ltd Printer control system

Also Published As

Publication number Publication date
JPS61177253A (en) 1986-08-08

Similar Documents

Publication Publication Date Title
JPH0378651B2 (en)
US5043918A (en) Multiple bus image controller structure for color page printers
JPS6335431B2 (en)
JPH0577491A (en) Printer device
JPH0723009B2 (en) Printer control method
JPS6364765A (en) Output device
JPS62216029A (en) Graphic print control system
JPH0616764Y2 (en) Dot matrix printer
JP2872246B2 (en) Printer distributed processing method
JP4323622B2 (en) Recording device
JPS59201870A (en) Printer
JPH0630927B2 (en) Pattern output method
JP2728916B2 (en) Character processing apparatus and method
JPH0479009B2 (en)
JP3003266B2 (en) Serial printer
JPH0439434B2 (en)
JPH01296335A (en) Forms overlay table preparing system
JPH082009A (en) Serial printer
JPH0648459B2 (en) Print control method
JPS6364086A (en) Output unit
JPH07106650B2 (en) Character pattern control method
JPH02240722A (en) Record controller
JP2000155656A (en) Printer, and control method and system therefor
JPH07106647B2 (en) Storing method of print data
JPS63147221A (en) Hard copy system