JPS5899890A - Printer controlling system - Google Patents

Printer controlling system

Info

Publication number
JPS5899890A
JPS5899890A JP19725381A JP19725381A JPS5899890A JP S5899890 A JPS5899890 A JP S5899890A JP 19725381 A JP19725381 A JP 19725381A JP 19725381 A JP19725381 A JP 19725381A JP S5899890 A JPS5899890 A JP S5899890A
Authority
JP
Japan
Prior art keywords
character
font
print
printing
stored
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
JP19725381A
Other languages
Japanese (ja)
Inventor
Hiroaki Yokomichi
宏明 横道
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Tokyo Shibaura 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 Toshiba Corp, Tokyo Shibaura Electric Co Ltd filed Critical Toshiba Corp
Priority to JP19725381A priority Critical patent/JPS5899890A/en
Publication of JPS5899890A publication Critical patent/JPS5899890A/en
Pending 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)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To make a character format easier to read and to increase the number of characters printed in one line, by constituting a printer in such a way that a fixed space between characters is set by finding the address of the leading head, in which a character font is stored, and the width of the character font. CONSTITUTION:Upon receiving an input-output command, a processor unit 41 finds an address, in which the leading head address of the corresponding printing font is stored, and the width of the printing font from character codes stored in a character code buffer 45. Then, the unit 41 loads a character font on a printing buffer 45 from the corresponding leading head address of a printing font ROM44 to be found based on the printing font thus found. The unit then sets a space between characters in the dot printing buffer 45. By performing the control in such a way, a printing font of one character can be produced. When a printing font having a variable length is produced in this way, the space between characters becomes a fixed one (2 dots), and thus the number of characters printed in one line is increased.

Description

【発明の詳細な説明】 本発明は印字制御方式、4体的には可変長印字フォント
の生成手段に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a print control system, and more specifically to a means for generating a variable length print font.

通常、ドツトマトリクスタイプのインパクトプ−リンタ
装置においては、計−機本体(CPU)から発せられる
ソフトウェア命令を実行することにより、プリンタ装置
に対し入出力コマンドが出され、所望とする印字動作が
行なわれる。
Normally, in a dot matrix type impact printer device, input/output commands are issued to the printer device by executing software commands issued from the machine body (CPU), and the desired printing operation is performed. It will be done.

プリンタ装置に内蔵されるプリンタ制御部は、CPUか
ら得られる入出力コマンドに従い、プリンタ機構部に搭
載された文字印字ビン・を駆動することにより所望とす
る文字パターンの印字を行う。
A printer control section built into the printer device prints a desired character pattern by driving a character printing bin mounted on the printer mechanism section in accordance with input/output commands obtained from the CPU.

いま1文字が横11ドツトx縦16ドツトで構成される
ものとして説明を行う。プリンタの印字フォントは文字
コード(20H〜)に対応する順序でプリンタ制御部に
内蔵されたROMに収納されており、1文字のフォント
は第1図に示す番号順にROM内に割付けられる。
The following explanation assumes that one character consists of 11 horizontal dots x 16 vertical dots. The printing fonts of the printer are stored in the ROM built in the printer control unit in the order corresponding to the character codes (20H~), and the fonts of one character are allocated in the ROM in the numerical order shown in FIG.

ところで、この方式によれば、第2図(−)に示す如く
、横11ドツトフルに使用する文字Xの場合、あるいは
第2図(b)に示す如く横方向1ドツトしか使用しない
1の場合も左右のスペース(文字Xの場合はθバイト、
文字Iの場合は20バイト)を含み、常に1文字当り2
2バイトの印字フォントとしてROMを占有し格納して
いたものである。この模様を第3図に示す。
By the way, according to this method, the character X, which uses 11 full horizontal dots as shown in Figure 2 (-), or the character 1, which uses only one horizontal dot as shown in Figure 2 (b), can also be Left and right spaces (θ byte for character X,
20 bytes for the letter I), always 2 per character.
This is a 2-byte printing font that occupies and stores in ROM. This pattern is shown in Figure 3.

