JPH028931A - Printer - Google Patents

Printer

Info

Publication number
JPH028931A
JPH028931A JP63158078A JP15807888A JPH028931A JP H028931 A JPH028931 A JP H028931A JP 63158078 A JP63158078 A JP 63158078A JP 15807888 A JP15807888 A JP 15807888A JP H028931 A JPH028931 A JP H028931A
Authority
JP
Japan
Prior art keywords
buffer
print data
page
data
printer
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
JP63158078A
Other languages
Japanese (ja)
Inventor
Kiyotaka Koike
清隆 小池
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 JP63158078A priority Critical patent/JPH028931A/en
Publication of JPH028931A publication Critical patent/JPH028931A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To improve the utilization efficiency of a receiving buffer by providing a means which controls the receiving buffer to write printing data, means which selectively reads out the printing data from the receiving buffer for printing of one page quantity, etc. CONSTITUTION:Ports P1-P5 are connected to a CPU 12, pre-buffer 15, receiving buffer 16, page buffer 17, and printer control section 18 through a changeover switch 10, an the internal bus 11 of a printer. The CPU 12 stores printing data from each port in the buffer 15 by successively changing over the switch 10 while the CPU 12 manages the storage capacity of the prepositional buffer 15. When the printing data storing quantity of the buffer 15 reaches a specific value, the CPU 12 stores the remaining printing data in the buffer 16 by adding port identifying codes. Upon receiving a page segmenting code, the CPU 12 successively reads out the printing data of the port number from the buffer 16 and writes the read-out data in the buffer 17. The control section 18 prints one page quantity of the printing data by controlling a printing section 19 based on the data written in the buffer 17. Thus the utilization efficiency of the buffer 16 can be improved and the cost can be reduced.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、複数のホストから複数のポートを通じて、そ
れぞれ別々のページに含まれる印刷データを時分割的に
受信し、各印刷データに基づいてその各ページの印刷を
行なうプリンタに関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention receives print data included in separate pages from multiple hosts through multiple ports in a time-sharing manner, The present invention relates to a printer that prints each page.

(従来の技術) 1台のプリンタを複数のホストで共有するシステムにお
いては、プリンタとして複数のポートを備えた、いわゆ
るマルチポートプリンタが採用されている。
(Prior Art) In a system in which one printer is shared by a plurality of hosts, a so-called multi-port printer having a plurality of ports is used as the printer.

第2図に、従来のマルチポートプリンタのブロック図を
示す。
FIG. 2 shows a block diagram of a conventional multiport printer.

このプリンタ1は、5台のホストH1〜H5がそれぞれ
接続される5つのポートPI〜P5を備えており、各ポ
ートを通じて受信された印刷データが一時格納される受
信バッファB、〜B8がそれぞれ設けられている。
This printer 1 includes five ports PI to P5 to which five hosts H1 to H5 are connected, respectively, and receive buffers B to B8 in which print data received through each port is temporarily stored. It is being

第3図に、従来のマルチポートプリンタの動作を示す。FIG. 3 shows the operation of a conventional multiport printer.

この図に示すように、ホストから転送されろ印刷データ
2は、一連の文字コート2aと、その最後に1ページ分
の印刷データの終了を示すページ区切り符号(FFコー
ト)2bとから構成されている。これを印刷用紙3に印
刷すれば、図のようになる。
As shown in this figure, the print data 2 transferred from the host is composed of a series of character codes 2a and, at the end, a page separator code (FF code) 2b indicating the end of one page of print data. There is. If you print this on printing paper 3, it will look like the figure.

ところで、このような印刷データは、各ホストから必ず
しも連続的に送信されてくるわけではない。ホストによ
っては、データの編集や送信準備のためにデータの送出
を一時中断するような場合がある。その間、他のポート
に接続されたホストからの印刷データを受信するように
して、システム全体のスループットを上昇させるように
することが好ましい。
Incidentally, such print data is not necessarily transmitted continuously from each host. Depending on the host, data transmission may be temporarily interrupted to edit data or prepare for transmission. During this time, it is preferable to receive print data from hosts connected to other ports, thereby increasing the throughput of the entire system.

そこで、従来のプリンタでは、受信バッファB1〜B、
をそれぞれ1ページ分の印刷データが格納できる容量の
ものとし、各ホストH1〜H5から印刷データを時分割
的に受信する一方、1ページ分の印刷データの受信が完
了した受信バッファから順に、プリンタ制御部へ印刷デ
ータを転送し、印刷を実行するようにしていた。
Therefore, in conventional printers, reception buffers B1 to B,
each has a capacity that can store print data for one page, and while receiving print data from each host H1 to H5 in a time-division manner, the printer The print data was transferred to the control unit and printing was executed.

(発明が解決しようとする課題) さて、ここで、−例として84判サイズの用紙に8CP
I(文字/インチ)、8LPI(行/インチ)の密度で
全面に漢字を印刷する場合の文字数を印刷可能な最大文
字数としたとき、そのデータ量を計算すると次のように
なる。
(Problem to be solved by the invention) Now, here, as an example, 8CP is printed on 84 size paper.
If the maximum number of characters that can be printed is the number of characters when printing Kanji characters on the entire surface at a density of I (characters per inch) and 8 LPI (lines per inch), the amount of data is calculated as follows.

