JP2641433B2 - Printing control device - Google Patents

Printing control device

Info

Publication number
JP2641433B2
JP2641433B2 JP61207956A JP20795686A JP2641433B2 JP 2641433 B2 JP2641433 B2 JP 2641433B2 JP 61207956 A JP61207956 A JP 61207956A JP 20795686 A JP20795686 A JP 20795686A JP 2641433 B2 JP2641433 B2 JP 2641433B2
Authority
JP
Japan
Prior art keywords
page
output
memory
image
input
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 - Fee Related
Application number
JP61207956A
Other languages
Japanese (ja)
Other versions
JPS6364764A (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.)
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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は印刷制御装置、特に入力された情報に基づい
てドツト情報を生成し、印刷装置に出力する印刷制御装
置に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print control device, and more particularly to a print control device that generates dot information based on input information and outputs the dot information to a printing device.

[従来の技術] 従来、印刷装置等の出力装置においては出力媒体の領
域全域に対応するメモリを用意して出力を行つている。
このため、特にLEDプリンタやレーザビームプリンタな
どの印字密度の高いプリンタにおいては、大量のメモリ
容量を必要とし、コスト的に不利であつた。また、出力
する情報の保存用メモリとして、出力装置の記憶媒体上
に固定的に存在しているため、大量メモリをかかえてい
る割には、文字フオントのダウンロードやマクロ・コマ
ンド登録などにはメモリ容量による制限が大きいものと
なつていた。
2. Description of the Related 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.
For this reason, printers with a high printing density such as an LED printer and a laser beam printer require a large amount of memory capacity, which is disadvantageous in terms of cost. Also, since it is fixedly stored on the storage medium of the output device as a memory for storing the information to be output, it has a large memory capacity for downloading fonts and registering macro commands. There was a large capacity limit.

さらに、出力媒体上の領域と対応する記憶媒体上の領
域が一対一に対応づけられているため、例えば、用紙サ
イズ統一のためB4紙への印刷を行うが実印刷領域はA4サ
イズで十分といつたように、大きな出力媒体上に小領域
の出力領域しか必要としない場合においても、必要以上
に大容量のメモリを使用するため、メモリの利用効率上
無駄が多かつた。
Furthermore, since the area on the output medium and the area on the storage medium corresponding to each other are associated one-to-one, for example, printing on B4 paper is performed to unify the paper size, but the actual print area is sufficient for A4 size. Even when only a small output area is required on a large output medium, a memory with an unnecessarily large capacity is used, resulting in wasteful use of the memory.

また、LEDプリンタやレーザビームプリンタ等のペー
ジ単位に動作するプリンタにおいては、連続プリントを
スムーズに行わせるための複数ページ分の画像メモリが
必要となり、そのメモリ容量は莫大なものになつてい
る。
Further, in a printer that operates on a page basis, such as an LED printer and a laser beam printer, an image memory for a plurality of pages is required for smooth continuous printing, and the memory capacity is enormous.

[発明が解決しようとする課題] 本発明は、上述の欠点を除去し、入力された情報に基
づいて出力媒体上の有効なドツト情報が存在する出力領
域分のメモリを可変に確保し、出力領域の位置に基づい
て出力タイミングを制御することにより、メモリ効率を
引き上げた印刷制御装置を提供する。
[Problems to be Solved by the Invention] The present invention eliminates the above-mentioned drawbacks, variably secures a memory for an output area where valid dot information on an output medium exists based on input information, and outputs the information. Provided is a print control device that improves memory efficiency by controlling output timing based on the position of an area.

