JPS6364764A - Output device - Google Patents

Output device

Info

Publication number
JPS6364764A
JPS6364764A JP61207956A JP20795686A JPS6364764A JP S6364764 A JPS6364764 A JP S6364764A JP 61207956 A JP61207956 A JP 61207956A JP 20795686 A JP20795686 A JP 20795686A JP S6364764 A JPS6364764 A JP S6364764A
Authority
JP
Japan
Prior art keywords
page
output
memory
image
area
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.)
Granted
Application number
JP61207956A
Other languages
Japanese (ja)
Other versions
JP2641433B2 (en
Inventor
Kunio Okada
岡田 邦男
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61207956A priority Critical patent/JP2641433B2/en
Publication of JPS6364764A publication Critical patent/JPS6364764A/en
Application granted granted Critical
Publication of JP2641433B2 publication Critical patent/JP2641433B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To enable memory efficiency to be increased by providing a means to detect an area in which characters or images are output from entered information, a storage area setting means which corresponds to the former means and a means to store character or image information into a storage area. CONSTITUTION:A scan buffer 110 is of a dual buffer structure, i.e. its one buffer receives image data of a page memory 106 being written by CPU 101, while the other is read by an image signal generator 111. This data which is read in this way is converted to an image signal S02 and output to an output interface circuit 112. The circuit 112 outputs various control signals or image signal to a laser beam printer (LBP) printing mechanism 113. The LBP printing mechanism 113 is started by means of printer starting signal S03 transmitted by CPU 101 to execute a series of printing processes such as paper feed, transfer and fixing of an image on the paper.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は出力装置、特に入力された情報に対応する文字
や画像を出力する出力装置に関するものである。  ・ [従来の技術] 従来、印刷装置等の出力装置においては出力媒体の領域
全域に対応するメモリを用意して出力を行っている。こ
のため、特にLEDプリンタやレーザビームプリンタな
どの印字密度の高いプリンタにおいては、大量のメモリ
容量を必要とし、コスト的に不利であった。また、出力
する情報の保存用メモリとして、出力装置の記憶媒体上
に固定的に存在しているため、大量メモリをかかえてい
る割には、文字フォントのダウンロードやマクロ・コマ
ンド登録などにはメモリ容量による制限が大きいものと
なっていた。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an output device, and particularly to an output device that outputs characters and images corresponding to input information. - [Prior Art] Conventionally, in an output device such as a printing device, a memory corresponding to the entire area of an output medium is prepared and output is performed. Therefore, especially in printers with high printing density such as LED printers and laser beam printers, a large amount of memory capacity is required, which is disadvantageous in terms of cost. In addition, since the memory for storing the information to be output is fixedly stored on the storage medium of the output device, even though it has a large amount of memory, it is difficult to use the memory for downloading character fonts, registering macro commands, etc. There were significant limitations due to capacity.

さらに、出力媒体上の領域と対応する記憶媒体上の領域
が一対−に対応づけられているため、例えば、用紙サイ
ズ統一のため84紙への印刷を行うが実印刷領域はA4
サイズで十分といったように、大きな出力媒体上に小領
域の出力領域しか必要としない場合においても、必要以
上に大容量のメモリを使用するため、メモリの利用効率
上無駄が多かった。
Furthermore, since there is a pairwise correspondence between an area on the output medium and a corresponding area on the storage medium, for example, to unify the paper size, printing is performed on 84 paper, but the actual printing area is A4.
Even when only a small output area is required on a large output medium, such as when the size is sufficient, a memory with a larger capacity than necessary is used, resulting in a lot of waste in terms of memory utilization efficiency.

また、LEDプリンタやレーザビームプリンタ等のペー
ジ単位に動作するプリンタにおいては、連続プリントを
スムーズに行わせるための複数ページ分の画像メモリが
必要となり、そのメモリ容量は美大なものになっている
In addition, printers that operate page by page, such as LED printers and laser beam printers, require image memory for multiple pages in order to perform continuous printing smoothly, and the memory capacity is enormous. .

[発明が解決しようとする問題点] 本発明は、上述の欠点を除去し、出力媒体上の必要な出
力領域を検知し、その領域分のメモリのみを可変に確保
することにより、メモリ効率を引き上げた出力装置を提
供する。
[Problems to be Solved by the Invention] The present invention eliminates the above-mentioned drawbacks, detects the necessary output area on the output medium, and variably reserves only the memory for that area, thereby improving memory efficiency. Provide a raised output device.

[問題点を解決するための手段] この問題点を解決するための一手段として、本発明の出
力装置は、入力された情報より出力される文字や画像の
出力媒体における出力領域を検知する検知手段と、該検
知手段により検知された前記出力領域に対応して記憶領
域を設定する設定手段と、該設定手段により設定された
前記記憶領域に前記文字や画像の情報を記憶する記憶手
段とを備える。
[Means for Solving the Problem] As a means for solving this problem, the output device of the present invention includes a detection method that detects an output area on an output medium of characters and images to be output based on input information. means, a setting means for setting a storage area corresponding to the output area detected by the detection means, and a storage means for storing information of the text or image in the storage area set by the setting means. Be prepared.

[作用] かかる構成において、記憶手段は検知手段により検知さ
れた出力領域に対応して設定された記憶領域に文字や画
像の情報を記憶する。
[Operation] In such a configuration, the storage means stores character and image information in a storage area set corresponding to the output area detected by the detection means.

【実施例〕【Example〕

以下、添付図面を参照して、本発明の好適な一実施例を
詳細に説明する。
Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

341図は、本発明の出力装置の一実施例であるレーザ
ビームプリンタ(以下、LBPと称す)のプリンタ制御
ユニット100の構成を示すブロック図である。第1図
において、101は、LBP全体の制御及び入力データ
解析を行うCii’tJ、103は、ホストコンピュー
タ102から送信されてくるデータを受信し、CPUl
0Iへ伝える入力インタフェース回路、104は、後述
の第5図及び第6図に示すCPUl0Iのプリンタ制御
プログラムを格納するプログラムROM、105はホス
トコンピュータ102から大力されるデータ中の文字コ
ードに対応する各文字パターンを収めたフォントメモリ
であり、一般のROMで構成される。106は、ホスト
コンピュータからのデータの一時保存及び複数ページの
画像メモリの確保に用いるページメモリで、後述のメモ
リ管理テーブル108により使用状態がコントロールさ
れる。107はページメモリ上のページバッファ、画像
メモリの入出力コントロールを行うためのページコント
ロールテーブルであり、後で、第3図を用いてその構造
を説明する。1o8はページメモリ106の使用状況を
管理し、メモリの確保や開放を行うためのメモリ管理テ
ーブルであり、その構造を第2図に示す。なお、ページ
メモリ106.ページコントロールテーブル107、メ
モリ管理テーブル108は一敗のRAMで構成される。
FIG. 341 is a block diagram showing the configuration of a printer control unit 100 of a laser beam printer (hereinafter referred to as LBP) which is an embodiment of the output device of the present invention. In FIG. 1, 101 controls the entire LBP and analyzes input data, and 103 receives data sent from the host computer 102, and
An input interface circuit 104 is a program ROM that stores a printer control program for the CPU 0I shown in FIGS. 5 and 6, which will be described later. This is a font memory that stores character patterns, and is made up of a general ROM. Reference numeral 106 denotes a page memory used for temporarily storing data from the host computer and securing a plurality of pages of image memory, and its usage status is controlled by a memory management table 108, which will be described later. Reference numeral 107 is a page control table for controlling the input/output of the page buffer and image memory on the page memory, and its structure will be explained later with reference to FIG. 1o8 is a memory management table for managing the usage status of the page memory 106 and for securing and releasing memory, the structure of which is shown in FIG. Note that the page memory 106. The page control table 107 and the memory management table 108 are composed of one-time RAM.

109は例えば、50m5毎の周期でcpu t o 
iにタイマ割込信号Solを出力するタイマユニットで
ある。タイマ割込信号SOIはCPUl0Iに組み込ま
れた、マルチタスク処理方式のプリンタ制御プログラム
のタイマ割込み処理ルーチンを起動してタスク管理を行
う、110は、ページメモリ106上に確保した画像メ
モリ上のレーザ1走査分のデータを一時保存する、スタ
テックRAMで構成されたスキャンバッファである。ス
キャンバッファ110は二重バッファ構造となっており
、cpu t o tがページメモリ106上の画像デ
ータをスキャンバッファ110の一方に書込んでいる間
に、他方のバッファを画像信号発生器111が読み取り
、これを画像信号SO2に変換して、出力インタフェー
ス回路112に出力する。
109 is, for example, CPU to
This is a timer unit that outputs a timer interrupt signal Sol to i. The timer interrupt signal SOI starts a timer interrupt processing routine of a multi-tasking printer control program built into the CPU 10I to manage tasks. This is a scan buffer made up of static RAM that temporarily stores scanned data. The scan buffer 110 has a double buffer structure, and while the CPU writes image data on the page memory 106 to one side of the scan buffer 110, the image signal generator 111 reads the other buffer. , converts this into an image signal SO2 and outputs it to the output interface circuit 112.

出力インタフェース回路112は、LBP印字機構部1
13に各種制御信号や画像信号を出力する回路であり、
CPUl0Iからのプリンタ起動信号303によって、
LBP印字機構部113に起動がかけられ、用紙の給紙
9画像の用紙への転写、定着といった一連の印刷プロセ
スが実行される。
The output interface circuit 112 is the LBP printing mechanism section 1
13 is a circuit that outputs various control signals and image signals,
By the printer activation signal 303 from CPU10I,
The LBP printing mechanism unit 113 is activated, and a series of printing processes such as transferring and fixing the 9 images fed to the paper onto the paper are executed.

次に第2図において第1図のメモリ管理テーブル108
を使ったページメモリ106の管理方法を述べる。ペー
ジメモリ106は論理上、256バイト単位のメモリセ
グメントに区切られ、その1つ1つがメモリ管理テーブ
ルを構成するRAMの1bitに対応づけられる。メモ
リ管理テーブル108は、byte (8bit)単位
にアクセスする一般のRAMで構成されており、Jlb
yte目のmbitがページメモリ106の先頭から(
8x Cl−1)+m)番目のメモリセグメントに対応
することになりそのRA Mアドレスが容易に計算でき
る。さらにメモリ管理テーブル108上の各bitにつ
いて、それが1°の場合には対応するメモリセグメント
が使用中を表わし、°0°の場合には未使用を表わし、
これによりCputotがメモリ使用状況を把握し、特
に空のメモリセグメントを確保できるようになっている
Next, in FIG. 2, the memory management table 108 of FIG.
A method of managing page memory 106 using . The page memory 106 is logically divided into memory segments of 256 bytes, each of which is associated with 1 bit of the RAM constituting the memory management table. The memory management table 108 is composed of a general RAM that is accessed in byte (8 bit) units.
The yte mbit is from the beginning of the page memory 106 (
Since it corresponds to the 8x Cl-1)+m)th memory segment, its RAM address can be easily calculated. Further, for each bit on the memory management table 108, if it is 1°, it indicates that the corresponding memory segment is in use, and if it is 0°, it indicates that it is unused.
This allows Cputot to keep track of memory usage and, in particular, to reserve empty memory segments.