文字数7行:= (257/25.4) X 8=80
.9中80(端数切捨て) 行/ベージ= (384/25.4) x 8=120
.9=6120  (端数切捨て) 1ページの最大文字数=(文字数7行)×(行/ベージ
)= 80X 120 =9,600 (字) 以上のような数の文字を、JIS X020B (旧、
HS C6226)の規格による漢字コートを用いて指
定するとすれば、2バイトの文字コートによって1文字
が指定されるので、そのデータ量は次の通りになる。
Number of characters: 7 lines:= (257/25.4) X 8=80
.. 80 out of 9 (rounded down) Row/Bage = (384/25.4) x 8 = 120
.. 9 = 6120 (round down) Maximum number of characters on one page = (7 lines of characters) x (line/page) = 80
If it is specified using a Kanji code according to the HS C6226) standard, one character is specified by a 2-byte character code, so the amount of data is as follows.

文字データ数/ページ=9,600 X2=19,20
0  バイト 更に、JIS C6220において規定されているよう
な制御符号、即ぢ、各行の終わりに付加されるCR,L
Fコートやページの終わりに付加されるFFコート等を
含めると、1ページ分の総データ量は次のようになる。
Number of character data/page = 9,600 X2 = 19,20
0 byte Furthermore, control codes as defined in JIS C6220, i.e. CR, L added at the end of each line.
Including the F coat and the FF coat added at the end of the page, the total amount of data for one page is as follows.

総 データ量/ページ・文字コート 数十 行数X (
CR+LF)+FF=19,200+80X2+1 =19,361  バイト 第2図に示したようなマルチポートプリンタの場合、受
信バッファが5つあるためその総容量は次のようになる
Total data volume/page/character code tens of lines x (
CR+LF)+FF=19,200+80X2+1=19,361 bytes In the case of a multiport printer as shown in FIG. 2, there are five receiving buffers, so the total capacity is as follows.

受イ言バッファ総容量=総 データ量/ベージ × ポ
ート数= 19.361X5 = 96,805  バイト ところが、上記のように1ページ全域に渡って文字を印
刷するような印刷データがある場合はほとんどなく、通
常は2.000文字程度、即ち4.000バイト程度で
1ページ分の印刷データが完了する。従って、この点を
考えれば、5ボ一ト分ては20、 ODDバイト程度あ
れば十分となる。このことから、第2図に示した従来の
プリンタの場合、実際には受信バッファの利用効率は約
21%程度となってしまい、高価なメモリがほとんど使
用されないという問題があった。
Total buffer capacity = total data amount/page x number of ports = 19.361 Usually, one page of print data is completed in about 2,000 characters, that is, about 4,000 bytes. Therefore, considering this point, about 20 ODD bytes will be sufficient for 5 bits. For this reason, in the case of the conventional printer shown in FIG. 2, the usage efficiency of the reception buffer is actually about 21%, posing the problem that the expensive memory is hardly used.

本発明は以上の点に着目してなされたもので、受信バッ
ファの利用効率を十分高くしたプリンタを提供すること
を目的とするものである。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a printer in which the use efficiency of the reception buffer is sufficiently increased.

(課題を解決するための手段) 本発明のプリンタは、複数のポートから、それぞれ別の
ページに含まれる印刷データを時分割的に受信し、各印
刷データに基づいて前記各ページの印刷を行なうプリン
タにおいて、受信バッファと、この受信バッファに、前
記印刷データを書き込むよう制御する書き込み制御手段
と、1ページ分の印刷のために、前記受信バッファから
同一印刷ページ内に含まれる前記印刷データを選別して
読み出す、読み出し制御手段とを有し、前記書き込み制
御手段は、前記いずれかのポートから受信した前記印刷
データに、そのポート名と、同一印刷ページ内における
当該印刷データの書き込み順を示す受信データ順位と、
その受信データ容量の表示を含む、受信ポート識別用コ
ートを付加し、かつ、同一印刷ページ内において最後に
受信した印刷データにページ区切り符号を付加して、前
記受信バッファに格納し、前記読み出し制御手段は、前
記印刷データを、前記受信データ順位に従って、前記ペ
ージ区切り符号を付加した印刷データにいたるまで、順
に読み出すことを特徴とするものである。
(Means for Solving the Problems) A printer of the present invention receives print data included in different pages from a plurality of ports in a time-sharing manner, and prints each page based on each print data. In the printer, a receiving buffer, a write control means for controlling writing of the print data to the receiving buffer, and selecting the print data included in the same print page from the receiving buffer for printing one page. and read control means for reading out the print data received from one of the ports, and the write control means for receiving the print data received from any of the ports, indicating the port name and the writing order of the print data within the same print page. data ranking and
A reception port identification code including an indication of the reception data capacity is added, and a page separator code is added to the print data received last within the same print page, and the data is stored in the reception buffer, and the readout control is performed. The means is characterized in that the print data is sequentially read out according to the order of the received data up to the print data to which the page delimiter code has been added.

