JPH0524839B2 - - Google Patents

Info

Publication number
JPH0524839B2
JPH0524839B2 JP62166162A JP16616287A JPH0524839B2 JP H0524839 B2 JPH0524839 B2 JP H0524839B2 JP 62166162 A JP62166162 A JP 62166162A JP 16616287 A JP16616287 A JP 16616287A JP H0524839 B2 JPH0524839 B2 JP H0524839B2
Authority
JP
Japan
Prior art keywords
line
data
page
print data
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP62166162A
Other languages
Japanese (ja)
Other versions
JPS649751A (en
Inventor
Hiroyuki Komya
Yoshihisa Yokochi
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP62166162A priority Critical patent/JPS649751A/en
Publication of JPS649751A publication Critical patent/JPS649751A/en
Publication of JPH0524839B2 publication Critical patent/JPH0524839B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers

Description

【発明の詳細な説明】 (イ) 産業上の利用分野 本発明は、複数ページの印字データを用紙上で
水平方向に並べて印字する複連印字処理装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to a multiple print processing device that prints a plurality of pages of print data arranged horizontally on a sheet of paper.

(ロ) 従来の技術 特公昭60−41367号公報及び特開昭59−11439号
公報に開示されているように、2ページの印字デ
ータを用紙上で水平方向に並べて印字する、所
謂、袋とじ印刷と呼ばれる2連印字を可能とした
処理装置は、従来より提案されていた。
(b) Prior art As disclosed in Japanese Patent Publication No. 60-41367 and Japanese Patent Application Laid-Open No. 59-11439, so-called bag binding is a technique in which two pages of print data are printed horizontally on paper. Processing devices capable of double printing, called printing, have been proposed in the past.

そして、このような複連印字を行う装置では、
途中の処理は種々の方式があるが、いずれの場合
も最終的には、複数ページの印字データを記憶す
る記憶部から、同一行の各ページの印字データを
連続して読出し印字部へ出力するようにしてい
た。
And, in a device that performs such multiple printing,
There are various methods for intermediate processing, but in all cases, the print data of each page of the same line is successively read out from the storage unit that stores print data of multiple pages and output to the print unit. That's what I was doing.

(ハ) 発明が解決しようとする問題点 一般に、印字データの中には、倍角モードや縦
書モード等の機能モードの開始及び解除を指定す
るための機能コードがあり、例えば、第1ページ
の第1行目5文字目〜第2行目3文字目を倍角モ
ードに指定するためには、第1行目5文字目のデ
ータの直前に倍角開始コードESC・W・1が、そ
して、第2行目3文字目のデータの直後に倍角解
除コードESC・W・0が挿入される。
(C) Problems to be Solved by the Invention In general, print data includes function codes for specifying the start and release of function modes such as double-width mode and vertical writing mode. To specify the double-width mode from the 5th character of the 1st line to the 3rd character of the 2nd line, the double-width start code ESC・W・1 must be entered immediately before the data of the 5th character of the 1st line, and The double-width cancellation code ESC・W・0 is inserted immediately after the data of the third character on the second line.

ところが、複連印字を行おうとする複数ページ
の印字データのうち、あるページの印字データ中
にこのような機能コードが含まれていると、同一
行の印字データについては他のページにまでモー
ド指定が為されてしまい、正しいモードでの複連
印字ができないという問題がある。例えば、上記
例の場合、第1ページ〜第3ページを順に3連印
字するとすれば、第1ページの第1行目5文字か
ら倍角モードの指定が為されるので、第2ページ
及び第3ページの第1行も倍角モードの指定が為
されてしまう。
However, if such a function code is included in the print data of one page among multiple pages of print data for which multiple printing is to be performed, the mode specification will be applied to the other pages for the same line of print data. This causes the problem that multiple printing cannot be performed in the correct mode. For example, in the case of the above example, if the 1st to 3rd pages are printed three times in succession, the double-width mode is specified from the 5 characters in the 1st line of the 1st page, so the 2nd and 3rd pages are Double-width mode is also specified for the first line of the page.

(ニ) 問題点を解決するための手段 本発明は、複数ページの印字データを記憶する
バツフアメモリを備え、該バツフアメモリから同
一行の各ページの印字データを連続して印字部へ
出力することにより、前記複数ページの印字デー
タを用紙上で水平方向に並べて印字する複連印字
処理装置であつて、前記バツフアメモリにおける
各ページの各行の印字データについて機能モード
の開始及び解除を指定する機能コードの検索を行
うことにより、各行の行頭及び行末における機能
モードを検出し、該検出した行頭及び行末におけ
る各々の機能モードを表す第1及び第2のモード
情報を各行の印字データに関連させて記憶する入
力処理部と、前記バツフアメモリからページ毎の
各行の印字データを出力する際、出力行の前記第
1モード情報と直前に出力した行の前記第2モー
ド情報とを比較し、等しくないとき該第1モード
情報にて表される機能モードを設定するための機
能コードを先頭に付加して出力行の印字データを
出力する出力処理部とを設けて、上記問題点を解
決するものである。
(d) Means for solving the problem The present invention includes a buffer memory that stores print data of a plurality of pages, and continuously outputs the print data of each page of the same line from the buffer memory to the printing unit. The multiple print processing device prints multiple pages of print data arranged horizontally on paper, and searches for a function code that specifies the start and release of a function mode for each line of print data of each page in the buffer memory. Input processing that detects the functional mode at the beginning and end of each line by performing this step, and stores first and second mode information representing the respective functional modes at the detected beginning and end of the line in association with the print data of each line. When outputting print data for each line of each page from the buffer memory, the first mode information of the output line is compared with the second mode information of the line output immediately before, and if they are not equal, the first mode is output. The above-mentioned problem is solved by providing an output processing section that adds a function code to the head of the print data for setting the function mode represented by the information and outputs the print data of the output line.

(ホ) 作 用 本発明では、印字データの出力において、同一
行の各ページの印字データが連続して出力される
ので、同一行における出力ページの行頭の機能モ
ードとその直前のページの行末の機能モードとが
比較されることとなり、この比較により両機能モ
ードが等しくないとき、出力行の第1モード情
報、即ち、出力ページの行頭の機能モードを設定
するための機能コードが出力印字データに付加さ
れるので、同一行の直前のページである機能モー
ドが指定されても、出力ページの行頭の機能モー
ドが指定されたモードでないときは、その機能モ
ードの解除を指定する機能コードが先頭に付加さ
れ、あるいは、出力ページの行頭の機能モードが
直前のページで指定されていない機能モードであ
るときは、その機能モードの開始を指定する機能
コードが先頭に付加されることとなり、このた
め、同一行における隣接するページ間で機能モー
ドが影響を与えることが防止される。
(e) Effect In the present invention, when outputting print data, the print data of each page on the same line is outputted consecutively, so the function mode of the beginning of the line of the output page in the same line and the line end of the immediately preceding page are different. If the two function modes are not equal as a result of this comparison, the first mode information of the output line, that is, the function code for setting the function mode at the beginning of the line of the output page, is added to the output print data. Even if the function mode of the previous page on the same line is specified, if the function mode at the beginning of the line of the output page is not the specified mode, the function code that specifies the cancellation of that function mode will be added at the beginning. or when the function mode at the beginning of the line of the output page is a function mode that is not specified on the immediately preceding page, a function code specifying the start of that function mode will be added at the beginning, and therefore, Functional modes are prevented from influencing between adjacent pages in the same row.

(ヘ) 実施例 第1図は、本発明の複連印字処理装置1を、ホ
スト装置2とプリンタ装置3との間に接続した実
施例を示すブロツク図であり、ホスト装置2は、
複数ページに亙るデータをデータ記憶部4に格納
しており、このデータに基づく印字データの作成
及び送出は、複連印字の場合も通常印字の場合と
全く同様に行われる。又、プリンタ装置3は一般
的な装置である。
(F) Embodiment FIG. 1 is a block diagram showing an embodiment in which a multiple print processing device 1 of the present invention is connected between a host device 2 and a printer device 3.
Data covering a plurality of pages is stored in the data storage section 4, and the creation and sending of print data based on this data is performed in exactly the same way in the case of multiple printing as in the case of normal printing. Further, the printer device 3 is a general device.

複連印字処理装置1は、ホスト装置2から送出
されるページ毎の行単位の印字データを格納する
2つのバツフアメモリ5及び6と、複連数αを記
憶するためのメモリ7と、複連数に相当する各ペ
ージの水平オフセツトを記憶する水平位置管理テ
ーブルHCT8と、バツフアメモリ5及び6内の
各々の印字データを行単位に管理するための垂直
位置管理テーブルLCT9及び10と、バツフア
メモリ5及び6へのデータ入力時の処理を実行す
る入力処理部11と、バツフアメモリ5及び6か
らのデータ出力時の処理を実行する出力処理部1
2と、入力処理と出力処理の管理を行う入出力管
理部13とを備え、テーブルHCT8及びLCT
9,10は、各々、ポインタHCTP14及び
LCTP15,16によりその位置が指し示され
る。そして、このポインタLCTP15,16の値
は、複連印字における各行位置に対応する。
The multiple print processing device 1 includes two buffer memories 5 and 6 for storing line-by-line print data for each page sent from the host device 2, a memory 7 for storing the number α of multiple prints, and a memory 7 for storing the number α of multiple prints. horizontal position management table HCT8 that stores the horizontal offset of each page corresponding to , vertical position management tables LCT9 and LCT10 for managing each print data in buffer memories 5 and 6 line by line, and buffer memories 5 and 6. an input processing section 11 that executes processing when inputting data; and an output processing section 1 that executes processing when outputting data from the buffer memories 5 and 6.
2, and an input/output management unit 13 that manages input processing and output processing, and includes tables HCT8 and LCT.
9 and 10 are pointers HCTP14 and 10, respectively.
Its position is indicated by LCTPs 15 and 16. The values of the pointers LCTP15 and LCTP16 correspond to each line position in multiple printing.

更に、複連印字処理装置1は、機能コードとモ
ード情報との対応を示す機能コードテーブル
FCT17と、バツフアメモリ5及び6への印字
データ入力時の機能モードを示すモード情報を一
時記憶する入力モードレジスタINMREG18と、
バツフアメモリ5及び6からの印字データ出力時
の機能モードを示すモード情報を一時記憶する出
力モードレジスタOUTMREG19とを備えてお
り、第2図にFCT17の具体例を示す。
Furthermore, the multiple print processing device 1 has a function code table that shows the correspondence between function codes and mode information.
FCT 17, and an input mode register INMREG 18 that temporarily stores mode information indicating the functional mode when inputting print data to buffer memories 5 and 6;
The FCT 17 is provided with an output mode register OUTMREG 19 that temporarily stores mode information indicating the functional mode when printing data is output from the buffer memories 5 and 6. A specific example of the FCT 17 is shown in FIG.

本実施例において、バツフアメモリを2つ設け
たのは、入力処理部11が一方のバツフアメモリ
を使用している最中に、出力処理部12が他方の
バツフアメモリを使用可能とするためであり、入
出力管理部13が、プリンタ装置3からのビジー
信号及びレデイー信号に基づいて、入力処理部1
1と出力処理部12を制御して、異なるバツフア
メモリをアクセスするように管理している。
In this embodiment, two buffer memories are provided so that while the input processing section 11 is using one buffer memory, the output processing section 12 can use the other buffer memory. The management unit 13 controls the input processing unit 1 based on the busy signal and ready signal from the printer device 3.
1 and the output processing section 12 to access different buffer memories.

第3図は、バツフアメモリ5及び6に格納する
データフオーマツトを示す図であり、第5ワード
以降に実際に出力する印字データを、そして、第
2ワードにデータサイズを記憶する。本発明で
は、後に詳述するように、同一行の各ページの印
字データをバツフアメモリ内でリンクする構成と
しているため、第1ワードはリンク先を示すネク
ストポインタとして利用され、具体的には、同一
行の次ページのデータを格納するバツフアメモリ
の先頭アドレスが記憶される。又、第3ワード及
び第4ワードには、各々、第5ワード以降に記憶
される印字データの行頭における機能モード
MODE0及び行末における機能モードMODE1
が記憶される。
FIG. 3 is a diagram showing the data format stored in the buffer memories 5 and 6, in which the print data to be actually output is stored in the fifth and subsequent words, and the data size is stored in the second word. In the present invention, as will be described in detail later, the print data of each page on the same line is linked in the buffer memory, so the first word is used as a next pointer indicating the link destination. The starting address of the buffer memory that stores the data of the next page of the row is stored. In addition, the third and fourth words each contain the function mode at the beginning of the line of print data stored after the fifth word.
MODE0 and function mode MODE1 at the end of the line
is memorized.

以下、本実施例の処理内容を第4図〜第7図の
フローチヤートを参照しながら説明する。
The processing contents of this embodiment will be explained below with reference to the flowcharts of FIGS. 4 to 7.

先ず、ホスト装置2は、データの送出に先立
ち、複連数α及び複連数に相当する各ページの水
平オフセツトを送出する。すると、複連印字処理
装置1は、複連数αをメモリ7に記憶すると共
に、テーブルHCT8として複連数分の記憶領域
を確保し、これらの領域に各ページの水平オフセ
ツトa1,a2,a3……をページ順に格納する。
First, before transmitting data, the host device 2 transmits the number α of multiple series and the horizontal offset of each page corresponding to the number of multiple series. Then, the multiple print processing device 1 stores the number α of multiple prints in the memory 7, secures a storage area for the number of multiple prints as a table HCT8, and stores the horizontal offsets a 1 , a 2 of each page in these areas. , a 3 ... are stored in page order.

ホスト装置2は、複連数及び水平オフセツト送
出後、通常印字を行う場合と同様、データ記憶部
4からページ毎に先頭行から順にデータを読出
し、該データに基づく印字データを順次送出す
る。複連印字処理装置1の入力処理部11は、ポ
インタHCTP14及びLCTP15を「1」、テー
ブルLCT9の全内容を「0」に初期化し、ホス
ト装置2から印字データが送出される毎に、第4
図のフローチヤートで示す処理を実行する。
After sending out the number of multiple stations and the horizontal offset, the host device 2 sequentially reads data from the data storage section 4 starting from the first row for each page, and sequentially sends print data based on the data, as in the case of normal printing. The input processing unit 11 of the multiple print processing device 1 initializes the pointers HCTP14 and LCTP15 to “1” and the entire contents of the table LCT9 to “0”, and each time print data is sent from the host device 2,
Execute the process shown in the flowchart in the figure.

即ち、HCTP14が示す水平オフセツトを
HCT8から読出し、送出されてきた印字データ
の先頭にこの水平オフセツトに相当する水平
TABコードを付加し、バツフアメモリ5に格納
する。そして、LCTP15が示すLCT9の内容
が「0」か否か判定し、「0」であればLCTP1
5が示す行の最初の印字データであると判断し
て、データを格納したバツフアメモリ5の先頭ア
ドレスをLCTP15が示すLCT9に記憶する。
「0」でなければ同一行に先に印字すべきデータ
が既にあると判断し、LCT9に記憶された先頭
アドレスのデータを検索し、このデータ中のネク
ストポインタが「0」か否か判定する。「0」で
なければネクストポインタが示すリンク先のデー
タについても、同様にそのネクストポインタが
「0」か否かを判定し、「0」になるデータが検索
されるまでこの処理を続行する。ネクストポイン
タが「0」であるデータが検索されたら、送出さ
れてきたデータを格納したバツフアメモリ5の先
頭アドレスを、リンク先として検索したデータ中
のネクストポインタに書込む。ポインタLCTP1
5の更新はデータが入力される度に行われ、改行
コード及び垂直TABコードが入力されたときは、
バツフアメモリ5へのデータの格納は行わずポイ
ンタLCTP15の更新のみ行う。又、ポインタ
HCTP14の更新は改頁コードが入力されたと
き行われ、この際、LCTP15が初期値「1」に
戻される。ところで、バツフアメモリ5へのデー
タは送出されてきた順に格納されて行く。
That is, the horizontal offset indicated by HCTP14 is
A horizontal line corresponding to this horizontal offset is placed at the beginning of the print data read and sent from HCT8.
A TAB code is added and stored in the buffer memory 5. Then, it is determined whether the content of LCT9 indicated by LCTP15 is "0" or not, and if it is "0", LCTP1
It is determined that this is the first print data in the line indicated by 5, and the start address of the buffer memory 5 in which the data is stored is stored in the LCT 9 indicated by the LCTP 15.
If it is not "0", it is determined that there is already data to be printed first on the same line, the data at the start address stored in LCT9 is searched, and it is determined whether the next pointer in this data is "0" or not. . For the linked data indicated by the next pointer, which is not "0", it is similarly determined whether the next pointer is "0" or not, and this process is continued until data that becomes "0" is retrieved. When data whose next pointer is "0" is retrieved, the start address of the buffer memory 5 storing the transmitted data is written as a link destination to the next pointer in the retrieved data. Pointer LCTP1
5 is updated every time data is input, and when a line feed code and vertical TAB code are input,
Data is not stored in the buffer memory 5, but only the pointer LCTP 15 is updated. Also, pointer
The HCTP 14 is updated when a page break code is input, and at this time, the LCTP 15 is returned to the initial value "1". Incidentally, data is stored in the buffer memory 5 in the order in which it is sent.

以上の処理により、バツフアメモリ5では各行
のページ毎の印字データがページ順にリンクさ
れ、各行の最初に印字すべきデータを格納した先
頭アドレスが、LCT9の対応する位置に記憶さ
れることとなる。そして、設定された複連数に相
当するページ数についてのデータ入力が終了する
と、バツフアメモリ5へのデータ入力処理は終了
し、以降のデータはもう一方のバツフアメモリ6
に入力されるようになる。このバツフアメモリ6
への入力処理も全く同様に行われ、複連数に相当
するページ数分の処理が終了すれば、バツフアメ
モリが切換えられ、再びバツフアメモリ5への入
力処理が実行される。
Through the above processing, the print data for each page of each row is linked in page order in the buffer memory 5, and the start address where the data to be printed first in each row is stored is stored in the corresponding position of the LCT 9. When the data input for the number of pages corresponding to the set number of multiple series is completed, the data input process to the buffer memory 5 is completed, and subsequent data is stored in the other buffer memory 6.
will now be entered. This buffer memory 6
The input processing to the buffer memory 5 is performed in exactly the same manner, and when the processing for the number of pages corresponding to the number of series is completed, the buffer memory is switched and the input processing to the buffer memory 5 is executed again.

第8図は、複連数αを「3」、各ページの水平
オフセツトを各々「0」、「10」、「20」に設定し、
データ記憶部4に第9図に示すようなデータが記
憶されているときに、ホスト装置2がこれらのデ
ータに関する印字データをページ順に送出する場
合の入力処理状況を示し、例えば、既に、1ペー
ジ3行目のデータが先頭アドレス「3+S1」から
格納されており、LCT9の3番目の記憶エリア
にこの先頭アドレス「3+S1」が記憶されている
場合、3ページ3行目のデータが入力されると、
3ページ2行目のデータに続いてこの入力データ
がバツフアメモリ5に格納されると共に、その先
頭アドレス「202+S5」は、同一行の先行のデー
タである1ページ3行目データのネクストポイン
タに、リンク先として書込まれる。この例では、
第2ページの3行目のデータが無い。
In Figure 8, the number of multiple stations α is set to ``3'', the horizontal offset of each page is set to ``0'', ``10'', and ``20'', respectively.
This shows an input processing situation when the host device 2 sends print data related to these data in page order when the data as shown in FIG. 9 is stored in the data storage unit 4. If the data on the third line is stored starting from the first address "3+S 1 " and this first address "3+S 1 " is stored in the third storage area of LCT9, the data on the third line of page 3 will be input. Then,
This input data is stored in the buffer memory 5 following the data on the second line of page 3, and its start address "202+S 5 " is set to the next pointer of the data on the third line of page 1, which is the preceding data on the same line. Written as a link destination. In this example,
There is no data in the third row of the second page.

ところで、入力処理部11は、第4図のフロー
チヤートのSTEP−Bにおけるバツフアメモリへ
のデータ格納ルーチンで、第6図のフローチヤー
トに示す処理を更に実行する。尚、INMREG1
8は印字データの入力開始時に、その内容がオー
ル「0」に初期設定される。
By the way, the input processing unit 11 further executes the process shown in the flowchart of FIG. 6 in the data storage routine to the buffer memory in STEP-B of the flowchart of FIG. Furthermore, INMREG1
8, its contents are initialized to all "0"s when inputting print data is started.

即ち、入力されてきた1行分の印字データをバ
ツフアメモリに格納後、先ず、INMREG18の
内容をその入力行のMODE0として書込み、入
力行の印字データについて機能コードの検索を行
う。機能コードが検索されたら、FCT17を参
照して対応するモード情報を調べ、INMREG1
8のそのコードに対応するビツトをオン又はオフ
することにより、対応するモード情報を
INMREG18にセツトし、検索終了後、
INMREG18の内容を入力行のMODE1として
書込む。従つて、入力行の行末における機能モー
ドがMODE1として書込まれ、次行の印字デー
タ入力時には、前行の行末における機能モードが
INMREG18に保持されたままになる。ここで、
バツフアメモリへの印字データの入力は、各ペー
ジ毎に先頭行から順に行われるので、結局、前行
の行末における機能モードは、次行の行頭におけ
る機能モードと一致し、依つて、MODE0とし
ては入力行の行頭の機能モードが書込まれる。
That is, after storing one line of input print data in the buffer memory, first, the contents of INMREG18 are written as MODE0 of the input line, and a function code is searched for the print data of the input line. Once the function code is retrieved, refer to FCT17 to check the corresponding mode information and set INMREG1
By turning on or off the bit corresponding to that code in 8, you can read the corresponding mode information.
Set INMREG18 and after the search is complete,
Write the contents of INMREG18 as MODE1 on the input line. Therefore, the function mode at the end of the input line is written as MODE1, and when inputting print data for the next line, the function mode at the end of the previous line is written.
It remains held in INMREG18. here,
Since the print data is input to the buffer memory in order from the first line for each page, the function mode at the end of the previous line matches the function mode at the beginning of the next line, and therefore the input as MODE0 is The functional mode at the beginning of the line is written.

そこで、例えば、上述の第9図の場合、第8図
に示すように、ホスト装置2が出力する第1ペー
ジ第1行目の印字データ中には、倍角モードの開
始を指定する機能コードESC・W・1が含まれ、
第1ページ第3行目の印字データ中には、倍角モ
ードの解除を指定する機能コードESC・W・0が
含まれているので、第1ページ第1行目の
MODE1と第1ページ第3行目のMODE0とし
てモード情報「000001」が書込まれ、他の行の
MODE0及びMODE1としてはモード情報
「000000」が書込まれる。
Therefore, for example, in the case of FIG. 9 described above, as shown in FIG.・W・1 is included,
The print data on the 3rd line of the 1st page includes the function code ESC・W・0 that specifies the cancellation of the double-width mode, so the print data on the 1st line of the 1st page
Mode information “000001” is written as MODE1 and MODE0 on the third line of the first page, and the other lines
Mode information "000000" is written as MODE0 and MODE1.

次に、バツフアメモリ5からのデータ出力処理
について説明する。
Next, data output processing from the buffer memory 5 will be explained.

バツフアメモリ5へのデータ入力処理が終了す
ると、出力処理部12が起動され、第5図のフロ
ーチヤートに示すように、LCTP15を順次イン
クリメントすることによりLCT9の内容を先頭
から順に参照して各行の処理を行う。各行の処理
においては、先ず、LCTPが示すLCT9の内容
が「0」か否か判定され、「0」であれば何も処
理をしない。「0」でなければLCTP15が示す
位置へ用紙をフイードさせる垂直TABコードを
送出する。あるいは、LCT9の内容に関係なく、
LCTP15をインクリメントする度に改行コード
を出力する。又、LCT9の内容が「0」でなけ
れば、バツフアメモリ5のLCT9が示す先頭ア
ドレスから、ネクストポインタ及びデータサイズ
を除くデータを読出し、このデータをプリンタ装
置3に出力する。そして、このデータのネクスト
ポインタが「0」でなけければ、リンク先へ飛ん
で同様にデータの出力とネクストポインタの判定
を行う。この処理はリンク先のネクストポインタ
が「0」になるまで繰り返され、この処理によ
り、リンクされた複数ページの同一行のデータ
は、ページ順に順次出力される。
When the data input process to the buffer memory 5 is completed, the output processing unit 12 is activated, and as shown in the flowchart of FIG. I do. In processing each line, first, it is determined whether the content of LCT9 indicated by LCTP is "0" or not, and if it is "0", no processing is performed. If it is not "0", a vertical TAB code is sent to feed the paper to the position indicated by the LCTP 15. Or, regardless of the content of LCT9,
Outputs a line feed code every time LCTP15 is incremented. If the content of LCT9 is not "0", data excluding the next pointer and data size is read from the start address indicated by LCT9 of buffer memory 5, and this data is output to printer device 3. If the next pointer of this data is not "0", it jumps to the link destination and similarly outputs the data and determines the next pointer. This process is repeated until the next pointer of the link destination becomes "0", and by this process, data on the same line of a plurality of linked pages are sequentially output in page order.

例えば、第8図に示す例の場合、LCTP15が
「2」にインクリメントされたときには、先ず、
改行コードもしくはこの行に相当する垂直TAB
コードが出力され、次に、LCT9が参照されて
アドレス「102+S3」の2ページ2行目のデータ
が出力され、続いて、そのデータのネクストポイ
ンタが参照され、リンク先のアドレス「200」の
3ページ2行目のデータが出力される。言うまで
もないが、以上の処理はバツフアメモリ6につい
ても全く同様に行われる。
For example, in the case of the example shown in FIG. 8, when LCTP15 is incremented to "2", first,
Newline code or vertical TAB equivalent to this line
The code is output, then the LCT9 is referenced and the data on the second line of the second page at address "102+S 3 " is output, and the next pointer of that data is then referenced and the data at the link destination address "200" is output. The data on the second line of page 3 is output. Needless to say, the above processing is performed on the buffer memory 6 in exactly the same manner.

ところで、出力処理部12は、第5図のフロー
チヤートのSTEP−C及びSTEP−Dにおけるデ
ータ出力ルーチンで、第7図のフローチヤートに
示す処理を更に実行する。尚、OUTMREG19
は印字データの出力開始時、その内容がオール
「0」に初期設定される。
By the way, the output processing unit 12 further executes the processing shown in the flowchart of FIG. 7 in the data output routine in STEP-C and STEP-D of the flowchart of FIG. Furthermore, OUTMREG19
When the output of print data starts, the contents are initialized to all "0".

即ち、出力行のMODE0とOUTMREG19の
内容が比較され、等しくなればMODE0の機能
モードを指定するための機能コードがFCT17
より読出されて先頭に付加され、等しければ機能
コードの付加は行われない。そして出力行の
MODE1をOUTMREG19にセツトし、出力行
の印字データの出力が為される。次の行の印字デ
ータを出力するときは、直前に出力した行の行末
におけるモード情報がOUTMREG19に保持さ
れており、出力時は前述の如く、同一行の各ペー
ジの印字データが連続して出力されるので、この
処理の第1ステツプでは、同一行の先に出力した
ページの行末の機能モードと次に出力しようとす
るページの行頭の機能モードが比較されることと
なる。依つて、等しければそのままデータは出力
され、等しくなければ、行頭の機能モードを強制
的に指定するように、前行の機能モードの解除、
もしくは新たな機能モードの開始を指定する機能
コードが、先頭に付加される。尚、出力しようと
するページが複連印字の最初のページのデータで
あるときは、勿論、その行の行頭の機能モード
と、前行の最終ページの行末における機能モード
が比較され、同様の処理が為される。
That is, the contents of MODE0 and OUTMREG19 on the output line are compared, and if they are equal, the function code for specifying the function mode of MODE0 is FCT17.
If they are equal, no function code is added. and in the output line
MODE1 is set to OUTMREG19, and the print data of the output line is output. When outputting the print data of the next line, the mode information at the end of the line output immediately before is held in OUTMREG19, and when outputting, the print data of each page of the same line is output continuously as described above. Therefore, in the first step of this process, the function mode at the end of the line of the page previously output on the same line is compared with the function mode at the start of the line of the page to be output next. Therefore, if they are equal, the data is output as is, and if they are not equal, the function mode of the previous line is canceled, and the function mode of the previous line is forcibly specified.
Alternatively, a function code specifying the start of a new function mode is added to the beginning. If the page you are trying to output is the data of the first page of multiple printing, the function mode at the beginning of that line is of course compared with the function mode at the end of the last page of the previous line, and the same processing is performed. will be done.

そこで、例えば、第8図の例の場合、第1ペー
ジ第1行目のMODE1は「000001」と倍角モー
ドを示すが、第2ページ第1行目のMODE0は
「000000」と標準モードなので、倍角モードの解
除を指定する機能コードESC・W・0が、第2ペ
ージ第1行目の印字データの先頭に付加され、更
に、第1ページ第3行目の印字データを出力する
ときは、そのMODE0が「000001」で、直前に
出力された第3ページ第2行目のMODE1は
「000000」なので、倍角モードの開始を指定する
機能コードESC・W・1が先頭に付加される。依
つて、プリンタ装置3では、第10図に示すよう
な所望の3連印字が用紙20上に行われることと
なる。
For example, in the example shown in Figure 8, MODE1 on the first line of the first page indicates double-angle mode as "000001", but MODE0 on the first line of the second page indicates standard mode as "000000". The function code ESC・W・0 that specifies cancellation of double-width mode is added to the beginning of the print data on the first line of the second page, and when outputting the print data on the third line of the first page, Since MODE0 is "000001" and MODE1 on the second line of the third page that was output immediately is "000000", the function code ESC.W.1, which specifies the start of double-width mode, is added to the beginning. Therefore, in the printer device 3, the desired three consecutive prints as shown in FIG. 10 are performed on the paper 20.

ところで、予めページ単位に区切られていな
い、所謂べた書きのデータを、ホスト装置2から
送出する場合は、送出に先立ち1ページの行数を
指定し、バツフアメモリへのデータ格納時、
LCTPの内容が指定行数を越えたか否かを判定
し、越えた場合に改頁コードの入力時と同様の処
理を行うことにより、対処することができる。
By the way, when sending so-called solid data that is not divided into pages in advance from the host device 2, the number of lines in one page is specified before sending, and when storing the data in the buffer memory,
This can be handled by determining whether or not the content of the LCTP exceeds the specified number of lines, and if it exceeds the specified number of lines, performing the same process as when inputting a page break code.

上述の実施例は、ホスト装置2とプリンタ装置
3との間に接続される別体の装置において本発明
を実施した例であるが、本発明は、ホスト装置の
出力段、もしくは、プリンタ装置の入力段におい
て実施することも無論可能である。
The above embodiment is an example in which the present invention is implemented in a separate device connected between the host device 2 and the printer device 3, but the present invention is implemented in the output stage of the host device or the printer device. It is of course also possible to implement it at the input stage.

(ト) 発明の効果 本発明に依れば、複連印字しようとする複数ペ
ージの印字データ中に、機能モードを指定する機
能コードが含まれていても、機能コードが含まれ
るページに対してのみ指定されたモードを有効と
し、他のページに対しては誤つたモード指定を行
わないように防止することができる。依つて、ホ
スト側では、複連印字の場合も特に意識せず機能
コードを自由に使用できるようになる。
(G) Effects of the Invention According to the present invention, even if a function code specifying a function mode is included in the print data of multiple pages to be printed multiple times, the page containing the function code is It is possible to enable only the specified mode and prevent incorrect mode specification for other pages. Therefore, on the host side, even in the case of multiple printing, the function code can be freely used without being particularly conscious.

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

第1図は本発明の実施例の構成を示すブロツク
図、第2図はFCTの具体的内容を示す図、第3
図はデータフオーマツトを示す図、第4図はバツ
フアメモリへのデータ入力処理の概要を示すフロ
ーチヤート、第5図はバツフアメモリからのデー
タ出力処理の概要を示すフローチヤート、第6図
はデータ入力処理の詳細な内容を示すフローチヤ
ート、第7図はデータ出力処理の詳細な内容を示
すフローチヤート、第8図はHCT,LCT、バツ
フアメモリの具体的内容を示す説明図、第9図は
データ記憶部の具体的内容を示す図、第10図は
複連印字結果の一例を示す図である。 1…複連印字処理装置、2…ホスト装置、3…
プリンタ装置、4…データ記憶部、5,6…バツ
フアメモリ、8…HCT、9,10…LCT、11
…入力処理部、12…出力処理部、17…FCT、
18…INMREG、19…OUTMREG。
Figure 1 is a block diagram showing the configuration of an embodiment of the present invention, Figure 2 is a diagram showing specific contents of FCT, and Figure 3 is a diagram showing the specific contents of FCT.
The figure shows a data format, Figure 4 is a flowchart showing an overview of data input processing to the buffer memory, Figure 5 is a flowchart showing an overview of data output processing from the buffer memory, and Figure 6 is a data input process. 7 is a flowchart showing detailed contents of data output processing, FIG. 8 is an explanatory diagram showing specific contents of HCT, LCT, and buffer memory, and FIG. 9 is a data storage section. FIG. 10 is a diagram showing an example of the result of multiple printing. 1...Multiple print processing device, 2...Host device, 3...
printer device, 4...data storage unit, 5, 6...buffer memory, 8...HCT, 9, 10...LCT, 11
...input processing section, 12...output processing section, 17...FCT,
18...INMREG, 19...OUTMREG.

Claims (1)

【特許請求の範囲】[Claims] 1 複数ページの印字データを記憶するバツフア
メモリを備え、該バツフアメモリから同一行の各
ページの印字データを連続して印字部へ出力する
ことにより、前記複数ページの印字データを用紙
上で水平方向に並べて印字する複連印字処理装置
であつて、前記バツフアメモリにおける各ページ
の各行の印字データについて機能モードの開始及
び解除を指定する機能コードの検索を行うことに
より、各行の行頭及び行末における機能モードを
検出し、該検出した行頭及び行末における各々の
機能モードを表す第1及び第2のモード情報を各
行の印字データに関連させて記憶する入力処理部
と、前記バツフアメモリからページ毎の各行の印
字データを出力する際、出力行の前記第1モード
情報と直前に出力した行の前記第2モード情報と
を比較し、等しくないとき該第1モード情報にて
表される機能モードを設定するための機能コード
を先頭に付加して出力行の印字データを出力する
出力処理部とを具備したことを特徴とする複連印
字処理装置。
1. A buffer memory for storing print data of multiple pages is provided, and by successively outputting print data of each page of the same line from the buffer memory to a printing unit, the print data of the multiple pages can be arranged horizontally on paper. A multiple print processing device for printing, which detects the functional mode at the beginning and end of each line by searching for a function code that specifies the start and release of a functional mode for each line of print data of each page in the buffer memory. an input processing unit that stores first and second mode information representing the detected functional modes at the beginning and end of the line in association with the print data of each line; and an input processing unit that stores the print data of each line of each page from the buffer memory. When outputting, a function for comparing the first mode information of the output line with the second mode information of the line output immediately before, and setting the functional mode represented by the first mode information when they are not equal. 1. A multiple print processing device comprising: an output processing unit that outputs print data of an output line by adding a code to the beginning thereof.
JP62166162A 1987-07-02 1987-07-02 Multiply-connected printing process Granted JPS649751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62166162A JPS649751A (en) 1987-07-02 1987-07-02 Multiply-connected printing process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62166162A JPS649751A (en) 1987-07-02 1987-07-02 Multiply-connected printing process

Publications (2)

Publication Number Publication Date
JPS649751A JPS649751A (en) 1989-01-13
JPH0524839B2 true JPH0524839B2 (en) 1993-04-09

Family

ID=15826222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62166162A Granted JPS649751A (en) 1987-07-02 1987-07-02 Multiply-connected printing process

Country Status (1)

Country Link
JP (1) JPS649751A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2598506B2 (en) * 1989-01-24 1997-04-09 キヤノン株式会社 Printing control device
CN107782046A (en) * 2017-09-29 2018-03-09 东莞市联洲知识产权运营管理有限公司 A kind of defroster in refrigerator fast refrigerating cabinet

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59231686A (en) * 1983-06-13 1984-12-26 Fujitsu Ltd Control method of printing mode of covered binding printing
JPS6079984A (en) * 1983-10-07 1985-05-07 Toshiba Corp Printing-controlling system
JPS61105666A (en) * 1984-10-30 1986-05-23 Canon Inc Document processing device
JPS61171348A (en) * 1985-12-26 1986-08-02 Canon Inc Information recording apparatus
JPS6215628A (en) * 1985-07-15 1987-01-24 Canon Inc Document processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59231686A (en) * 1983-06-13 1984-12-26 Fujitsu Ltd Control method of printing mode of covered binding printing
JPS6079984A (en) * 1983-10-07 1985-05-07 Toshiba Corp Printing-controlling system
JPS61105666A (en) * 1984-10-30 1986-05-23 Canon Inc Document processing device
JPS6215628A (en) * 1985-07-15 1987-01-24 Canon Inc Document processor
JPS61171348A (en) * 1985-12-26 1986-08-02 Canon Inc Information recording apparatus

Also Published As

Publication number Publication date
JPS649751A (en) 1989-01-13

Similar Documents

Publication Publication Date Title
JP2796628B2 (en) Printing device
US4943936A (en) Print control apparatus controlling utilization state of plural format blocks
JP2861404B2 (en) Printing device
JPS5938629B2 (en) line spacing controller
JP2855207B2 (en) Form output device
JPH0524839B2 (en)
GB2217491A (en) Output apparatus
JP3451289B2 (en) Table output device
JPH0560793B2 (en)
JPH0729448B2 (en) Printer controller
JPS6111844A (en) Recorder
JPH0596811A (en) Printing method
JPS62164548A (en) Access control system for dot memory
JP2614251B2 (en) Printer print control method
GB2233134A (en) Text processing
JPS60110033A (en) Display printer
JPS63283968A (en) Printing control system
JPH0729449B2 (en) Printer controller
JPH0530239A (en) Image processor and processing method
JPS6010674B2 (en) printer
JPS58134380A (en) Register writing device
JPH082021A (en) Page printer device
JPH05342207A (en) Format specifying method for word processor
JPS609792A (en) Printer
JPH04250521A (en) Printer

Legal Events

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