第3図は、ページコントロールテーブル107の内部構
造を示す図である。301はページバッファコントロー
ルユニットであり、ページメモリ106上に確保したペ
ージバッファ307の先頭アドレスを収めるページバッ
ファアドレス領域303とページバッファ307上に収
められるデータ容量を収めるデータ容量領域302から
成る。ページバッファ307はメモリ管理テーブル10
8で空きをチェックして必要量を確保し、入力インタフ
ェース回路103を経由して人力された入力データを1
ペ一ジ分一時保持する。
FIG. 3 is a diagram showing the internal structure of the page control table 107. Reference numeral 301 denotes a page buffer control unit, which includes a page buffer address area 303 that stores the start address of the page buffer 307 secured on the page memory 106, and a data capacity area 302 that stores the data capacity that can be stored on the page buffer 307. The page buffer 307 is the memory management table 10
Check the free space in step 8 to secure the necessary amount, and input the manually input data via the input interface circuit 103 to step 1.
Temporarily holds one page.

ページメモリ106はページバッファ307の他に、1
ペ一ジ分の出力イメージをドツトパターンの形で発生さ
せ、保持しておく画像メモリ308〜310等を複数確
保できるようにしてあり、ページバッファ307に1ペ
一ジ分のデータが入力される毎に、順次出力イメージを
画像メモリに発生させる。この複数ページ分の画像メモ
リの入出力コントロールのため、ページコントロールテ
ーブル107上に、#1〜#5のページコントロールユ
ニット401a〜eかうなる画像ページコントロールテ
ーブル306を有している。
In addition to the page buffer 307, the page memory 106 has one
The output image for one page is generated in the form of a dot pattern, and a plurality of image memories 308 to 310 etc. can be secured to hold it, and the data for one page is input to the page buffer 307. Each time, an output image is generated in the image memory in sequence. In order to control the input/output of the image memory for a plurality of pages, the page control table 107 includes an image page control table 306 consisting of page control units #1 to #5, 401a to 401e.