(作用) 以上のプリンタは、複数のポートからそれぞれ別々のペ
ージに含まれる印刷データが入力した場合、これを1つ
の受信バッファに受信順に書き込んでいく。同一印刷ペ
ージ内に含まれる複数の印刷データも、受信バッファに
ばらばらに格納される。この場合、各印刷データには、
その識別のために受信ポート名と、同一印刷ページ内に
おける受信データ順位と、その受信データの容量とを表
示するようにする。受信バッファには、それがいっばい
になるまで複数のポートから次々に印刷データが書き込
まれる。これに対して、読み出し制御手段は、同一のペ
ージに含まれる印刷データを、その受信順位に従って順
番に読み出しプリンタ制御部へ転送する。このような構
成にすることによって、受信バッファが効率的に使用さ
れ、受信バッファ全体のメモリ容量を比較的低いものに
することができる。
(Operation) When the printer described above receives print data included in separate pages from a plurality of ports, it writes the data into one reception buffer in the order in which it is received. A plurality of pieces of print data included in the same print page are also stored separately in the reception buffer. In this case, each print data includes
For identification purposes, the receiving port name, the rank of received data within the same print page, and the capacity of the received data are displayed. Print data is written one after another from a plurality of ports until the receive buffer is full. On the other hand, the readout control means reads print data included in the same page in order and transfers them to the printer control unit in accordance with the reception order. With this configuration, the receive buffer can be used efficiently and the memory capacity of the entire receive buffer can be made relatively low.

(実施例) 以下、本発明を図の実施例を用いて詳細に説明する。(Example) Hereinafter, the present invention will be explained in detail using embodiments shown in the drawings.

第1図は、本発明のプリンタの実施例を示す動作説明図
である。
FIG. 1 is an operational explanatory diagram showing an embodiment of the printer of the present invention.

この第1図を説明する前に、先ず、本発明のプリンタの
構成を説明する。
Before explaining this FIG. 1, first, the configuration of the printer of the present invention will be explained.

第4図は、本発明のプリンタの構成を説明するための実
施例ブロック図である。
FIG. 4 is an embodiment block diagram for explaining the configuration of the printer of the present invention.

図において、この装置は、例えば5つのポートP1〜P
5を備えている。そして、これらのポートは、切り換え
スイッチ10を介してプリンタの内部バス11に接続さ
れている。この内部バス11には、CPU12と、RO
M13と、RAM14と、前置バッファ15と、受信バ
ッファ16と、ページバッファ17と、プリンタ制御部
18とが接続されている。又、プリンタ制御部18には
プリント部19が接続されている。
In the figure, this device has five ports P1 to P1, for example.
It is equipped with 5. These ports are connected to an internal bus 11 of the printer via a changeover switch 10. This internal bus 11 includes a CPU 12 and an RO
M13, RAM 14, prefix buffer 15, reception buffer 16, page buffer 17, and printer control unit 18 are connected. Further, a print section 19 is connected to the printer control section 18 .

上記CPU12は、このプリンタの全体の動作を制御す
るマイクロプロセッサ等から構成される。又、ROM1
3は、CPU12の動作プログラムを格納したリード・
オンリ・メモリ素子からなる。RAM14は、CPU1
2の動作中に使用するパラメータ等を一時格納しておく
ランダム・アクセス・メモリ等からなる。前置バッファ
15は、いずれかのポートから切り換えスイッチ10を
介して受信される印刷データを、一時的に格納しておく
ランダム・アクセス・メモリ素子等からなるメモリであ
る。
The CPU 12 is composed of a microprocessor and the like that controls the overall operation of this printer. Also, ROM1
3 is a read/reader which stores the operating program of the CPU 12.
Consists of only memory elements. RAM14 is CPU1
It consists of a random access memory, etc. that temporarily stores parameters used during the operation of step 2. The front buffer 15 is a memory consisting of a random access memory element or the like that temporarily stores print data received from any port via the changeover switch 10.

受信バッファ16は、先に第2図に示した受信バッファ
B、−B5に変わるものとして設けられた、やはりラン
ダム・アクセス・メモリ等からなる回路である。この受
信バッファ16は、本実施例の場合、アドレスカウンタ
がエンドレスにそのアドレスを設定する、いわゆるリン
グバッファから構成されるものとする。ページバッファ
17は、プリンタ制御部18に向けて転送される、1画
面分の印刷データを格納しておくメモリである。プリン
タ制御部18は、プリント部19における印刷機構等の
制御と、印刷データの転送とを制御するタイミング制御
回路から構成される。
The reception buffer 16 is provided as an alternative to the reception buffers B and -B5 shown in FIG. 2, and is also a circuit consisting of a random access memory or the like. In this embodiment, the reception buffer 16 is constituted by a so-called ring buffer in which an address counter endlessly sets the address. The page buffer 17 is a memory that stores one screen worth of print data to be transferred to the printer control unit 18. The printer control unit 18 includes a timing control circuit that controls the printing mechanism and the like in the print unit 19 and the transfer of print data.

又、切り換えスイッチ10は、ポートP +〜P、から
それぞれ時分割的に印刷データを受信するよう、その接
続先を切り換えるスイッチング回路から構成されている
Further, the changeover switch 10 is constituted by a switching circuit that switches the connection destination so as to receive print data from ports P+ to P in a time-division manner.

