JPH08337018A - Data outputting device - Google Patents

Data outputting device

Info

Publication number
JPH08337018A
JPH08337018A JP8190338A JP19033896A JPH08337018A JP H08337018 A JPH08337018 A JP H08337018A JP 8190338 A JP8190338 A JP 8190338A JP 19033896 A JP19033896 A JP 19033896A JP H08337018 A JPH08337018 A JP H08337018A
Authority
JP
Japan
Prior art keywords
data
output
interrupt
input
interruption
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.)
Granted
Application number
JP8190338A
Other languages
Japanese (ja)
Other versions
JP2785814B2 (en
Inventor
Yuji Okamoto
裕司 岡本
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP8190338A priority Critical patent/JP2785814B2/en
Publication of JPH08337018A publication Critical patent/JPH08337018A/en
Application granted granted Critical
Publication of JP2785814B2 publication Critical patent/JP2785814B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE: To efficiently complete the output of interruption data and data which has been cut off by a method wherein when an interruption signal is generated during an output of data, the output of the data is cut off, and the output of another data is interrupted, and after the output of the interruption data is completed, the output of the data which has been cut off is resumed. CONSTITUTION: While a printer output routine is executed in a host computer 17, if an interruption signal is input to a CPU 1, an interruption program is started, and a BUSY signal is set at the H level in order to prohibit the transmission of next data. Then, the data for 1 character being input in an input/ output interface 15 is read, and the data is stored in an input buffer 31, and the leading data address, the final end data address and the data length, etc., of the input buffer 31 are updated. Then, a negative pulse, and an inversion ACK signal for an active row are output to the host computer 17, and when an empty region exists in the input buffer 31, the receiving permission for the next data is notified to the host computer 17.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、1つのファイルデ
ータを出力しているときに、割込んで他のファイルデー
タを出力できるデータ出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data output device capable of interrupting and outputting another file data while outputting one file data.

【0002】[0002]

【従来の技術】最近のプリンタには、ホストコンピュー
タが一定量のデータを印字動作と無関係に連続して送信
でき送信待ち時間を少なくするために、容量の大きな入
力バッファが設けられている。
2. Description of the Related Art Recent printers are provided with large-capacity input buffers so that a host computer can continuously transmit a certain amount of data regardless of printing operation and reduce the transmission waiting time.

【0003】係る入力バッファを有したプリンタを使用
する場合には、ホストコンピュータは印字対象の一つの
ファイルデータの全てを入力バッファに送信した後、印
字動作の完了を待つことなく、別のジョブを実行するこ
とができる。このように、入力バッファの容量が大きい
と、ホストコンピュータの動作効率が良いという利点が
ある。
When a printer having such an input buffer is used, the host computer transmits all of the one file data to be printed to the input buffer, and then waits for another job without waiting for the completion of the printing operation. Can be executed. As described above, when the capacity of the input buffer is large, there is an advantage that the operation efficiency of the host computer is good.

【0004】[0004]

【発明が解決しようとする課題】ところが、1つのファ
イルデータを印字している時に、緊急で他のファイルデ
ータを印字したい場合があるが、従来のプリンタは割込
印字機能がないため、入力バッファの容量が大きいと入
力バッファに記憶されているデータが全て印字されるま
で長時間待つ必要があった。このため、特に緊急を要す
る場合には、印字動作中にプリンタの電源を落として、
強制的に印字動作を中止して、他のファイルデータを印
字するより方法がなかった。このため、プリンタの使用
性が悪く、作業効率が低下するという問題があった。
However, while one file data is being printed, it may be urgently desired to print another file data. However, since the conventional printer does not have the interrupt printing function, the input buffer is not available. If the capacity of is large, it was necessary to wait for a long time until all the data stored in the input buffer was printed. For this reason, if you need an emergency, turn off the printer power during printing.
There was no way to forcibly cancel the printing operation and print other file data. Therefore, there is a problem that the usability of the printer is poor and the work efficiency is reduced.

【0005】本発明は、上記の問題点を解決するために
なされたものであり、簡単な操作により、データ出力動
作を一時中断させ他のデータの割込出力を可能とすると
共に、割込データの出力と中断されたデータの出力とを
効率的に行うことができるデータ出力装置を提供するこ
とを目的としている。
The present invention has been made in order to solve the above-mentioned problems, and makes it possible to interrupt the data output operation by a simple operation to enable the interrupt output of other data, and at the same time, the interrupt data. It is an object of the present invention to provide a data output device capable of efficiently outputting the data and the interrupted data.

【0006】[0006]

【課題を解決するための手段】上記問題点を解決するた
めに、データの出力中に割込信号発生手段により割込信
号が発生されると、該出力処理中のデータの出力が出力
中断手段により中断され、その出力中断手段による中断
後、割込データ出力手段により別のデータが割込まれる
と共に、その割込データの出力中に前記割込信号がオフ
状態とされても前記割込データの出力が継続され、割込
データの出力完了後にデータ出力再開手段により、前記
出力中断手段により中断されたデータの出力が再開され
る。
In order to solve the above problems, when an interrupt signal is generated by the interrupt signal generating means during data output, the output of the data during the output processing is output interrupt means. The interrupt data is interrupted by the interrupt data output device, and another data is interrupted by the interrupt data output device. Even if the interrupt signal is turned off during the output of the interrupt data, the interrupt data is interrupted. Output is continued, and after the output of the interrupt data is completed, the data output restarting means restarts the output of the data interrupted by the output interrupting means.

【0007】[0007]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0008】図1は実施例に係るプリンタの電気的構成
を示したブロックダイヤグラムである。
FIG. 1 is a block diagram showing the electrical construction of the printer according to the embodiment.

【0009】プリンタPの制御装置を構成する中央処理
装置(以下「CPU」と記す)1にはアドレスバス、デ
ータバス、制御バスを介してROM2、RAM3、入出
力インタフェース4,5,6がそれぞれ接続されてい
る。ROM2には、各種の機能処理ルーチンを含む印字
制御プログラム、フォントパターン等が記憶されてい
る。又、RAM3には、入力データを一時記憶するFIFO
(First In First Out)構成の入力バッファ31と、1行
分の文字パターンを作成するラインバッファ32と、割
込信号が検出されプリンタPを割込印字モードに設定す
る割込フラグ33と、印字動作が中断されるファイルデ
ータの現在の書式データを記憶する書式データメモリ3
4とが設けられている。
A central processing unit (hereinafter referred to as "CPU") 1 constituting a control device of the printer P is provided with a ROM 2, a RAM 3, input / output interfaces 4, 5 and 6 via an address bus, a data bus and a control bus. It is connected. The ROM 2 stores a print control program including various function processing routines, a font pattern, and the like. The RAM 3 also has a FIFO for temporarily storing input data.
An input buffer 31 of (First In First Out) configuration, a line buffer 32 for creating a character pattern for one line, an interrupt flag 33 for detecting an interrupt signal and setting the printer P in an interrupt print mode, and printing Format data memory 3 for storing the current format data of file data whose operation is interrupted
And 4 are provided.

【0010】又、入出力インタフェース4,5,6に
は、それぞれ駆動装置7,8,9が接続されており、各
駆動装置には、紙送りのためのLFモータ10、印字ヘ
ッドを搭載したキャリッジを移動させるCRモータ1
1、インパクトワイヤを駆動する印字ソレノイド12
が、それぞれ接続されている。
Further, driving devices 7, 8 and 9 are connected to the input / output interfaces 4, 5 and 6, respectively, and each driving device is equipped with an LF motor 10 for feeding paper and a print head. CR motor 1 for moving the carriage
1. Print solenoid 12 that drives the impact wire
Are connected to each other.

【0011】又、入出力インタフェース6には割込信号
発生手段を構成する割込スイッチ13と割込印字モード
であることを表示する割込表示ランプ14とが接続され
ている。
Further, the input / output interface 6 is connected to an interrupt switch 13 which constitutes an interrupt signal generating means and an interrupt display lamp 14 which indicates that the interrupt print mode is in effect.

【0012】又、プリンタPの入力インタフェース15
はホストコンピュータ17側の入出力インタフェース1
6と接続されており、ホストコンピュータ17側のRA
M18に記憶された印字データはホストコンピュータ1
7によりプリンタPに送信され、入力バッファ31に記
憶され、そのデータはプリンタPのCPU1の処理によ
り印字される。
The input interface 15 of the printer P is also provided.
Is the input / output interface 1 on the host computer 17 side
RA connected to the host computer 17 side
The print data stored in M18 is the host computer 1
7 is sent to the printer P, stored in the input buffer 31, and the data is printed by the processing of the CPU 1 of the printer P.

【0013】次に、プリンタPのCPU1の処理手順を
図2のタイミングチャート、図3及び図4のフローチャ
ート及び図5の入力バッファのメモリマップに従って説
明する。
Next, the processing procedure of the CPU 1 of the printer P will be described with reference to the timing chart of FIG. 2, the flowcharts of FIGS. 3 and 4, and the memory map of the input buffer of FIG.

【0014】プリンタPの電源の投入又はリセットによ
り、図4のメインプログラムが起動される。ステップ2
0(以下「S20」と記す。以下のステップも同様)
で、各種の初期設定と共に入力バッファ31がクリアさ
れ割込フラグ33がオフに初期設定され、次のS21で
アクティブハイのBUSY信号がLレベルとされる。即ち、
図2のタイミングチャートにおいて、時刻t1でBUSY信
号がLレベルとなり、プリンタPはNOT BUSYとなり、ホ
ストコンピュータ17からデータの受信が可能な状態と
なる。
When the power of the printer P is turned on or reset, the main program shown in FIG. 4 is started. Step 2
0 (hereinafter referred to as "S20". The same applies to the following steps)
Then, along with various initial settings, the input buffer 31 is cleared and the interrupt flag 33 is initialized to OFF, and the BUSY signal of active high is set to L level in the next S21. That is,
In the timing chart of FIG. 2, the BUSY signal becomes L level at time t1, the printer P becomes NOT BUSY, and data can be received from the host computer 17.

【0015】次に、S22へ移行して入力バッファ31
にデータが有るか否かが判定される。最初の実行サイク
ルでは入力バッファ31にはデータが存在しないためS
22の判定結果はNOとなり、S21へ戻る。最初の実行
サイクルでは既にBUSY信号はLレベルとされており、BU
SY信号の信号レベルは一度設定されると次に設定される
までラッチされる。従って、プリンタPの電源が投入さ
れて、ホストコンピュータ17からデータが受信される
までの間は、S21、S22の処理が繰り返される。
Next, in S22, the input buffer 31
It is determined whether or not there is data. Since there is no data in the input buffer 31 in the first execution cycle, S
The determination result of 22 is NO, and the process returns to S21. In the first execution cycle, BUSY signal is already at L level, BU
Once set, the signal level of the SY signal is latched until it is set again. Therefore, the processes of S21 and S22 are repeated until the printer P is powered on and data is received from the host computer 17.

【0016】一方、ホストコンピュータ17においてプ
リンタ出力ルーチンが実行されると、そのプリンタ出力
ルーチンではBUSY信号のレベル判定が行われる。BUSY信
号がLレベルの時はプリンタPは受信可能状態であるこ
とを意味しており、時刻t2において、BUSY信号がLレ
ベルにあることが検出されて8ビットパラレルのDATA信
号が出力され、時刻t3においてその信号の読込タイミ
ングを付与するアクティブローの反転DATA STROBE信号
が出力される。
On the other hand, when the printer output routine is executed in the host computer 17, the BUSY signal level is determined in the printer output routine. When the BUSY signal is at the L level, it means that the printer P is ready to receive. At time t2, it is detected that the BUSY signal is at the L level and the 8-bit parallel DATA signal is output. At t3, an active-low inverted DATA STROBE signal that gives the read timing of the signal is output.

【0017】このアクティブローの反転DATA STROBE信
号が入出力インタフェース15に入力されると、その反
転DATA STROBE信号が割込信号としてCPU1に入力さ
れ、図3に示す割込プログラムが実行される。
When the active-low inverted DATA STROBE signal is input to the input / output interface 15, the inverted DATA STROBE signal is input to the CPU 1 as an interrupt signal, and the interrupt program shown in FIG. 3 is executed.

【0018】S1の実行される時刻t3において、ホス
トコンピュータ17から次のデータの送信を禁止するた
め、BUSY信号がHレベルとされる。そして、次のS2で
割込フラグ33がオンが否かが判定されるが、最初の実
行サイクルでは割込フラグ33はオフであるので、S2
の判定はNOとなりS3へ移行する。S3では入出力イン
タフェース15に入力された1文字分のデータが読み込
まれ、そのデータは入力バッファ31に記憶され、次の
S4で入力バッファ31の先頭データアドレス、終端デ
ータアドレス、データ長等のFIFOパラメータが更新され
る。
At time t3 when S1 is executed, the BUSY signal is set to the H level in order to prohibit the transmission of the next data from the host computer 17. Then, in the next S2, it is determined whether or not the interrupt flag 33 is turned on. However, since the interrupt flag 33 is turned off in the first execution cycle, S2 is set.
The determination is NO and the process proceeds to S3. In S3, the data for one character input to the input / output interface 15 is read, and the data is stored in the input buffer 31, and in the next S4, the FIFO of the start data address, end data address, data length, etc. of the input buffer 31 is read. Parameters are updated.

【0019】次に、S5において、データ受信の確認を
ホストコンピュータ17に通知するために、S5が実行
される時刻t4で反転ACK信号がLレベルとされ、S6
が実行される時刻t5で反転ACK信号がHレベルとされ
る。結局、負パルス、アクティブローの反転ACK信号が
ホストコンピュータ17に入出力インタフエース15を
介して出力される。
Next, in S5, in order to notify the host computer 17 of confirmation of data reception, the inverted ACK signal is set to L level at time t4 when S5 is executed, and S6
At time t5 when is executed, the inverted ACK signal is set to the H level. Eventually, a negative pulse and an active-low inverted ACK signal are output to the host computer 17 via the input / output interface 15.

【0020】そして、S7で入力バッファ31に空領域
が存在するか否かが判定されるが、最初の実行サイクル
では入力バッファ31には空領域が存在するため、S8
へ移行して次のデータの受信許可をホストコンピュータ
17に通知するため、S8の実行される時刻t5におい
て入出力インタフェース15を介してBUSY信号がLレベ
ルとされ、本割込プログラムの処理が終了する。割込プ
ログラムが終了すると、CPU1は図5のメインプログ
ラムのS21、S22のループに復帰する。
Then, in S7, it is judged whether or not there is an empty area in the input buffer 31, but since there is an empty area in the input buffer 31 in the first execution cycle, S8 is executed.
In order to notify the host computer 17 of permission to receive the next data, the BUSY signal is set to the L level via the input / output interface 15 at time t5 when S8 is executed, and the processing of this interrupt program ends. To do. When the interrupt program ends, the CPU 1 returns to the loop of S21 and S22 of the main program of FIG.

【0021】一方、ホストコンピュータ17は、BUSY信
号がLレベルになったことを検出して送信データが有れ
ば、時刻t6において次の8ビットパラレルのDATA信号
が出力され、時刻t7において反転DATA STROBE信号が
プリンタPに出力される。そして、CPU1はその反転
DATA STROBE信号により、再度、図3の割込プログラム
を実行し、データの受信処理が行われる。このように、
上記割込プログラムのS1〜S8の処理の繰り返しによ
り、入力バッファ31には、図5(a)に示すように、
印字するファイルAのデータが全て記憶される。
On the other hand, when the host computer 17 detects that the BUSY signal has become L level and there is transmission data, the next 8-bit parallel DATA signal is output at time t6, and the inverted DATA signal is output at time t7. The STROBE signal is output to the printer P. And CPU1 reverses it
By the DATA STROBE signal, the interrupt program of FIG. 3 is executed again, and the data reception process is performed. in this way,
By repeating the processes of S1 to S8 of the interrupt program, as shown in FIG.
All the data of file A to be printed is stored.

【0022】次に、図4に戻り、入力バッファ31にデ
ータが入力されS22の判定がYESとなると、S23
へ移行して割込フラグ33がオフか否かが判定される。
S23の最初の実行サイクルでは割込フラグ33はオフ
であるので、S23の判定がYESとなりS24へ移行
して、入力バッファ31から1行分のデータが読込ま
れ、ラインバッファ32にその1行分の印字パターンが
形成され、1行の印字処理が行われる。そして、次のS
25で印字された1行印字データが入力バッファ31か
ら削除され、次のS26で入力バッファ31のFIFOパラ
メータが更新され、次のS27で割込スイッチ13がオ
ンか否かが判断される。割込スイッチ13がオンに操作
されない場合には、割込スイッチ13はオフと判定され
S22へ戻り、上記した処理により次行の印字処理が順
次実行される。印字処理の進行に伴い入力バッファ31
のメモリマップは図5(b)に示すように、印字が完了
したデータが入力バッファ31から削除され、その領域
は空領域に開放される。
Next, returning to FIG. 4, when the data is input to the input buffer 31 and the determination in S22 is YES, S23.
Then, it is determined whether the interrupt flag 33 is off or not.
Since the interrupt flag 33 is off in the first execution cycle of S23, the determination in S23 is YES and the process proceeds to S24, where one line of data is read from the input buffer 31 and that line of one line is read. The print pattern of is formed, and the printing process for one line is performed. And the next S
The one-line print data printed in 25 is deleted from the input buffer 31, the FIFO parameter of the input buffer 31 is updated in the next S26, and it is determined in the next S27 whether the interrupt switch 13 is on. When the interrupt switch 13 is not operated to be turned on, it is determined that the interrupt switch 13 is off, the process returns to S22, and the printing process of the next line is sequentially executed by the above process. As the printing process progresses, the input buffer 31
As shown in FIG. 5B, in the memory map of FIG. 5B, the print completed data is deleted from the input buffer 31, and the area is opened to the empty area.

【0023】このようにして、入力バッファ31に入力
されているファイルAのデータが印字されている時に、
割込スイッチ13が操作されると、S27の判定がYES
となり、次のS28にて、割込スイッチ13を受け付け
たことを示すために、割込表示ランプ14を点滅させ
る。そして、S29にてファイルAのデータは頁末まで
印字されたか否かが判定される。尚、割込スイッチ13
のオンオフ状態は1回の操作毎に反転し、次に操作され
るまでそのオンオフ状態はラッチされている。ファイル
Aのデータが頁末まで印字完了していない場合には、S
22へ戻りS29で頁末まで印字が完了するまで上記し
た印字処理が継続されると共に割込ランプ14が点滅し
ている。
In this way, when the data of the file A input to the input buffer 31 is being printed,
When the interrupt switch 13 is operated, the determination in S27 is YES.
Then, in the next step S28, the interrupt display lamp 14 blinks to indicate that the interrupt switch 13 has been accepted. Then, in S29, it is determined whether the data of the file A has been printed up to the end of the page. The interrupt switch 13
The on / off state of is inverted at each operation, and the on / off state is latched until the next operation. If the data in file A has not been printed to the end of the page, S
Returning to step 22, the above-mentioned printing process is continued and the interrupt lamp 14 is blinking until the printing is completed up to the end of the page in S29.

【0024】S29で頁末まで印字されたと判定され、
次のS30で入力バッファ31の空領域が割込印字が可
能なだけの所定容量以上か否かが判定され、所定量以上
存在しない場合にはS22へ戻り入力バッファ31の空
領域が所定容量以上となる頁末まで印字が継続され、割
込ランプ14が点滅している。
In S29, it is determined that the printing is performed up to the end of the page,
In the next step S30, it is determined whether or not the empty area of the input buffer 31 is equal to or larger than a predetermined capacity enough for interrupt printing. Printing is continued until the end of the page, and the interrupt lamp 14 is blinking.

【0025】又、入力バッファ31の空領域が所定容量
以上となった場合には、S30の判定がYESとなりS3
1へ移行する。S31では割込表示ランプ14が点灯さ
れ、次のS32でその時の状態の入力バッファ31に記
憶されているファイルAの先頭データアドレス、データ
エンドアドレス、データ長が記憶され、S33でファイ
ルAの現書式データが書式データメモリ34に記憶され
る。この時、入力バッファ31のメモリマップは図5
(c)に示す状態となり、S34において入力バッファ
31の空領域が割込印字を行うファイルBのデータを入
力するためのサブバッファとして定義され、そのサブバ
ッファの先頭データアドレス、エンドデータアドレス等
のサブバッファのFIFOパラメータが初期設定される。そ
して、S35で割込フラグ33がオンに設定され、S2
3に戻る。
If the empty area of the input buffer 31 exceeds the predetermined capacity, the determination in S30 is YES and S3.
Move to 1. In S31, the interrupt display lamp 14 is turned on, and in the next S32, the head data address, data end address, and data length of the file A stored in the input buffer 31 at that time are stored. In S33, the current data of the file A is stored. The format data is stored in the format data memory 34. At this time, the memory map of the input buffer 31 is shown in FIG.
In the state shown in (c), the empty area of the input buffer 31 is defined as a subbuffer for inputting the data of the file B for which interrupt printing is performed in S34, and the head data address, end data address, etc. of the subbuffer are defined. The subbuffer FIFO parameters are initialized. Then, the interrupt flag 33 is set to ON in S35, and S2
Return to 3.

【0026】この時、割込フラグ33はS35でオンに
設定されたのでS23の判定はNOとなり、36へ移行す
る。S36ではサブバッファにデータが存在するか否か
が判定されるが、最初の実行サイクルではサブバッファ
にデータが存在しないので、S36の判定がNOとなり、
S37へ移行して割込スイッチ13がオフか否かが判定
され、割込スイッチ13がオフでない場合にはS21へ
戻り、BUSY信号がLレベルとされる。そして、S36で
サブバッファにデータが入力されたと判定されるまで、
S21、S22、S23、S36、S37が繰り返し実
行される。
At this time, since the interrupt flag 33 is set to ON in S35, the determination in S23 is NO, and the process proceeds to 36. In S36, it is determined whether or not there is data in the sub-buffer, but since there is no data in the sub-buffer in the first execution cycle, the determination in S36 is NO,
In step S37, it is determined whether the interrupt switch 13 is off. If the interrupt switch 13 is not off, the process returns to step S21, and the BUSY signal is set to L level. Then, until it is determined in S36 that the data is input to the sub-buffer,
S21, S22, S23, S36 and S37 are repeatedly executed.

【0027】この間、BUSY信号はLレベルであるので、
ホストコンピュータ17からファイルBのデータの送信
が可能な状態となり、ホストコンピュータ17からデー
タの送信が行われると、反転DATA STROBE信号に同期し
て図3の割込プログラムが起動される。図3において、
S1でBUSY信号がHレベルとされ、S2で割込フラグ3
3がオンか否かが判定されるが、この時、割込フラグ3
3はオンであるので、S9へ移行して入出力インタフェ
ース15に受信されたデータはサブバッファに記憶さ
れ、次のS10でそのサブバッファのFIFOパラメータが
更新される。そして、S5以下に移行して上述した反転
ACK信号が出力され、次のデータを受信するためBUSY信
号がLレベルとされる。
During this time, since the BUSY signal is at L level,
When the data of the file B can be transmitted from the host computer 17 and the data is transmitted from the host computer 17, the interrupt program of FIG. 3 is started in synchronization with the inverted DATA STROBE signal. In FIG.
The BUSY signal is set to H level in S1, and the interrupt flag 3 is set in S2.
It is determined whether or not 3 is on. At this time, the interrupt flag 3
Since 3 is on, the process proceeds to S9 and the data received by the input / output interface 15 is stored in the sub-buffer, and the FIFO parameter of the sub-buffer is updated in the next S10. Then, the process goes to S5 and below, and the above-mentioned inversion is performed.
The ACK signal is output, and the BUSY signal is set to the L level to receive the next data.

【0028】このようにして、サブバッファには図5
(d)に示すように、ファイルBのデータが記憶され
る。サブバッファにデータが入力されると、図4のメイ
ンプログラムのS36の判定がYESとなり、S38へ移
行してS24と同様にしてサブバッファのデータの1行
印字処理が実行される。そして、次のS39で、図5
(e)に示すように、サブバッファから印字された1行
印字データが削除され、S40でサブバッファのFIFOパ
ラメータが更新される。次に、S41において、サブバ
ッファはデータエンドか否かが判定され、データエンド
でない場合にはS36へ戻り上記したようにサブバッフ
ァに入力されたファイルBの印字処理が継続される。
In this way, the sub-buffer is shown in FIG.
As shown in (d), the data of the file B is stored. When the data is input to the sub-buffer, the determination in S36 of the main program in FIG. 4 becomes YES, the process proceeds to S38, and the one-line printing process of the data in the sub-buffer is executed as in S24. Then, in the next S39, FIG.
As shown in (e), the one-line print data printed from the sub-buffer is deleted, and the FIFO parameter of the sub-buffer is updated in S40. Next, in S41, it is determined whether or not the sub-buffer is at the data end. If not, the process returns to S36 and the printing process of the file B input to the sub-buffer is continued as described above.

【0029】S41でサブバッファがデータエンドと判
定されると、S40へ移行して割込スイッチ13がオフ
か否かが判定される。割込スイッチ13がオフでない場
合には、更に、ファイルBに続いて割込印字するファイ
ルCが存在するとみなして、上述したようにS34、S
35の処理を実行した後、S23へ戻る。その後、上述
したように、S23、S36、S37、S21、S22
のステップが繰り返される。この間に、ホストコンピュ
ータ17からファイルCのデータが入力されれば、その
ファイルCのデータが上述したファイルBのデータと同
様にして印字される。
When it is determined in S41 that the sub-buffer is at the data end, the process proceeds to S40 and it is determined whether the interrupt switch 13 is off. If the interrupt switch 13 is not turned off, it is further considered that there is a file C to be interrupt-printed following the file B, and S34 and S are executed as described above.
After performing the process of 35, it returns to S23. Then, as described above, S23, S36, S37, S21, S22.
The steps of are repeated. If the data of the file C is input from the host computer 17 during this time, the data of the file C is printed in the same manner as the data of the file B described above.

【0030】一方、ファイルBの印字中又はファイルC
のデータの受信待ち中(S23、S36、S37、S2
1、S22を実行中)に、割込スイッチ13がオフされ
ると、印字終了後のS42又はデータ受信待ち中のS3
7の判定がYESとなり、S43へ移行する、S43では
S32で退避されたファイルAに関する入力バッファ3
1のFIFOパラメータが復元され、次のS44ではS33
で書式データメモリ34に退避されたファイルAの印紙
中断時の書式データが復元される。そして、S45で割
込表示ランプ14が消灯され、S46で割込フラグがオ
フとされS23に戻る。この時、入力バッファ31のメ
モリマップは図5(f)に示すようになり、割込フラグ
33はS46でオフとされたのでS23の判定がYESと
なり、上述したS24以下が実行される。即ち、入力バ
ッファ31に残されているファイルAのデータの印字が
再開されることになり、入力バッファ31は図5(g)
に示すようにファイルAのデータが印字の進行に伴い順
次入力バッファ31から消去される。
On the other hand, during printing of file B or file C
Waiting to receive the data of (S23, S36, S37, S2
1, while executing S22), the interrupt switch 13 is turned off, S42 after printing is completed or S3 waiting for data reception.
The determination of 7 is YES, and the process proceeds to S43. In S43, the input buffer 3 for the file A saved in S32
The FIFO parameter of No. 1 is restored, and at S44, S33 is restored.
The format data at the time of the interruption of the stamp of the file A saved in the format data memory 34 is restored. Then, the interrupt display lamp 14 is turned off in S45, the interrupt flag is turned off in S46, and the process returns to S23. At this time, the memory map of the input buffer 31 is as shown in FIG. 5 (f), and the interrupt flag 33 is turned off in S46, so the determination in S23 is YES, and the above S24 and thereafter are executed. That is, the printing of the data of the file A remaining in the input buffer 31 is restarted, and the input buffer 31 is displayed in FIG.
As shown in, the data of the file A is sequentially erased from the input buffer 31 as the printing progresses.

【0031】又、ファイルAの印字を再開した後に、又
割込スイッチ13がオンに操作されれば、再度、他のフ
ァイルを割込印字することが可能となる。
If the interrupt switch 13 is turned on again after the printing of the file A is restarted, another file can be interrupt-printed again.

【0032】上記実施例ではファイルAの全てのデータ
を一度に入力バッファ31に入力しているため、印字動
作中はホストコンピュータ17は既にファイルAの印字
プログラムを終了している。従って、割込スイッチ13
を操作した後にホストコンピュータ17で他のファイル
Bの印字プログラムを実行させれば良いため、割込スイ
ッチ13のオンオフ状態をホストコンピュータに通知す
る必要がない。
In the above embodiment, since all the data of the file A is input to the input buffer 31 at once, the host computer 17 has already finished the printing program of the file A during the printing operation. Therefore, the interrupt switch 13
Since it suffices that the host computer 17 execute the printing program for the other file B after the operation of, there is no need to notify the host computer of the on / off state of the interrupt switch 13.

【0033】しかし、割込スイッチ13のオンオフ状態
をホストコンピュータ17に通知するようにすれば、ホ
ストコンピュータ17は割込スイッチ13のオン状態を
検出してファイルAの印字プログラムの実行を一時中断
して、ファイルBの印字プログラムを実行させることが
できるので、ファイルAの全データを一度に入力バッフ
ァ31に送信しておく必要はない。
However, if the on / off state of the interrupt switch 13 is notified to the host computer 17, the host computer 17 detects the on state of the interrupt switch 13 and suspends the execution of the print program of the file A. Since the printing program of the file B can be executed, it is not necessary to send all the data of the file A to the input buffer 31 at once.

【0034】割込印字モードに設定するための割込信号
発生手段はホストコンピュータ17から割込コマンドを
送信する手段で構成してもよい。この場合には、図3の
割込プログラムで1文字データが入力された時に入力デ
ータを判別し、割込コマンドが受信された場合に、割込
印字モードに設定するようにしてもよい。
The interrupt signal generating means for setting the interrupt print mode may be composed of means for transmitting an interrupt command from the host computer 17. In this case, the input data may be discriminated when one character data is input by the interrupt program shown in FIG. 3, and the interrupt print mode may be set when the interrupt command is received.

【0035】又、図6に示すように割込スイッチ13が
オンとなり割込印字されるデータを入力する場合に、入
力バッファ31に記憶されている最初のファイルデータ
を入力バッファ31の先頭アドレスから再配置させ、空
領域からなるサブバッファをその後に形成するようにし
てもよい。
Further, as shown in FIG. 6, when the interrupt switch 13 is turned on and the data to be interrupt printed is input, the first file data stored in the input buffer 31 is read from the start address of the input buffer 31. Alternatively, the sub-buffer may be rearranged and an empty area may be formed thereafter.

【0036】以上詳述したように、本形態ではファイル
Bの印字中に割込スイッチ13がオフされても、その割
込データの印字終了後にファイルAのデータを復元させ
るため、操作者はファイルBの印字開始を確認した後割
込スイッチ13をオフにしておけば、ファイルBの印字
とファイルAの印字とを自動的に完了させることができ
る。
As described above in detail, in the present embodiment, even if the interrupt switch 13 is turned off during the printing of the file B, the data of the file A is restored after the printing of the interrupt data is completed. If the interrupt switch 13 is turned off after confirming the start of printing B, the printing of the file B and the printing of the file A can be automatically completed.

【0037】従って、操作者がファイルBの印字終了ま
で待って割込スイッチ13をオフしてファイルAの印字
を開始させる必要がなく、操作者の作業効率を向上させ
ることができる。
Therefore, it is not necessary for the operator to wait until the printing of the file B is completed to turn off the interrupt switch 13 to start the printing of the file A, and the working efficiency of the operator can be improved.

【0038】[0038]

【発明の効果】本発明はデータの出力中に割込信号が発
生されると、そのデータの出力が中断されて別のデータ
の出力が割込まれると共に、その割込データの出力中に
割込信号がオフ状態とされても前記割込データの出力が
継続され、割込データの出力完了後に中断されたデータ
の出力が再開されるので、1つのファイルデータを出力
しているときに、そのファイルデータの出力を一時中断
して他のファイルデータを割込出力させることができる
だけでなく、操作者が割込データの出力完了を待つこと
なく割込データと中断されたデータの出力とを効率よく
完了させることができる効果を有する。
According to the present invention, when an interrupt signal is generated during the output of data, the output of the data is interrupted, the output of another data is interrupted, and the interrupt is output during the output of the interrupt data. Even if the interrupt signal is turned off, the output of the interrupt data is continued, and the output of the interrupted data is restarted after the output of the interrupt data is completed. Therefore, when outputting one file data, Not only can the output of the file data be temporarily interrupted and other file data can be output by interruption, but the output of interrupt data and interrupted data can be performed without the operator waiting for the completion of output of interrupt data. It has the effect that it can be completed efficiently.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明を具体化した印字装置の電気的構成を示
したブロックダイヤグラム図である。
FIG. 1 is a block diagram showing an electrical configuration of a printing apparatus embodying the present invention.

【図2】プリンタへのデータの入力を示したタイミング
チャートである。
FIG. 2 is a timing chart showing data input to the printer.

【図3】印字装置で使用されたCPUの処理手順を示し
たフローチャートである。
FIG. 3 is a flowchart showing a processing procedure of a CPU used in the printing apparatus.

【図4】印字装置で使用されたCPUの処理手順を示し
たフローチャートである。
FIG. 4 is a flowchart showing a processing procedure of a CPU used in the printing apparatus.

【図5】入力バッファのメモリ構成を示した説明図であ
る。
FIG. 5 is an explanatory diagram showing a memory configuration of an input buffer.

【図6】他の変形例に係る入力バッファのメモリ構成を
示した説明図である。
FIG. 6 is an explanatory diagram showing a memory configuration of an input buffer according to another modification.

【符号の説明】[Explanation of symbols]

P プリンタ 1 CPU 3 RAM 13 割込スイッチ 14 割込表示ランプ 15、16 入出力インタフェース 17 ホストコンピュータ 31 入力バッファ 32 ラインバッファ 33 割込フラグ 34 書式データメモリ P Printer 1 CPU 3 RAM 13 Interrupt switch 14 Interrupt display lamp 15, 16 Input / output interface 17 Host computer 31 Input buffer 32 Line buffer 33 Interrupt flag 34 Format data memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 出力処理中のデータに別のデータを割込
ませて出力させるデータ出力装置において、 割込信号を発生させる割込信号発生手段と、 その割込信号発生手段により発生された割込信号に基づ
いて、出力処理中のデータの出力を中断する出力中断手
段と、 その出力中断手段による中断後、前記別のデータを割込
ませる割込データ出力手段と、 前記割込信号発生手段により発生される割込信号のオフ
状態に基づいて、前記出力中断手段により中断されたデ
ータの出力を再開させるデータ出力再開手段とを備え、
前記割込データの出力中は前記割込信号のオフ状態に拘
わらず、前記割込データの出力を継続することを特徴と
するデータ出力装置。
1. A data output device for outputting another data by interrupting the data being output, and an interrupt signal generating means for generating an interrupt signal, and an interrupt signal generated by the interrupt signal generating means. An output interruption means for interrupting the output of data during output processing based on an interruption signal; an interruption data output means for interrupting the other data after interruption by the output interruption means; and the interruption signal generation means A data output resuming means for resuming the output of the data interrupted by the output interrupting means based on the off state of the interrupt signal generated by
While outputting the interrupt data, the data output device continues to output the interrupt data regardless of the off state of the interrupt signal.
JP8190338A 1996-07-19 1996-07-19 Data output device Expired - Fee Related JP2785814B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8190338A JP2785814B2 (en) 1996-07-19 1996-07-19 Data output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8190338A JP2785814B2 (en) 1996-07-19 1996-07-19 Data output device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP62177874A Division JP3019306B2 (en) 1987-07-16 1987-07-16 Printing device

Publications (2)

Publication Number Publication Date
JPH08337018A true JPH08337018A (en) 1996-12-24
JP2785814B2 JP2785814B2 (en) 1998-08-13

Family

ID=16256540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8190338A Expired - Fee Related JP2785814B2 (en) 1996-07-19 1996-07-19 Data output device

Country Status (1)

Country Link
JP (1) JP2785814B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59136852A (en) * 1983-01-27 1984-08-06 Sharp Corp Preserving method of display and print mode in display and print device
JPS6045834A (en) * 1983-08-22 1985-03-12 Fujitsu Ltd Control system for print output
JPS60178529A (en) * 1984-02-24 1985-09-12 Fujitsu Ltd Interruption control system of writer
JPS61114671A (en) * 1984-11-09 1986-06-02 Mitsubishi Electric Corp Image printer device
JPS61196326A (en) * 1985-02-27 1986-08-30 Fujitsu Ltd Priority processing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59136852A (en) * 1983-01-27 1984-08-06 Sharp Corp Preserving method of display and print mode in display and print device
JPS6045834A (en) * 1983-08-22 1985-03-12 Fujitsu Ltd Control system for print output
JPS60178529A (en) * 1984-02-24 1985-09-12 Fujitsu Ltd Interruption control system of writer
JPS61114671A (en) * 1984-11-09 1986-06-02 Mitsubishi Electric Corp Image printer device
JPS61196326A (en) * 1985-02-27 1986-08-30 Fujitsu Ltd Priority processing system

Also Published As

Publication number Publication date
JP2785814B2 (en) 1998-08-13

Similar Documents

Publication Publication Date Title
JPH07323643A (en) Error control device of printer
JP2551011B2 (en) Printer
JPH0911554A (en) Host base printer
JP3019306B2 (en) Printing device
JPH0911553A (en) Printing controlling method for host base printer and the host base printer
JPH10138569A (en) Character information-processing apparatus
JPH10291356A (en) Image forming device
JPH08337018A (en) Data outputting device
JPH08337019A (en) Data outputting device
JPH08337017A (en) Data outputting device
JP2000272203A (en) Printer apparatus
JPH08324041A (en) Printing apparatus
JP2851973B2 (en) Output method and device
JP2009226834A (en) Printing device and printing method for printing device
JPH11138918A (en) Image forming system
JPH08244314A (en) Printer system and printer and information processing apparatus in said system
JP2803322B2 (en) Printer control device
JP2003285507A (en) Printer
JP4035300B2 (en) Printing system, information processing apparatus, printing apparatus, and information processing method
JP2003228472A (en) Image-forming and reading system
JP3258130B2 (en) Print control device and printer control method
JP2907697B2 (en) Printer control device
JP4300951B2 (en) Control device and image output system using the same
JP2001010169A (en) Printing control device, its interruption printing control method and storage medium readable by computer storing its control program
JP2004362080A (en) Method, system and program for displaying printing status

Legal Events

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