画像ページコントロールテーブル306上のページコン
トロールユニット401a〜eは、出カベーシボインタ
304、入カベーシボインタ305でアクセスされる。
The page control units 401a to 401e on the image page control table 306 are accessed by the output space pointer 304 and the input space pointer 305.

出カベーシボインタ304は、印字出力中のページの画
像メモリ、あるいは、次に出力すべき画像メモリに対応
するページコントロールユニット401a〜eを指し示
すポインタであり、入カベーシボインタ304は、ペー
ジバッファ307経由の入力データの画像パターンを書
き込むページ画像メモリに対応するページコントロール
ユニット401a Ne、あるいは、次に画像書き込み
対象となるページコントロールユニット401a〜eを
指し示すポインタである。
The output space pointer 304 is a pointer that points to the page control unit 401a to 401e corresponding to the image memory of the page being printed or the image memory to be output next, and the input space pointer 304 is a pointer that points to the page control unit 401a to 401e corresponding to the image memory of the page being printed out, or the image memory to be output next. This is a pointer that points to the page control unit 401a Ne corresponding to the page image memory in which the image pattern of is to be written, or to the page control units 401a to 401e to which the image will be written next.

第4図に、上記のページコントロールユニット401a
Neの内部構造と対応する用紙上の印字領域を示す。
FIG. 4 shows the above page control unit 401a.
The print area on the paper corresponding to the internal structure of Ne is shown.