[課題を解決するための手段] この課題を解決するために、本発明の印刷制御装置
は、入力された情報に基づいてドツト情報を生成し、印
刷装置に出力する印刷制御装置において、前記入力され
た情報に基づいて、前記入力された情報に対応した画像
が出力されるべき出力媒体上の出力領域の書き出し位置
及び大きさを特定する特定手段と、該特定手段により特
定された前記出力領域の大きさに対応した記憶領域を、
記憶手段に設定する設定手段と、前記入力された情報に
基づいてドツト情報を生成し、該設定手段により設定さ
れた前記記憶領域に記憶する生成手段と、前記記憶領域
に記憶されたドツト情報が表わす画像が、前記特定手段
によって特定された出力媒体上の出力領域の書き出し位
置から印刷されるように、前記記憶領域に記憶されたド
ツト情報の前記印刷装置への書き出しタイミングを制御
する制御手段とを有することを特徴とする。
Means for Solving the Problems In order to solve this problem, a print control device of the present invention generates dot information based on input information and outputs the dot information to a printing device. Specifying means for specifying a writing position and a size of an output area on an output medium on which an image corresponding to the input information is to be output, based on the input information, and the output area specified by the specifying means Storage area corresponding to the size of
Setting means for setting in the storage means, generating means for generating dot information based on the input information and storing in the storage area set by the setting means, and dot information stored in the storage area; Control means for controlling writing timing of the dot information stored in the storage area to the printing apparatus so that the image to be displayed is printed from the writing position of the output area on the output medium specified by the specifying means; It is characterized by having.

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

第1図は、本発明の出力装置の一実施例であるレーザ
ビームプリンタ(以下、LBPと称す)のプリンタ制御ユ
ニツト100の構成を示すブロツク図である。第1図にお
いて、101は、LBP全体の制御及び入力データ解析を行う
CPU、103は、ホストコンピユータ102から送信されてく
るデータを受信し、CPU101へ伝える入力インタフエース
回路、104は、後述の第5図及び第6図に示すCPU101の
プリンタ制御プログラムを格納するプログラムROM、105
はホストコンピユータ102から入力されるデータ中の文
字コードに対応する各文字パターンを収めたフオントメ
モリであり、一般のROMで構成される。106は、ホストコ
ンピユータからのデータの一時保存及び複数ページの画
像メモリの確保に用いるページメモリで、後述のメモリ
管理テーブル108により使用状態がコントロールされ
る。107はページメモリ上のページバツフア、画像メモ
リの入出力コントロールを行うためのページコントロー
ルテーブルであり、後で、第3図を用いてその構造を説
明する。108はページメモリ106の使用状況を管理し、メ
モリの確保や開放を行うためのメモリ管理テーブルであ
り、その構造を第2図に示す。なお、ページメモリ106,
ページコントロールテーブル107,メモリ管理テーブル10
8は一般のRAMで構成される。109は例えば、50ms毎の周
期でCPU101にタイマ割込信号S01を出力するタイマユニ
ツトである。タイマ割込信号S01はCPU101に組み込まれ
た、マルチタスク処理方式のプリンタ制御プログラムの
タイマ割込み処理ルーチンを起動してタスク管理を行
う。110は、ページメモリ106上に確保した画像メモリ上
のレーザ1走査分のデータを一時保存する、スタテツク
RAMで構成されたスキヤンバツフアである。スキヤンバ
ツフア110は二重バツフア構造となつており、CPU101が
ページメモリ106上の画像データをスキヤンバツフア110
の一方に書込んでいる間に、他方のバツフアを画像信号
発生器111が読み取り、これを画像信号S02に変換して、
出力インタフエース回路112に出力する。
FIG. 1 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, reference numeral 101 denotes control of the entire LBP and analysis of input data.
An input interface circuit 103 receives data transmitted from the host computer 102 and transmits the data to the CPU 101. A program ROM 104 stores a printer control program of the CPU 101 shown in FIGS. 5 and 6 described later. , 105
Is a font memory that stores character patterns corresponding to character codes in data input from the host computer 102, and is configured by a general ROM. Reference numeral 106 denotes a page memory used for temporarily storing data from the host computer and for securing image memory for a plurality of pages. The use state is controlled by a memory management table 108 described later. Reference numeral 107 denotes a page control table for controlling the page buffer on the page memory and the input / output of the image memory. The structure will be described later with reference to FIG. Reference numeral 108 denotes a memory management table for managing the use status of the page memory 106 and securing and releasing the memory, and its structure is shown in FIG. The page memory 106,
Page control table 107, memory management table 10
8 is composed of general RAM. Reference numeral 109 denotes a timer unit that outputs a timer interrupt signal S01 to the CPU 101 at intervals of, for example, 50 ms. The timer interrupt signal S01 starts a timer interrupt processing routine of a printer control program of a multitask processing system incorporated in the CPU 101 to perform task management. Reference numeral 110 denotes a statistic that temporarily stores data for one laser scan on the image memory secured on the page memory 106.
This is a scan buffer composed of RAM. The scan buffer 110 has a double buffer structure, and the CPU 101 stores the image data in the page memory 106 in the scan buffer 110.
While writing to one of the two, the other buffer is read by the image signal generator 111 and converted into an image signal S02,
Output to the output interface circuit 112.