印字データを作成するときは、1文字毎に22バイト(
横11ドツト)の印字フォントと文字間スペース4バイ
ト(横2ドツト)を生成しているため、実際の印字にお
いて、ドツト幅の狭い文字が隣接したときは文字間スペ
ースが広く、ドツト幅の広い文字が隣接したときは文字
間のスペースが狭くなり、印刷された文字が見越くなる
といった欠点を有していた。
When creating print data, each character requires 22 bytes (
Since a printing font of 11 dots (horizontal) and a 4-byte space between characters (2 dots horizontally) are generated, in actual printing, when characters with narrow dot widths are adjacent, the space between characters is wide, When the characters are adjacent to each other, the space between the characters becomes narrow, resulting in the disadvantage that the printed characters look blurry.

例えば文字1が隣接した場合、即ち(11)の文字間ス
ペースは11ドツト、文字Xが隣接する場合、即ち(X
X)の文字間スペースは2ドツトである。
For example, when character 1 is adjacent, that is, the space between characters (11) is 11 dots, and when character X is adjacent, that is, (X
The character spacing for X) is 2 dots.

本発明は上記欠点に鑑みてなされたものであり、プロセ
ッサが文字コードから、対応する文字フォントが格納さ
れである先頭番地とその印字フォントの幅を求め、一定
の文字間スペースを設定する構成とすることにより、見
易く且つ1行当りの印字文字数を増加し得るプリンタ制
御方式を提供することを目的とする。
The present invention has been made in view of the above-mentioned drawbacks, and has a configuration in which a processor determines the starting address where a corresponding character font is stored and the width of its printing font from a character code, and sets a constant space between characters. It is an object of the present invention to provide a printer control method that is easy to see and can increase the number of printed characters per line.

以下、第4図以降を使用して本発明−に関し詳細に説明
す、る。
The present invention will be described in detail below using FIG. 4 and subsequent figures.

第4図は本発明が実現されるプリンタ制r?AW装置の
実施例を示すブロック図である。
FIG. 4 shows a printer system in which the present invention is realized. FIG. 2 is a block diagram showing an example of an AW device.

図において、4ノはプロセッサユニツ) (PU)であ
り、制佃メそり(0842)に収納されたファームフェ
ア(メモリに書込まれた一通の命令群をファームクエア
ルーチンと称し、そのルーテンを構成する格命令をファ
ームクエア命令と称する)に基づき演算9分岐、入出力
9割込み等の処理を行う。
In the figure, number 4 is the processor unit (PU), and the firmware stored in the control memory (0842) is called a firmware routine. Processing such as 9 calculation branches and 9 input/output interrupts is performed based on the case instruction (called a firmware instruction).

43は文字コードバッファ(CCB)であって、上記プ
ロセッサユニット41の指示に従い、パス46を介して
転送される文字コードが到来順に格納される。この文字
コードバッファ43はRAMで構成される。
A character code buffer (CCB) 43 stores character codes transferred via the path 46 in the order of arrival according to instructions from the processor unit 41. This character code buffer 43 is composed of RAM.

44は印字フォノ) ROMである。この印字フォント
ROM44には印字フォントならびにこのフォントに関
する情報(2バイト/文字)が格納される。このフォン
トに関する情報については後述する。45は印字バッフ
ァ(pa)であって、少くとも1行分の印字データ(印
字フォントの列)が格納される。
44 is a ROM (printed phono). This print font ROM 44 stores a print font and information (2 bytes/character) regarding this font. Information regarding this font will be described later. 45 is a print buffer (pa) in which at least one line of print data (a column of print fonts) is stored.

上記プロセッサユニット4トファームウエアメモリ42
轡文字コードバッファ43・印字フォノ) ROM44
・印字バッファ45は、パス46に共通に接続される。
The processor unit 4 firmware memory 42
轡Character code buffer 43/Print phono) ROM44
- The print buffer 45 is commonly connected to the path 46.

パス46はアドレス、データ1.コントロールのための
信号線が複数本から成り、このパス46に格納された各
ユニット47,42.4J、工1.45はこのパス46
を介して他ユニットとのデータの交信な行う。尚47は
プリンタ機構部(PRT)である。
Path 46 is address, data 1. The signal lines for control are composed of multiple lines, and each unit 47, 42.4J, and 1.45 stored in this path 46 is
Data is exchanged with other units via. Note that 47 is a printer mechanism section (PRT).

第5図は第4図に示した印字フォノ) ROMの構成を
メモリマツプ上に示した図である。
FIG. 5 is a diagram showing the configuration of the print phono ROM shown in FIG. 4 on a memory map.