以上の装置は、CPU 12が前置バッファ15のメモ
リ容量を管理しながら、切り換えスイッチ10を順番に
切り換え制御し、いずれかのポートからの印刷データを
前置バッファ15へ格納する。そして、前置バッファ1
5への印刷データの格納量が規定量に達すると、これに
後から説明するポート識別用コートを付して、受信バッ
ファ16の所定のエリアへ格納する。そして、ページ区
切り符号(FFコート)を受信すると、そのポートナン
バーの印刷データを受信バッファ16から順次読み出し
、ページバッファ17へ書き込む。その後、その印刷デ
ータに基づいてプリンタ制御部18がプリント部19を
制御し、1ページ分の印刷を実行する。
In the above apparatus, the CPU 12 controls the changeover switches 10 in order while managing the memory capacity of the prefix buffer 15, and stores print data from any port in the prefix buffer 15. And prefix buffer 1
When the amount of print data stored in the receiving buffer 16 reaches a predetermined amount, it is stored in a predetermined area of the receiving buffer 16 with a port identification coat to be described later. When the page delimiter code (FF code) is received, the print data of that port number is sequentially read from the reception buffer 16 and written to the page buffer 17. Thereafter, the printer control unit 18 controls the print unit 19 based on the print data to print one page.

第1図に戻り、本発明のプリンタの具体的な動作説明を
行なう。
Returning to FIG. 1, a detailed explanation of the operation of the printer of the present invention will be given.

第1図中、切り換えスイッチ10及び前置バッファ15
と受信バッファ16は、第4図において説明したものと
全く同一のものである。又、書き込み制御手段21は、
第4図において説明したCPU l 2やROM13、
RAM14等をまとめて1つのブロックで表わしたもの
である。又、読み出し制御手段22は、ページバッファ
17やプリンタ制御部18等をまとめて表わしたもので
ある。
In FIG. 1, a changeover switch 10 and a pre-buffer 15
and the receiving buffer 16 are exactly the same as those described in FIG. Further, the write control means 21
The CPU I2 and ROM13 explained in FIG.
The RAM 14 and the like are collectively represented as one block. Further, the readout control means 22 collectively represents the page buffer 17, printer control section 18, and the like.

図において、切り換えスイッチ10は、ポートP、〜P
、に接続されたホストH8〜H5から送出される印刷デ
ータを時分割的に受は入れる。
In the figure, the changeover switch 10 has ports P, ~P
, time-divisionally receives print data sent from hosts H8 to H5 connected to .

第5図に、このようなプリンタの受信動作の一例を示す
タイムチャートを図示した。
FIG. 5 is a time chart showing an example of the receiving operation of such a printer.

同図(a)〜(e)には、ホストH1〜H6から受信さ
れる印刷データを、それぞれ時間軸方向に帯で示した。
In (a) to (e) of the same figure, print data received from the hosts H1 to H6 are shown as bands in the time axis direction, respectively.

例えば、ホストH+からは時刻t1からt2及び時刻t
4からt5まで、2回に分けて1ページ分の印刷データ
を受信し、その最後にはFFコートが付加されている。
For example, from host H+, from time t1 to t2 and time t
From t4 to t5, one page worth of print data is received twice, and an FF coat is added to the end.

その後、ホストH1からは時刻上〇からtoまでの間に
他の印刷データの一部を受信している。一方、ホストH
2からは、時刻t、からt6及び時刻t12以降に所定
の印刷データを受信している。又、ホストH3からは、
時刻t2からt3及び時刻tyからta、toからtl
oの間、3回に分けて1ページ分の印刷データを受信し
ている。その印刷データの最後には、やけりFFコート
が付加されている。ホストH4からは時刻t3からt4
及び時刻t11からt12、ホストH6からは時刻t6
からt7及び時刻tl。
Thereafter, part of other print data is received from the host H1 from time 0 to time to. On the other hand, host H
2, predetermined print data is received from time t to t6 and after time t12. Also, from host H3,
From time t2 to t3, from time ty to ta, from to to tl
During the period o, print data for one page is received in three parts. An FF coat is added to the end of the print data. From time t3 to t4 from host H4
and from time t11 to t12, from host H6 to time t6
to t7 and time tl.

からt目の間に、それぞれ所定のページの印刷データの
一部が受信されている。
Part of the print data of each predetermined page is received between the time and the tth time.

第1図に示した切り換えスイッチlOは、第5図に示し
たように、時刻j+、jz、’ea・・・t1□という
ように、その都度受信ポートを切り換えるよう動作する
The changeover switch IO shown in FIG. 1 operates to switch the receiving port each time, such as at times j+, jz, 'ea...t1□, as shown in FIG.

又、第1図に示した前置バッファ15は、1つのホスト
から所定量の印刷データを受信する間これを一時格納し
ておくためのものである。このとき、書き込み制御手段
21は、その印刷データ30の先頭にポート識別用コー
ト31を付加する。実際には、前置バッファ15にポー
ト識別用コート31を格納するエリアを予め設けておき
、切り換えスイッチ10によるポートの切り換えと同時
にそこにコートが書き込まれる。
Further, the front buffer 15 shown in FIG. 1 is for temporarily storing a predetermined amount of print data while receiving it from one host. At this time, the write control means 21 adds a port identification coat 31 to the beginning of the print data 30. Actually, an area for storing the port identification code 31 is provided in advance in the pre-buffer 15, and the code is written there at the same time as the changeover switch 10 switches the port.

第6図に、本発明による上記書き込み制御手段が作成使
用する制御データの説明図を示す。その同図(a)には
、ポート識別用コート31の具体的な構成を示した。
FIG. 6 shows an explanatory diagram of control data created and used by the write control means according to the present invention. The specific structure of the port identification coat 31 is shown in FIG.