出力インタフエース回路112は、LBP印字機構部113に
各種制御信号や画像信号を出力する回路であり、CPU101
からのプリンタ起動信号S03によつて、LBP印字機構部11
3に起動がかけられ、用紙の給紙,画像の用紙への転
写,定着といつた一連の印刷プロセスが実行される。
The output interface circuit 112 is a circuit that outputs various control signals and image signals to the LBP printing mechanism unit 113, and the CPU 101
The printer start signal S03 from the LBP printing mechanism 11
3 is started, and a series of printing processes such as paper feeding, image transfer to paper, and fixing are executed.

次に第2図において第1図のメモリ管理テーブル108
を使つたページメモリ106の管理方法を述べる。ページ
メモリ106は論理上、256バイト単位のメモリセグメント
に区切られ、その1つ1つがメモリ管理テーブルを構成
するRAMの1bitに対応づけられる。メモリ管理テーブル1
08は、byte(8bit)単位にアクセスする一般のRAMで構
成されており、lbyte目のmbitがページメモリ106の先頭
から{8×(l−1)+m}番目のメモリセグメントに
対応することになりそのRAMアドレスが容易に計算でき
る。さらにメモリ管理テーブル108上の各bitについて、
それが‘1'の場合には対応するメモリセグメントが使用
中を表わし、‘0'の場合には未使用を表わし、これによ
りCPU101がメモリ使用状況を把握し、特に空のメモリセ
グメントを確保できるようになつている。
Next, in FIG. 2, the memory management table 108 of FIG.
A management method of the page memory 106 using the “?” Will be described. The page memory 106 is logically divided into 256-byte memory segments, each of which is associated with one bit of the RAM constituting the memory management table. Memory management table 1
08 is a general RAM that is accessed in byte (8 bit) units, and the 1st byte mbit corresponds to the {8 × (l−1) + m} th memory segment from the top of the page memory 106. The 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 not used. This allows the CPU 101 to grasp the memory usage status, and especially secure an empty memory segment. It is like that.

第3図は、ページコントロールテーブル107の内部構
造を示す図である。301はページバツフアコントロール
ユニツトであり、ページメモリ106上に確保したページ
バツフア307の先頭アドレスを収めるページバツフアア
ドレス領域303とページバツフア307上に収められるデー
タ容量を収めるデータ容量領域302から成る。ページバ
ツフア307はメモリ管理テーブル108で空きをチエツクし
て必要量を確保し、入力インタフエース回路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 comprises a page buffer address area 303 for storing the start address of the page buffer 307 secured on the page memory 106 and a data capacity area 302 for storing the data capacity to be stored on the page buffer 307. The page buffer 307 checks a free space in the memory management table 108 to secure a necessary amount, and temporarily holds input data input via the input interface circuit 103 for one page.

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

画像ページコントロールテーブル306上のページコン
トロールユニツト401a〜eは、出力ページポインタ30
4、入力ページポインタ305でアクセスされる。出力ペー
ジポインタ304は、印字出力中のページの画像メモリ、
あるいは、次に出力すべき画像メモリに対応するページ
コントロールユニツト401a〜eを指し示すポインタであ
り、入力ページポインタ304は、ページバツフア307経由
の入力データの画像パターンを書き込むベージ画像メモ
リに対応するページコントロールユニツト401a〜e、あ
るいは、次に画像書き込み対象となるページコントロー
ルユニツト401a〜eを指し示すポインタである。
The page control units 401a to 401e on the image page control table 306 correspond to the output page pointer 30.
4. Accessed by the input page pointer 305. The output page pointer 304 is an image memory of the page being printed out,
Alternatively, the input page pointer 304 is a pointer pointing to the page control unit 401a to 401e corresponding to the image memory to be output next. The input page pointer 304 is a page control unit corresponding to the page image memory for writing the image pattern of the input data via the page buffer 307. The pointers 401a to 401e indicate the page control units 401a to 401e to which an image is to be written next.

第4図は、上記のページコントロールユニツト401a〜
eの内部構造と対応する用紙上の印字領域を示す。
FIG. 4 shows the above-mentioned page control units 401a to 401a.
7 shows a print area on a sheet corresponding to the internal structure of e.

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

403,404は、画像メモリ上に発生させる1ページ分の
出力画像の実際の用紙上の位置を示すため、画像領域の
左上すみの座標(xi,yi)を収めておく領域である。ま
た405,406は対応する1ページ分の出力加増のx方向の
大きさXi、y方向の大きさYiを収めておく領域である。
409に、用紙408上の出力画像の位置及びサイズを示す。
なお、座標は用紙左上すみを原点として表わす。また上
記出力画像領域の左上すみの座標(xi,yi)及びサイズX
i,Yiは、1ページ分の入力データを入力インタフエース
回路103経由でページバツフア307へ収める際に、入力デ
ータが使用する有効印字領域をチエツクして算出する。
Reference numerals 403 and 404 denote areas for storing the coordinates (x i , y i ) of the upper left corner of the image area to indicate the actual position on the paper of the output image for one page generated in the image memory. The 405 and 406 is a region to be housed magnitude X i in the x direction of the corresponding one page of output Kazo, the y-direction size Y i.
409 shows the position and size of the output image on the paper 408.
The coordinates represent the upper left corner of the sheet as the origin. Also, the coordinates (x i , y i ) and size X of the upper left corner of the output image area
i, Y i, when fit to Pejibatsufua 307 input data of one page via input in tough Ace circuit 103 is calculated by a checking an effective print area input data uses.

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

なお、上記ベースバツフア307や画像メモリ308,309,3
10は、メモリ管理テーブル108をチエツクしてアドレス
の低い方から順に順次確保され、出力を終えると開放さ
れる。
The base buffer 307 and the image memories 308, 309, 3
10 is secured in order from the lowest address by checking the memory management table 108, and is released when output is completed.

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

本プリンタ制御用のプログラムは、マルチタスク方式
を採用しタイマユニツト109よりのタイマ割込信号S01に
よりタイマ管理がなされる。主なタスクとして、入力タ
スク及び出力タスクがあり、1ページ分の出力画像を作
成する入力処理と、作成された出力画像を印字する出力
処理が並行に処理される。
The printer control program employs a multitask system, and is managed by a timer interrupt signal S01 from the timer unit 109. The main tasks include an input task and an output task. Input processing for creating an output image for one page and output processing for printing the created output image are performed in parallel.

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

まず、ステツプS501で各種変数類の初期化を行う。入
力タスクで使用する主な変数として次のものがある。入
力される入力コードの印字位置を表わす座標(x,y)、
尚(x,y)は用紙の左上すみを原点(0,0)とした座標で
表わされる。また、x,yの1ページ中の最小値、最大値
で保存する変数として、xの最小値xmin、xの最大値x
max、yの最小値ymin、yの最大値ymaxを用意する。従
つて、フオントメモリ105に収められている文字パター
ンの文字巾をw、文字高をhとすると座標(xmin,ymin
−h)、(xmin,ymax)、(xmax+w,ymin−h)、(x
max+w,ymax)の4点で囲まれる領域がそのページの有
効印字領域すなわち、画像メモリを要する領域となる。
First, in step S501, various variables are initialized. The main variables used in the input task are as follows. Coordinates (x, y) representing the print position of the input code to be input,
Note that (x, y) is represented by coordinates using the upper left corner of the sheet as the origin (0, 0). Also, as variables to be stored with the minimum and maximum values of x and y in one page, a minimum value x min of x and a maximum value x of x
max, the minimum value y min of y, providing a maximum value y max of y. Therefore, if the character width of the character pattern stored in the font memory 105 is w and the character height is h, the coordinates (x min , y min
-H), (x min , y max ), (x max + w, y min -h), (x
The area surrounded by the four points ( max + w, ymax ) is the effective print area of the page, that is, the area that requires an image memory.

なお、印字位置(x,y)は、文字パターン枠の左下す
みに対応する位置とし、1文字毎にxがw分左へ進み、
改行時にはyがh分下へ進むことになる。
The print position (x, y) is a position corresponding to the lower left corner of the character pattern frame, and x advances to the left by w for each character.
During a line feed, y advances by h.

ステツプS501で変数の初期化が終了するとステツプS5
02へ進み、メモリ管理テーブル108をチエツクして、ペ
ージバツフア307を確保し、メモリ管理テーブル108を更
新する。続いて、ステツプS503でベースバツフアコント
ロールユニツト301の更新として、まず、データ容量領
域302をクリアし、ページバツフアアドレス領域303に、
ステツプS501で確保したページバツフア307の先頭アド
レスをセツトする。次に、ステツプS504でホストコンピ
ユータ102からの入力データを文字インタフエース回路1
03経路で取り出し、ステツプS505で入力データをチエツ
クする。入力データが文字コードの場合には、ステツプ
S506〜514の文字処理を行う。まず、ステツプS506〜511
で、現在の印字位置(x,y)とxmin,max,min,ymax
を比較して、(x,y)が、それぞれの最小値、最大値を
越えていれば、(x,y)を新しく最小値、最大値として
min,max,min,ymaxの中の該当変数を更新する。
When the initialization of the variable is completed in step S501, step S5
In step 02, the memory management table 108 is checked, the page buffer 307 is secured, and the memory management table 108 is updated. Subsequently, in step S503, as the update of the base buffer control unit 301, first, the data capacity area 302 is cleared, and the page buffer address area 303 is
The start address of the page buffer 307 secured in step S501 is set. Next, in step S504, the input data from the host computer 102 is input to the character interface circuit 1.
03 Take out by route and check the input data in step S505. If the input data is a character code,
The character processing of S506 to 514 is performed. First, steps S506-511
Then, the current print position (x, y) and x min, x max, y min, y max
If (x, y) exceeds the minimum value and the maximum value, (x, y) is set as a new minimum value and a maximum value, and x min, x max, y min, y max Update the corresponding variable in.

次に、ステツプS512で入力データ(文字コード)をペ
ージバツフア307に収めステツプS513で印字位置(x,y)
を次の位置に更新する。そして、ステツプS514でベース
バツフアコントロールユニツト301上のデータ容量領域3
02を+1しておく。以上、1文字コードの処理が終了す
ると、ステツプS504へ戻り次の入力データの処理に進
む。
Next, in step S512, the input data (character code) is stored in the page buffer 307, and in step S513, the print position (x, y) is set.
Is updated to the next position. Then, in step S514, the data capacity area 3 on the base buffer control unit 301
02 is incremented by one. When the processing of one character code is completed, the process returns to step S504 and proceeds to the processing of the next input data.

ステツプS505の入力データのチエツクで、入力データ
が1ページの終了を示すFF(フオームフイード)コード
であつた場合、ステツプS515〜522でページの終了処理
を行う。
If the input data is a FF (form feed) code indicating the end of one page in the check of the input data in step S505, the end processing of the page is performed in steps S515 to S522.

ここで一例として、現在の入力ページポインタ305が
#3のページコントロールユニツト401cを指していると
すると、#3のページコントロールユニツト401cのペー
ジステータス402をチエツクし、これが「空」すなわち
使用可能になるのを待つ。続いて、ステツプS516で入力
ページステータス402を「入力中」として#3のページ
コントロールユニツト401cを入力タスクが使用中である
ことを示す。次にステツプS517で、xmin,max,min,
ymaxによりページコントロールユニツト401cの管理情報
403〜406を次のように更新する。
Here, as an example, assuming that the current input page pointer 305 points to the page control unit 401c of # 3, the page status 402 of the page control unit 401c of # 3 is checked and becomes "empty", that is, usable. Wait for Subsequently, in step S516, the input page status 402 is set to "inputting", indicating that the input task is using the # 3 page control unit 401c. Next, in step S517, x min, x max, y min,
Management information of page control unit 401c by y max
403 to 406 are updated as follows.

xi=xmin,yi=ymin−h, Xi=xmax+w−xmin, Yi=ymax+(yminx−h) そして、ステツプS518で、ステツプS517で算出した
Xi,Yiを使用して、画像メモリの容量を算出し、メモリ
管理テーブル108をチエツクしてページメモリ106上に画
像メモリ310を確保する。続いてステツプS519におい
て、ページバツフア307に保存されている1ページ分の
文字コードを取り出し、対応する文字パターンをフオン
トメモリ105から読み出して、画像メモリ310へ書き込ん
で1ページ分の出力画像を発生させる。1ページ分の出
力画像が完成すると、ステツプS520で、メモリ管理テー
ブル108を更新して、ページバツフア307の領域を開放す
る。そしてステツプS521でページステータス402に「出
力持ち」セツトして出力準備完了を出力タスクへ知らせ
る。次にステツプS522で入力ページポインタ305を次の
ページコントロールユニツト401dへ移してページ終了処
理を終える。
x i = x min , y i = y min −h, X i = x max + w−x min , Y i = y max + (y min x−h) Then, in step S518, the values are calculated in step S517.
The capacity of the image memory is calculated using X i and Y i , and the memory management table 108 is checked to secure the image memory 310 on the page memory 106. Subsequently, in step S519, the character code for one page stored in the page buffer 307 is taken out, the corresponding character pattern is read from the font memory 105, and written in the image memory 310 to generate an output image for one page. When an output image for one page is completed, the memory management table 108 is updated in step S520 to release the area of the page buffer 307. Then, in step S521, "output holding" is set in the page status 402, and the output task is notified to the output task. Next, in step S522, the input page pointer 305 is moved to the next page control unit 401d, and the page end processing ends.

ページ終了処理を終えるとステツプS501へ戻り、次の
ページの入力処理にはいる。
Upon completion of the page end processing, the flow returns to step S501 to enter the next page input processing.

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

まず、ステツプS601で、出力ページポインタ304の示
す#1のページコントロールユニツト401aのページステ
ータス402をチエツクし、これが「出力待ち」になるま
で、すなわち出力画像が準備されるまで持つ。そしてス
テツプS602で、プリンタ起動信号S03を出力し、LBP印字
機構部に起動をかける。
First, in step S601, the page status 402 of the # 1 page control unit 401a indicated by the output page pointer 304 is checked and held until "waiting for output", that is, until an output image is prepared. Then, in step S602, a printer activation signal S03 is output to activate the LBP printing mechanism.

次にステツプS603へ進み用紙の上端から、実際の印字
画像の始まるまでの区間すなわち、y座標が0〜yiの区
間は、スキヤンバツフア110へブランクデータを送り用
紙上に空白区間を作る。なお、yiはページコントロール
ユニツト401a上のyi座標404である。
Next, in step S603, blank data is sent to the scan buffer 110 to create a blank section on the sheet in the section from the upper end of the sheet to the start of the actual print image, that is, the section in which the y coordinate is 0 to yi . Note that y i is the y i coordinate 404 on the page control unit 401a.

次にステツプS604で、画像メモリ308上に用意した画
像データをスキヤンバツフア110へ転送する。この際、
x方向の書き出し区間の空白を得るため、スキヤンバツ
フア110への書き出し位置をxiずらし、転送データ量をX
iとして、Yiスキヤン分のデータ転送を行う。これによ
つて、用紙上の所定の位置に所定の画像を印刷できる。
なお、xi,Xi,Yiそれぞれページコントロールユニツト40
1aのxi座標403,サイズXi405,サイズYi406である。
Next, in step S604, the image data prepared on the image memory 308 is transferred to the scan buffer 110. On this occasion,
In order to obtain a blank space in the writing section in the x direction, the writing position to the scan buffer 110 is shifted by x i and the transfer data amount is changed by X.
As i , data transfer for Y i scan is performed. Thus, a predetermined image can be printed at a predetermined position on the sheet.
It should be noted that x i , X i , and Y i each have a page control unit 40.
X i coordinate 403 of 1a, size X i 405, the size Y i 406.

画像データの出力が終了するとステツプS605へ進みメ
モリ管理テーブル108を更新して、画像メモリ308の領域
を開放する。そしてステツプS606でページコントロール
ユニツト401aの出力ページステータス402を「空」に
し、ステツプS607で出力ページポインタ304を次のペー
ジコントロールユニツト401bへ移し、1ページ分の出力
処理を終了する。1ページ分の出力処理を終了するとス
テツプS601へ戻り次のページの出力処理にはいる。
When the output of the image data is completed, the process proceeds to step S605 to update the memory management table 108 and release the area of the image memory 308. Then, in step S606, the output page status 402 of the page control unit 401a is set to “empty”, and in step S607, the output page pointer 304 is moved to the next page control unit 401b, and the output process for one page is completed. When the output process for one page is completed, the process returns to step S601 to start the output process for the next page.

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

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

また、本実施例では、入力データの領域をチエツクす
るため、一旦ページバツフアに入力データを保存した
が、別の例として、ホストコンピユータから同じページ
のデータをつずけて2度送ることを規則として、1度目
に実印刷りょいきのチエツクと画像メモリの確保を行
い、2度目には実際の印字を行つてもよい。
In the present embodiment, the input data is temporarily stored in the page buffer in order to check the area of the input data. However, as another example, it is a rule that data of the same page is connected twice from the host computer and sent twice. First, the actual printing check and image memory may be secured, and the second actual printing may be performed.

また、本実施例では、ダイナミツクにメモリを確保し
て行く対象をページバツフアと画像メモリに限つたわけ
であるが、この他に、あるベージで一時的に使用するダ
ウンロードフオントの登録領域や図形の塗りつぶし時の
境界保存などで必要となる作業用スタツク領域なども、
対象のメモリ領域とすることでメモリ効率が一層高ま
る。
Further, in this embodiment, the objects for which the memory is secured in the dynamics are limited to the page buffer and the image memory, but in addition to this, the registration area of the download font temporarily used in a certain page and the filling of the figure are performed. For example, the work stack area required for preserving the boundaries of time, etc.
The memory efficiency is further improved by using the target memory area.

以上説明したように、入力される印刷情報の印字位置
を受信時にチエツクすることで、実効印刷領域の記録材
上の位置とサイズを知り、それによつてダイナミツクに
画像メモリを確保することにより、印刷装置のメモリ効
率を格段に引き上げることが可能となる。
As described above, by checking the print position of the input print information at the time of reception, the position and size of the effective print area on the recording material are known, and thereby, the image memory is dynamically allocated to secure printing. It is possible to significantly increase the memory efficiency of the device.

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

[発明の効果] 本発明により、入力された情報に基づいて出力媒体上
の有効なドツト情報が存在する出力領域分のメモリを可
変に確保し、出力領域の位置に基づいて出力タイミング
を制御することにより、メモリ効率を引き上げた印刷制
御装置を提供できる。
[Effects of the Invention] According to the present invention, a memory for an output area where valid dot information exists on an output medium is variably secured based on input information, and output timing is controlled based on the position of the output area. Thus, a print control device with improved memory efficiency can be provided.

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

第1図は本実施例のレーザビームプリンタのプリンタ制
御ユニツトの構成を示すブロツク図、 第2図はプリンタ制御ユニツト上のメモリ管理テーブル
のテーブル構造図、 第3図はプリンタ制御ユニツト上のページコントロール
テーブルの構造図、 第4図はページコントロールテーブル上のページコント
ロールユニツトの構成図、 第5図はプリンタ制御プログラム中の入力タスクのフロ
ーチヤート、 第6図はプリンタ制御プログラム中の出力タスクのフロ
ーチヤートである。 図中、100……プリンタ制御ユニツト、101……CPU、102
……ホスト・コンピユータ、103……入力インタフエー
ス回路、104……プログラムROM、105……フオントメモ
リ、106……ページメモリ、107……ページコントロール
テーブル、108……メモリ管理テーブル、109……タイマ
ウニツト、110……スキヤンバツフア、111……画像信号
発生器、112……出力インタフエース回路、113……LBP
印字機構部、301……ページバツフアコントロールユニ
ツト、304……出力ページポインタ、305……入力ページ
ポインタ、401a〜e……ページコントロールユニツトで
ある。
FIG. 1 is a block diagram showing the configuration of a printer control unit of the laser beam printer of this embodiment, FIG. 2 is a table structure diagram of a memory management table on the printer control unit, and FIG. 3 is page control on the printer control unit. FIG. 4 is a block diagram of a page control unit on a page control table, FIG. 5 is a flowchart of an input task in a printer control program, and FIG. 6 is a flowchart of an output task in a printer control program. It is. 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 , 110 ... Scan buffer, 111 ... Image signal generator, 112 ... Output interface circuit, 113 ... LBP
Print mechanism 301, page buffer control unit, 304 output page pointer, 305 input page pointer, 401a to e ... page control unit.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力された情報に基づいてドツト情報を生
成し、印刷装置に出力する印刷制御装置において、 前記入力された情報に基づいて、前記入力された情報に
対応した画像が出力されるべき出力媒体上の出力領域の
書き出し位置及び大きさを特定する特定手段と、 該特定手段により特定された前記出力領域の大きさに対
応した記憶領域を、記憶手段に設定する設定手段と、 前記入力された情報に基づいてドツト情報を生成し、該
設定手段により設定された前記記憶領域に記憶する生成
手段と、 前記記憶領域に記憶されたドツト情報が表わす画像が、
前記特定手段によって特定された出力媒体上の出力領域
の書き出し位置から印刷されるように、前記記憶領域に
記憶されたドツト情報の前記印刷装置への書き出しタイ
ミングを制御する制御手段とを有することを特徴とする
印刷制御装置。
1. A print control apparatus for generating dot information based on input information and outputting the information to a printing apparatus, wherein an image corresponding to the input information is output based on the input information. Specifying means for specifying the writing position and size of the output area on the output medium to be output; setting means for setting, in the storage means, a storage area corresponding to the size of the output area specified by the specifying means; Generating means for generating dot information based on the input information and storing it in the storage area set by the setting means; and an image represented by the dot information stored in the storage area,
Control means for controlling the timing of writing the dot information stored in the storage area to the printing device so that printing is performed from the writing position of the output area on the output medium specified by the specifying means. Characteristic print control device.
【請求項2】前記出力領域は矩形であつて、縦巾と横巾
とで表わされることを特徴とする特許請求の範囲第1項
記載の印刷制御装置。
2. The printing control apparatus according to claim 1, wherein said output area is rectangular and is represented by a vertical width and a horizontal width.
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 JPS6364764A (en) 1988-03-23
JP2641433B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2502753B2 (en) * 1989-06-19 1996-05-29 松下電器産業株式会社 Image output device

Family Cites Families (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

Also Published As

Publication number Publication date
JPS6364764A (en) 1988-03-23

Similar Documents

Publication Publication Date Title
EP0179206B1 (en) Table driven print formatting
EP0577087B1 (en) Output method and apparatus
JPH0345076A (en) Processing system for picture data
JP4543458B2 (en) OUTPUT SYSTEM, OUTPUT DEVICE, HOST DEVICE, CONTROL METHOD THEREOF, AND INFORMATION RECORDING MEDIUM
EP0684546B1 (en) Printing apparatus, printing system, and a method for acquiring character resources of the printing system
EP0539135A2 (en) Printing apparatus and method
US20010013926A1 (en) Image forming apparatus
US5933576A (en) Printing assembly and printing method for contemporaneous print jobs
JP2641433B2 (en) Printing control device
WO1992007720A1 (en) Printing method in page printer
JP3116354B2 (en) Printer data management method
JPS6364765A (en) Output device
JPH07112552A (en) Method for control of printing form and apparatus therefor in printer
JPS61197252A (en) Image output device
JPS60159077A (en) Printer controller
JPH0624054A (en) Printer
JPH01208141A (en) Printing control apparatus
JP3351166B2 (en) Printing equipment
JP3304987B2 (en) Image forming system
JP2728916B2 (en) Character processing apparatus and method
JPH03114857A (en) Printer data management system
JP3004656B2 (en) Output control device
JPH0473170A (en) Serial printer
JPH06305217A (en) Image forming device
JPH04339675A (en) Label printer

Legal Events

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