ページコントロールユニット401a〜eは、1ペ一ジ
分の出力画像に関する各種管理情報を収めたもので、ま
ず402にページコントロールユニット401aNeの
状態を示すステータスフラグが収められる。ステータス
フラグ402は、「空き」、「入力中」、「出力待ち」
、「出力中」のうち何れかのステータスを保持する。「
空き」のステータスはページコントロールユニット40
1a〜eが未使用であることを示す。「入力中」のステ
ータスはページコントロールユニット4018Neがペ
ージバッファ307経由の入力データを、対応する画像
メモリに画像パターンとして書込み処理中であることを
示す。「入力持ち」のステータスはページコントロール
ユニット401axeが印字開始を待っている状態を示
す、「出力中」のステータスはページコントロールユニ
ット401a〜eに対応する画像データについて印字動
作実行中であることを示す。
The page control units 401a to 401e store various management information regarding the output image of one page. First, a status flag 402 indicating the state of the page control unit 401aNe is stored. Status flag 402 is “vacant”, “input”, “waiting for output”
, or "outputting" status. "
The "vacant" status is page control unit 40
Indicates that 1a to 1e are unused. A status of "input" indicates that the page control unit 4018Ne is in the process of writing input data via the page buffer 307 into the corresponding image memory as an image pattern. A status of "input" indicates that the page control unit 401axe is waiting to start printing, and a status of "outputting" indicates that a printing operation is being executed for the image data corresponding to the page control units 401a to 401e. .

403.404は、画像メモリ上に発生させる1ペ一ジ
分の出力画像の実際の用紙上の位置を示すため、画像領
域の左上ずみの座標(Xi 。
403 and 404 indicate the actual position on the paper of the output image for one page generated on the image memory, and the coordinates (Xi) of the upper left corner of the image area.

yl)を収めておく領域である。また405゜406は
対応する1ペ一ジ分の出力画像のX方向の大きさX +
 s ’/力方向大きさYlを収めておく領域である。
yl) is stored. Also, 405°406 is the size in the X direction of the output image for one corresponding page
This is an area in which s'/force direction magnitude Yl is stored.

409に、用紙408上の出力画像の位置及びサイズを
示す。なお、座標は用紙左上ずみを原点として表わす、
また上記出力画像領域の左上ずみの座標(x+、yム)
及びサイズx、、y、は、1ペ一ジ分の人力データを人
力インタフェース回路103経由でページバッファ30
7へ収める際に、人力データが使用する有効印字領域を
チェックして算出する。
409 shows the position and size of the output image on the paper 408. Note that the coordinates are expressed with the top left corner of the paper as the origin.
Also, the coordinates of the upper left corner of the output image area (x+, ym)
and the size x,, y, is a page buffer 30 that transfers one page of human data to the page buffer 30 via the human interface circuit 103.
7, check and calculate the effective printing area used by human data.

ページバッファ307上の入力データから画像パターン
を画像メモリ上に発生させる際、サイズX、405、サ
イズY、406から必要メモリ容量を算出し、必要容量
の画像メモリをページメモリ106上に確保する。40
7はその確保した画像メそすの先頭アドレスを収めてお
く、画像メモリアドレスポインタである。
When generating an image pattern on the image memory from the input data on the page buffer 307, the required memory capacity is calculated from the size X, 405, and the size Y, 406, and the required capacity of image memory is secured on the page memory 106. 40
7 is an image memory address pointer that stores the first address of the secured image memory.

なお、上記ページバッファ307や画像メモリ308.
309,310は、メモリ管理テーブル108をチェッ
クしてアドレスの低い方から順に順次確保され、出力を
終えると開放される。
Note that the page buffer 307 and the image memory 308 .
Addresses 309 and 310 are secured in order from the lowest address by checking the memory management table 108, and are released upon completion of output.

以上のような構成をもつLBPにおける印字領域の実有
効領域のチェックと、それに伴なう複数ページの画像メ
モリの確保及び入出力コントロールの制御のしくみを、
プログラムROM104に格納された第5図、第6図の
フローチャートを用いて説明する。
The following describes the mechanism for checking the actual effective area of the printing area in the LBP with the above configuration, securing image memory for multiple pages, and controlling input/output control.
This will be explained using the flowcharts shown in FIGS. 5 and 6 stored in the program ROM 104.

本プリンタ制御用のプログラムは、マルチタスク方式を
採用しタイマユニット109よりのタイマ割込信号SO
Iによりタイマ管理がなされる。
This printer control program adopts a multitasking method and uses the timer interrupt signal SO from the timer unit 109.
Timer management is performed by I.

主なタスクとして、入力タスク及び出力タスクがあり、
1ペ一ジ分の出力画像を作成する入力処理と、作成され
た出力画像を印字する出力処理が並行に処理される。
The main tasks are input tasks and output tasks.
Input processing for creating an output image for one page and output processing for printing the created output image are processed in parallel.

第5図に入力タスクのフローチャートを示し、入力処理
を詳細に説明する。
FIG. 5 shows a flowchart of the input task, and the input processing will be explained in detail.

まず、ステップ5501で各種変数類の初期化を行う。First, in step 5501, various variables are initialized.

入力タスクで使用する主な変数として次のものがある。The main variables used in the input task are:

入力される入力コードの印字位置を表わす座標(x、y
)、尚(x、y)は用紙の左上ずみを原点(0,0)と
した座標で表わされる。また、x、yの1ページ中の最
小値、最大値で保存する変数として、Xの最小値X+m
ln、Xの最大値X、□、yの最小値ymlns yの
最大値yI1..lを用意する。従って、フォントメモ
リ105に収められている文字パターンの文字中をW1
文字高をhとすると座標(Xm1n + yain −
h)、(X mln +  ywrax )、(X @
 @ z + w+ymln −h )、(x 、、、
 + w 、 y □x)の4点で囲まれる領域がその
ページの有効印字領域すなわち、画像メモリを要する領
域となる。
The coordinates (x, y
), and (x, y) are expressed in coordinates with the origin (0, 0) at the upper left corner of the paper. Also, as variables to be saved as the minimum and maximum values of x and y in one page, the minimum value of X + m
ln, the maximum value of X, □, the minimum value of ymlns the maximum value of yI1. .. Prepare l. Therefore, the characters of the character pattern stored in the font memory 105 are
If the character height is h, the coordinates (Xm1n + yain −
h), (X mln + ywrax), (X @
@ z + w + ymln −h ), (x ,,,
The area surrounded by the four points +w, y□x) is the effective print area of that page, that is, the area that requires image memory.

なお、印字位置(x、y)は、文字パターン粋の左下す
みに対応する位置とし、1文字毎にXがW分屋へ進み、
改行時にはyがh分下へ進むことになる。
The printing position (x, y) is the position corresponding to the lower left corner of the character pattern, and for each character, X advances to the W branch,
When starting a new line, y moves down by h minutes.

ステップ5501で変数の初期化が終了するとステップ
5502へ進み、メモリ管理テーブル108をチェック
して、ページバッファ307を確保し、メモリ管理テー
ブル108を更新する。
When the initialization of variables is completed in step 5501, the process advances to step 5502, where the memory management table 108 is checked, the page buffer 307 is secured, and the memory management table 108 is updated.

続いて、ステップ5503でページバッファコントロー
ルユニット301の更新として、まず、データ容量領域
302をクリアし、ページバッファアドレス領域303
に、ステップ5501で確保したページバッファ307
の先頭アドレスをセットする0次に、ステップ5504
でホストコンピュータ102からの入力データを文字イ
ンタフェース回路103経路で取り出し、ステップ55
05で入力データをチェックする。入力データが文字コ
ードの場合には、ステップ3506〜5140文字処理
を行う。まず、ステップ3506〜511で、現在の印
字位置(x、y)とX、In、X□x、 ”J min
、 7□8を比較して、<X。
Next, in step 5503, the page buffer control unit 301 is updated by first clearing the data capacity area 302 and then clearing the page buffer address area 303.
, the page buffer 307 secured in step 5501
0 Next, step 5504
In step 55, the input data from the host computer 102 is taken out through the character interface circuit 103 path.
Check the input data in step 05. If the input data is a character code, character processing is performed in steps 3506 to 5140. First, in steps 3506 to 511, the current print position (x, y) and
, Compare 7□8 and find <X.

y)が、それぞれの最小値、最大値を越えていれば、(
x、y)を新しい最小値、最大値としてX +min、
 X Illり1.3’ +mln、 ymixの中の
該当変数を更新する。
If y) exceeds the respective minimum and maximum values, then (
x, y) as the new minimum and maximum values, X +min,
X Ill 1.3' + mln, update the corresponding variable in ymix.

次に、ステップ5512で入力データ(文字コード)を
ページバッファ307に収めステップ5513で印字位
置(x、y)を次の位置に更新する。そして、ステップ
5514でページバッファコントロールユニット301
上のデータ容量領域302を+1しておく0以上、1文
字コードの処理が終了すると、ステップ5504へ戻り
次の入力データの処理に進む。
Next, in step 5512, the input data (character code) is stored in the page buffer 307, and in step 5513, the print position (x, y) is updated to the next position. Then, in step 5514, the page buffer control unit 301
When the processing of the 0 or more and 1 character codes for which the upper data capacity area 302 is incremented by 1 is completed, the process returns to step 5504 and proceeds to the processing of the next input data.

ステップ5505の人力データのチェックで、入力デー
タが1ページの終了を示すFF(フオームフィード)コ
ードであった場合、ステップ5515〜522でページ
の終了処理を行う。
If the input data is an FF (form feed) code indicating the end of one page in the manual data check in step 5505, page end processing is performed in steps 5515 to 522.

ここで−例として、現在の入カベーシボインタ305が
#3のページコントロールユニット401cを指してい
るとすると、#3のページコントロールユニット401
cのページステータス402をチェックし、これがr空
」すなわち使用可能になるのを待つ。続いて、ステップ
5516で入力ページステータス402を「入力中」と
して#3のページコントロールユニット401Cを入力
タスクが使用中であることを示す0次にステップ551
7で、X +aln、 X wax、 ’j sin、
 ”j manによりページコントロールユニット40
1Cの管理情報403〜406を次のように更新する。
Here, as an example, if the current input space pointer 305 points to the #3 page control unit 401c, then the #3 page control unit 401c
Check the page status 402 of c and wait for it to become empty, that is, available. Next, in step 5516, the input page status 402 is set to "Inputting", and the page control unit 401C of #3 is set to 0, which indicates that the input task is in use.Next, in step 551
7, X +aln, X wax, 'j sin,
"Page control unit 40 by J man
The management information 403 to 406 of 1C is updated as follows.