このポート識別用コート31は、ポート名31aと、受
信データ順位31bと、受信データ容量31cとから構
成されている。
This port identification coat 31 is composed of a port name 31a, a received data rank 31b, and a received data capacity 31c.

ポート名31aは、その印刷データを受信したポートの
番号を数値で表わしたものである。受信データ順位31
bは、同一印刷ページ内に含まれる印刷データの受信順
位を表わすもので、例えば第5図(a)に示したホスト
H1からの受信された印刷データについてみれば、時刻
tIからt2までの受信データ順位が1”1時刻t4か
らt、までの受信データ順位が” 2 ”となる。又、
受信データ容量31cは、−度に受信バッファに書き込
まれる印刷データのデータ長を示しており、例えば第5
図(a)のホストH3から受信された時刻1+からt2
までの印刷データが、−挙に受信バッファに書き込まれ
るものとすれば、その全体のデータ量を示す。
The port name 31a is a numerical value representing the number of the port that received the print data. Received data rank 31
b represents the reception order of print data included in the same print page. For example, if we look at the print data received from the host H1 shown in FIG. 5(a), the reception order from time tI to t2 is The data order is 1", and the received data order from time t4 to time t is "2". Also,
The reception data capacity 31c indicates the data length of the print data written to the reception buffer every time, for example, the fifth
From time 1+ received from host H3 in Figure (a) to t2
If the print data up to - is written into the reception buffer all at once, the total amount of data is shown.

又、この他に、必要な制御データとして、第4図に示し
たRAM14の中に、第6図(b)に示したようなデー
タを格納しておく。
In addition to this, data as shown in FIG. 6(b) is stored in the RAM 14 shown in FIG. 4 as necessary control data.

このデータは、受信バッファ16に格納された各印刷デ
ータが、例えばポートP1については、既に4回格納さ
れたというような制御データを保存しておく。実際に、
いずれかのポートから印刷データを受信した場合、この
ポート受信データ格納数を読み出し、それに“1”を加
算して新たに書き込む印刷データの第6図(a)に示し
た受信データ順位31bを得る。そして、1回受信バッ
ファに印刷データを書き込む毎に、ポート受信データ格
納数が1ずつカウントアツプされる。
This data stores control data such that each print data stored in the reception buffer 16 has already been stored four times for port P1, for example. actually,
When print data is received from any port, this port reads the number of stored received data and adds "1" to it to obtain the received data order 31b shown in FIG. 6(a) of newly written print data. . Each time print data is written into the reception buffer, the number of stored port reception data is counted up by one.

次に、実際に受信バッファ16に書き込まれたデータの
説明をする。
Next, the data actually written to the reception buffer 16 will be explained.

第1図に示したように、受信バッファ16はリングバッ
ファとされており、それぞれ受信された印刷データ30
にポート識別用コート31が付加されて書き込まれてい
る。
As shown in FIG. 1, the reception buffer 16 is a ring buffer, and each received print data 30
A port identification coat 31 is added to and written on.

ここで、図中、識別コート用エリア31′及び空き30
’ と示された領域は、未だ印刷データが書き込まれて
いない領域か、あるいは既にポート識別用コートと印刷
データが書き込まれ、その後印刷を終了し保存が不要と
なった領域である。実際には、この領域の広さは、その
前に受信された印刷データの受信データ容量によって定
まる。
Here, in the figure, an area 31' for an identification coat and a vacant space 30
The area indicated by ' is an area in which no print data has been written yet, or an area in which a port identification code and print data have already been written, and after which printing has been completed and storage is no longer necessary. In reality, the size of this area is determined by the received data volume of the previously received print data.

従って、予め次に印刷データを書き込むべき空き領域3
0’ を特定し、その領域の広さAを前置バッファ15
への書き込み可能な最大容量として制限する。これの動
作は、書き込み制御手段21が制御する。書き込み制御
手段21は、いずれかのホストから印刷データを受信し
、前置バッファ15において、その印刷データが所定の
制限量に達した場合に印刷データの受信を停止し、前置
バッファ15に書き込まれたポート識別用コート31と
印刷データ30とを受信バッファ16にそのまま転送す
るようにする。そして、更に次に印刷データの格納でき
る空き領域30’を探し、前置バッファ15の容量を今
度は例えばBに制御して、再びポートから印刷データの
受信を開始する。
Therefore, the free area 3 in which the next print data should be written in advance
0' and the size A of that area as the pre-buffer 15.
The maximum capacity that can be written to is limited. This operation is controlled by the write control means 21. The write control means 21 receives print data from one of the hosts, stops receiving the print data when the print data reaches a predetermined limit amount in the prefix buffer 15, and writes the print data to the prefix buffer 15. The received port identification coat 31 and print data 30 are transferred to the reception buffer 16 as they are. Then, it searches for a free area 30' that can store the next print data, controls the capacity of the prefix buffer 15 to, for example, B, and starts receiving print data from the port again.

次に、本発明のプリンタの印刷のための受信バッファか
らの読み出し動作を説明する。
Next, the reading operation from the receiving buffer for printing by the printer of the present invention will be described.

第7図に、読み出し制御手段の動作説明図を示した。FIG. 7 shows an explanatory diagram of the operation of the read control means.

