JPS6352586B2 - - Google Patents

Info

Publication number
JPS6352586B2
JPS6352586B2 JP55184687A JP18468780A JPS6352586B2 JP S6352586 B2 JPS6352586 B2 JP S6352586B2 JP 55184687 A JP55184687 A JP 55184687A JP 18468780 A JP18468780 A JP 18468780A JP S6352586 B2 JPS6352586 B2 JP S6352586B2
Authority
JP
Japan
Prior art keywords
data
buffer
line
ruled line
print
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
Application number
JP55184687A
Other languages
Japanese (ja)
Other versions
JPS57108976A (en
Inventor
Morikazu Soshi
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 JP55184687A priority Critical patent/JPS57108976A/en
Publication of JPS57108976A publication Critical patent/JPS57108976A/en
Publication of JPS6352586B2 publication Critical patent/JPS6352586B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/10Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers by matrix printers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】 本発明はプリンタ制御方法に関し、詳しくは、
ドツト式プリンタにおける罫線印字、改行間隔、
文字間スペース、文字サイズ等の制御方法に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a printer control method.
Ruled line printing, line feed spacing in dot printers,
This relates to a method of controlling character spacing, character size, etc.

ドツト式プリンタにおいて文字と罫線を印字す
る場合、従来は次のような方法が採られていた。
第1の方法は、第1図aに示すような罫線印字専
用のドツトを文字印字用ドツトと別に持つドツト
構成の印字ヘツド10を用いるものである。この
場合、第1図bに示すように、印字コードバツフ
ア1の各行に罫線データ2、文字データ3及び印
字指示コード4をまとめて1行のデータとして格
納でき、この1行分の印字データを1回の動作で
印字することが可能である。第1図cは印字結果
を示す。この為、1行分のデータ中に改行間隔、
文字間スペース、文字サイズが異つているものが
あつても、1回で制御できる利点がある。しか
し、この方式は罫線印字専用のドツトを持つ印字
ヘツドが必要になり、コスト的に不利である。
When printing characters and ruled lines in a dot printer, the following method has conventionally been adopted.
The first method is to use a print head 10 having a dot structure, as shown in FIG. 1a, which has dots exclusively for printing ruled lines and dots for printing characters. In this case, as shown in FIG. 1b, ruled line data 2, character data 3, and print instruction code 4 can be stored together as one line of data in each line of print code buffer 1, and this one line of print data can be stored as one line of data. It is possible to print in one operation. FIG. 1c shows the printing result. For this reason, the line feed interval in one line of data,
This has the advantage that even if there are different character spacings and character sizes, it can be controlled in one go. However, this method requires a print head with dots exclusively used for printing ruled lines, which is disadvantageous in terms of cost.

次に第2の方法は、第2図に示すように、上罫
線データ5、縦罫線データ7を含む文字データ
3、下罫線データ6を印字コードバツフア1に3
行に分けて作成・格納し、罫線も文字用ドツトで
順次印字する方式である。この方式は、罫線印字
専用のドツトを持たない印字ヘツドを使用できる
利点があるが、上罫線データ5、下罫線データ
6、縦罫線データ7等を必要とするため、印字入
力データの増加、印字コードバツフアの容量増加
など、コストおよび効率面で不利である。
Next, the second method is to transfer character data 3 including upper ruled line data 5, vertical ruled line data 7, and lower ruled line data 6 to print code buffer 1.
It is created and stored in separate lines, and the ruled lines are printed sequentially using character dots. This method has the advantage of being able to use a print head that does not have a dot dedicated to printing ruled lines, but it requires upper ruled line data 5, lower ruled line data 6, vertical ruled line data 7, etc., so the amount of input input data increases and printing This is disadvantageous in terms of cost and efficiency, such as an increase in the capacity of the code buffer.

本発明の目的は、印字データ量を増加させるこ
となく、罫線印字専用ドツトのない印字ヘツドを
用いて罫線印字、文字間スペース、改行間隔、さ
らに文字のサイズが可変可能としたプリンタ制御
方法を提供することにある。
An object of the present invention is to provide a printer control method in which ruled line printing, character spacing, line feed interval, and character size can be varied using a print head without dots dedicated to ruled line printing without increasing the amount of print data. It's about doing.

本発明は、文字データと罫線データ、及び文字
間スペース、改行間隔、文字の大きさの指示コー
ド(制御データ)を1行の印字データとしてまと
めて印字コードバツフアの1行に格納する。した
がつて、印字コードバツフアの内容については、
第1図に示した従来方法と同様にできる。しか
し、本発明では印字コードバツフアから読み出し
た文字データと罫線データとを一時記憶する為
に、データバツフア、罫線バツフアを別々に設け
る。さらに文字間スペース、改行間隔、文字サイ
ズ制御用のレジスタ群(制御レジスタ群)を設け
る。そして、印字コードバツフア内の1行分の印
字データを読出して印字する場合、1行の印字デ
ータ中に罫線データがあれば、罫線データの内容
により上罫線バツフア、下罫線バツフアに分けて
入力する。又、文字間スペース、改行間隔、文字
サイズの指示があれば、制御レジスタに退避し、
ドツト分解時、該レジスタの内容を使用する。印
字は罫線バツフア、文字バツフアと順次印字す
る。尚、罫線データがあると自動的に1行分のデ
ータを生成して印字を行う。
In the present invention, character data, ruled line data, and instruction codes (control data) for intercharacter space, line feed interval, and character size are stored together as one line of print data in one line of a print code buffer. Therefore, regarding the contents of the printing code buffer,
This can be done in the same way as the conventional method shown in FIG. However, in the present invention, a data buffer and a ruled line buffer are provided separately in order to temporarily store character data and ruled line data read from the print code buffer. Furthermore, a register group (control register group) for controlling character spacing, line break spacing, and character size is provided. When one line of print data in the print code buffer is read out and printed, if there is ruled line data in one line of print data, input is divided into an upper ruled line buffer and a lower ruled line buffer depending on the contents of the ruled line data. Also, if there are instructions for character spacing, line break spacing, and character size, they are saved in the control register,
The contents of the register are used during dot decomposition. Printing is performed sequentially with ruled lines and characters. Note that if there is ruled line data, one line of data is automatically generated and printed.

第3図は本発明の一実施例を示すブロツク図で
ある。第3図において、11は印字コードバツフ
アであり、この中に1行分毎の印字データが格納
される。この様子を第4図aに示す。即ち、各行
の印字データは、文字データ40,41,42,
43,44の他に、罫線指示コード101、印字
指示コード(改行コード:NL)102、文字間
のスペースを指示するコード(SP)103、文
字のサイズを指示するコード(CS)104、行
の間隔を指示するコード(LP)105の全て又
は一部を含んでいる。第4図bは第4図aの印字
データに対する印字例である。
FIG. 3 is a block diagram showing one embodiment of the present invention. In FIG. 3, numeral 11 is a print code buffer, in which print data for each line is stored. This situation is shown in FIG. 4a. That is, the print data of each line is character data 40, 41, 42,
In addition to 43 and 44, there is a ruled line instruction code 101, a print instruction code (line feed code: NL) 102, a code (SP) 103 that specifies the space between characters, a code (CS) 104 that specifies the size of the characters, and a code (CS) 104 that specifies the size of the line. It includes all or part of the code (LP) 105 indicating the interval. FIG. 4b is an example of printing for the print data of FIG. 4a.

第3図に戻り、13,20は印字行の改行ピツ
チ、14,21は文字サイズ、15,22は文字
間スペース、16,23は印字指示コードをそれ
ぞれセツトする制御レジスタ(以下単にレジスタ
という)である。18,25は1行のデータバツ
フアで、17,19,24,26は罫線データバ
ツフアである。27はバツフアセレクタで、デー
タバツフア18,25、罫線バツフア17,1
9,24,26の内1つのバツフアを選択し、そ
の内容を28,30のイメージバツフアへドツト
パターンに変換して入力する。29,31は1
6,23の印字指示コードレジスタ及び罫線の内
容によりセツトする印字指示レジスタである。1
2はプリンタ機構で、イメージバツフア28,3
0内のドツトパターンをラツチ29,31内の印
字指示にしたがつて印字動作を行う。
Returning to Figure 3, 13 and 20 are control registers (hereinafter simply referred to as registers) that set the line feed pitch of the print line, 14 and 21 the character size, 15 and 22 the space between characters, and 16 and 23 the print instruction code. It is. 18 and 25 are one-line data buffers, and 17, 19, 24, and 26 are ruled line data buffers. 27 is a buffer selector; data buffers 18, 25; ruled line buffers 17, 1;
One of the buffers 9, 24, and 26 is selected, and its contents are converted into a dot pattern and input into the image buffers 28 and 30. 29,31 is 1
This is a print instruction register set according to the contents of the print instruction code registers 6 and 23 and the ruled line. 1
2 is a printer mechanism, and image buffers 28, 3
The dot pattern within 0 is printed according to the print instructions in the latches 29 and 31.

第5図は第3図の動作を説明するためのフロー
図である。以下、第4図のデータを印字する場合
を例にとつて第3図の動作を説明する。
FIG. 5 is a flow diagram for explaining the operation of FIG. 3. The operation shown in FIG. 3 will be described below, taking as an example the case where the data shown in FIG. 4 is printed.

印字コードバツフア11に格納されている1行
目のデータを印字する場合、まず第5図のステツ
プ(1)でデータバツフア18,25の空きが調べら
れる。最初は両データバツフア18,25とも空
きのためステツプ(2)へ進む。ステツプ(2)では、ま
ず先頭の罫線指示コード101はケイセンバツフ
ア17,19に入力し、同時に、データバツフア
18にも入力する。次の文字データ40はデータ
バツフア18に入力し、この時、ケイセンバツフ
ア17,19には罫線データ無しを入力する。文
字データ40の次の罫線指示コード101も同様
にケイセンバツフア17,19及びデータバツフ
ア18に入力し、次のNLコード102を印字指
示コードレジスタ16に入力して1行目の印字デ
ータの入力が完了する。第4図aより、この行に
はLP,SP,CSの各コードは含まれていないの
で、レジスタ13,14,15は空きのまゝであ
る。
When printing the first line of data stored in the print code buffer 11, first, in step (1) in FIG. 5, the free space in the data buffers 18 and 25 is checked. Initially, both data buffers 18 and 25 are empty, so the process advances to step (2). In step (2), first, the first ruled line instruction code 101 is input to the keysen buffers 17 and 19, and at the same time, it is also input to the data buffer 18. The next character data 40 is input to the data buffer 18, and at this time, no ruled line data is input to the keysen buffers 17 and 19. Similarly, the next ruled line instruction code 101 of the character data 40 is input to the keypad buffers 17 and 19 and the data buffer 18, and the next NL code 102 is input to the print instruction code register 16 to complete the input of the first line print data. Complete. From FIG. 4a, since this line does not contain the LP, SP, and CS codes, registers 13, 14, and 15 remain empty.

ステツプ(2)の処理が完了するとステツプ(1)に戻
るが、データバツフア25が空きのため、再びス
テツプ(2)へ進み、2行目の印字データの入力処理
を行う。即ち、2行目の印字データの先頭はSP
コード103で、これはレジスタ22に入力し、
次の罫線指示コード101はケイセンバツフア2
4,26及びデータバツフア25に入力する。次
の文字データ41はデータバツフア25にのみ入
力する。次の罫線データ101も同様にケイセン
バツフア24,26及びデータバツフア25に入
力し、次のNLコード102をレジスタ23に入
力して2行目の処理は完了する。
When the process of step (2) is completed, the process returns to step (1), but since the data buffer 25 is empty, the process proceeds to step (2) again to input the print data for the second line. In other words, the beginning of the print data on the second line is SP.
code 103, which enters register 22,
The next ruled line instruction code 101 is Keisen Batsufu 2
4, 26 and data buffer 25. The next character data 41 is input only to the data buffer 25. The next ruled line data 101 is similarly input to the keysen buffers 24, 26 and the data buffer 25, and the next NL code 102 is input to the register 23, completing the processing of the second line.

次に再びステツプ(1)に戻るが、データバツフア
18,25にはそれぞれ1行目、2行目のデータ
が入つているため、ステツプ(3)に進む。ステツプ
(3)では、イメージバツフア28,30の空きが調
べられる。こゝでは両イメージバツフア28,3
0共に空いているのでステツプ(4)に進む。ステツ
プ(4)では、バツフアセレクタ27が17,18,
19,24,25,26のどのバツフアの内容を
イメージバツフア28,30に分解するかを決め
る。これはバツフア17→18→19→24→2
5→26→17と繰り返す。こゝでは、まずバツ
フア17が選択され、その内容がドツトパターン
に分解されイメージバツフア28に入れられる。
即ち、1行目の上罫線ドツトパターンがイメージ
バツフア28に入る。又、レジスタ29には16の
NLコードが入力される。
Next, the process returns to step (1) again, but since the data buffers 18 and 25 contain the data of the first and second lines, respectively, the process proceeds to step (3). step
In (3), the free space in the image buffers 28 and 30 is checked. Here, both image buffers 28,3
Since both 0 and 0 are empty, proceed to step (4). In step (4), the buffer selector 27 is set to 17, 18,
It is determined which buffers 19, 24, 25, and 26 are to be decomposed into image buffers 28 and 30. This is Batsuhua 17 → 18 → 19 → 24 → 2
Repeat 5 → 26 → 17. Here, the buffer 17 is first selected, and its contents are decomposed into dot patterns and put into the image buffer 28.
That is, the upper ruled line dot pattern of the first row is entered into the image buffer 28. Also, register 29 has 16
NL code is input.

次にステツプ(5)に進み、イメージバツフア2
8,30のいずれかが印字中かどうか調べる。
こゝでは、いずれも印字中でないのでステツプ(6)
へ進み、プリンタ機構12が印字指示レジスタ2
9の指示に従いイメージバツフア28の内容の印
字を開始する(第4図bの40″)。
Next, proceed to step (5) and image buffer 2.
Check whether either 8 or 30 is being printed.
At this point, nothing is being printed, so go to step (6).
Then, the printer mechanism 12 registers the print instruction register 2.
9, printing of the contents of the image buffer 28 is started (40'' in FIG. 4b).

次のステツプ(7)では1行分の印字が完了したか
どうかを調べる。こゝでは完了していないので、
ステツプ(7)の次にステツプ(1)へ進む。ステツプ(1)
ではデータバツフア18,25が入力済みなので
ステツプ(3)に進み、イメージバツフア30が空い
ているのでステツプ(4)に進む。ステツプ(4)では、
データバツフア18の内容がドツトに分解され、
イメージバツフア30に入れられる。即ち、1行
目の縦罫線及び文字ドツトパターンがイメージバ
ツフア30に入る。又、16のNLコードがレジス
タ31に入力される。
In the next step (7), it is checked whether printing of one line has been completed. Since it is not completed here,
After step (7), proceed to step (1). Step(1)
Now, since the data buffers 18 and 25 have been input, the process proceeds to step (3), and since the image buffer 30 is empty, the process proceeds to step (4). In step (4),
The contents of the data buffer 18 are decomposed into dots,
It is placed in the image buffer 30. That is, the vertical ruled lines and character dot pattern of the first row are stored in the image buffer 30. Additionally, 16 NL codes are input to the register 31.

次のステツプ(5)でイメージバツフア28の印字
が完了したかどうかを調べる。完了してなければ
ステツプ(5)→(7)→(1)→(3)→(5)となる。イメージバ
ツフア28の印字が完了すると、ステツプ(8)でイ
メージバツフア28の空きがセツトされ、ステツ
プ(5)→(6)と進む。ステツプ(6)でイメージバツフア
30、即ちタテ罫線データとA,B,Cの文字が
印字される(第4図bの40′)。
In the next step (5), it is checked whether printing of the image buffer 28 is completed. If it is not completed, steps (5) → (7) → (1) → (3) → (5) will occur. When printing in the image buffer 28 is completed, the empty space in the image buffer 28 is set in step (8), and the process proceeds from steps (5) to (6). In step (6), the image buffer 30, that is, the vertical ruled line data and the characters A, B, and C are printed (40' in FIG. 4b).

次にステツプ(7)→(1)→(3)と進み、ステツプ(3)で
はイメージバツフア28が空きなのでステツプ(4)
に進む。このステツプ(4)では、ケイセンバツフア
19が選択され、その内容がドツトパターンに分
解されてイメージバツフア28に入力される。即
ち、イメージバツフア28には1行目の下罫線ド
ツトパターンが入る。次にケイセンバツフア24
を調べて罫線データがあり、且つ、レジスタ14
と21を比較して文字サイズが等しければ、ケイ
センバツフア24を引き続いて選択し、その内容
をドツトパターンに分解して、先のケイセンバツ
フア19のデータとORする形式でイメージバツ
フア28に入力する。この結果、1行目の下ケイ
センと2行目の上ケイセンデータとが合成されて
イメージバツフア28に入力される。
Next, the process proceeds from step (7) → (1) → (3), and since the image buffer 28 is empty at step (3), the process goes to step (4).
Proceed to. In this step (4), the Keisen buffer 19 is selected, and its contents are decomposed into dot patterns and input into the image buffer 28. That is, the image buffer 28 contains the lower ruled line dot pattern of the first row. Next, Keisenbatshua 24
Check if there is ruled line data and register 14
and 21, and if the font sizes are the same, successively select the Keisen Buffer 24, decompose its contents into dot patterns, and transfer them to the Image Buffer 28 in a format that is ORed with the data of the Keisen Buffer 19. input. As a result, the lower scale data of the first row and the upper scale data of the second row are combined and input to the image buffer 28.

次にステツプ(5)→(7)→(1)→(3)→(5)と進み、イメ
ージバツフア30の印字が終了すると、ステツプ
(7)→(8)→(5)→(6)と進み、イメージバツフア28の
内容、即ち、1行目の下罫線と2行目の上罫線の
合成パターンが印字される。(第4図bの40,
41″)。そして、ステツプ(6)→(7)→(1)→(3)→(4)

進み、今度はデータバツフア30に入力する。
こゝでデータバツフア25には2行目の文字デー
タA,B,Cが含まれているが、同時にレジスタ
22にはSPコードがセツトされているため、バ
ツフアセレクタ27は該文字データA,B,Cを
1文字スペースし、それに対してドツト分解した
ものをイメージバツフア30にする。
Next, the process proceeds from step (5) → (7) → (1) → (3) → (5), and when the printing of the image buffer 30 is completed, step
The process proceeds in the order of (7)→(8)→(5)→(6), and the contents of the image buffer 28, that is, the composite pattern of the lower ruled line of the first line and the upper ruled line of the second line are printed. (40 in Figure 4b,
41″). Then, step (6) → (7) → (1) → (3) → (4)
Then, input the data into the data buffer 30.
Here, the data buffer 25 contains character data A, B, and C on the second line, but at the same time, the SP code is set in the register 22, so the buffer selector 27 selects the character data A, B, and so on. , C are separated by one character, and the image buffer 30 is obtained by decomposing them into dots.

印字中のイメージバツフア28、即ち、合成し
た罫線データの印字が完了すると、バツフア1
7,18,19の印字が全て完了したことになる
ので、ステツプ(8)でデータバツフア18の空きが
セツトされる。次にステツプ(5)→(6)と進み、イメ
ージバツフア30の印字を指示し(2行目の縦罫
線と文字A,BC:第4図bの41′)、ステツプ
(7)→(1)へと進む。こゝでデータバツフア18が空
いているのでステツプ(2)に行き、3行目の印字デ
ータの入力処理を行う。第4図aより、3行目の
印字データの先頭はCSコード104で、これは
レジスタ14に入力し、次の罫線指示コード10
1はバツフア17,18,19に入力し、次の文
字データ42はバツフア18にのみ入力する。同
様に、次の罫線指示コード101はバツフア1
7,18,19に入力し、最後にNLコード10
2をレジスタ16に入力する。
When the image buffer 28 being printed, that is, the printing of the combined ruled line data is completed, the buffer 1
Since printing of data 7, 18, and 19 has been completed, the free space in the data buffer 18 is set in step (8). Next, proceed from step (5) to (6), instruct printing on the image buffer 30 (vertical ruled lines and letters A and BC on the second line: 41' in Fig. 4b), and proceed to step (5) → (6).
Proceed to (7)→(1). Since the data buffer 18 is now empty, the process goes to step (2) to input the print data for the third line. From FIG. 4a, the beginning of the print data on the third line is CS code 104, which is input to the register 14, and the next ruled line instruction code 10
1 is input into buffers 17, 18, and 19, and the next character data 42 is input only into buffer 18. Similarly, the next ruled line instruction code 101 is buffer 1.
Enter 7, 18, 19, and finally NL code 10
2 into register 16.

次にステツプ(1)→(3)→(4)と進み、イメージバツ
フア28にケイセンバツフア26の内容、即ち、
2行目の下罫線パターンを入力する。こゝでも、
次の3行目の上罫線との合成が可能か否かチエツ
クする。いまの場合、ケイセンバツフア17には
3行目の罫線データがあるが、2行目の文字サイ
ズを指定するレジスタ21のCS2(例では標準
文字サイズ)と3行目の文字サイズを指定するレ
ジスタ14のCS1(縮小文字サイズ)が一致し
ないので、ケイセンバツフア17の罫線データは
イメージバツフア28に入力しない。次に、レジ
スタ29にはCR(キヤリツジリターン:印字を指
示するが改行を行わない)コードをセツトし、次
のケイセンバツフア17の内容を印字する時、
NLコードを送る。即ち、文字サイズが異なれば
重ね印字を行うことにより合成する(第4図bの
41,42″)。
Next, proceeding to steps (1)→(3)→(4), the contents of the keysen buffer 26 are transferred to the image buffer 28, that is,
Enter the bottom ruled line pattern for the second line. Even here,
Check whether it is possible to combine with the upper ruled line of the next third row. In this case, the Keisen buffer 17 has ruled line data on the third line, but CS2 in the register 21 that specifies the character size on the second line (standard character size in the example) and the character size on the third line are specified. Since the CS1 (reduced character size) of the register 14 does not match, the ruled line data of the Keysen buffer 17 is not input to the image buffer 28. Next, a CR (carriage return: instructs printing but does not perform line feed) code is set in the register 29, and when printing the next contents of the keysen buffer 17,
Send NL code. That is, if the character sizes are different, they are combined by overlapping printing (41, 42'' in FIG. 4b).

バツフア26の内容、即ちイメージバツフア3
0の内容が印字完了すると、ステツプ(8)でデータ
バツフア25のバツフア空きをセツトし、次にス
テツプ(6)でイメージバツフア28、即ち、3行目
の上罫線データであるバツフア17の印字指示を
するとステツプ(7)→(1)→(2)と進み、4行目のデー
タをバツフア24,25,26に入力する。4行
目のデータのうち、LPコード105は改行ピツ
チを指示するものでレジスタ20に入力し、次の
CSコード104はレジスタ21に入力する。こ
の4行目のデータには罫線コードはなく、次の文
字データ43をバツフア25に、NLコード10
2をレジスタ23に入力して終了する。LPコー
ドの切替えは、バツフア17又は24をイメージ
バツフアに入力する時、レジスタ29又は31に
入力し、印字する時、12のプリンタ機構へ送る。
Contents of buffer 26, i.e. image buffer 3
When the printing of the contents of 0 is completed, the buffer space of the data buffer 25 is set in step (8), and then, in step (6), printing instructions are given for the image buffer 28, that is, the buffer 17 which is the upper ruled line data of the third line. Then, the process advances to steps (7)→(1)→(2), and the data on the fourth line is input into buffers 24, 25, and 26. Of the data on the 4th line, LP code 105 instructs the line feed pitch and is input into register 20, and the next
The CS code 104 is input to the register 21. There is no ruled line code in this 4th line data, and the next character data 43 is set to buffer 25 and NL code 10.
2 is input into the register 23 and the process ends. To switch the LP code, when inputting buffer 17 or 24 to the image buffer, input it to register 29 or 31, and when printing, send it to 12 printer mechanisms.

以上の動作を繰り返し、バツフア11のデータ
がなくなる迄実行する。なお、第5図の処理手順
は、例えばマイクロコンピユータを用いることに
より容易に実現可能である。この場合、第3図の
構成はマイクロコンピユータの一部を構成してい
るとみればよい。
The above operations are repeated until the buffer 11 runs out of data. Note that the processing procedure shown in FIG. 5 can be easily realized by using, for example, a microcomputer. In this case, the configuration shown in FIG. 3 can be considered to constitute part of a microcomputer.

以上の説明から明らかな如く、本発明によれ
ば、文字データと罫線データ及び行間隔指示、文
字サイズ指示等の制御データを同一制御を行う文
字データごとに印字データとしてまとめているの
で、印字データ量が大幅に減るとゝもに、個々の
文字データの行間隔指示、文字サイズ等を自由に
制御することができる。
As is clear from the above description, according to the present invention, character data, ruled line data, line spacing instructions, character size instructions, and other control data are grouped together as print data for each character data subject to the same control. The amount of data is significantly reduced, and the line spacing, character size, etc. of individual character data can be freely controlled.

また、本発明では、第1の下罫線バツフアの内
容と第2の上罫線バツフアの内容を合成し、上下
罫線ドツトパターンとして同時に印字するので、
印字速度が向上する。さらに、第1の下罫線バツ
フアの内容と第2の上罫線バツフアの内容を合成
して一度に印字することにより、ある行の下罫線
と次の行の上罫線を1本を罫線として一致させた
い場合にもそれが容易に実現でき、しかも該罫線
は濃くなつたり太くなつたりすることもなく(2
度打ちしないため)、同一の濃さ太さの罫線が得
られる。
Furthermore, in the present invention, the contents of the first lower ruled line buffer and the contents of the second upper ruled line buffer are combined and printed simultaneously as an upper and lower ruled line dot pattern.
Printing speed is improved. Furthermore, by combining the contents of the first lower ruled line buffer and the contents of the second upper ruled line buffer and printing them at once, the lower ruled line of one row and the upper ruled line of the next row can be made to coincide with one ruled line. If you want to do that, you can easily do it, and the ruled lines will not become darker or thicker (2).
(Because the lines are not pressed repeatedly), ruled lines with the same density and thickness can be obtained.

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

第1図a〜c及び第2図は従来のプリンタ制御
方式を説明するための図、第3図は本発明の一実
施例を示すブロツク図、第4図a,bは印字デー
タ及びその印字例を示す図、第5図は第3図の動
作を説明するためのフロー図である。 11……印字コードバツフア、12……プリン
タ機構、13,20……改行ピツチレジスタ、1
4,21……文字サイズレジスタ、15,22…
…文字間スペースレジスタ、16,23……印字
指示コードレジスタ、17,19,24,26,
……ケイセンバツフア、18,25……データバ
ツフア、27……バツフアセレクタ、28,30
……イメージバツフア、29,31……印字指示
レジスタ。
Figures 1 a to c and Figure 2 are diagrams for explaining a conventional printer control system, Figure 3 is a block diagram showing an embodiment of the present invention, and Figures 4 a and b are print data and their printing. A diagram showing an example, FIG. 5 is a flow diagram for explaining the operation of FIG. 3. 11... Print code buffer, 12... Printer mechanism, 13, 20... Line feed pitch register, 1
4, 21...Character size register, 15, 22...
... Character space register, 16, 23 ... Print instruction code register, 17, 19, 24, 26,
...Keysen Batsuhua, 18,25...Data Batsuhua, 27...Batsufua Selector, 28,30
...Image buffer, 29, 31...Print instruction register.

Claims (1)

【特許請求の範囲】[Claims] 1 罫線印字専用のドツトを持たない印字ヘツド
を用いたドツトプリンタにおいて、文字データと
罫線データ、及び行間隔指示、文字サイズ指示等
の制御データを一行毎に印字データとしてまとめ
て印字コードバツフアに格納し、印字を行う時、
前記印字コードバツフアから1行ずつ印字データ
を読出し、ある行の文字データは第1のデータバ
ツフアに、罫線データはその内容により第1の上
罫線バツフアと第1の下罫線バツフアに取込み、
かつ、制御データは第1の制御レジスタに設定
し、次の行の文字データは第2のデータバツフア
に、罫線データはその内容により第2の上罫線バ
ツフアと第2の下罫線バツフアに取込み、かつ、
制御データは第2の制御レジスタに設定し、第1
の制御レジスタの制御データの指示に従つて、第
1のデータバツフアの内容を文字ドツトパターン
として印字し、次に、第1の下罫線バツフアの内
容と第2の上罫線バツフアの内容を合成し上下罫
線ドツトパターンとして印字することを特徴とす
るプリンタ制御方法。
1. In a dot printer using a print head that does not have a dot dedicated to printing ruled lines, character data, ruled line data, and control data such as line spacing instructions and character size instructions are stored as print data for each line in a print code buffer, When printing,
Reading the print data line by line from the print code buffer, taking the character data of a certain line into a first data buffer and the ruled line data into a first upper ruled line buffer and a first lower ruled line buffer depending on the contents,
And, the control data is set in the first control register, the character data of the next line is taken into the second data buffer, the ruled line data is taken into the second upper ruled line buffer and the second lower ruled line buffer depending on the contents, and ,
The control data is set in the second control register, and the control data is set in the second control register.
The contents of the first data buffer are printed as a character dot pattern according to the instructions of the control data in the control register, and then the contents of the first lower ruled line buffer and the contents of the second upper ruled line buffer are combined to print the upper and lower lines. A printer control method characterized by printing as a ruled line dot pattern.
JP55184687A 1980-12-25 1980-12-25 Printer control system Granted JPS57108976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55184687A JPS57108976A (en) 1980-12-25 1980-12-25 Printer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55184687A JPS57108976A (en) 1980-12-25 1980-12-25 Printer control system

Publications (2)

Publication Number Publication Date
JPS57108976A JPS57108976A (en) 1982-07-07
JPS6352586B2 true JPS6352586B2 (en) 1988-10-19

Family

ID=16157608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55184687A Granted JPS57108976A (en) 1980-12-25 1980-12-25 Printer control system

Country Status (1)

Country Link
JP (1) JPS57108976A (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58191166A (en) * 1982-05-06 1983-11-08 Ricoh Co Ltd Thermal line printer
JPS59101367A (en) * 1982-12-01 1984-06-11 Canon Inc Recording apparatus
JPS59198179A (en) * 1983-04-26 1984-11-09 Brother Ind Ltd Electronic typewriter
JPS60132769A (en) * 1983-12-21 1985-07-15 Mitsubishi Electric Corp Dot printer
JPS60168660A (en) * 1984-02-14 1985-09-02 Fuji Xerox Co Ltd Ruled line image generator
JPS60168676A (en) * 1984-02-14 1985-09-02 Fuji Xerox Co Ltd Rule image generator
JPH01244884A (en) * 1988-03-26 1989-09-29 Brother Ind Ltd Document processor
JPH0616764Y2 (en) * 1989-07-31 1994-05-02 株式会社新興製作所 Dot matrix printer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5462014A (en) * 1977-10-27 1979-05-18 Nippon Electric Co Frame line automatic printing system for serial dot printer
JPS5489424A (en) * 1977-12-27 1979-07-16 Toshiba Corp Ruled line generator
JPS5591690A (en) * 1978-12-29 1980-07-11 Fujitsu Ltd Ruled line recording system of printer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5462014A (en) * 1977-10-27 1979-05-18 Nippon Electric Co Frame line automatic printing system for serial dot printer
JPS5489424A (en) * 1977-12-27 1979-07-16 Toshiba Corp Ruled line generator
JPS5591690A (en) * 1978-12-29 1980-07-11 Fujitsu Ltd Ruled line recording system of printer

Also Published As

Publication number Publication date
JPS57108976A (en) 1982-07-07

Similar Documents

Publication Publication Date Title
US4621340A (en) Method for construction and display of ideographic characters
US4584573A (en) Combined character and background pattern print control system
JPS6352586B2 (en)
JPS6335431B2 (en)
JPS62204949A (en) Word processor with multicolor printing function
US4553219A (en) Typewriter having calculating capability
US4871270A (en) Method of printing modified characters by means of a matrix printer
JPS60109878A (en) Electronic typewriter with editing function
JPS5911439A (en) Character processor
JP2670447B2 (en) Output device and method
JP2798637B2 (en) Overlay printing method
JPS5771081A (en) Overlay printer
JPH0139357B2 (en)
JP2834738B2 (en) Printing equipment
JPH0621978B2 (en) Print control device
JPS61163867A (en) Text filing of text buffer in character generation circuit
JPH0422653A (en) Printer
JPS59231687A (en) Document processor
JPS58160158A (en) Printing method by line-unit
JPH0723009B2 (en) Printer control method
JPH0570856B2 (en)
JPS61241159A (en) Character pattern data generator for high quality printing
JPH05116383A (en) Data processor
JPS61143149A (en) Information processing apparatus
JPH0458392B2 (en)