本発明実施例では番地の小さい領域に文字コードに対応
した順で、12ビツトから成る印字フォントの先頭番地
ならびに4ビツトから成る印字フォント幅(左右のスペ
ースを除いた横方向のドツト数であって、第2図1にお
ける文字Xの場合は11、第2図すにおける文字1の場
合は2)が格納される。更に、これに続いて番地の大き
い領域に印字フォントが格納されている。本発明実施例
によれば、文字Xの文字フォントはアドレスX、=〜X
IIへ1文字1の文字フォントは12.及びIlmに割
りつけられている。
In the embodiment of the present invention, the first address of the 12-bit printing font and the 4-bit printing font width (the number of horizontal dots excluding the left and right spaces) are stored in the small address area in the order corresponding to the character code. , 11 for the character X in FIG. 1, and 2) for the character 1 in FIG. 2 are stored. Furthermore, following this, print fonts are stored in areas with larger addresses. According to the embodiment of the present invention, the character font of character X is at address X, =~X
The character font for 1 character 1 to II is 12. and Ilm.

第7図は第4図における制御メモリに収納されであるフ
ァームクエアルーチンのフローチャートを示す図であっ
て、本開明と関係する部分のみ抽出して示しである。参
考のため、第6因には第7図に対応した従来例によるフ
ァームウェアのフローチャートを示しである。
FIG. 7 is a diagram showing a flowchart of the firmware routine stored in the control memory in FIG. 4, and only the portions related to the present invention are extracted and shown. For reference, the sixth factor shows a flowchart of firmware according to a conventional example corresponding to FIG.

以下、第4図以降を使用して本発明の動作につき詳細に
説明を行う。
Hereinafter, the operation of the present invention will be explained in detail using FIG. 4 and subsequent figures.

CPUは主メモリ(いずれも図に示せず)に記憶されて
いるソフトウェア命令を続出し、それがプリンタ装置に
対する入出力コマンドであることを認識した場合、シス
テムパスな介してプリンタ装置に対しコマンドの実行に
必要な情軸な転送する。
The CPU executes a series of software instructions stored in main memory (none of which are shown in the figure), and if it recognizes that the instruction is an input/output command to the printer device, it sends the command to the printer device via the system path. Transfer the information necessary for execution.

入出力コマンドを受信したプロセッサユニット41は制
御メモリ42に収納されたファームウェアに従い、以下
に示す動作を行う。
The processor unit 41 that has received the input/output command performs the following operations in accordance with the firmware stored in the control memory 42.

まず、文字コードバッファ43に格納されて−ある文字
コードから対応する印字フォントの先頭番地を格納しで
ある番地(CODE−20H)X2と印字フォント幅を
求める。前者は12ビツト、後者は4ビツトで構成され
る。次に上記により求められる印字フォントROM44
の対応する先頭番地から、印字フォント幅NX2バイト
の印字フォントを、パス46を介して印字バッファ45
にローディングする。
First, from a certain character code stored in the character code buffer 43, the leading address of the corresponding printing font is stored, and the address (CODE-20H) X2 and the printing font width are determined. The former consists of 12 bits, and the latter consists of 4 bits. Next, the print font ROM44 obtained from the above
A print font with a print font width of N
Load into.

一上述した様に文字:の場合は、アドレス1目と1.の
内容1文字Xの場合はX、%XItの内容がローディン
グされる。そして、文字間スペースを2ドツト印字バッ
ファ45に設定する。
1. As mentioned above, in the case of characters:, address 1 and 1. If the content of 1 character is X, the content of X, %XIt is loaded. Then, the inter-character space is set in the two-dot print buffer 45.

この様に制御することにより、1文字の印字フォントを
生成することが出来、上記の様に可変長の印字フォント
を作成することにより文字間スペースが一定(2ドツト
)となる。
By controlling in this manner, it is possible to generate a one-character printing font, and by creating a variable-length printing font as described above, the space between characters becomes constant (two dots).

以上説明の如く、本発明によれば文字間スペースが一定
となるため、オペレータにとって印字フォーマットが見
易くなる。また、1行当りの印字文字数が増加し、更に
無駄な領域を省くことが出来るため、印字対象物(紙)
の有効利用がはかれる。
As described above, according to the present invention, the space between characters is constant, so the print format becomes easier for the operator to see. In addition, the number of characters printed per line increases, and wasted area can be further reduced.
will be used effectively.

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

第1図は1文字のフォント構成を示す図、第2図(1)
 @ (b)は印字フォントの例(それぞれXと1)を