xI  ” Xm1n  +  y l  ” yml
n  −h+XI=x、11.+w−X、ln。
xI ” Xm1n + y l ” yml
n −h+XI=x, 11. +w-X, ln.

Yl=yaax −()’5iTh−h)そして、ステ
ップ8518で、ステップ5517で算出したxt 、
Y、を使用して、画像メモリの容量を算出し、メモリ管
理テーブル108をチェックしてページメモリ106上
に画像メモリ310を確保する。続いてステップ551
9において、ページバッファ307に保存されている1
ペ一ジ分の文字コードを取り出し、対応する文字パター
ンをフォントメモリ105から読み出して、画像メモリ
310へ書き込んで1ペ一ジ分の圧力画像を発生させる
。1ペ一ジ分の出力画像が完成すると、ステップ552
0で、メモリ管理テーブル10Bを更新して、ページバ
ッファ307の領域を開放する。そしてステップ552
1でページステータス402に「出力待ち」セットして
出力準備完了を出力タスクへ知らせる0次にステップ5
522で入カベーシボインタ305を次のページコント
ロールユニット401dへ穆してページ終了処理を終え
る。
Yl=yaax-()'5iTh-h) Then, in step 8518, xt calculated in step 5517,
Y, is used to calculate the capacity of the image memory, check the memory management table 108, and secure the image memory 310 on the page memory 106. Then step 551
9, 1 stored in the page buffer 307
A character code for one page is taken out, a corresponding character pattern is read from the font memory 105, and written to the image memory 310 to generate a pressure image for one page. When the output image for one page is completed, step 552
0, the memory management table 10B is updated and the area of the page buffer 307 is released. and step 552
Step 1 sets the page status 402 to "waiting for output" and informs the output task that output preparation is complete.0 Next, step 5
At step 522, the input space pointer 305 is moved to the next page control unit 401d, and the page end processing is completed.

ページ終了処理を終えるとステップ5501へ戻り、次
のページの入力処理にはいる。
When the page end process is completed, the process returns to step 5501 and enters the input process for the next page.

次に第6図に出力タスクのフローチャートを示し、完了
した出力画像の出力処理を詳細に述べる。
Next, FIG. 6 shows a flowchart of the output task, and the completed output image output processing will be described in detail.

まず、ステップ5601で、出カベーシボインタ304
の示す#1のページコントロールユニット401aのペ
ージステータス402をチェックし、これが「出力持ち
」になるまで、すなわち出力画像が準備されるまで待つ
、そしてステップ5602で、プリンタ起動信号SO3
を出力し、LBP印字機構部に起動をかける。
First, in step 5601, the output bass pointer 304
Checks the page status 402 of #1 page control unit 401a indicated by and waits until it becomes "output ready", that is, until an output image is prepared, and in step 5602, printer start signal SO3 is activated.
is output, and the LBP printing mechanism section is activated.

次にステップ5603へ進み用紙の上端から、実際の印
字画像の始まるまでの区間すなわち、y座標がO”” 
yrの区間は、スキャンバッファ110ヘブランクデー
タを送り用紙上に空白区間を作る。なお、yIはページ
コントロールユニット401a上のyI座標404であ
る。
Next, the process advances to step 5603, and the interval from the top edge of the paper to the start of the actual print image, that is, the y coordinate is O""
In the section yr, blank data is sent to the scan buffer 110 to create a blank section on the paper. Note that yI is the yI coordinate 404 on the page control unit 401a.

次にステップ5604で、画像メモリ308上に用意し
た画像データをスキャンバツファ110へ転送する。こ
の際、X方向の書き出し区間の空白を得るため、スキャ
ンバッファ110への書き出し位置をXifらし、転送
データ量をX、として、Yiミスキャンのデータ転送を
行う、これによって、用紙上の所定の位置に所定の画像
を印刷できる。なお、xl l Xl + Ylそれぞ
れページコントロールユニット401aのXi座標40
3.サイズXム405.サイズY1406である。
Next, in step 5604, the image data prepared on the image memory 308 is transferred to the scan buffer 110. At this time, in order to obtain a blank space in the writing section in the X direction, the writing start position to the scan buffer 110 is set to Xif, the amount of data to be transferred is set to A predetermined image can be printed on. Note that xl l Xl + Yl are the Xi coordinates 40 of the page control unit 401a, respectively.
3. Size X 405. The size is Y1406.

画像データの出力が終了するとステップ5605へ進み
メモリ管理テーブル108を更新して、画像メモリ30
8の領域を開放する。そしてステップ5606でページ
コントロールユニット401aの出力ページステータス
402を「空」にし、ステップ5607で出カベーシボ
インタ304を次のページコントロールユニット401
bへBし、1ペ一ジ分の出力処理を終了する。1ペ一ジ
分の出力処理を終了するとステップ5601へ戻り次の
ページの出力処理にはいる。
When the output of image data is completed, the process advances to step 5605, updates the memory management table 108, and updates the image memory 30.
Open area 8. Then, in step 5606, the output page status 402 of the page control unit 401a is set to "empty", and in step 5607, the output page status pointer 304 is set to the next page control unit 401.
Go to B and end the output processing for one page. When the output processing for one page is completed, the process returns to step 5601 and starts the output processing for the next page.