先に説明したような受信動作を実行中、いずれかのホス
トから受信した印刷データにFFコートが付加されてい
た場合、第1図の書き込み制御手段21はそれを認識し
、読み出し制御手段22に対し、そのポートから受信し
た同一印刷ページ内に含まれる全ての印刷データの読み
出しを指示する。
During the reception operation as described above, if an FF coat is added to the print data received from any host, the write control means 21 in FIG. On the other hand, it instructs to read all the print data included in the same print page received from that port.

ここで、先に説明したように、本実施例では、受信バッ
ファ16をリングバッファとしているため、特定のポー
ト(図の例ではポート名がポートNo、1)から受信し
た印刷データの格納位置は、そのアドレス順からみると
第1図に示すように順不同となっている。従って、先ず
、読み出し制御手段22は、受信データ順位が1番のポ
ート識別用コート31を見つけ、その受信データ容量C
を認識しながらポート識別用コートに続く印刷データを
順次読み出し、ページバッファ17に格納する。次に、
受信データ順位2番のポート識別用コート31を探し、
再びその印刷データをページバッファに格納する。
Here, as explained earlier, in this embodiment, the reception buffer 16 is a ring buffer, so the storage location of the print data received from a specific port (in the example shown, the port name is Port No. 1) is , the address order is random as shown in FIG. Therefore, first, the read control means 22 finds the port identification coat 31 with the first received data order, and finds the received data capacity C.
While recognizing this, the print data following the port identification code is sequentially read out and stored in the page buffer 17. next,
Search for the port identification coat 31 with the second rank of received data,
The print data is stored in the page buffer again.

以下、同様にして、同一ページ内に含まれる印刷データ
をその容fic、D、Eに基づいて、順に全てページバ
ッファに格納し、最後にFFコートを付加した印刷デー
タが書き込まれると印刷を実行する。
Thereafter, in the same way, all print data included in the same page are stored in the page buffer in order based on their contents fic, D, and E, and when the print data with the FF coat added is finally written, printing is executed. do.

以上の装置において、その受信バッファに必要な具体的
なメモリ容量は次のようになる。
In the above device, the specific memory capacity required for the reception buffer is as follows.

先ず、メモリバッファの容量は1ページ分の総データよ
り多いことが必要とされる。即ち、例えば最大9.60
0文字/ページとした場合、このときのメモリ容量は先
に説明したように19,361バイトである。従って、
この値を越えていればよい。
First, the capacity of the memory buffer needs to be larger than the total data for one page. That is, for example, a maximum of 9.60
In the case of 0 characters/page, the memory capacity at this time is 19,361 bytes as described above. Therefore,
It is sufficient if it exceeds this value.

方、通常の運用時におけるシステムのスルーブツトを下
げないために、通常の運用時の各ポートからの印刷デー
タの合計よりも多いことが要求される。即ち、既に説明
したように、通常受信される印刷データを4.000バ
イト/ページとすれば、5ボ一ト分として20.000
バイトとなる。従って、この値を越える容量があればよ
いことになる。
On the other hand, in order not to reduce the throughput of the system during normal operation, it is required that the amount of print data be greater than the total amount of print data from each port during normal operation. That is, as explained above, if the normally received print data is 4,000 bytes/page, 20,000 bytes/page is equivalent to 5 bots.
Becomes a part-time worker. Therefore, it is sufficient to have a capacity exceeding this value.

以上の条件から、受信バッファは最低20.000バイ
ト程度の容量があればよいことが分る。
From the above conditions, it can be seen that the reception buffer only needs to have a capacity of at least 20,000 bytes.

一方、前置バッファ15のメモリ容量については、基本
的には大きな制約はない。しかしながら、通常の使用状
態を考えると、1ページ分の印刷データの約1/2程度
、即ち2.000バイト程度あることが好ましい。
On the other hand, there are basically no major restrictions on the memory capacity of the prefix buffer 15. However, considering normal usage conditions, it is preferable that the print data be about 1/2 of one page's worth of print data, that is, about 2,000 bytes.

従って、前置バッファ15と受信バッファ16との合計
、即ち受信バッファの総容量は次の通りとなる。
Therefore, the sum of the prefix buffer 15 and the reception buffer 16, ie, the total capacity of the reception buffer, is as follows.

受信バッファの総容量 =前置バッファ容量+受イ言バッファ容量= 2,00
0+20,000 =22000  バイト これを従来の方式と比べてみる。
Total receive buffer capacity = Pre-buffer capacity + Receive buffer capacity = 2,00
0+20,000 = 22000 bytes Compare this with the conventional method.

従来の場合、その受信バッファの総容量は96、805
バイトであった。従って、本発明の受信バッファの総容
量との差をとれば、これは74.805バイトとなる。
In the conventional case, the total capacity of the receiving buffer is 96,805
It was a part-time job. Therefore, if we take the difference from the total capacity of the receive buffer of the present invention, this becomes 74.805 bytes.

即ち、低減率で約77%となり、通常運用時の受信バッ
ファの利用効率は約91%となる。尚、厳密にいえば、
受信バッファ総容量は、このマルチポートページプリン
タが使用されるシステム環境によってその値が変わって
くる。
That is, the reduction rate is approximately 77%, and the reception buffer usage efficiency during normal operation is approximately 91%. However, strictly speaking,
The total receiving buffer capacity varies depending on the system environment in which this multiport page printer is used.

