JPH0619699B2 - Page printer control method - Google Patents
Page printer control methodInfo
- Publication number
- JPH0619699B2 JPH0619699B2 JP58053503A JP5350383A JPH0619699B2 JP H0619699 B2 JPH0619699 B2 JP H0619699B2 JP 58053503 A JP58053503 A JP 58053503A JP 5350383 A JP5350383 A JP 5350383A JP H0619699 B2 JPH0619699 B2 JP H0619699B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- page
- information
- memory
- page memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 13
- 238000012986 modification Methods 0.000 description 18
- 230000004048 modification Effects 0.000 description 18
- 239000000872 buffer Substances 0.000 description 16
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 101100269850 Caenorhabditis elegans mask-1 gene Proteins 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Dot-Matrix Printers And Others (AREA)
- Record Information Processing For Printing (AREA)
Description
【発明の詳細な説明】 〔発明の技術分野〕 本発明は、文字、図形などをプリンタに印字するのに必
要なフォームとデータのオーバレイを行なう際のページ
プリンタの制御方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a page printer control system for overlaying forms and data necessary for printing characters, graphics, etc. on a printer.
フォームオーバレイはページプリンタにフォームオーバ
レイ機能を持たせることにより、プリンタ帳票紙の如く
予め規定フォーマットに印字された特定の用紙を用いる
ことなく、データプリントの際データと同時に規定フォ
ーマットを印字することができるものである。Form overlay allows the page printer to have a form overlay function, so that the specified format can be printed at the same time as the data when printing the data, without using a specific paper that has been printed in the specified format in advance such as printer form paper. It is a thing.
従来からこの種のページプリンタの制御においては、ソ
フトウエアでフォーム(フォーム情報と称することもあ
る)とデータのオーバレイを行なうものと、ハードウエ
アでフォームとデータのオーバレイを行なう2種類の方
式がある。しかし、前者の方式ではページプリンタを制
御するホストコンピュータに負荷がかかりすぎる欠点が
ある。後者の方式では1頁(又は2頁)分のコードデー
タバッファとフォームバッファを用い、印字の際は両バ
ッファの出力を1行毎に合成し、文字発生器を通して印
字するものである。これではフォームとデータの関係が
行、桁というものに固定されて文字、図形を任意の位置
にプリントすることができないという欠点があり、又図
形の発生および図形と文字データの合成が同様に行、桁
にしばられて限定されてしまい柔軟性に欠けるという欠
点もあった。2. Description of the Related Art Conventionally, in controlling a page printer of this type, there are two types: a software (sometimes referred to as form information) overlay of data and a hardware overlay of form and data. . However, the former method has a drawback that the host computer controlling the page printer is overloaded. In the latter method, a code data buffer and a form buffer for one page (or two pages) are used, and when printing, the outputs of both buffers are combined line by line and printed through a character generator. This has the disadvantage that the relationship between the form and data is fixed to rows and columns, and it is not possible to print characters and figures at arbitrary positions. Also, the generation of figures and the combination of figures and character data are similar. However, there was also the drawback that it lacked flexibility because it was limited by the digits.
本発明の目的は、上記の欠点に鑑み、ホストコンピュー
タに負担がかからず、且つ、文字、図形を任意の位置に
発生させて印字することを可能としたページプリンタ制
御方式を提供することにある。In view of the above-mentioned drawbacks, an object of the present invention is to provide a page printer control system that does not impose a burden on a host computer and that can generate characters and figures at arbitrary positions for printing. is there.
本発明は、ホストコンピュータより送られてくるフォー
ム情報と印字すべきデータとのオーバレイを行なってプ
リントイメージを作成し、このプリントイメージをプリ
ンタに出力することにより印字するページプリンタ制御
方式において、文字パターン、図形パターン、イメージ
情報をドットイメージの形で記憶するページメモリを備
え、ホストコンピュータより送られてくるフォーム情報
をメインプロセッサが受け取りこれを解釈した後、この
フォーム内容をサブプロセッサを用いてページメモリ上
にドットイメージの形で書込み、続いてホストコンピュ
ータから送られてくる印字すべきデータをメインプロセ
ッサが受け取った後、これらのデーサをサブプロセッサ
を用いてページメモリ上にドットイメージの形で書込む
ことにより、ページメモリ上にてデータとフォームのオ
ーバレイを実行することにより、上記目的を達成する。The present invention is a page printer control method in which a print image is created by overlaying form information sent from a host computer and data to be printed, and the print image is output to a printer for printing. A page memory that stores a figure pattern and image information in the form of a dot image is provided. The main processor receives the form information sent from the host computer and interprets it. Write in the form of dot image on the page memory by using the sub processor after the main processor receives the data to be printed sent from the host computer. By doing so, By executing the overlay data and the form in the memory, to achieve the above object.
以下本発明のページプリンタ制御方式の一実施例を図面
に従って説明する。第1図は本発明のページプリンタ制
御方式を適用したプリンタ制御システムの一実施例を示
す構成図である。上位システムインターフェース制御装
置1、コントロールプログラムメモリ2、メモリ3が接
続されているメインプロセッサ4は、サブプロセッサ5
とプリンタインターフェース制御装置6に接続されてい
る。キャラクタージェネレータ7、メモリ8が接続され
ているサブプロセッサ5、ページメモリ9およびプリン
タインタフェース制御装置6がページメモリーバス10
に接続されている。An embodiment of a page printer control system of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a printer control system to which the page printer control system of the present invention is applied. The main processor 4 to which the host system interface controller 1, the control program memory 2 and the memory 3 are connected is a sub processor 5
And the printer interface controller 6. The character generator 7, the sub processor 5 to which the memory 8 is connected, the page memory 9, and the printer interface controller 6 are the page memory bus 10
It is connected to the.
上位システムインターフェース制御装置1は図示されな
い上位システムのホストコンピュータに接続され、プリ
ンタ制御システムと上位システム間のコマンド、デー
タ、ステータスの送受信を制御する。コントロールプロ
グラムメモリ2はメインプロセッサ4が実行するコント
ロールプログラムを格納している。The host system interface controller 1 is connected to a host computer (not shown) of the host system, and controls transmission / reception of commands, data, and status between the printer control system and the host system. The control program memory 2 stores a control program executed by the main processor 4.
メモリ3は、メインプロセッサ4がコントロールプログ
ラムを実行するためにあたって必要なワークメモリ、デ
ータバッファ、テーブルと、フォーム情報を格納してお
くフォームバッファと、文字などのデータをページメモ
リ9にすぐに展開できないとき、一時このデータを蓄わ
えておくためのデータ展開バッファとから構成されてい
る。メインプロセッサ4はコントロールプログラムに従
って、上位システムインタフェース制御装置1経由で上
位システムのホストコンピュータからコマンド、データ
を受け取り、このコマンドをメモリ3を用いて解釈して
実行した後、上位システムインタフェース制御装置1経
由で上位システムのホストコンピュータにステータスを
返送する制御を行なうものである。また、このメインプ
ロセッサ4はサブプロセッサ5に対し、文字コード、文
字サイズ、ページメモリ9上の文字位置などのパラメー
タを与え、文字などをドットイメージに展開することを
指示する制御を行なう。更に、メインプロセッサ4は、
プリンタインターフェース制御装置6に対しては、プリ
ントスタートの起動、ステータスの読み取りなどを行な
って図示されないプリンタの制御を行なうものである。
サブプロセッサ5は、メインプロセッサ4より受けたパ
ラメータを基にして、文字パターンをキャラクタジェネ
レータ7からもってきてページメモリ9上へこの文字パ
ターンをドットイメージの形に展開する高速画素演算を
行なう。また、このサブプロセッサ5は、メインプロセ
ッサ4の指令によりページメモリ9上に展開されるエリ
アを示すデータのデータエリアテーブルをメモリ8内に
作成したり、このテーブルによってページメモリ9上の
対応エリアをクリアする制御も行なう。キャラクタージ
ェネレータ7はサブプロセッサ5からの文字コードの指
定によって対応する文字ドットパターンを生成するもの
であり、文字ROM、外字RAMを含むものである。メモリ8
は、ページメモリ9上に展開されたデータのエリアを示
すデータエリアテーブルとサブプロセッサ5のワークメ
モリとから構成されている。ページメモリパス10は、
サブプロセッサ5からのページメモリ9へのアクセスと
プリンタインターフェース制御装置6からのページメモ
リ9へのアクセスを伝達するものである。ページメモリ
9はプリント用紙1頁分に対応する文字パターン、図形
パターン、イメージ情報をドットイメージの形で書込
み、これらのドットイメージを一時記憶するものであ
る。プリンタインターフェース制御装置6は、プリンタ
の起動制御、プリントデータ送信制御、ページメモリ読
み出し制御、プリント位置同期制御、プリンタステータ
ス読み出し制御などを行なうものである。In the memory 3, the work memory, the data buffer, the table necessary for the main processor 4 to execute the control program, the form buffer for storing the form information, and the data such as characters cannot be immediately expanded in the page memory 9. At this time, it is composed of a data expansion buffer for temporarily storing this data. The main processor 4 receives a command and data from the host computer of the host system via the host system interface controller 1 according to the control program, interprets the command using the memory 3 and executes the command, and then executes the command via the host system interface controller 1. The control is to send back the status to the host computer of the host system. Further, the main processor 4 gives parameters to the sub processor 5 such as a character code, a character size, and a character position on the page memory 9, and performs control to instruct to develop a character or the like into a dot image. Furthermore, the main processor 4
The printer interface controller 6 controls the printer (not shown) by activating print start and reading the status.
Based on the parameters received from the main processor 4, the sub-processor 5 carries out a high-speed pixel calculation for fetching a character pattern from the character generator 7 and developing the character pattern on the page memory 9 in the form of a dot image. In addition, the sub processor 5 creates a data area table of data indicating an area developed on the page memory 9 in the memory 8 according to a command from the main processor 4 or creates a corresponding area on the page memory 9 by this table. It also controls to clear. The character generator 7 generates a corresponding character dot pattern according to the designation of a character code from the sub processor 5, and includes a character ROM and an external character RAM. Memory 8
Is composed of a data area table showing an area of data expanded on the page memory 9 and a work memory of the sub processor 5. The page memory path 10 is
The access to the page memory 9 from the sub processor 5 and the access to the page memory 9 from the printer interface control device 6 are transmitted. The page memory 9 writes a character pattern, a figure pattern, and image information corresponding to one page of print paper in the form of a dot image, and temporarily stores these dot images. The printer interface control device 6 performs printer start control, print data transmission control, page memory read control, print position synchronization control, printer status read control, and the like.
次に本実施例の動作について説明する。(1)図示されな
いホストコンピュータはフォームロードコマンドによる
フォーム情報を上位システムインターフェース制御装置
1を介してメインプロセッサ4に与え、メインプロセッ
サ4はこれをメモリ3のフォームバッファに一旦格納す
る。フォーム情報は制御コードの形式で記述されてい
て、メインプロセッサ4は受け取ったフォーム情報の解
釈および実行を行なう。メインプロセッサ4は次にホス
トコンピュータから続いて送られてくる基本フォーム情
報の実行を行ない、フォーム情報を解釈し、ページメモ
リ9上にこのフォーム内容をドットパターンの形で書込
む制御を行なう。Next, the operation of this embodiment will be described. (1) A host computer (not shown) provides the form information by the form load command to the main processor 4 via the host system interface controller 1, and the main processor 4 temporarily stores it in the form buffer of the memory 3. The form information is described in the form of a control code, and the main processor 4 interprets and executes the received form information. The main processor 4 then executes the basic form information sent subsequently from the host computer, interprets the form information, and controls the writing of this form content in the page memory 9 in the form of a dot pattern.
ページメモリ9上へのドットパターンの書込み制御はメ
インプロセッサ4がサブプロセッサ5に対して1文字
(図形の場合は1画素)ごとに制御パラメータを与えて
からマイクロコマンドを出すことによって行なう。サブ
プロセッサ5はマイクロコマンドを受けると、制御パラ
メータに基づき文字マスクROM/外字RAM(又は画素デー
タレジスタ)からドットパターンを得て画素データの処
理を行ない、これらをページメモリ9上に書込む。この
ようなやり方で基本フォーム情報をすべてページメモリ
9上に展開しながら書込みを行なうと、基本フォームが
ページメモリ9上にドットイメージの形で形成される。The control of writing the dot pattern on the page memory 9 is performed by the main processor 4 giving a control parameter to the sub processor 5 for each character (one pixel in the case of a figure) and then issuing a micro command. When the sub-processor 5 receives the micro command, it obtains a dot pattern from the character mask ROM / external character RAM (or pixel data register) based on the control parameter, processes the pixel data, and writes them in the page memory 9. When writing is performed while expanding all the basic form information on the page memory 9 in this way, the basic form is formed on the page memory 9 in the form of a dot image.
これは、インパクト型プリンタで用いるプレプリントさ
れた帳票(データは打たれていない)のプレプリントフ
ォームに対応するものである。This corresponds to the preprint form of the preprinted form (data is not entered) used in the impact printer.
ここで上記フォーム情報について説明する。フォーム情
報は帳票のフォーマット定義を示す情報であり制御コー
ドで記述されていて、SFM(Start of Form)とEFM(End
of Form)に囲まれており、ELDS(フォームロード)コ
マンドのデータ部として上位システムから送られる。第
2図はフォーム情報のフォーマットを示したものであ
り、このフォーム情報はFLDSコマンドの指定セットに基
づき、メモリ3のフォームバッファに格納することがで
きる。Here, the form information will be described. The form information is information that indicates the format definition of the form and is described by control codes, and includes SFM (Start of Form) and EFM (End
of form), and is sent from the host system as the data part of the ELDS (form load) command. FIG. 2 shows the format of the form information, which can be stored in the form buffer of the memory 3 based on the designated set of the FLDS command.
のプリントデータ制御情報はプリントコマンドによっ
て送られてくるデータをプリントするに際しての制御情
報である。その内容は用紙使用方向、印字範囲の設定、
印字方向、基本文字サイズ、基本印字ピッチ、基本行ピ
ッチ、基本単位系などである。の基本フォーム制御情
報は帳票の基本フォームを定義する情報であり、インパ
クト形プリンタで用いるプレプリント帳票のプレプリン
トフォームに相当するものの生成情報である。この基本
フォーム制御情報は種々の制御コードにより、文字機
能、罫線および図形機能、フォーム機能、書式機能のす
べてを定義することができる。又罫線に関して繰り返し
指定機能もある。The print data control information is the control information for printing the data sent by the print command. The contents are paper usage direction, print range setting,
Print direction, basic character size, basic print pitch, basic line pitch, basic unit system, etc. The basic form control information is information that defines the basic form of the form, and is generation information corresponding to the preprint form of the preprint form used in the impact printer. This basic form control information can define all of the character function, ruled line and graphic function, form function, and form function by various control codes. There is also a function for repeatedly specifying ruled lines.
(2)本実施例の動作説明に戻ると、(1)で説明した動作に
続いて図示されないホストコンピュータからプリントコ
マンドによって印字すべきデータが送られてくると、
(1)の動作で基本フォームのドットイメージが形成され
たページメモリ9上に、メインプロセッサ4およびサブ
プロセッサ5は印字すべきデータをドットの形で展開
し、ページメモリ9上でデータとフォームのオーバレイ
を実行する。この際、印字すべきデータは前述のプリン
トデータ制御情報に基づいて処理される。印字すべきデ
ータをページメモリ9上に展開するやり方は、(1)の動
作で述べたフォーム情報をページメモリ9上に書込むの
と同様にして行なう。即ち、メインプロセッサ4がサブ
プロセッサ5に対して、1文字(又は1画素)ごとに制
御パラメータを与え、マイクロコマンドを出すことによ
ってサブプロセッサ5(例えば2901 プロセッサ)がペ
ージメモリ9上にドット展開を高速に実行することによ
り行なう。プリントコマンドの実行によって、上記方法
でページメモリ9上にデータを書込んでいき、1頁分の
データをすべてページメモリ9上に展開する。1頁分の
データ展開が終った所で、メインプロセッサ4は第2図
に示したフォーム修飾情報の中の1部紙修飾情報(メモ
リ3のフォームバッファに格納されている)を実行し、
ページメモリ9上のフォームを修飾する。これで第1頁
のプリントイメージがページメモリ9上に完成したこと
になる。(2) Returning to the description of the operation of this embodiment, when data to be printed is sent by a print command from a host computer (not shown) following the operation described in (1),
The main processor 4 and the sub-processor 5 develop the data to be printed in the form of dots on the page memory 9 on which the dot image of the basic form is formed by the operation of (1), and the data and the form of the data are formed on the page memory 9. Perform an overlay. At this time, the data to be printed is processed based on the above-mentioned print data control information. The method of expanding the data to be printed on the page memory 9 is the same as writing the form information on the page memory 9 described in the operation (1). That is, the main processor 4 gives a control parameter to the sub-processor 5 for each character (or one pixel) and issues a microcommand so that the sub-processor 5 (eg, 2901 processor) develops dots on the page memory 9. This is done by executing at high speed. By executing the print command, the data is written in the page memory 9 by the above method, and all the data for one page is expanded in the page memory 9. When the data expansion for one page is completed, the main processor 4 executes the one-page modification information (stored in the form buffer of the memory 3) in the form modification information shown in FIG.
The form on the page memory 9 is modified. This completes the print image of the first page on the page memory 9.
ここで第2図のに示したフォーム修飾情報について説
明する。このフォーム修飾情報は前のフォームに対して
各部紙ごとに異なるフォームに変更するための情報であ
り、次のような構成となっている。即ち、 内容的には修正情報、マスク情報(以下詳細を説明す
る)、コピー部数(同一部紙を指定枚数コピープリント
する)とからなる。The form modification information shown in FIG. 2 will be described here. This form modification information is information for changing the previous form to a different form for each copy, and has the following configuration. That is, The content includes correction information, mask information (which will be described in detail below), and the number of copies (a specified number of copies of the same copy is printed).
第3図は上記マスク情報の機能について説明する図であ
る。マスク1はフォームを展開し終ってデータを展開す
る前の状態で指定されたエリアをセーブする。マスク2
はデータが展開された後マスクエリアをセーブし、マス
ク1でセイブしたものをマスクエリアにリストアする。
マスク3はマスク2でセーブした内容をマスクエリアに
リストアする。なおここで使用するセーブメモリは第1
図のメモリ8を使用する。FIG. 3 is a diagram for explaining the function of the mask information. Mask 1 saves the specified area in the state before expanding the data after expanding the form. Mask 2
Saves the mask area after the data is expanded, and restores the mask area saved in mask 1 to the mask area.
The mask 3 restores the contents saved by the mask 2 to the mask area. The save memory used here is the first
The memory 8 shown is used.
(3)再び第1図の動作について説明すると、(2)の動作に
続いてプリンタインタフェース制御装置6はページメモ
リ9上のデータを読み出して、プリントデータを図示さ
れないプリンタに送り出す動作を開始する。多部紙指定
の場合はまず第1部紙を印字する。プリンタのメカニズ
ムにプリント起動をかけ、ページメモリ9の内容を読み
出し、これをビデオ信号としてプリンタに送り出す。プ
リンタはこのビデオ信号によって印字を行なう。プリン
タから印字終了信号が返送され、第1部紙の印字が終了
すると、続いて第2部紙の印字に入るわけであるが、こ
こで第2図で示したフォーム情報の2部紙修飾情報によ
ってフォームの修飾をメインプロセッサ4、サブプロセ
ッサ5によりページメモリ9上で行なう。第2部紙の修
飾が完了すると第2部紙の印字が可能となり、第2部紙
の印字を第1部紙と同様に実行し、第3部紙以降も同様
の動作によって次々と印字が実行される。なお、各部紙
修飾情報の中にはコピー枚数の指定もあるので、この指
定があった時は同一部紙の指定枚数のコピー(印字)を
行なった後、次の部紙の印字に移る。(3) Explaining the operation of FIG. 1 again, following the operation of (2), the printer interface control device 6 reads the data on the page memory 9 and starts the operation of sending the print data to a printer (not shown). In the case of specifying multiple copies, first the first copy is printed. The mechanism of the printer is activated to print, the contents of the page memory 9 are read, and this is sent to the printer as a video signal. The printer prints according to this video signal. When the printer sends back a print end signal and printing of the first copy is completed, printing of the second copy is then started. Here, the second copy modification information of the form information shown in FIG. The form is modified by the main processor 4 and the sub-processor 5 on the page memory 9. When the modification of the second copy is completed, the second copy can be printed, the second copy is printed in the same manner as the first copy, and the third and subsequent copies are printed in the same operation one after another. To be executed. It should be noted that since the number of copies is designated in each copy modification information, when this designation is made, the specified number of copies of the same copy is printed (printed), and then the next copy is printed.
(4)さて最終部紙の印字動作が完了すると、次のプリン
トデータに備えるために、ページメモリ9に対してデー
タを展開した部分をクリアし、フォームを最初の状態に
戻す必要がある。このデータのクリアに関しては、サブ
プロセッサ5がデータを1文字単位にページメモリ9に
展開する時、このデータのドットが書込まれた範囲を覚
えておくデータエリアテーブルをメモリ8内に作成して
おき、このデータエリアテーブルに従ってページメモリ
9のデータ部分のクリアを実行する。次にフォームを最
初の状態に戻すには、第2図に示したフォーム情報の中
ののフォーム修飾情報との基本フォーム復元情報を
用いて行なう。フォーム修復情報は、フォームがデータ
と重なる可能性があり、データクリアによってフォーム
の1部が消え得る場合、これによってフォームをデータ
クリアする前の状態に修復するものである。基本フォー
ム復元情報は最終部紙のフォームを基本フォームに戻す
ための情報である。これらの実行によってページメモリ
9は基本フォームのみが展開された状態になる。即ち、
ページメモリ9は次のデータの受け入れ体制が整ったこ
とになる。(4) When the printing operation of the final copy is completed, it is necessary to clear the expanded portion of the data in the page memory 9 and return the form to the initial state in order to prepare for the next print data. Regarding the clearing of this data, when the sub processor 5 develops the data in the page memory 9 character by character, a data area table is created in the memory 8 in which the range in which the dots of this data are written is remembered. Then, the data portion of the page memory 9 is cleared according to this data area table. Next, in order to return the form to the initial state, the basic form restoration information together with the form modification information in the form information shown in FIG. 2 is used. The form repair information is for repairing the form to the state before data clearing when the form may overlap with the data and a part of the form can be erased by the data clearing. The basic form restoration information is information for returning the form of the last copy to the basic form. By executing these, the page memory 9 is in a state in which only the basic form is expanded. That is,
The page memory 9 is ready to receive the next data.
第4図はフォーム修飾情報の一例を示したもので(A)
は網掛、(B)は罫線(C)は文字を示しており、左側
から一列目はデータクリア前、中央がデータクリア後、
3列目が修復後を示している。第5図は基本フォーム復
元情報の一例を示したものである。この例は受領書を納
品書に書き換える例を示しており(イ)は基本フォーム=
1部紙フォームを、(ロ)は2部紙フォームを、(ハ)は3
部紙フォームを、(ニ)は復元後の基本フォーム=1部紙
フォームを示している。FIG. 4 shows an example of the form modification information (A).
Is a shaded area, (B) is a ruled line (C) is a character, the first column from the left side is before data clear, the center is after data clear,
The third column shows after repair. FIG. 5 shows an example of basic form restoration information. This example shows an example of rewriting a receipt into a delivery note.
One copy paper form, (b) two copy paper form, (c) three
The copy form, (d) shows the basic form after restoration = 1 copy form.
今迄の説明は、次ページデータの準備を全ページの最終
部紙のプリント動作完了後に行なう動作方法についてで
あったが、以下のようにすることもできる。実際は連続
プリントでスピードアップを図るため、第1部紙のプリ
ント動作が開始するとメインプロセッサ4は次ページの
データを受け取った後解析展開を行ない、サブプロセッ
サ5がすぐに実行できるパラメータの形でメモリ3の展
開バッファにデータを入れておく。最終部紙の印字がス
タートすると、ページメモリ9の頭から順次プリンタイ
ンターフェース制御装置6がデータを読み出し、プリン
タにこのデータを送り出して印字を進める。この時ペー
ジメモリ9上ではすでに読み出した空ブロックが発生し
て行き、このブロックに対しては次ページのデータが展
開できることになる。そこでこの空ブロックに対してデ
ータクリアを行ない、空ブロックに書込むべき次ページ
データをページメモリ9上に展開して行く。次ページデ
ータはメモリ3の展開バッファに入っているものと上位
システムから送られてくる未展開データがある。最終部
紙の印字が終了すると、上述のフォーム修飾情報、フォ
ーム復元情報、1部紙修飾情報をページメモリ9上に実
行し、次ページのプリントイメージをページメモリ9上
に完成させた後次ページの印字動作に入る。なお、今迄
の説明は多部紙処理に関して述べてきたが、フォーム情
報の中では当然1部紙のみの指定でも可能であり、この
場合は1部紙=最終部紙と考えて同様の動作を行なえば
よい。The description so far has been about the operation method of preparing the next page data after the printing operation of the final copy of all pages is completed, but the following method can also be used. In actuality, in order to speed up the continuous printing, when the printing operation of the first part of the paper starts, the main processor 4 performs the analysis development after receiving the data of the next page, and the sub processor 5 stores the memory in the form of parameters that can be immediately executed. Put the data in the expansion buffer of 3. When the printing of the final copy is started, the printer interface control device 6 sequentially reads the data from the head of the page memory 9 and sends the data to the printer to proceed with the printing. At this time, an empty block that has already been read is generated on the page memory 9, and the data of the next page can be expanded in this block. Therefore, the empty block is cleared of data, and the next page data to be written in the empty block is expanded on the page memory 9. The next page data includes data stored in the expansion buffer of the memory 3 and unexpanded data sent from the host system. When the printing of the last copy is completed, the above-mentioned form modification information, form restoration information, and first copy modification information are executed on the page memory 9, and the print image of the next page is completed on the page memory 9, then the next page is printed. The printing operation of starts. In the above description, the multi-copy processing has been described, but it is also possible to specify only one copy in the form information. In this case, it is considered that one copy is the last copy and the same operation is performed. Should be done.
ところで、メモリ8内のデータエリアテーブルは有限で
あるため、データエリアテーブルが満杯になった時はサ
ブプロセッサ5がこのステータスをメインプロセッサ4
に通知する。しかし、この時点ではメインプロセッサ4
はデータエリアテーブルに基づいてデータクリアができ
ないことになるため、最終部紙プリントでデータを読み
出した後ページメモリ9をクリアしていく。従って、フ
ォームはページメモリ9上で消えてしまうことになるた
め、メモリ3のフォームバッファに入っているフォーム
の内容をページメモリ9上に最初から展開して次ページ
データの印字に備える。ここで、フォームが少ない場合
はデータエリアテーブルに基づいてデータクリアするよ
りも、フォーをページメモリ9上に再展開した方がスピ
ードアップが図れる場合がある。このような場合に対応
できるように、メインプロセッサ4にフォームロードコ
マンドでホストコンピュータが指示を与え、メモリ8の
データクリアテーブルを用いず、各ページの印字に際し
一律にページメモリ9をクリアしてしまい、次ページに
対してはフォームを再展開するという方法を選択するこ
とができるようになっている。By the way, since the data area table in the memory 8 is finite, when the data area table is full, the sub processor 5 reports this status to the main processor 4.
To notify. However, at this point, the main processor 4
Since it is impossible to clear the data based on the data area table, the page memory 9 is cleared after the data is read by the final copy print. Therefore, since the form disappears on the page memory 9, the contents of the form stored in the form buffer of the memory 3 are expanded on the page memory 9 from the beginning to prepare for printing the next page data. Here, when the number of forms is small, speeding up may be achieved by re-deploying the four on the page memory 9 rather than clearing the data based on the data area table. In order to cope with such a case, the host computer gives an instruction to the main processor 4 by a form load command, and the page memory 9 is uniformly cleared when printing each page without using the data clear table of the memory 8. , You can choose to redeploy the form for the next page.
第6図は第1図に示したシステムによる多部紙制御の動
作フローチャート図であり、上述した本実施例の動作を
まとめたものである。ステップ101をメインプロセッサ
4とサブプロセッサ5によりページメモリ9上に基本フ
ォームを展開する。ステップ102にて次に送られてくる
一頁分の印字すべきデータを受信した後、これを同様に
ページメモリ9上に展開する。ステップ103にてページ
メモリ9上に1部紙修飾を行なう。ステップ104にてプ
リンタインタフェイス制御装置6がページメモリ9上の
データを読み出してこれをプリンタに送り1部紙のプリ
ントをスタートさせる。ステップ105ではホストコンピ
ュータからメインプロセッサ4が次ページデータを受信
し、これを解析展開してメモリ3のデータ展開バッファ
に格納する。ステップ106で1部紙プリント(1部紙の
印字)が終了する。すると、ステップ107にてページメ
モリ9上に書込まれている2部紙のデータの上から2部
紙修飾を行なう。ステップ108で2部紙の印字をスター
トする。ステップ108とステップ109の間でステップ105
〜ステップ108の動作を必要な部紙だけ繰り返した後、
ステップ109にて最終部紙の修飾をページメモリ9上で
行なう。ステップ110で最終部紙の印字をスタートす
る。次にステップ111でページメモリ9上の空ブロック
のデータをクリアしつつ、メモリ3の展開バッファ内の
パラメータをページメモリ9の前記空ブロックへ書込む
と共に、ホストコンピュータから受信したデータをメモ
リ3の展開バッファかまたはページメモリ9の空ブロッ
クへ書込む。ステップ112にて次ページのデータが揃っ
たかどうか判断し、揃っている場合にはステップ113の
最終部紙プリントエンド(印字終了)を確認した後、ス
テップ114で次ページデータ(展開バッファ)の残りを
ページメモリ9上にすべて展開する。その後、ステップ
115にてフォーム修飾を行ないステップ116にてフォーム
復元を行なってステップ103に行く。ステップ112にて次
ページのデータが揃っていないと判断された場合はステ
ップ117にて最終ページでデータがあるかないかを判断
し、ある場合にはステップ111へ戻り、ない場合にはス
テップ118にて最終ページの印字を終了して全体の動作
を終了する。FIG. 6 is an operation flowchart of multi-part paper control by the system shown in FIG. 1, and summarizes the operation of this embodiment described above. In step 101, the basic form is developed on the page memory 9 by the main processor 4 and the sub processor 5. In step 102, after the next page of data to be printed, which is to be printed, is received, it is similarly developed in the page memory 9. In step 103, the first page of paper is modified on the page memory 9. In step 104, the printer interface control device 6 reads the data on the page memory 9 and sends it to the printer to start printing one copy. In step 105, the main processor 4 receives the next page data from the host computer, analyzes and expands the next page data, and stores the data in the data expansion buffer of the memory 3. At step 106, printing of one copy (printing of one copy) is completed. Then, in step 107, the second copy paper modification is performed from the data of the second copy paper written in the page memory 9. In step 108, printing of two copies is started. Step 105 between step 108 and step 109
~ After repeating the operation of step 108 for only the required copies,
In step 109, the final copy is modified on the page memory 9. In step 110, printing of the last copy is started. Next, at step 111, while clearing the data of the empty block on the page memory 9, the parameters in the expansion buffer of the memory 3 are written to the empty block of the page memory 9, and the data received from the host computer is transferred to the expansion buffer of the memory 3. Or write to an empty block of page memory 9. In step 112, it is judged whether or not the data of the next page are gathered, and if they are gathered, the final copy print end (printing end) of step 113 is confirmed, and in step 114, the remaining data of the next page (developing buffer) Are all expanded on the page memory 9. Then step
The form is modified at 115, the form is restored at step 116, and the process proceeds to step 103. If it is determined in step 112 that the data of the next page is not complete, it is determined in step 117 whether or not there is data on the last page. If there is, the process returns to step 111. If not, the process proceeds to step 118. Then, the printing of the last page is finished and the whole operation is finished.
第7図は上記第1図に示したシステムの動作におけるフ
ォームの流れ図である。(1)は基本フォームを示し、こ
れに1部紙修飾とデータを加えて(2)の1部紙のフォー
ムとする、以下(3)、(4)、(5)、(6)は2部紙、3部紙、
4部紙、5部紙のフォームを示している。この(6)の5
部紙のフォームでデータクリアを行ない基本フォーム
(1)に戻る。このフォームの流れ図においては、修復と
して網掛、復元として受領書控を納品書にしており、1
部紙から2部紙へ行くとき単価、金額、合計の欄のデー
タはマスクしている。FIG. 7 is a flowchart of the form in the operation of the system shown in FIG. (1) shows the basic form, and by adding 1 part paper modification and data to form 1 part paper form of (2), the following (3), (4), (5) and (6) are 2 Copies, 3 copies,
Figures 4 and 5 show forms of 5 and 4 papers. 5 of this (6)
Basic form that clears data with the form of the paper
Return to (1). In the flow chart of this form, the shaded area is used for restoration, and the receipt receipt is used for restoration.
When going from copy to copy 2, the data in the unit price, amount of money, and total columns are masked.
本実施例によれば、メインプロセッサ4およびサブプロ
セッサ5がホストコンピュータから与えられるフォーム
情報と印字すべきデータをページメモリ9上にドットイ
メージの形で展開する際にフォームとデータのオーバレ
イを行なうことにより、ホストコンピュータに負担がか
からず、且つ、文字、図形(文字、図形の混在可能)を
行、桁にしばられることなく任意の位置に発生させてこ
れを印字することができる。又、フォーム情報を任意に
定義することによって、任意の情報形式、文字サイズ、
イメージ、図形を定義することができる。多部紙制御は
フォーム修飾情報によって各部紙修飾情報を定義してお
くと、1回のプリントデータ転送で各部紙の異ったフォ
ーム上にデータを自動的に打つことができる。又、各部
紙修飾情報にマスク指定があればそのところはデータを
打たない機能をもち、文章作成機能を豊富にすることが
でき、コピー枚数指定をすればコピープリントをするこ
ともできる。更に、フォーム修飾情報によってデータが
フォームに重なり、データクリアでフォームが消えた場
合でもフォームの修復を行なうことができる。According to this embodiment, when the main processor 4 and the sub-processor 5 develop the form information given from the host computer and the data to be printed in the form of a dot image on the page memory 9, the form and the data are overlaid. Thus, the host computer is not burdened, and characters and figures (characters and figures can be mixed) can be generated and printed at arbitrary positions without being restricted by rows and columns. In addition, by defining the form information as desired, you can specify any information format, character size,
Images and figures can be defined. In the multi-part copy control, if each copy modification information is defined by the form modification information, data can be automatically printed on a different form of each copy by one print data transfer. Further, if a mask is designated in each copy modification information, it has a function of not writing data at that portion, and a rich sentence creating function can be provided. If the number of copies is designated, a copy print can be made. Furthermore, the form can be restored even if the data is overlapped with the form by the form modification information and the form is erased by clearing the data.
以上記述した如く本発明のページプリンタ制御方式によ
れば、文字パターン、図形パターン、イメージ情報をド
ットイメージの形で書込むことができるページメモリを
備え、このページメモリ上でフォームとデータのオーバ
レイを行なうことにより、ホストコンピュータに負担が
かからず、且つ、文字、図形を任意の位置に発生させて
印字することを可能とする効果がある。As described above, according to the page printer control system of the present invention, a page memory capable of writing a character pattern, a graphic pattern, and image information in the form of a dot image is provided, and an overlay of forms and data is provided on this page memory. By doing so, there is an effect that the host computer is not burdened and that characters and figures can be generated and printed at arbitrary positions.
第1図は本発明のページプリンタ制御方式を適用したプ
リンタ制御システムの一実施例を示した構成図、第2図
はフォーム情報のフォーマットを示した図、第3図はマ
スク機能を説明した図、第4図はフォーム修飾情報例を
示した図、第5図は基本フォーム復元情報例を示した
図、第6図は第1図に示したシステムにおける多部紙制
御動作フローチャート図、第7図は本実施例におけるフ
ォームの流れを示した図である。 1……上位システムインターフェース制御装置、2……
コントロールプログラムメモリ、3,8……メモリ、4
……メインプロセッサ、5……サブプロセッサ、6……
プリンタインターフェース制御装置、7……キャラクタ
ジェネレータ、 9……ページメモリ、10……ページメモリバスFIG. 1 is a block diagram showing an embodiment of a printer control system to which the page printer control system of the present invention is applied, FIG. 2 is a diagram showing a format of form information, and FIG. 3 is a diagram explaining a mask function. , FIG. 4 is a diagram showing an example of form modification information, FIG. 5 is a diagram showing an example of basic form restoration information, and FIG. 6 is a flowchart of a multi-part paper sheet control operation in the system shown in FIG. The figure shows the flow of the form in this embodiment. 1 ... Host system interface controller, 2 ...
Control program memory, 3, 8 ... Memory, 4
...... Main processor, 5 ...... Sub processor, 6 ......
Printer interface controller, 7 ... Character generator, 9 ... Page memory, 10 ... Page memory bus
Claims (1)
とを受け、これをドットパターンに展開してフォームと
データのオーバレイを行なうページプリンタの制御方式
において、上位システムからフォーム情報及び印字デー
タを受信するメインプロセッサと、このメインプロセッ
サに接続されるサブプロセッサと、このサブプロセッサ
によって前記フォーム情報及び印字データがドットイメ
ージに展開されて記憶されるページメモリと、印字パタ
ーンデータが格納されるキャラクタジェネレータとを具
備し、前記サブプロセッサは前記メインプロセッサから
の前記フォーム情報に基づいてフォーム内容のドットイ
メージを生成して前記ページメモリに書き込んだ後、前
記メインプロセッサからの印字データに基づいて前記キ
ャラクタジェネレータから読み出した印字ドットパター
ンをページメモリに書き込み、前記ページメモリ上にフ
ォーム情報と印字データとがオーバーレイされた印字情
報を出力制御することを特徴とするページプリンタの制
御方式。1. A page printer control system for receiving form information and print data from a host system, expanding the dot information into a dot pattern and overlaying the form and data, and receiving the form information and print data from the host system. A main processor, a sub-processor connected to the main processor, a page memory in which the form information and print data are expanded into a dot image and stored by the sub-processor, and a character generator in which print pattern data is stored. The sub processor generates a dot image of the form content based on the form information from the main processor and writes the dot image in the page memory, and then the character generator based on print data from the main processor. Writing the print dot pattern read from the data in the page memory, the control method of the page printer and form information on the page memory and print data and outputs control print information overlaid.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58053503A JPH0619699B2 (en) | 1983-03-31 | 1983-03-31 | Page printer control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58053503A JPH0619699B2 (en) | 1983-03-31 | 1983-03-31 | Page printer control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS59180678A JPS59180678A (en) | 1984-10-13 |
JPH0619699B2 true JPH0619699B2 (en) | 1994-03-16 |
Family
ID=12944625
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58053503A Expired - Lifetime JPH0619699B2 (en) | 1983-03-31 | 1983-03-31 | Page printer control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0619699B2 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6220030A (en) * | 1985-07-19 | 1987-01-28 | Fujitsu Ltd | High-speed program formatting output device |
NL8502641A (en) | 1985-09-27 | 1986-04-01 | Oce Nederland Bv | GRID IMAGE MEMORY. |
JP2682984B2 (en) * | 1987-02-09 | 1997-11-26 | キヤノン株式会社 | Output device |
JPH0747329B2 (en) * | 1987-09-28 | 1995-05-24 | 株式会社日立製作所 | Document creation device |
JP2582841B2 (en) * | 1988-03-09 | 1997-02-19 | カシオ電子工業株式会社 | Printer device |
JP2872246B2 (en) * | 1988-05-20 | 1999-03-17 | 株式会社日立製作所 | Printer distributed processing method |
JPH02235663A (en) * | 1989-03-08 | 1990-09-18 | Canon Inc | Character pattern creating device attachable to output device |
JP3014280B2 (en) * | 1994-09-19 | 2000-02-28 | 沖電気工業株式会社 | Composite editing processing method |
JP2001306448A (en) * | 2000-04-18 | 2001-11-02 | Prism:Kk | Method for distributing electronic document data |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4273041A (en) * | 1980-01-28 | 1981-06-16 | International Business Machines Corporation | Belt printer control architecture |
JPS57207984A (en) * | 1981-06-16 | 1982-12-20 | Canon Inc | Information output device |
-
1983
- 1983-03-31 JP JP58053503A patent/JPH0619699B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPS59180678A (en) | 1984-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3873427B2 (en) | Intermediate file processing apparatus in printer control system and recording medium recorded with control program thereof | |
EP0491029A1 (en) | Raster image processor for all points addressable printer | |
JPH02185475A (en) | printing device | |
JPH11298717A (en) | Printing system | |
JP2911470B2 (en) | Character processing apparatus and method | |
JPH0619699B2 (en) | Page printer control method | |
JPH08286860A (en) | Output control method, its device and its computer program product | |
JPH09164739A (en) | Printing equipment | |
JPS6364765A (en) | Output device | |
JPH0421592B2 (en) | ||
JP3166156B2 (en) | Printer control device | |
JP2711860B2 (en) | Output control method and device | |
JP3419450B2 (en) | Pixel data processing apparatus and method | |
JP2606557B2 (en) | DTP system | |
JP2922676B2 (en) | Image forming device | |
JPH09277616A (en) | Printer and control method thereof | |
JP2000177186A (en) | Device and method for controlling printer | |
JP2974638B2 (en) | Document processing apparatus and method | |
JP2728916B2 (en) | Character processing apparatus and method | |
JP3004656B2 (en) | Output control device | |
JPH0311275B2 (en) | ||
JP2647510B2 (en) | Character processing apparatus and method | |
JP2784823B2 (en) | Image editing printing method of printer | |
JPH03112668A (en) | Printer | |
JPH07266658A (en) | Printer device |