本実施例は、レーザビームプリンタへの本発明の適用例
であったが本発明はこれに限らず、熱転写プリンタやL
EDプリンタなど、種々の印刷装置に適用できる。更に
、本発明の技術思想は印刷装置ばかりでなく、ディスプ
レイ等の他の出力装置にも適用できる。
Although this embodiment is an example of application of the present invention to a laser beam printer, the present invention is not limited to this, and can be applied to thermal transfer printers and L
It can be applied to various printing devices such as ED printers. Furthermore, the technical idea of the present invention can be applied not only to printing devices but also to other output devices such as displays.

また、本実施例では、入力データとして文字データのみ
を扱ったが、これに限らず、ベクトルグラフィックスな
どの図形データやイメージデータにも容易に適用できる
Further, in this embodiment, only character data is handled as input data, but the present invention is not limited to this, and can easily be applied to graphic data such as vector graphics and image data.

また、本実施例では、入力データの領域をチェックする
ため、一旦ページバツファに入力データを保存したが、
別の例として、ホストコンピュータから同じページのデ
ータをつずけて21送ることを規則として、1度目に実
印刷りょいきのチェックと画像メモリの確保を行い、2
度目には実際の印字を行ってもよい。
In addition, in this embodiment, in order to check the input data area, the input data is temporarily saved in the page buffer.
As another example, if the rule is to send 21 consecutive copies of the same page data from the host computer, the first time the actual printing is checked and the image memory is secured, and the second
Actual printing may be performed a second time.

また、本実施例では、ダイナミックにメモリを確保して
行く対象をページバッファと画像メモリに限ったわけで
あるが、この他に、あるページで一時的に使用するダウ
ンロードフォントの!縁領域や図形の塗りつぶし時の境
界保存などで必要となる作業用スタック領域なども、対
象のメモリ領域とすることでメモリ効率が一層高まる。
In addition, in this embodiment, the objects for which memory is dynamically allocated are limited to the page buffer and image memory, but in addition to this, the objects for which memory is dynamically allocated are limited to the page buffer and image memory. Memory efficiency is further increased by using the working stack area, which is required to preserve border areas and boundaries when filling in figures, as target memory areas.

以上説明したように、入力される印刷情報の印字位置を
受信時にチェックすることで、実効印刷領域の記録材上
の位置とサイズを知り、それによってダイナミックに画
像メモリを確保することにより、印刷装置のメモリ効率
を格段に引き上げることが可能となる。
As explained above, by checking the print position of input print information when receiving it, the printing device can know the position and size of the effective print area on the recording material, and dynamically allocate image memory based on this information. This makes it possible to significantly improve memory efficiency.

特に、扱える記録時の最大サイズは大きいが通常使用す
る記録材のサイズは最大サイズの半分以下とした場合、
メモリは最大サイズ分必要となるが、通常使用時は、メ
モリ内をダイナミックに分割して、複数ページ分が画像
メモリを貯えることができ、スループットの向上が計れ
る。
In particular, when the maximum recording size that can be handled is large, but the size of the recording material normally used is less than half the maximum size,
Although memory is required for the maximum size, during normal use, the memory can be dynamically divided to store multiple pages of image memory, improving throughput.

[発明の効果] 本発明により、出力媒体上の必要な出力領域を検知し、
その領域分のメモリのみを可変に確保することにより、
メモリ効率を引き上げた8カ装置を提供できる。
[Effects of the Invention] According to the present invention, a necessary output area on an output medium can be detected,
By variably securing only the memory for that area,
It is possible to provide an eight-key device with improved memory efficiency.

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