従って、条件を限定すれば利用効率を更に高めることも
可能である。
Therefore, by limiting the conditions, it is possible to further improve the utilization efficiency.

又、運用中に、もし全てのポートからの受信データの合
計が、上記受信バッファ容量を越えてしまうような場合
には、現在受信中の任意のポート、例えば、書き込み済
みのデータ量が最大のポートのデータをその時点でペー
ジバッファに転送してしまう。こうして、受信バッファ
内の空きエリアを増加させ、更に、その後同ポートより
受信するデータは、FFコートが受信されるまで直接前
置バッファからページバッファへ転送する。
Also, during operation, if the total amount of received data from all ports exceeds the above receive buffer capacity, any port currently receiving data, for example, if the amount of written data is the largest The port data is transferred to the page buffer at that point. In this way, the free area in the receive buffer is increased, and data subsequently received from the same port is transferred directly from the pre-buffer to the page buffer until the FF code is received.

このような機能を付加すれば、受信バッファ容量を低く
押えたとしても、容量オーバーとなって弊害をもたらす
恐れが極めて少なくなる。
By adding such a function, even if the reception buffer capacity is kept low, there is a very low possibility that the capacity will be exceeded and cause any harm.

本発明は以上の実施例に限定されない。The present invention is not limited to the above embodiments.

受信バッファはリングバッファとする例を示したが、実
際には受信バッファ内の空き領域を発見し、そこへ順次
一連のデータを格納できる構成であれば、どのようなメ
モリ構成であっても差し支えない。又、前置バッファを
設けた例を用いて説明したが、書き込み制御手段が受信
バッファの空き領域を見つけて、ホストから受信する印
刷データをポート識別用コートと共に直接書き込むよう
にすれば、必ずしも前置バッファを設ける必要はない。
Although we have shown an example in which the receive buffer is a ring buffer, in reality any memory configuration can be used as long as it is possible to find an empty area within the receive buffer and store a series of data there in sequence. do not have. Furthermore, although the explanation has been given using an example in which a prefix buffer is provided, if the write control means finds an empty area in the receive buffer and directly writes the print data received from the host together with the port identification code, the prefix buffer is not necessarily provided. There is no need to provide a storage buffer.

但し、空き領域の広さに合わせて印刷データを受信し、
その後簡単な転送動作で受信バッファへの印刷データの
書き込みを行なうことができる点で、上記実施例はより
実際的な構成となっている。
However, the print data will be received according to the size of the free space,
The above embodiment has a more practical configuration in that the print data can then be written into the reception buffer with a simple transfer operation.

(発明の効果) 以上説明したように、本発明のプリンタは、複数のポー
トから受信されるそれぞれ別々のページに印刷される印
刷データに対し、受信ポート名と、印刷データの受信順
位と、受信データ容量とを含むポート識別用コートを付
して、受信バッファに格納するようにしたので、1つの
受信バッファに印刷データを混在させ、それを随時選別
して読み出し、その印刷を行なうことができる。そして
、このような構成にすることによって、受信バッファの
容量を十分小さくし、そのメモリの利用効率を極めて高
くすることができ、コストダウンを図ることもできる。
(Effects of the Invention) As explained above, the printer of the present invention is capable of identifying the reception port name, the reception order of the print data, and the reception Since the data is stored in the reception buffer with a port identification code that includes the data capacity, it is possible to mix print data in one reception buffer, select and read it at any time, and print it. . By adopting such a configuration, the capacity of the reception buffer can be made sufficiently small, and the memory usage efficiency can be extremely high, and costs can also be reduced.

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

第1図は本発明のプリンタの実施例を示す動作説明図、
第2図は従来のマルチポートプリンタの一例を示すブロ
ック図、第3図は従来一般のマルチポートプリンタの印
刷データ受信動作説明図、第4図は本発明のプリンタの
実施例を示すブロック図、第5図はそのプリンタの受信
動作のタイムチャート、第6図は本発明の装置の制御デ
ータの説明図、第7図は本発明の装置の読み出し制御手
段の動作説明図である。 10・・・切り換えスイッチ、IS・・・前置バッファ
、16・・・受信バッファ、21・・・書き込み制御手
段、22・・・読み出し制御手段、30・・・印刷デー
タ、31・・・ポート識別用コート、 H8〜H5・・・ホスト、P1〜P5・・・ポート。
FIG. 1 is an operational explanatory diagram showing an embodiment of the printer of the present invention;
FIG. 2 is a block diagram showing an example of a conventional multiport printer, FIG. 3 is an explanatory diagram of the print data reception operation of a conventional general multiport printer, and FIG. 4 is a block diagram showing an embodiment of the printer of the present invention. FIG. 5 is a time chart of the receiving operation of the printer, FIG. 6 is an explanatory diagram of control data of the apparatus of the present invention, and FIG. 7 is an explanatory diagram of the operation of the readout control means of the apparatus of the present invention. DESCRIPTION OF SYMBOLS 10... Changeover switch, IS... Prefix buffer, 16... Reception buffer, 21... Write control means, 22... Read control means, 30... Print data, 31... Port Identification coat, H8-H5...Host, P1-P5...Port.

Claims (1)

【特許請求の範囲】 1、複数のポートから、それぞれ別のページに含まれる
印刷データを時分割的に受信し、各印刷データに基づい
て前記各ページの印刷を行なうプリンタにおいて、 受信バッファと、 この受信バッファに、前記印刷データを書き込むよう制
御する書き込み制御手段と、 1ページ分の印刷のために、前記受信バッファから同一
印刷ページ内に含まれる前記印刷データを選別して読み
出す、読み出し制御手段とを有し、 前記書き込み制御手段は、 前記いずれかのポートから受信した前記印刷データに、
そのポート名と、同一印刷ページ内における当該印刷デ
ータの書き込み順を示す受信データ順位と、その受信デ
ータ容量の表示を含む、受信ポート識別用コートを付加
し、かつ、同一印刷ページ内において最後に受信した印
刷データにページ区切り符号を付加して、前記受信バッ
ファに格納し、 前記読み出し制御手段は、 前記印刷データを、前記受信データ順位に従って、前記
ページ区切り符号を付加した印刷データにいたるまで、
順に読み出すことを特徴とするプリンタ。 2、ポートから受信し、受信バッファへ格納する前の印
刷データを、一時格納する前置バッファを設け、 この前置バッファは、 前記書き込み制御手段が、前記受信バッファの中で、前
記印刷データの全部又は一部を格納できる空きエリアを
選定すると、前記空きエリアの容量だけ、前記前置バッ
ファに対する前記印刷データの格納を許容し、格納を終
えた前記印刷データが前記受信バッファに転送されるこ
とを特徴とする請求項1記載のプリンタ。
[Scope of Claims] 1. A printer that receives print data included in different pages from a plurality of ports in a time-sharing manner and prints each page based on each print data, comprising: a reception buffer; a write control unit that controls writing of the print data into the reception buffer; and a read control unit that selects and reads out the print data included in the same print page from the reception buffer for printing one page. and the write control means writes the print data received from any of the ports,
Add a reception port identification code that includes the port name, the reception data order indicating the writing order of the print data within the same print page, and the reception data capacity, and A page separator code is added to the received print data and stored in the reception buffer, and the read control means reads the print data according to the order of the received data up to the print data to which the page separator code is added.
A printer characterized by sequential reading. 2. A pre-buffer is provided to temporarily store print data received from a port and before being stored in the receive buffer, and the write control means writes the print data in the receive buffer into the pre-buffer. When a free area in which all or part of the print data can be stored is selected, the print data is allowed to be stored in the prefix buffer by the capacity of the free area, and the print data that has been stored is transferred to the reception buffer. The printer according to claim 1, characterized in that:
JP63158078A 1988-06-28 1988-06-28 Printer Pending JPH028931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63158078A JPH028931A (en) 1988-06-28 1988-06-28 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63158078A JPH028931A (en) 1988-06-28 1988-06-28 Printer

Publications (1)

Publication Number Publication Date
JPH028931A true JPH028931A (en) 1990-01-12

Family

ID=15663817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63158078A Pending JPH028931A (en) 1988-06-28 1988-06-28 Printer

Country Status (1)

Country Link
JP (1) JPH028931A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5298446A (en) * 1990-02-20 1994-03-29 Sharp Kabushiki Kaisha Process for producing semiconductor device
JP2010237786A (en) * 2009-03-30 2010-10-21 Nec Corp System, method and program for transmitting/receiving telegraphic message

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5298446A (en) * 1990-02-20 1994-03-29 Sharp Kabushiki Kaisha Process for producing semiconductor device
JP2010237786A (en) * 2009-03-30 2010-10-21 Nec Corp System, method and program for transmitting/receiving telegraphic message

Similar Documents

Publication Publication Date Title
JP2836321B2 (en) Data processing device
US4122520A (en) Microcomputer controller and direct memory access apparatus therefor
US4593407A (en) Pattern processing system
US4354232A (en) Cache memory command buffer circuit
EP0378423B1 (en) DMA controller
US4943936A (en) Print control apparatus controlling utilization state of plural format blocks
US4434502A (en) Memory system handling a plurality of bits as a unit to be processed
US5870581A (en) Method and apparatus for performing concurrent write operations to a single-write-input register file and an accumulator register
JPH1191173A (en) Method and apparatus for establishing raster line of bit map to be printed by using piecewise linear direct memory access-address designating mode for retrieving bit map data line section
US4359286A (en) Character set expansion
US5493652A (en) Management system for a buffer memory having buffers of uniform size in which the buffers are divided into a portion of contiguous unused buffers and a portion of contiguous buffers in which at least some are used
US4646259A (en) Strip map memory controller
EP0121126B1 (en) Character generator
JP2000158724A (en) Image-processing apparatus, image processing method and recording medium
US4480314A (en) Method for optimizing printer response time for a key to print operation
CA2026741C (en) Main storage memory cards having single bit set and reset functions
US5563987A (en) Pagemap memory representation in RISC processor printers
EP0309676B1 (en) Workstation controller with full screen write mode and partial screen write mode
US4585360A (en) Electronic equipment having a character sequence memory and a character display
EP0081358B1 (en) Data processing system providing improved data transfer between modules
JPH028931A (en) Printer
GB2143066A (en) Memory control unit
EP0261947A1 (en) Computer system
CA2216132A1 (en) Arrangement and method relating to handling of digital signals and a processing arrangement comprising such
JP3453761B2 (en) Address translation method