JPH0546143B2 - - Google Patents

Info

Publication number
JPH0546143B2
JPH0546143B2 JP58213952A JP21395283A JPH0546143B2 JP H0546143 B2 JPH0546143 B2 JP H0546143B2 JP 58213952 A JP58213952 A JP 58213952A JP 21395283 A JP21395283 A JP 21395283A JP H0546143 B2 JPH0546143 B2 JP H0546143B2
Authority
JP
Japan
Prior art keywords
data
memory
print data
format
field
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
Application number
JP58213952A
Other languages
Japanese (ja)
Other versions
JPS60107977A (en
Inventor
Kikuo Hatasawa
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58213952A priority Critical patent/JPS60107977A/en
Publication of JPS60107977A publication Critical patent/JPS60107977A/en
Publication of JPH0546143B2 publication Critical patent/JPH0546143B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

〔発明の利用分野〕 本発明は書式データと印字データとを重ね合わ
せて印刷するプリンタの制御装置に係り、書式デ
ータと印字データとの間のプリント位置合わせの
改良に関する。 〔発明の背景〕 書式オーバレイ方式のプリンタ制御装置書式デ
ータをメモリに格納しておき、これと印字データ
を合成してプリンタへ送り書式と文字とを同時に
印刷させるものである。 これは、罫線や文字などからなる書式が予じめ
印刷された用紙を用意し、これに可変な情報を印
字するという方法で存在したオペレータに印刷用
紙を印刷されたデータに合つたものに取り替える
という煩しい作業を不要なものとした。 これについては、USP4125829に述べられてい
る。 第1図は印刷されるべき帳票の一例を示す。同
図で、斜線を施した部分が印字データが印刷され
る印字領域であり、それ以外の部分が書式であ
る。 書式は一般に複数種がメモリに格納されてお
り、その一つが選択されて読み出され、印字デー
タと合成される。このような書式オーバレイを行
なう従来のプリンタ制御装置の場合、印字データ
の印字位置を書式に合わせるために改行処理やカ
ラム処理等をユーザプログラムで綿密に指定しな
ければならないという問題があつた。例えば
「年」を指定する印字データは帳票上の上から何
行目であり、左から何文字目の位置に印字されな
ければならないかを考慮してその印字を位置指定
を行ない、「月」を指定する印字データについて
も同様に印字位置指定を行なうということが必要
である。また、書式に変更が生じた場合、その度
にプログラムの変更も必要となるという問題もあ
つた。 〔発明の目的〕 本発明の目的は前述の問題を解決することであ
り、書式データと印字データとの合成における位
置合わせを容易にすることである。 〔発明の要旨〕 本発明によるプリンタ制御装置においては、書
式データと印字データの印字位置との連結をとる
ために書式データにフイールド識別子が挿入され
ている。この識別は印字データが出力されるべき
フイールドの先頭に位置する。書式データを順次
出力のため読み出しているとき、フイールド識別
子が読み出されると、それを契機として印字デー
タの出力が開始される。印字データには書式上の
どの位置に配置されるべきかという位置情報は付
されず、フイールド毎の区分が施こされる。 〔発明の実施例とその効果〕 第1図のような帳票を例として本発明の一実施
例を説明する。書式データは帳票をTVスキヤン
ラインのような図の横方向の細い線の集まりとし
て記憶されている。この線を最上の線から白地の
部分を“0”、黒く印刷されるべき部分を“1”
に対応させて表わしてメモリに格納してある。上
から数ライン目において、左から線をたどつてい
くと、氏名が印字されるべき斜線で示されるフイ
ールドに至る。このフイールドの先頭にフイール
ド識別子が挿入されており、これにその後の書式
のデータが続く。フイールドの終りは指定する必
要はない。 一方、印字データは書式データとは別に記憶さ
れている。この例では氏名、氏名No.、などが記憶
されている。 書式データは最上のラインを示すものから順に
読み出され、レーザビームプリンタのような出力
装置に転送される。このとき、フイールド識別子
が読み出されると印字データとの合成(重ね合わ
せ)が必要であるということが示され、別に記憶
されている氏名データが読み出され、これと書式
データが合成されて出力装置へ転送される。 従つて、書式データと印字データが適当な位置
関係をもつて重ね合わされる。印字データには帳
票上の位置を示す情報は不要である。但し、氏名
データとその次に印字される年のデータとの区切
りは判別できるよう記憶されている。つまり、フ
イールド毎の区分はなされている。 第2図は本発明の一実施例を示すブロツク図で
ある。 1はメインプロセツサであり、上位装置(図示
せず)から印字データと書式データを受信し、印
字データはページメモリ2に格納し、書式データ
は書式メモリ3に格納する。印字データと書式デ
ータについては後述する。 ここで前記ページメモリ2、書式メモリ3のメ
モリ構成は通常のメモリ構成であり、1バイトを
アドレスの単位とし、ページメモリ2は印字紙面
で3ページ程度の印字文字コードを格納する容量
のメモリである。同様に書式メモリ3も通常のメ
モリ構成であり、1バイトをアドレスの単位と
し、8ページ程度の書式データを格納できる容量
があれば良い。 各々のメモリが収容する印字ページ数は、プリ
ンタと上位装置の処理能力および上位装置とのデ
ータ転送速度の関係で最適な値に定めれば良い。 4はプリントプロセツサであり、ページメモリ
2から印字データ(文字コード)を順次読み出
し、対応の文字パターンを文字パターンメモリ1
1から読み出し、レーザビームプリンタ8から送
られてくる水平同期信号に同期して文字パターン
のビデオ信号7aを発生する。5は書式プロセツ
サである。これは、書式メモリ3から書式データ
を順次読み出し、それを解読することにより対応
のビデオ信号7bを水平同期信号9に同期させて
発生する。また詳細は後述するが、書式プロセツ
サ5は書式データ中のフイールド識別子を検出す
ると、その検出信号とフイールド区分番号の情報
とを割込み信号10としてプリントプロセツサ4
へ送出し、プリントプロセツサ4側では同割込み
信号10を受けると、印字データのフイールド切
替えを行ない、そのフイールド区分番号と一致す
るフイールド番号を持つ印字データ・フイールド
をページメモリ2より読み出す。 ビデオ信号7a,7bはオア回路6で論理和合
成されてビデオ信号7となり、レーザビームプリ
ンタ8へ送られる。 ここで、レーゲビームプリンタ8について第3
図により簡単に説明する。同図において、17は
感光ドラム、12はレーザ発振器、13は回転多
面鏡、14はレンズである。プリンタ制御装置か
らのビデオ信号7に従いレーザ発振器12は断続
したレーザ光を発光する。このレーザ光は回転多
面鏡13に反射して感光ドラム17上をスキヤン
する。感光ドラム11を用いての印字プロセスは
通常の複写機と同様であるので説明を省略する。
尚、感光ドラム17の一端に近い位置に反射鏡1
5が配置され、レーザ光をビームデテクタ16に
あてる。このビームデテクタ16はレーザ光を検
知することにより水平同期信号9をプリンタ制御
装置に送出する。 次に水平同期信号9とビデオ信号7のタイミン
グ関係について第4図を用いて説明する。プリン
タ制御装置は水平同期信号9を発生させるため
に、各Scan lineの走査開始よりビドオ信号7を
オンにしておく。走査開始からしばらくして、ビ
ームデテクタ16より水平同期信号9が送出され
ると、プリンタ制御装置はビデオ信号7を印字区
間に入るまでとり合えずオフにし、印字区間に入
ると印字データおよび書式データに対応したドツ
トパターンをビデオ信号7として送出する。印字
区間が過ぎたならば、プリンタ制御装置はその
Scan lineの終りまでビデオ信号7をオフとする。
なお、前記のようなビデオ信号7のオン、オフ制
御、およびビデオ信号7にドツトパターンを乗せ
る処理は書式プロセツサ5とプリントプロセツサ
4で行なわれるが、これは通常のラスタスキヤン
形の表示装置の場合と同様であるので詳細は省略
する。 次に書式データについて説明する。書式データ
は前述したように“1”、“0”により表現されて
いるが、これを圧縮して、記憶するために命令と
呼ばれる形式で表わされて記憶されている。この
命令は2バイト長であり、先頭の4ビツトはそれ
に続く残りのデータ(オペランドと呼ぶ)が何を
表わすかの定義を示す。この例を表1に示す。
[Field of Application of the Invention] The present invention relates to a control device for a printer that prints format data and print data in a superimposed manner, and relates to an improvement in print positioning between format data and print data. [Background of the Invention] A format overlay type printer control device stores format data in a memory, combines this with print data, and sends it to a printer to print the format and characters at the same time. This method involves preparing paper with pre-printed formats such as ruled lines and characters, and printing variable information on it.The operator then replaces the printing paper with one that matches the printed data. This has made this cumbersome work unnecessary. This is discussed in USP 4125829. FIG. 1 shows an example of a form to be printed. In the figure, the shaded area is the print area where the print data is printed, and the other areas are the format. Generally, a plurality of formats are stored in memory, one of which is selected and read out and combined with print data. Conventional printer control devices that perform such format overlays have had the problem of having to carefully specify line feed processing, column processing, etc. in a user program in order to match the print position of print data to the format. For example, print data that specifies "year" should be printed by considering which line from the top of the form and what character position from the left it should be printed in, and then specifying the print position as "month". It is necessary to similarly designate the print position for the print data that specifies the print position. Another problem was that whenever a change occurred in the format, the program had to be changed each time. [Object of the Invention] An object of the present invention is to solve the above-mentioned problems, and to facilitate alignment in combining format data and print data. [Summary of the Invention] In the printer control device according to the present invention, a field identifier is inserted into the format data in order to connect the format data and the print position of the print data. This identification is located at the beginning of the field where print data is to be output. When format data is read out for output in sequence, when a field identifier is read out, output of print data is started using this as a trigger. Print data is not provided with positional information indicating where it should be placed on the format, but is classified by field. [Embodiment of the Invention and Its Effects] An embodiment of the present invention will be described using a form as shown in FIG. 1 as an example. The format data is stored as a collection of thin lines in the horizontal direction of a figure, such as a TV scan line. From the top line, set the white part to "0" and the part that should be printed in black to "1"
It is represented in correspondence to and stored in memory. A few lines from the top, following the line from the left leads to a field indicated by diagonal lines where the name should be printed. A field identifier is inserted at the beginning of this field, followed by the subsequent formatted data. There is no need to specify the end of the field. On the other hand, print data is stored separately from format data. In this example, the name, name number, etc. are stored. The format data is read out in order, starting with the topmost line, and transferred to an output device such as a laser beam printer. At this time, when the field identifier is read out, it is indicated that it needs to be combined (overlaid) with the print data, and the separately stored name data is read out, and this and the format data are combined and output to the output device. will be forwarded to. Therefore, the format data and print data are superimposed with appropriate positional relationship. The print data does not require information indicating the position on the form. However, the delimiter between the name data and the year data printed next is memorized so that it can be determined. In other words, divisions are made for each field. FIG. 2 is a block diagram showing one embodiment of the present invention. A main processor 1 receives print data and format data from a host device (not shown), stores the print data in the page memory 2, and stores the format data in the format memory 3. The print data and format data will be described later. Here, the memory configuration of the page memory 2 and format memory 3 is a normal memory configuration, where 1 byte is the unit of address, and the page memory 2 has a capacity to store the printed character code of about 3 pages on the printing paper surface. be. Similarly, the format memory 3 has a normal memory configuration, with one byte as a unit of address, and only needs to have a capacity capable of storing about 8 pages of format data. The number of print pages that each memory can accommodate may be set to an optimal value based on the relationship between the processing capabilities of the printer and the host device and the data transfer speed between the printer and the host device. 4 is a print processor that sequentially reads print data (character codes) from page memory 2 and stores the corresponding character pattern in character pattern memory 1.
1 and generates a character pattern video signal 7a in synchronization with the horizontal synchronizing signal sent from the laser beam printer 8. 5 is a format processor. This is generated by sequentially reading the format data from the format memory 3 and decoding it to synchronize the corresponding video signal 7b with the horizontal synchronizing signal 9. As will be described in detail later, when the format processor 5 detects a field identifier in the format data, the format processor 5 sends the detection signal and field classification number information to the print processor 4 as an interrupt signal 10.
When the print processor 4 side receives the same interrupt signal 10, the print data field is switched and the print data field having the field number matching the field division number is read out from the page memory 2. The video signals 7a and 7b are logically summed by an OR circuit 6 to form a video signal 7, which is sent to a laser beam printer 8. Here, regarding the Rege beam printer 8, the third
This will be briefly explained using figures. In the figure, 17 is a photosensitive drum, 12 is a laser oscillator, 13 is a rotating polygon mirror, and 14 is a lens. The laser oscillator 12 emits intermittent laser light in accordance with the video signal 7 from the printer control device. This laser light is reflected by the rotating polygon mirror 13 and scans the photosensitive drum 17. The printing process using the photosensitive drum 11 is the same as that of a normal copying machine, so a description thereof will be omitted.
Note that a reflecting mirror 1 is located near one end of the photosensitive drum 17.
5 is arranged, and the beam detector 16 is irradiated with laser light. This beam detector 16 sends a horizontal synchronization signal 9 to the printer control device by detecting the laser beam. Next, the timing relationship between the horizontal synchronizing signal 9 and the video signal 7 will be explained using FIG. 4. In order to generate the horizontal synchronization signal 9, the printer control device turns on the video signal 7 from the start of each scan line. When the horizontal synchronization signal 9 is sent from the beam detector 16 some time after the start of scanning, the printer control device temporarily turns off the video signal 7 until entering the printing section, and then outputs the print data and format data. A dot pattern corresponding to the video signal 7 is sent out as a video signal 7. Once the printing interval has passed, the printer controller
Video signal 7 is turned off until the end of the scan line.
The above-mentioned on/off control of the video signal 7 and the process of placing a dot pattern on the video signal 7 are performed by the format processor 5 and the print processor 4, which are similar to those of a normal raster scan type display device. Since this is the same as in the case above, the details are omitted. Next, format data will be explained. As mentioned above, the format data is expressed by "1" and "0", but in order to compress and store it, it is expressed in a format called an instruction and stored. This instruction is 2 bytes long, and the first 4 bits define what the remaining data (called operands) that follows represents. An example of this is shown in Table 1.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかな如く、本発明によれ
ば、印字データ出力プログラムの作成に際して書
式位置への改行、カラム指定の煩わしい記述は不
要となり、印字データ出力プログラムの大巾な改
善を図ることができる。
As is clear from the above description, according to the present invention, when creating a print data output program, there is no need for cumbersome descriptions such as line breaks to format positions and column specifications, and it is possible to significantly improve the print data output program. .

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

第1図は帳票の一例を示す図、第2図は本発明
の一実施例の概略構成図、第3図は本発明の一実
施例で使用されるレーザビームプリンタの概略構
成図、第4図は第4図のレーザビームプリンタの
動作を示すタイムチヤート、第5図は第2図の書
式メモリと書式プロセツサの詳細図、第6図は書
式データの具体的一例を示す図、第7図は印字デ
ータの一例を示す図、第8図は第2図のプリント
プロセツサの詳細図、第9図は第8図のプリント
プロセツサの処理を示すフローチヤート。 1;メインプロセツサ、2;ページメモリ、
3;書式メモリ、4;プリントプロセツサ、5;
書式プロセツサ。
FIG. 1 is a diagram showing an example of a form, FIG. 2 is a schematic configuration diagram of an embodiment of the present invention, FIG. 3 is a schematic diagram of a laser beam printer used in an embodiment of the present invention, and FIG. The figure is a time chart showing the operation of the laser beam printer in Figure 4, Figure 5 is a detailed view of the format memory and format processor in Figure 2, Figure 6 is a diagram showing a specific example of format data, and Figure 7 is a diagram showing the operation of the laser beam printer in Figure 4. 8 is a diagram showing an example of print data, FIG. 8 is a detailed view of the print processor shown in FIG. 2, and FIG. 9 is a flowchart showing the processing of the print processor shown in FIG. 1; Main processor, 2; Page memory,
3; Format memory, 4; Print processor, 5;
Format processor.

Claims (1)

【特許請求の範囲】 1 印字データを記憶する第1のメモリと、前記
印字データが印字されるべき位置に制御情報を有
するイメージ情報として書式データを記憶する第
2のメモリと、 前記第2のメモリから書式データを読みだして
第1ビデオ信号を発生し、かつ、前記制御情報を
読み出したとき制御信号を発生する第1制御手段
と、前記制御信号に応答して前記第1のメモリか
ら印字データを読みだしドツト展開して第2ビデ
オ信号を発生する第2制御手段と、 前記第1、第2ビデオ信号を合成して出力する
合成手段とを有することを特徴とするプリンタ制
御装置。 2 前記印字データは印字データ区分情報を含
み、前記制御情報は書式データに含まれるフイー
ルドの1つである事を特定するフイールド指定情
報を含み、 前記第2制御手段は更に前記フイールド指定情
報を受け取り、特定されえたフイールドにおいて
前記書式データと重ね合わされるべき印字データ
を前記印字データ区分情報により選択して前記第
2ビデオ信号を発生することを特徴とする特許請
求の範囲第1項記載のプリンタ制御装置。 3 前記第2制御手段は、前記フイールド指定情
報を格納するレジスタと、前記各フイールドにお
いて前記書式データと重ね合わされるべき印字デ
ータの各々の前記第1メモリのアドレスを、 前記フイールド指定情報に従つて読みだされる
ように記憶している第3のメモリと、前記第3の
メモリから読みだされたアドレスに従つて、前記
第1のメモリから印字データを読みだす第3制御
手段とを含むことを特徴とする特許請求の範囲第
2項記載のプリンタ制御装置。
[Scope of Claims] 1. A first memory that stores print data; a second memory that stores format data as image information having control information at a position where the print data is to be printed; a first control means for reading format data from a memory to generate a first video signal and generating a control signal when the control information is read; and printing from the first memory in response to the control signal. A printer control device comprising: second control means for reading and dot-developing data to generate a second video signal; and composition means for synthesizing and outputting the first and second video signals. 2. The print data includes print data classification information, the control information includes field designation information specifying that the field is one of the fields included in the format data, and the second control means further receives the field designation information. , the printer control according to claim 1, wherein print data to be superimposed on the format data in the specified field is selected based on the print data classification information and the second video signal is generated. Device. 3. The second control means controls a register storing the field designation information and the address of each of the first memory of print data to be superimposed on the format data in each field according to the field designation information. The method includes a third memory storing data to be read out, and a third control means for reading out print data from the first memory in accordance with an address read out from the third memory. A printer control device according to claim 2, characterized in that:
JP58213952A 1983-11-16 1983-11-16 Printer controller Granted JPS60107977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58213952A JPS60107977A (en) 1983-11-16 1983-11-16 Printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58213952A JPS60107977A (en) 1983-11-16 1983-11-16 Printer controller

Publications (2)

Publication Number Publication Date
JPS60107977A JPS60107977A (en) 1985-06-13
JPH0546143B2 true JPH0546143B2 (en) 1993-07-13

Family

ID=16647765

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58213952A Granted JPS60107977A (en) 1983-11-16 1983-11-16 Printer controller

Country Status (1)

Country Link
JP (1) JPS60107977A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6220030A (en) * 1985-07-19 1987-01-28 Fujitsu Ltd High-speed program shaping output device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5469025A (en) * 1977-11-11 1979-06-02 Canon Inc Information output device
JPS56120257A (en) * 1980-02-28 1981-09-21 Toshiba Corp Facsimile device
JPS5848560A (en) * 1981-09-18 1983-03-22 Hitachi Ltd Facsimile response device in facsimile response system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5469025A (en) * 1977-11-11 1979-06-02 Canon Inc Information output device
JPS56120257A (en) * 1980-02-28 1981-09-21 Toshiba Corp Facsimile device
JPS5848560A (en) * 1981-09-18 1983-03-22 Hitachi Ltd Facsimile response device in facsimile response system

Also Published As

Publication number Publication date
JPS60107977A (en) 1985-06-13

Similar Documents

Publication Publication Date Title
US5163122A (en) Image processing system
EP0461920B1 (en) Printing systems
US4564302A (en) Control device for printer which has function of format data printing
JPH0546143B2 (en)
JPS6360672A (en) Image forming device
EP0481787A2 (en) Output method and apparatus
JPS61121572A (en) Digital copying device
JP3166156B2 (en) Printer control device
JPH0877376A (en) Image processing method and device therefor
JPH0425570B2 (en)
JP3226226B2 (en) Character processing method and apparatus
JPH10229487A (en) Image-forming device
JPS5821781A (en) Processing system for computer information utilizing copying machine
JP2908571B2 (en) Page printer
JP2974366B2 (en) Printing control device
JP2977132B2 (en) Printer
JP2972224B2 (en) Document processing method
JPH01863A (en) Image reading device
JPS593625A (en) Empty confirmation control system of image buffer of printer
JP2710146B2 (en) Printing control device
JPS62250768A (en) Printing device
JPH02194977A (en) Apparatus for forming of image
JPH10119384A (en) Image forming apparatus
JPH07192115A (en) Electronic filing device
JPH0245228B2 (en)