第1図は本実施例のレーザビームプリンタのプリンタ制
御ユニットの構成を示すブロック図、第2図はプリンタ
制御ユニット上のメモリ管理テーブルのテーブル構造図
、 兎3図はプリンタ制御ユニット上のページコントロール
テーブルの構造図、 第4図はページコントロールテーブル上のページコント
ロールユニットの構成図、 第5図はプリンタ制御ブログラル中の入力タスクのフロ
ーチャート、 第6図はプリンタ制御プログラム中の出力タスクのフロ
ーチャートである。 図中、100・・・プリンタ制御ユニット、101・・
・CPU、102・・・ホスト・コンピュータ、103
・・・入力インタフェース回路、104・・・プログラ
ムROM、105・・・フォントメモリ、106・・・
ページメモリ、107・・・ページコントロールテーブ
ル、108・・・メモリ管理テーブル、109・・・タ
イマウニット、11o・・・スキャンバッファ、111
画像信号発生器、112・・・出力インタフェース回路
、113・・・LBP印字機構部、301・・・ページ
バッファコントロールユニット、304・・・出カベー
シボインタ、305・・・入カベーシボインタ、401
aNe・・・ページコントロールユニットである。 特許出願人  キャノン株式会社 第 1 図 第2図 第51!! 第6図
Figure 1 is a block diagram showing the configuration of the printer control unit of the laser beam printer of this embodiment, Figure 2 is a table structure diagram of the memory management table on the printer control unit, and Figure 3 is a page control diagram on the printer control unit. Table structure diagram; Figure 4 is a configuration diagram of the page control unit on the page control table; Figure 5 is a flowchart of input tasks in the printer control program; Figure 6 is a flowchart of output tasks in the printer control program. be. In the figure, 100...printer control unit, 101...
・CPU, 102...Host computer, 103
...Input interface circuit, 104...Program ROM, 105...Font memory, 106...
Page memory, 107... Page control table, 108... Memory management table, 109... Timer unit, 11o... Scan buffer, 111
Image signal generator, 112... Output interface circuit, 113... LBP printing mechanism section, 301... Page buffer control unit, 304... Output space pointer, 305... Input space pointer, 401
aNe: Page control unit. Patent applicant Canon Co., Ltd. Figure 1 Figure 2 Figure 51! ! Figure 6

Claims (3)

【特許請求の範囲】[Claims] (1)入力された情報に対応した文字や画像を出力する
出力装置において、入力された情報より出力される文字
や画像の出力媒体における出力領域を検知する検知手段
と、該検知手段により検知された前記出力領域に対応し
て記憶領域を設定する設定手段と、該設定手段により設
定された前記記憶領域に前記文字や画像の情報を記憶す
る記憶手段とを備えることを特徴とする出力装置。
(1) In an output device that outputs characters or images corresponding to input information, a detection means detects an output area on an output medium of output characters or images based on the input information; An output device comprising: a setting means for setting a storage area corresponding to the output area set by the setting means; and a storage means for storing information on the characters and images in the storage area set by the setting means.
(2)出力領域は短形であつて、スタート位置と縦巾と
横巾とで表わされることを特徴とする特許請求の範囲第
1項記載の出力装置。
(2) The output device according to claim 1, wherein the output area is rectangular and is represented by a start position, a length, and a width.
(3)記憶手段には、出力領域内の文字や画像の情報が
記憶されることを特徴とする特許請求の範囲第2項記載
の出力装置。
(3) The output device according to claim 2, wherein the storage means stores information about characters and images within the output area.
JP61207956A 1986-09-05 1986-09-05 Printing control device Expired - Fee Related JP2641433B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61207956A JP2641433B2 (en) 1986-09-05 1986-09-05 Printing control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61207956A JP2641433B2 (en) 1986-09-05 1986-09-05 Printing control device

Publications (2)

Publication Number Publication Date
JPS6364764A true JPS6364764A (en) 1988-03-23
JP2641433B2 JP2641433B2 (en) 1997-08-13

Family

ID=16548317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61207956A Expired - Fee Related JP2641433B2 (en) 1986-09-05 1986-09-05 Printing control device

Country Status (1)

Country Link
JP (1) JP2641433B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0321475A (en) * 1989-06-19 1991-01-30 Matsushita Electric Ind Co Ltd Image output device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60220771A (en) * 1984-04-18 1985-11-05 Fujitsu Ltd Picture-area memory switching controlling system
JPS61190624A (en) * 1985-02-18 1986-08-25 Toyo Commun Equip Co Ltd Hard-copy system of graphic display picture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60220771A (en) * 1984-04-18 1985-11-05 Fujitsu Ltd Picture-area memory switching controlling system
JPS61190624A (en) * 1985-02-18 1986-08-25 Toyo Commun Equip Co Ltd Hard-copy system of graphic display picture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0321475A (en) * 1989-06-19 1991-01-30 Matsushita Electric Ind Co Ltd Image output device

Also Published As

Publication number Publication date
JP2641433B2 (en) 1997-08-13

Similar Documents

Publication Publication Date Title
EP0491029A1 (en) Raster image processor for all points addressable printer
US5371873A (en) Image data processing terminal equipment coupled to an external device allowing independent use of memory area by the external device
JPH0378651B2 (en)
US5210823A (en) Printing control apparatus in page printer
US6317193B2 (en) Image forming apparatus
JPH0263763A (en) Printing apparatus
JPH0822640B2 (en) Image recording device control device
JPH04325267A (en) Output method and its device
JPS6364764A (en) Output device
JP3116354B2 (en) Printer data management method
JPS6364765A (en) Output device
JPH01290448A (en) Character generator
JPH0421592B2 (en)
US6014149A (en) Character pattern generator
JP2637627B2 (en) Jam processing method and recording apparatus
JP2711860B2 (en) Output control method and device
JP2715475B2 (en) Graphic output device
JP3004656B2 (en) Output control device
JP3143118B2 (en) Printer and print image pattern development method
JPH051492B2 (en)
JPH03112668A (en) Printer
JPS63317349A (en) Printer
JPH0568724B2 (en)
JPH03114857A (en) Printer data management system
JPH0473170A (en) Serial printer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees