JPS63221420A - Printer device - Google Patents

Printer device

Info

Publication number
JPS63221420A
JPS63221420A JP62054178A JP5417887A JPS63221420A JP S63221420 A JPS63221420 A JP S63221420A JP 62054178 A JP62054178 A JP 62054178A JP 5417887 A JP5417887 A JP 5417887A JP S63221420 A JPS63221420 A JP S63221420A
Authority
JP
Japan
Prior art keywords
print data
printer
program
pages
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62054178A
Other languages
Japanese (ja)
Inventor
Nobuhiko Ohama
大浜 信彦
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP62054178A priority Critical patent/JPS63221420A/en
Publication of JPS63221420A publication Critical patent/JPS63221420A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform a printing job without deteriorating the print data to be compressed by using a storing means that can store the print data on plural pages and a compression/conversion means which gives the compression/ conversion to said print data in a prescribed ratio. CONSTITUTION:A user processing program 16 produces the print data and gives an output request to an input/output control program 17 for print. The program 17 edits the print data into a prescribed form and delivers the print data to a printer control program 18. This program 18 contains a printer buffer 19 which can store the print data equivalent to two pages and stores the print data received from the program 17 into said buffer 19. At the same time, the program 18 compresses and assembles the stored print data and then starts a printer to carry out a printing job. Furthermore the compression of 2 pages is also possible as long as a storing means is prepared for storage of the print data equivalent to the desired number of pages.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はシリアルプリンタに関し、特にmページ分の印
字データをnページ(m、nは自然数。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a serial printer, and in particular, print data for m pages to n pages (m and n are natural numbers).

m > n )に圧縮して印字を行う印字処理に関する
The present invention relates to a printing process in which printing is performed by compressing m > n).

(従来の技術) 第7図は、シリアルプリンタにおける印字データの流れ
を示す図である。同図において、ユーザ処理プログラム
1.入出力制御処理プログラム2゜及びプリンタ制御プ
ログラム3は、例えばプリンタを具備した計算機システ
ム内の記憶部に格納され、これらの各プログラムは該シ
ステム内に設けられた中央処理装置(以下、CPUと略
す)によって実行される。
(Prior Art) FIG. 7 is a diagram showing the flow of print data in a serial printer. In the figure, user processing program 1. The input/output control processing program 2° and the printer control program 3 are stored, for example, in a storage unit in a computer system equipped with a printer, and each of these programs is executed by a central processing unit (hereinafter abbreviated as CPU) provided in the system. ) is executed by

ユーザ処理プログラム1は、印字データの作成を行い、
入出力制御処理プログラム2に対して出力要求を発行す
る。入出力制御処理プログラム2は、ユーザ処理プログ
ラムからの出力要求を受け。
The user processing program 1 creates print data,
An output request is issued to the input/output control processing program 2. The input/output control processing program 2 receives an output request from a user processing program.

プリンタ制御プログラム3に対して印字データの出力を
行う。プリンタ制御プログラム3は、印字データを受取
り実際の印字を行わせる。
Print data is output to the printer control program 3. The printer control program 3 receives print data and causes actual printing to be performed.

このような印字方式を利用した従来の圧縮印字方法を第
8図に示す。同図において、″通常印字″′とは、圧縮
印字を意識せずユーザ処理プログラムが1行単位の印字
の出力要求を発行することを意味する。一方、″圧縮印
字″は、ユーザ処理プログラムが1行内に2行分の印字
データの加工(圧縮)をし、その2行分を1荷車位とし
て出力要求を行うものである。
A conventional compression printing method using such a printing method is shown in FIG. In the figure, "normal printing" means that the user processing program issues an output request for printing on a line-by-line basis without being aware of compressed printing. On the other hand, in "compression printing", the user processing program processes (compresses) two lines of print data in one line, and requests the output of the two lines as one cart.

(発明が解決しようとする問題点) しかしながら、以上述べた圧縮印字の方法では、次のよ
うな問題点があった。
(Problems to be Solved by the Invention) However, the compression printing method described above has the following problems.

圧縮印字を行うには、ユーザ処理プログラムが圧縮印字
を意識した、即ち実現可能な構成を有する必要がある。
In order to perform compression printing, the user processing program needs to be aware of compression printing, that is, it needs to have a configuration that can be implemented.

また、圧縮印字を意識するユーザ処理プログラムであっ
ても、2行分の印字データを1行に加工(圧縮)するた
め、1行当りの印字文字数が不足してしまう。
Furthermore, even in a user processing program that takes compression printing into consideration, two lines of print data are processed (compressed) into one line, resulting in an insufficient number of characters to be printed per line.

そこで本発明は上記問題点を解決し、かつ適切にmペー
ジ分の印字データをnページに圧縮印字するプリンタを
提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and to provide a printer that can appropriately compress and print m pages of print data onto n pages.

(問題点を解決するための手段) 本発明によれば、従来技術の問題点を解決するために、
nページ(nは1より大きい自然数)の印字データを1
ページに圧縮して印字を行うプリンタ装置において、以
下の手段を設けて構成される。
(Means for Solving the Problems) According to the present invention, in order to solve the problems of the prior art,
Print data of n pages (n is a natural number greater than 1)
A printer device that compresses and prints on a page is configured with the following means.

上記プリンタ装置は、1】ページの印字データを格納可
能な格納手段と、 該格納手段に格納されたnページの印字データを1ペー
ジに印字するため、該印字データを所定の比率で圧縮変
換する圧縮変換手段とを具備し。
The above printer device comprises: 1) a storage means capable of storing print data of pages; and compressing and converting the print data at a predetermined ratio in order to print the n pages of print data stored in the storage means on one page; and compression conversion means.

該圧縮変換手段により圧縮された印字データに基づき印
字を行うものである。
Printing is performed based on the print data compressed by the compression conversion means.

(作用) 本発明によれば以上のようにプリンタ装置を構成したの
で、各技術的手段は次のように作用する。
(Function) According to the present invention, since the printer device is configured as described above, each technical means functions as follows.

本発明によるプリンタ装置において、例えば2ページを
1ページに圧縮して印字を行う場合、先ず格納手段は2
ペ一ジ分の印字データの格納を行う。圧縮変換手段は、
格納された2ペ一ジ分の印字データを1ページに印字で
きるように、これらの印字データを圧縮変換する。この
場合には、例えば、圧縮変換すべき印字データを1/2
倍に縮小することにより達成できる。以上のように、本
発明によれば、圧縮変換すべきデータを損なうことなく
良好な圧縮印字を行うことができる。よって、従来技術
の問題点を解決できるのである。
In the printer device according to the present invention, for example, when compressing two pages into one page and printing, first, the storage means stores two pages.
Stores print data for one page. The compression conversion means is
These print data are compressed and converted so that the stored print data for two pages can be printed on one page. In this case, for example, the print data to be compressed and converted is halved.
This can be achieved by reducing the size by a factor of two. As described above, according to the present invention, good compression printing can be performed without damaging data to be compressed and converted. Therefore, the problems of the prior art can be solved.

(実施例) 以下、本発明の一実施例について図面を参照して詳細に
説明する。
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は本実施例によるプリンタ装置のシステム構成図
である。同図において、10はオペレーティングシステ
ム、ユーザ処理プログラムを実行する中央処理装置(C
P U)、11はオペレーティングシステム、ユーザ処
理プログラム、データ域等が格納さ才している主記憶装
置、12は主記憶装置と入出力装置間でダイレクトメモ
リアクセスを実現するアダプタ、13はプリンタの制御
を行うプリンタコントローラ、14は印字用紙に印字を
行うプリンタ、15は文字パターンデータが格納されて
いるフォント装置、l−’ −B U S及びD −B
 U Sはそれぞれプログラムバスとダイレクトメモリ
アクセスバスである。
FIG. 1 is a system configuration diagram of a printer device according to this embodiment. In the figure, 10 is an operating system, a central processing unit (C
11 is a main memory in which the operating system, user processing programs, data areas, etc. are stored; 12 is an adapter that realizes direct memory access between the main memory and the input/output device; 13 is a printer's main memory; 14 is a printer that performs printing on printing paper; 15 is a font device in which character pattern data is stored; l-'-B U S and D-B;
US are a program bus and a direct memory access bus, respectively.

第2図は第1図に示す主記憶装置11に格納される各プ
ログラムの構成を示す。同図において、ユーザ処理プロ
グラム16は従来と同様に(第7図)印字データを作成
し、入出力制御処理プログラム17に対して印字のため
の出力要求を行う。入出力制御処理プログラム17は、
印字データを所定の形式に編集などを行い、プリンタ制
御プログラム18に対して印字データを出力する。プリ
ンタ制御プログラム18は、2ペ一ジ分の印字データを
格納することができるプリンタ用バッファ(編集用バッ
ファ)19を有し、入出力制御処理プログラム17から
受取った印字データをプリンタ用バッファ19に格納す
るとともに格納された印字データの圧縮・組立を行う。
FIG. 2 shows the structure of each program stored in the main storage device 11 shown in FIG. 1. In the same figure, the user processing program 16 creates print data in the same manner as in the past (FIG. 7), and issues an output request for printing to the input/output control processing program 17. The input/output control processing program 17 is
The print data is edited into a predetermined format, and the print data is output to the printer control program 18. The printer control program 18 has a printer buffer (editing buffer) 19 that can store print data for two pages, and stores the print data received from the input/output control processing program 17 in the printer buffer 19. It stores, compresses and assembles the stored print data.

尚、プリンタ用バッファ19は、プログラム内に限らず
例えばフロッピィディスクのような外部記憶装置として
設けても良い。
Note that the printer buffer 19 is not limited to being provided within the program, but may be provided as an external storage device such as a floppy disk.

次に、第1図に示すプリンタ装置における圧縮印字動作
について、第3図、第4図、第5図を参照して説明する
。第3図は第2図に示す各プログラムの詳細な機能をブ
ロックに示した図であり、第4図は第3図の各ブロック
間の概要処理を示す流れ図、第5図はプリンタ用バッフ
ァの容量及びその使用方法を説明する図である。
Next, the compression printing operation in the printer shown in FIG. 1 will be explained with reference to FIGS. 3, 4, and 5. Figure 3 is a block diagram showing the detailed functions of each program shown in Figure 2, Figure 4 is a flowchart showing the outline processing between each block in Figure 3, and Figure 5 is a diagram of the printer buffer. It is a figure explaining capacity and its usage method.

先ず、ユーザ処理プログラム16は、前述したようにc
puto(第1図)によって実行され、印字データが作
成されると入出力制御処理プログラム17に対して印字
要求の指令を発する。この指令は次の印字データが無く
なるまで行われる(第4図中ステップ100)。入出力
制御処理プログラム17は、第3図に示すように機能的
に論理入出力制御部20と物理入出力制御部21とに分
類される。論理入出力制御部20は、ユーザ処理プログ
ラム16から印字データを受取ると、該印字データを印
字可能な形式に編集するとともに印字データに対応する
ページの制御を行い、その後物理入出力制御部21に対
して出力要求を発行する(ステップ110)。物理入出
力制御部21は、入力装置(ここではプリンタコントロ
ーラ13及びフォント装置15)に対するスケジューリ
ングを行った後、該入出力装置を起動して動作完了待ち
の待ち状態となる(ステップ120)。
First, the user processing program 16 executes c.
When the print data is created, a print request command is issued to the input/output control processing program 17. This command is carried out until there is no more next print data (step 100 in FIG. 4). The input/output control processing program 17 is functionally classified into a logical input/output control section 20 and a physical input/output control section 21, as shown in FIG. When the logical input/output control unit 20 receives print data from the user processing program 16, it edits the print data into a printable format, controls the page corresponding to the print data, and then sends the print data to the physical input/output control unit 21. An output request is issued to (step 110). After the physical input/output control unit 21 schedules the input devices (in this case, the printer controller 13 and the font device 15), it activates the input/output devices and enters a waiting state waiting for operation completion (step 120).

尚、該起動はCPUl0又はアダプタ12を介して行わ
れる。
Note that this activation is performed via the CPU 10 or the adapter 12.

プリンタ制御プログラム18は、入出力要求量は付は部
22.バッファ編集部23.出力データ組み立て部24
.出力要求処理部25.フォント展開部26.及びヘッ
ド制御部27に機能的に分けられる。
The printer control program 18 has an attached section 22. Buffer editing section 23. Output data assembly section 24
.. Output request processing unit 25. Font development section 26. and a head control section 27.

入出力要求量は付は部22は、前述したように、物理入
出力制御部21で起動された装置の入出力要求のパラメ
ータチェックを行い、その要求が妥当であればバッファ
編集部23に対してバッファ編集要求を発行する。また
、これによって物理入出力制御部2Iには、動作完了通
知が返される(ステップ130)。バッファ編集部23
は、論理入出力制御部20で作成された印字データを取
り出し、プリンタ用バッファ19への格納作業を行う。
As mentioned above, the input/output request amount section 22 checks the parameters of the input/output request of the device started by the physical input/output control section 21, and if the request is appropriate, sends the request to the buffer editing section 23. issue a buffer edit request. Additionally, an operation completion notification is returned to the physical input/output control unit 2I (step 130). Buffer editing department 23
takes out the print data created by the logical input/output control section 20 and stores it in the printer buffer 19.

この格納は、第5図に示す矢印A方向に沿って順次実行
され、プリンタ用バッファI9が2ペ一ジ分(1ページ
を66行とすると132行)の印字データを格納したら
出力データ組み立て部24に対して印字データの組み立
て要求を発行する(ステップ140)。出力データ組み
立て部24は、第5図に示すようにプリンタ用バッファ
から縦方向日(格納方向Aと垂直方向)に印字データを
取り出し、1行分の印字データの組立て即ち圧縮変換を
行い、これを出力バッファ25に格納する。更に、該組
立て部24は、出力要求処理部26に出力要求を発行す
る。この要求は。
This storage is executed sequentially in the direction of arrow A shown in FIG. A print data assembly request is issued to 24 (step 140). As shown in FIG. 5, the output data assembling unit 24 extracts the print data from the printer buffer in the vertical direction (perpendicular to the storage direction A), assembles the print data for one line, that is, performs compression conversion. is stored in the output buffer 25. Further, the assembling unit 24 issues an output request to the output request processing unit 26. This request is.

プリンタ用バッファに格納された2ペ一ジ分の印字デー
タについて完了するまで続行される(ステップ150)
。尚、出力バッファ25は、プリンタ制御プログラム1
8内に設けても良いし、あるいはフロッピィディスク装
置のような記憶装置を用いても良い。
The process continues until printing data for two pages stored in the printer buffer is completed (step 150).
. Incidentally, the output buffer 25 is connected to the printer control program 1.
8, or a storage device such as a floppy disk device may be used.

出力要求処理部26は、CPU10.プログラムバス及
びプリンタコントローラ13を介してプリンタ14を起
動し、フォノ!・展開部に対して印字開始指示を発行す
る(ステップ160)。フォント展開部27は、出力用
バッファ25より1文字単位に印字データを取り出し、
フォント装置15からデータバス及びアダプタ12を介
して得られた文字パターンデータに基づき該印字データ
をフォントパターンデータに展開する。そして、印字パ
ターンデータを作成した後、ヘッド制御部28に対して
印字パターンデータの転送を行う(ステップ170)。
The output request processing unit 26 includes the CPU 10. The printer 14 is activated via the program bus and the printer controller 13, and the phono! - Issue a print start instruction to the developing section (step 160). The font expansion unit 27 extracts print data character by character from the output buffer 25,
Based on the character pattern data obtained from the font device 15 via the data bus and adapter 12, the print data is developed into font pattern data. After creating the print pattern data, the print pattern data is transferred to the head control unit 28 (step 170).

ヘッド制御部28は、印字パターンデータをデータバス
を介してプリンタコントローラ13に転送し、該プリン
タコントローラ13によりプリンタ14の印字ヘッド2
9を制御する(ステップ180)。そして、印字が終了
した時に、動作完了通知をフォント展開部27へ発行し
、これによってフォント展開部27から出力要求処理部
26にも同様に動作完了通知が発行され、次の1行分の
印字に入る。
The head control unit 28 transfers the print pattern data to the printer controller 13 via the data bus, and the printer controller 13 controls the print head 2 of the printer 14.
9 (step 180). When printing is completed, an operation completion notification is issued to the font expansion unit 27, and the font expansion unit 27 also issues an operation completion notification to the output request processing unit 26, and the next line of printing is performed. to go into.

第6図(a) 、 (b)は、上記圧縮印字により得ら
れた印字例図である。本実施例では、第5図にも示すよ
うに、1ページの用紙(横方向11行132文字)に対
して横向きに印字を行うことで1行132文字の印字を
実現している。即ち、本実施例の場合、2ページの印字
データを1ページに圧縮して印字を行うため、第6図(
b)に示すように印字(Al)。
FIGS. 6(a) and 6(b) are examples of printing obtained by the compression printing described above. In this embodiment, as shown in FIG. 5, printing of 132 characters per line is achieved by printing horizontally on one page of paper (11 horizontal lines, 132 characters). That is, in the case of this embodiment, since two pages of print data are compressed into one page and printed, the process shown in FIG.
Printing (Al) as shown in b).

(A2)をそれぞれ1/2倍に圧縮変換している(第4
図のステップ150;出力データ組立て部)。
(A2) is compressed and converted to 1/2 each (4th
Step 150 in the figure; output data assembly section).

従って、圧縮印字を行っても、通常の印字と同様に1行
132文字の印字が可能である。
Therefore, even when compressed printing is performed, it is possible to print 132 characters per line as in normal printing.

このように本実施例によれば、ユーザ処理プロダラムを
変更することなく圧縮された印字を行うことが可能とな
る。
As described above, according to this embodiment, compressed printing can be performed without changing the user processing program.

尚、本実施例では2ページの印字を圧縮して同時に1ペ
ージに印字を示す例を述べたが、2ページの圧縮に限ら
ずそれ以上であってもかまわない。
In this embodiment, an example has been described in which two pages of printing are compressed and printing is simultaneously displayed on one page, but the compression is not limited to two pages, and more than two pages may be compressed.

この場合には、圧縮しようとするページ数分の印字デー
タを格納する格納手段を設ければ良い。
In this case, it is sufficient to provide a storage means for storing print data for the number of pages to be compressed.

(発明の効果) 以上詳細に説明したように、本発明によれば、圧縮すべ
き印字データを損うことなく印字された印字データの印
字を行うことができる。このため、使用目的等の需要に
応じた印字を得ることができる。例えば、プログラムを
印字したリストの保存スペースを縮小でき、かつ持ち運
びも手軽となった。このように、本発明によれば、優れ
た印字機能を有するプリンタ装置を提供することができ
る。
(Effects of the Invention) As described above in detail, according to the present invention, printed data can be printed without damaging the print data to be compressed. Therefore, it is possible to obtain printing that meets the needs of the purpose of use and the like. For example, the storage space for a printed list of programs can be reduced, and it is also easier to carry. As described above, according to the present invention, it is possible to provide a printer device having an excellent printing function.

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

第1図は本発明の一実施例によるプリンタシステムの構
成図、第2図は主記憶装置に格納される各プログラムの
構成を示す図、第3図は第2図の各プログラムの詳細な
機能ブロック図、第4図は第3図の各ブロック間の概要
処理を示す流れ図、第5図はプリンタ用バッファの容量
及びその使用方法の説明図、第6図は圧縮印字による印
字例図、第7図はシリアルプリンタにおける印字データ
の・流れ及びそのプログラム構成を示す図、第8図は従
来の圧縮印字方法を示す図である。 10・・・CPU、    11・・・主記憶装置。 12・・・アダプタ、   13・・・プリンタコント
ローラ、14・・・プリンタ、   15・・・フォン
ト装置、16・・・ユーザ処理プログラム、 17・・・入出力制御プログラム、 18・・・プリンタ制御プログラム。
FIG. 1 is a configuration diagram of a printer system according to an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of each program stored in the main storage device, and FIG. 3 is a detailed function of each program in FIG. 2. Block diagram, Figure 4 is a flowchart showing the outline processing between each block in Figure 3, Figure 5 is an explanatory diagram of the printer buffer capacity and how to use it, Figure 6 is an example of printing by compression printing, FIG. 7 is a diagram showing the flow of print data and its program structure in a serial printer, and FIG. 8 is a diagram showing a conventional compression printing method. 10...CPU, 11...Main storage device. 12... Adapter, 13... Printer controller, 14... Printer, 15... Font device, 16... User processing program, 17... Input/output control program, 18... Printer control program .

Claims (1)

【特許請求の範囲】 nページ(nは1より大きい自然数)の印字データを1
ページに圧縮して印字を行なうプリンタ装置において、 nページの印字データを格納可能な格納手段と、該格納
手段に格納されたnページの印字データを1ページに印
字するため、該印字データを所定の比率で圧縮変換する
圧縮変換手段とを具備し、該圧縮変換手段により圧縮さ
れた印字データに基づき印字を行なうことを特徴とする
プリンタ装置。
[Claims] Print data of n pages (n is a natural number greater than 1) is
In a printer device that compresses and prints data into pages, there is a storage means capable of storing n pages of print data, and a predetermined amount of the print data in order to print the n pages of print data stored in the storage means on one page. 1. A printer apparatus comprising: compression conversion means for performing compression conversion at a ratio of .
JP62054178A 1987-03-11 1987-03-11 Printer device Pending JPS63221420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62054178A JPS63221420A (en) 1987-03-11 1987-03-11 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62054178A JPS63221420A (en) 1987-03-11 1987-03-11 Printer device

Publications (1)

Publication Number Publication Date
JPS63221420A true JPS63221420A (en) 1988-09-14

Family

ID=12963288

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62054178A Pending JPS63221420A (en) 1987-03-11 1987-03-11 Printer device

Country Status (1)

Country Link
JP (1) JPS63221420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08202519A (en) * 1995-01-27 1996-08-09 Chubu Nippon Denki Software Kk Print controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08202519A (en) * 1995-01-27 1996-08-09 Chubu Nippon Denki Software Kk Print controller

Similar Documents

Publication Publication Date Title
JPH0378651B2 (en)
JPH1131054A (en) Print system
JPS60141076A (en) Control system of printer
JPS63221420A (en) Printer device
JP3478696B2 (en) Image processing apparatus and control method thereof
JP2836092B2 (en) Image supply device
JP4567911B2 (en) Distributed printing method
JP2973800B2 (en) Electronic file device
JPH0462080A (en) Printing device
JP3153347B2 (en) Control method of image recording apparatus
JPH01208141A (en) Printing control apparatus
JP3046478B2 (en) Printing apparatus and printing method
JPH01204768A (en) Printer
JPH08110871A (en) Method and device for reading memory
JP2836037B2 (en) Image data processing device
JPH0459635B2 (en)
JPH0432748B2 (en)
JPH07144444A (en) Communication controller
JP2001018464A (en) Printer, control method thereof, and recording medium for recording processing thereof
JPH03112668A (en) Printer
JPH09245098A (en) Slip preparation system and slip printing control method therefor
JPH06202822A (en) Device and method for transferring data
JPH05128221A (en) High speed processor for mixed document
JP2001328298A (en) Method of controlling page printer control device
JPH0238076A (en) Printer device