示す図、第3図は従来における印字フォノ) ROMの
構成をメモリマツプ上に示した図、184図は本発明を
実現するプリンタ制御装置の構成ヤを示す図、第5図は
本発明において使用される印字フォントROMの構成を
メモリマツプ上に示した図、!i46図は従来例による
ファームウェアフローチャートを示す図、第7図番よ本
発明によるファームクエアのフローチャートを示す図で
ある。 4ノ・・・プロセッサユニット、42・・・制御メモリ
、43・・・文字コードバッファ、44・・・印字フォ
ントROM、45・・・印字バッファ。 出願入代通人  弁理士 鈴 江 武 彦第1図 (a)       (b) 第3図    第5図 第4図 第6図1 第7図
Figure 1 shows the font structure of one character, Figure 2 (1)
@ (b) is a diagram showing examples of printing fonts (X and 1, respectively), Figure 3 is a diagram showing the configuration of a ROM on a memory map (Fig. 3 is a diagram showing a conventional printing phono), and Figure 184 is a printer control device realizing the present invention. Figure 5 is a diagram showing the configuration of the print font ROM used in the present invention on a memory map. Figure i46 is a diagram showing a firmware flowchart according to the conventional example, and Figure 7 is a diagram showing a firmware flowchart according to the present invention. 4. Processor unit, 42. Control memory, 43. Character code buffer, 44. Print font ROM, 45. Print buffer. Patent Attorney Takehiko Suzue Figure 1 (a) (b) Figure 3 Figure 5 Figure 4 Figure 6 Figure 1 Figure 7

Claims (1)

【特許請求の範囲】[Claims] プロセッチユニットにより制御されるプリンタ装置にお
いて、文字コードが格納される文字コードバッファと、
この文字コードバッファに格納されたコード順に対応す
る印字フォントが格納されである先頭番地、その文字を
構成する印字フォント幅、更には印字フォントのそれぞ
、れが収納される印字フォーントメモリと、この印字フ
ォントメモリに収納された印字フォントの少くとも1行
分のデータを格納する印字バッファとを有し、−上記プ
ロセッサユニ、ットは上記文字コードバッファから得ら
れる文字コードにより対応する印字ラオントが収納され
である先頭番地とその文字を構成する印字フォント幅を
求め、この印字フォント幅で指定された長さの印字フォ
ントを上記印字フォントメモリから上記印字バツファヘ
ローデイングし一定の文字間スペースを設定することに
より、プリンタを駆動して所望の印字を行うことを特徴
とするプリンタ制御方式。
In a printer device controlled by a process unit, a character code buffer in which character codes are stored;
a print font memory that stores the first address where the print font corresponding to the code order stored in the character code buffer is stored, the print font width constituting the character, and each of the print fonts; a print buffer for storing at least one line of data of the print font stored in the print font memory; Find the first address where is stored and the print font width that makes up that character, load the print font with the length specified by this print font width from the print font memory to the print buffer, and create a constant space between characters. A printer control method characterized in that the printer is driven to perform desired printing by setting.
JP19725381A 1981-12-08 1981-12-08 Printer controlling system Pending JPS5899890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19725381A JPS5899890A (en) 1981-12-08 1981-12-08 Printer controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19725381A JPS5899890A (en) 1981-12-08 1981-12-08 Printer controlling system

Publications (1)

Publication Number Publication Date
JPS5899890A true JPS5899890A (en) 1983-06-14

Family

ID=16371386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19725381A Pending JPS5899890A (en) 1981-12-08 1981-12-08 Printer controlling system

Country Status (1)

Country Link
JP (1) JPS5899890A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59202867A (en) * 1983-05-04 1984-11-16 Sanyo Electric Co Ltd Printing control apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59202867A (en) * 1983-05-04 1984-11-16 Sanyo Electric Co Ltd Printing control apparatus
JPH023714B2 (en) * 1983-05-04 1990-01-24 Sanyo Electric Co

Similar Documents

Publication Publication Date Title
JP2610993B2 (en) Information processing apparatus and method
JPS5899890A (en) Printer controlling system
JP3016515B2 (en) Character processing apparatus and method
JPS5899891A (en) Printing font producing system
JPS59201870A (en) Printer
JPH01204758A (en) Dot printer
JPH0630927B2 (en) Pattern output method
JPS63125370A (en) Printer
JPH06168239A (en) Document preparing device
JPS62208177A (en) Image processor
JP2744250B2 (en) Character processing apparatus and method
JPH0326558A (en) Smooth printing system in printer
JP2881924B2 (en) Data storage device
JPS6235855A (en) Printing apparatus
JPH03119418A (en) Page printer
JPS5936314B2 (en) Display device control method
JPH06167962A (en) Method and device for compression of font data
JPS63298280A (en) Character font managing system
JPH0325495A (en) Printer
JPH0122943B2 (en)
JPS61225063A (en) Printing apparatus
JPS63199647A (en) Document output device
JPH0462084A (en) Printer
JPH09234912A (en) Printer and printing method
JPS62257867A (en) Printer