JP2785813B2 - Data output device - Google Patents

Data output device

Info

Publication number
JP2785813B2
JP2785813B2 JP8190337A JP19033796A JP2785813B2 JP 2785813 B2 JP2785813 B2 JP 2785813B2 JP 8190337 A JP8190337 A JP 8190337A JP 19033796 A JP19033796 A JP 19033796A JP 2785813 B2 JP2785813 B2 JP 2785813B2
Authority
JP
Japan
Prior art keywords
data
output
interrupt
input buffer
interrupt signal
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
JP8190337A
Other languages
Japanese (ja)
Other versions
JPH08337017A (en
Inventor
裕司 岡本
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=16256523&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP2785813(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP8190337A priority Critical patent/JP2785813B2/en
Publication of JPH08337017A publication Critical patent/JPH08337017A/en
Application granted granted Critical
Publication of JP2785813B2 publication Critical patent/JP2785813B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、1つのファイルデ
ータを出力しているときに、割込んで他のファイルデー
タを出力できるデータ出力装置に関する。 【0002】 【従来の技術】最近のプリンタには、ホストコンピュー
タが一定量のデータを印字動作と無関係に連続して送信
でき送信待ち時間を少なくするために、容量の大きな入
力バッファが設けられている。 【0003】係る入力バッファを有したプリンタを使用
する場合には、ホストコンピュータは印字対象の一つの
ファイルデータの全てを入力バッファに送信した後、印
字動作の完了を待つことなく、別のジョブを実行するこ
とができる。このように、入力バッファの容量が大きい
と、ホストコンピュータの動作効率が良いという利点が
ある。 【0004】 【発明が解決しようとする課題】ところが、1つのファ
イルデータを印字している時に、緊急で他のファイルデ
ータを印字したい場合があるが、従来のプリンタは割込
印字機能がないため、入力バッファの容量が大きいと入
力バッファに記憶されているデータが全て印字されるま
で長時間待つ必要があった。このため、特に緊急を要す
る場合には、印字動作中にプリンタの電源を落として、
強制的に印字動作を中止して、他のファイルデータを印
字するより方法がなかった。このため、プリンタの使用
性が悪く、作業効率が低下するという問題があった。 【0005】本発明は、上記の問題点を解決するために
なされたものであり、簡単な操作により、データ出力動
作を一時中断させ他のデータの割込出力を可能とすると
共に、データの割込中であることを容易に確認すること
ができるデータ出力装置を提供することを目的としてい
る。 【0006】 【課題を解決するための手段】上記問題点を解決するた
めに、本発明のデータ出力装置は、出力処理中のデータ
に別のデータを割込ませて出力させるデータ出力装置に
おいて、割込信号を発生させる割込信号発生手段と、そ
の割込信号発生手段により発生された割込信号に基づい
て、出力処理中のデータの出力を中断する出力中断手段
と、その出力中断手段による中断後、前記別のデータを
割込ませる割込データ出力手段と、前記割込信号発生手
段により割込信号が発生された後、前記出力中断手段に
よる出力の中断前であることを示す第1の表示手段と、
前記割込データ出力手段による割込データの出力中であ
ることを示す第2の表示手段とを備えている。 【0007】また、本発明のデータ出力装置では、前記
第1の表示手段と前記第2の表示手段とを共通の表示ラ
ンプしてもよい。 【0008】さらに、本発明のデータ出力装置では、前
記出力されるデータは印字データであって、複数ページ
の印字出力中に前記割込信号発生手段により割込信号が
発生された場合、前記出力中断手段は現在印字中のペー
ジの出力後にその出力を中断するようにしてもよい。 【0009】また、本発明のデータ出力装置では、前記
割込信号発生手段により割込信号が 発生された後、前記
出力中断手段による出力の中断前には前記表示ランプを
点滅させ、前記割込データ出力手段による割込データの
出力中には前記表示ランプを点灯させるようにして、第
1の表示手段の作用と第2の表示手段の作用と前記表示
ランプにさせるようにしてもよい。 【0010】さらに、本発明のデータ出力装置では、通
常の印字データと割込時の印字データのいずれもが記憶
される入力バッファと、当該入力バッファの空領域の量
を判断する空領域判断手段とを備え、前記複数ページの
印字データを印字出力中に前記割込信号発生手段により
割込信号が発生された場合に、現在印字中のページの出
力後に、当該空領域判断手段により前記入力バッファの
空領域が所定量以上か否かを判断し、当該空領域が所定
量以上のときには前記出力中断手段により現在印字出力
中の前記複数ページの印字データの印字を中止して割込
データの印字を行い、前記入力バッファの空領域が所定
量より少ないときには、現在印字中の複数ページの印字
データの次のページ末までの印字を行い、再度前記空領
域判断手段により前記入力バッファの空領域が所定量以
上か否かを判断するようにしてもよい。 【0011】本発明のデータ出力装置では、データの出
力中に割込信号発生手段により割込信号が発生される
と、第1の表示手段が出力中断手段による出力の中断前
であることを表示し、出力処理中のデータの出力が出力
中断手段により中断され、その出力中断手段による中断
後、割込データ出力手段により別のデータが割込まれる
と共に、割込データの出力中であることが第2の表示手
段に表示される。 【0012】 【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。 【0013】図1は実施例に係るプリンタの電気的構成
を示したブロックダイヤグラムである。 【0014】プリンタPの制御装置を構成する中央処理
装置(以下「CPU」と記す)1にはアドレスバス、デ
ータバス、制御バスを介してROM2、RAM3、入出
力インタフェース4,5,6がそれぞれ接続されてい
る。ROM2には、各種の機能処理ルーチンを含む印字
制御プログラム、フォントパターン等が記憶されてい
る。又、RAM3には、入力データを一時記憶するFI
FO(First InFirst Out)構成の入
力バッファ31と、1行分の文字パターンを作成するラ
インバッファ32と、割込信号が検出されプリンタPを
割込印字モードに設定する割込フラグ33と、印字動作
が中断されるファイルデータの現在の書式データを記憶
する書式データメモリ34とが設けられている。 【0015】又、入出力インタフェース4,5,6に
は、それぞれ駆動装置7,8,9が接続されており、各
駆動装置には、紙送りのためのLFモータ10、印字ヘ
ッドを搭載したキャリッジを移動させるCRモータ1
1、インパクトワイヤを駆動する印字ソレノイド12
が、それぞれ接続されている。 【0016】又、入出力インタフェース6には割込信号
発生手段を構成する割込スイッチ13と割込印字モード
であることを表示する割込表示ランプ14とが接続され
ている。 【0017】又、プリンタPの入力インタフェース15
はホストコンピュータ17側の入出力インタフェース1
6と接続されており、ホストコンピュータ17側のRA
M18に記憶された印字データはホストコンピュータ1
7によりプリンタPに送信され、入力バッファ31に記
憶され、そのデータはプリンタPのCPU1の処理によ
り印字される。 【0018】次に、プリンタPのCPU1の処理手順を
図2のタイミングチャート、図3及び図4のフローチャ
ート及び図5の入力バッファのメモリマップに従って説
明する。 【0019】プリンタPの電源の投入又はリセットによ
り、図4のメインプログラムが起動される。ステップ2
0(以下「S20」と記す。以下のステップも同様)
で、各種の初期設定と共に入力バッファ31がクリアさ
れ割込フラグ33がオフに初期設定され、次のS21で
アクティブハイのBUSY信号がLレベルとされる。即
ち、図2のタイミングチャートにおいて、時刻t1でB
USY信号がLレベルとなり、プリンタPはNOT B
USYとなり、ホストコンピュータ17からデータの受
信が可能な状態となる。 【0020】次に、S22へ移行して入力バッファ31
にデータが有るか否かが判定される。最初の実行サイク
ルでは入力バッファ31にはデータが存在しないためS
22の判定結果はNOとなり、S21へ戻る。最初の実
行サイクルでは既にBUSY信号はLレベルとされてお
り、BUSY信号の信号レベルは一度設定されると次に
設定されるまでラッチされる。従って、プリンタPの電
源が投入されて、ホストコンピュータ17からデータが
受信されるまでの間は、S21、S22の処理が繰り返
される。 【0021】一方、ホストコンピュータ17においてプ
リンタ出力ルーチンが実行されると、そのプリンタ出力
ルーチンではBUSY信号のレベル判定が行われる。B
USY信号がLレベルの時はプリンタPは受信可能状態
であることを意味しており、時刻t2において、BUS
Y信号がLレベルにあることが検出されて8ビットパラ
レルのDATA信号が出力され、時刻t3においてその
信号の読込タイミングを付与するアクティブローの反転
DATA STROBE信号が出力される。 【0022】このアクティブローの反転DATA ST
ROBE信号が入出力インタフェース15に入力される
と、その反転DATA STROBE信号が割込信号と
してCPU1に入力され、図3に示す割込プログラムが
実行される。 【0023】S1の実行される時刻t3において、ホス
トコンピュータ17から次のデータの送信を禁止するた
め、BUSY信号がHレベルとされる。そして、次のS
2で割込フラグ33がオン否かが判定されるが、最初
の実行サイクルでは割込フラグ33はオフであるので、
S2の判定はNOとなりS3へ移行する。S3では入出
力インタフェース15に入力された1文字分のデータが
読み込まれ、そのデータは入力バッファ31に記憶さ
れ、次のS4で入力バッファ31の先頭データアドレ
ス、終端データアドレス、データ長等のFIFOパラメ
ータが更新される。 【0024】次に、S5において、データ受信の確認を
ホストコンピュータ17に通知するために、S5が実行
される時刻t4で反転ACK信号がLレベルとされ、S
6が実行される時刻t5で反転ACK信号がHレベルと
される。結局、負パルス、アクティブローの反転ACK
信号がホストコンピュータ17に入出力インタフエース
15を介して出力される。 【0025】そして、S7で入力バッファ31に空領域
が存在するか否かが判定されるが、最初の実行サイクル
では入力バッファ31には空領域が存在するため、S8
へ移行して次のデータの受信許可をホストコンピュータ
17に通知するため、S8の実行される時刻t5におい
て入出力インタフェース15を介してBUSY信号がL
レベルとされ、本割込プログラムの処理が終了する。割
込プログラムが終了すると、CPU1は図5のメインプ
ログラムのS21、S22のループに復帰する。一方、
ホストコンピュータ17は、BUSY信号がLレベルに
なったことを検出して送信データが有れば、時刻t6に
おいて次の8ビットパラレルのDATA信号が出力さ
れ、時刻t7において反転DATA STROBE信号
がプリンタPに出力される。そして、CPU1はその反
転DATA STROBE信号により、再度、図3の割
込プログラムを実行し、データの受信処理が行われる。
このように、上記割込プログラムのS1〜S8の処理の
繰り返しにより、入力バッファ31には、図5(a)に
示すように、印字するファイルAのデータが全て記憶さ
れる。 【0026】次に、図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から削除され、その
領域は空領域に開放される。 【0027】このようにして、入力バッファ31に入力
されているファイルAのデータが印字されている時に、
割込スイッチ13が操作されると、S27の判定がYE
Sとなり、次のS28にて、割込スイッチ13を受け付
けたことを示すために、割込表示ランプ14を点滅させ
る。そして、S29にてファイルAのデータ頁末まで
印字されたか否かが判定される。尚、割込スイッチ13
のオンオフ状態は1回の操作毎に反転し、次に操作され
るまでそのオンオフ状態はラッチされている。ファイル
Aのデータ頁末まで印字完了していない場合には、S
22へ戻りS29で頁末まで印字が完了するまで上記し
た印字処理が継続されると共に割込ランプ14が点滅し
ている。 【0028】S29で頁末まで印字されたと判定され、
次のS30で入力バッファ31の空領域が割込印字が可
能なだけの所定容量以上か否かが判定され、所定量以上
存在しない場合にはS22へ戻り入力バッファ31の空
領域が所定容量以上となる頁末まで印字が継続され、割
込ランプ14が点滅している。 【0029】又、入力バッファ31の空領域が所定容量
以上となった場合には、S30の判定がYESとなりS
31へ移行する。S31では割込表示ランプ14が点灯
され、次のS32でその時の状態の入力バッファ31に
記憶されているファイルAの先頭データアドレス、デー
タエンドアドレス、データ長が記憶され、S33でファ
イルAの現書式データが書式データメモリ34に記憶さ
れる。この時、入力バッファ31のメモリマップは図5
(c)に示す状態となり、S34において入力バッファ
31の空領域が割込印字を行うファイルBのデータを入
力するためのサブバッファとして定義され、そのサブバ
ッファの先頭データアドレス、エンドデータアドレス等
のサブバッファのFIFOパラメータが初期設定され
る。そして、S35で割込フラグ33がオンに設定さ
れ、S23に戻る。 【0030】この時、割込フラグ33はS35でオンに
設定されたのでS23の判定はNOとなり、36へ移行
する。S36ではサブバッファにデータが存在するか否
かが判定されるが、最初の実行サイクルではサブバッフ
ァにデータが存在しないので、S36の判定がNOとな
り、S37へ移行して割込スイッチ13がオフか否かが
判定され、割込スイッチ13がオフでない場合にはS2
1へ戻り、BUSY信号がLレベルとされる。そして、
S36でサブバッファにデータが入力されたと判定され
るまで、S21、S22、S23、S36、S37が繰
り返し実行される。 【0031】この間、BUSY信号はLレベルであるの
で、ホストコンピュータ17からファイルBのデータの
送信が可能な状態となり、ホストコンピュータ17から
データの送信が行われると、反転DATA STROB
E信号に同期して図3の割込プログラムが起動される。
図3において、S1でBUSY信号がHレベルとされ、
S2で割込フラグ33がオンか否かが判定されるが、こ
の時、割込フラグ33はオンであるので、S9へ移行し
て入出力インタフェース15に受信されたデータはサブ
バッファに記憶され、次のS10でそのサブバッファの
FIFOパラメータが更新される。そして、S5以下に
移行して上述した反転ACK信号が出力され、次のデー
タを受信するためBUSY信号がLレベルとされる。 【0032】このようにして、サブバッファには図5
(d)に示すように、ファイルBのデータが記憶され
る。サブバッファにデータが入力されると、図4のメイ
ンプログラムのS36の判定がYESとなり、S38へ
移行してS24と同様にしてサブバッファのデータの1
行印字処理が実行される。そして、次のS39で、図5
(e)に示すように、サブバッファから印字された1行
印字データが削除され、S40でサブバッファのFIF
Oパラメータが更新される。次に、S41において、サ
ブバッファはデータエンドか否かが判定され、データエ
ンドでない場合にはS36へ戻り上記したようにサブバ
ッファに入力されたファイルBの印字処理が継続され
る。 【0033】S41でサブバッファがデータエンドと判
定されると、S40へ移行して割込スイッチ13がオフ
か否かが判定される。割込スイッチ13がオフでない場
合には、更に、ファイルBに続いて割込印字するファイ
ルCが存在するとみなして、上述したようにS34、S
35の処理を実行した後、S23へ戻る。その後、上述
したように、S23、S36、S37、S21、S22
のステップが繰り返される。この間に、ホストコンピュ
ータ17からファイルCのデータが入力されれば、その
ファイルCのデータが上述したファイルBのデータと同
様にして印字される。 【0034】一方、ファイルBの印字中又はファイルC
のデータの受信待ち中(S23、S36、S37、S2
1、S22を実行中)に、割込スイッチ13がオフされ
ると、印字終了後のS42又はデータ受信待ち中のS3
7の判定がYESとなり、S43へ移行する、S43で
はS32で退避されたファイルAに関する入力バッファ
31のFIFOパラメータが復元され、次のS44では
S33で書式データメモリ34に退避されたファイルA
の印紙中断時の書式データが復元される。そして、S4
5で割込表示ランプ14が消灯され、S46で割込フラ
グがオフとされS23に戻る。この時、入力バッファ3
1のメモリマップは図5(f)に示すようになり、割込
フラグ33はS46でオフとされたのでS23の判定が
YESとなり、上述したS24以下が実行される。即
ち、入力バッファ31に残されているファイルAのデー
タの印字が再開されることになり、入力バッファ31は
図5(g)に示すようにファイルAのデータが印字の進
行に伴い順次入力バッファ31から消去される。 【0035】又、ファイルAの印字を再開した後に、又
割込スイッチ13がオンに操作されれば、再度、他のフ
ァイルを割込印字することが可能となる。 【0036】上記実施例ではファイルAの全てのデータ
を一度に入力バッファ31に入力しているため、印字動
作中はホストコンピュータ17は既にファイルAの印字
プログラムを終了している。従って、割込スイッチ13
を操作した後にホストコンピュータ17で他のファイル
Bの印字プログラムを実行させれば良いため、割込スイ
ッチ13のオンオフ状態をホストコンピュータに通知す
る必要がない。 【0037】しかし、割込スイッチ13のオンオフ状態
をホストコンピュータ17に通知するようにすれば、ホ
ストコンピュータ17は割込スイッチ13のオン状態を
検出してファイルAの印字プログラムの実行を一時中断
して、ファイルBの印字プログラムを実行させることが
できるので、ファイルAの全データを一度に入力バッフ
ァ31に送信しておく必要はない。 【0038】割込印字モードに設定するための割込信号
発生手段はホストコンピュータ17から割込コマンドを
送信する手段で構成してもよい。この場合には、図3の
割込プログラムで1文字データが入力された時に入力デ
ータを判別し、割込コマンドが受信された場合に、割込
印字モードに設定するようにしてもよい。 【0039】又、図6に示すように割込スイッチ13が
オンとなり割込印字されるデータを入力する場合に、入
力バッファ31に記憶されている最初のファイルデータ
を入力バッファ31の先頭アドレスから再配置させ、空
領域からなるサブバッファをその後に形成するようにし
てもよい。 【0040】以上詳述したように、本形態では割込表示
ランプ14を利用してファイルAのデータが頁末まで印
字完了していない場合はその割込表示ランプ14を点滅
させ、ファイルBの印字と共に割込表示ランプ14を点
灯させているため、割込スイッチ13が操作された後、
割込印字が開始されたか否かの状態を正確に識別でき、
しかも単一の割込表示ランプ14により安価に構成する
ことができる。 【0041】 【発明の効果】本発明はデータの出力中に割込信号が発
生されると、第1の表示手段が出力中断手段による出力
の中断前であることを表示し、出力処理中のデータの出
力が出力中断手段により中断され、その出力中断手段に
よる中断後、割込データ出力手段により別のデータが割
込まれると共に、割込データの出力中であることが第2
の表示手段により表示される。従って、1つのファイル
データを出力しているときに、そのファイルデータの出
力を一時中断して他のファイルデータを割込出力させる
ことができるだけでなく、出力中断手段による出力中断
前であること及び割込データの出力中であることを容易
に確認することができる効果を有する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data output device capable of interrupting and outputting other file data when one file data is being output. 2. Description of the Related Art Recent printers are provided with a large-capacity input buffer so that a host computer can continuously transmit a fixed amount of data irrespective of a printing operation and reduce transmission waiting time. I have. In the case of using a printer having such an input buffer, the host computer transmits all the file data to be printed to the input buffer, and then executes another job without waiting for the completion of the printing operation. Can be performed. Thus, when the capacity of the input buffer is large, there is an advantage that the operation efficiency of the host computer is good. However, there is a case where one file data is being printed and another file data needs to be printed urgently. However, the conventional printer does not have an interrupt printing function. When the capacity of the input buffer is large, it is necessary to wait for a long time until all the data stored in the input buffer is printed. For this reason, especially in case of urgency, turn off the printer power during the printing operation,
There was no alternative to forcibly stopping the printing operation and printing other file data. For this reason, there is a problem that the usability of the printer is poor and the working efficiency is reduced. SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. The data output operation can be temporarily interrupted by a simple operation to enable the interrupt output of other data. It is an object of the present invention to provide a data output device capable of easily confirming that data is being loaded. [0006] In order to solve the above problems, a data output device according to the present invention provides a data output device which performs data output processing.
Data output device that interrupts and outputs other data
Means for generating an interrupt signal;
Based on the interrupt signal generated by the interrupt signal generating means of
Output interruption means for interrupting the output of data during output processing
And after the interruption by the output interruption means,
Interrupt data output means for interrupting, and a means for generating the interrupt signal.
After an interrupt signal is generated by the stage,
First display means for indicating that the output has not been interrupted,
While the interrupt data is being output by the interrupt data output means,
Second display means for indicating that the Further, in the data output device of the present invention,
The first display means and the second display means share a common display line.
May be pumped. Further, in the data output device of the present invention,
The output data is print data,
The interrupt signal is generated by the interrupt signal
If an error occurs, the output suspending means outputs the page currently being printed.
The output may be interrupted after the output of the page. Further , in the data output device of the present invention,
After the interrupt signal is generated by the interrupt signal generating means ,
Before the output is interrupted by the output interrupting means,
Flashes, and outputs the interrupt data by the interrupt data output means.
The indicator lamp is turned on during output,
Action of first display means, action of second display means, and display
A lamp may be used. Further, in the data output device of the present invention,
Both normal print data and print data at interrupt are stored
Input buffer and the amount of free space in the input buffer
And an empty area determining means for determining
While the print data is being printed out, the interrupt signal generation means
When an interrupt signal is generated, the page currently being printed is displayed.
After the input, the empty area determination means
Judge whether the sky area is equal to or more than a predetermined amount, and
If the amount is more than the current output,
Stop printing of the print data of the above multiple pages and interrupt
Data is printed and the empty area of the input buffer is
If less than the amount, print multiple pages currently being printed
Print until the end of the next page of data, and then
The empty area of the input buffer is equal to or less than a predetermined amount by the area determination means.
It may be determined whether it is above or not. In the data output device according to the present invention, when the interrupt signal is generated by the interrupt signal generating means during the data output, the first display means displays the signal before the output is interrupted by the output interrupting means.
The output of the data during the output processing is interrupted by the output interrupting means. After the interruption by the output interrupting means, another data is interrupted by the interrupt data output means, and the output of the interrupt data is performed. The fact that it is in the middle is displayed on the second display means. Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the electrical configuration of the printer according to the embodiment. A central processing unit (hereinafter, referred to as "CPU") 1 constituting a control unit of the printer P has a ROM 2, a RAM 3, and input / output interfaces 4, 5, 6 via an address bus, a data bus, and a control bus, respectively. It is connected. The ROM 2 stores a print control program including various function processing routines, font patterns, and the like. In the RAM 3, an FI for temporarily storing input data is provided.
An input buffer 31 having an FO (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 to an interrupt print mode, and printing. A format data memory 34 for storing the current format data of the file data whose operation is to be interrupted is provided. Drive units 7, 8, and 9 are connected to the input / output interfaces 4, 5, and 6, respectively. Each drive unit has an LF motor 10 for feeding paper and a print head. CR motor 1 for moving carriage
1. Printing solenoid 12 for driving impact wire
Are connected respectively. 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 for displaying an interrupt print mode. The input interface 15 of the printer P
Is the input / output interface 1 on the host computer 17 side
6 and the RA on the host computer 17 side.
The print data stored in M18 is stored in the host computer 1
7, the data is transmitted 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. 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. 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, the input buffer 31 is cleared together with various initial settings, the interrupt flag 33 is initially set to off, and the active-high BUSY signal is set to the L level in the next S21. That is, in the timing chart of FIG.
The USY signal goes to L level, and the printer P
The state becomes USY, and data can be received from the host computer 17. Next, the flow shifts to S22, where the input buffer 31
Is determined whether or not there is data. In the first execution cycle, since no data exists in the input buffer 31, S
The determination result at 22 is NO, and the process returns to S21. In the first execution cycle, the BUSY signal is already at the L level, and once the BUSY signal level is set, it is latched until the next setting. Therefore, the processes of S21 and S22 are repeated until the power of the printer P is turned on and the data is received from the host computer 17. On the other hand, when a printer output routine is executed in the host computer 17, the level of the BUSY signal is determined in the printer output routine. B
When the USY signal is at the L level, it means that the printer P is in a receivable state.
It is detected that the Y signal is at the L level, an 8-bit parallel DATA signal is output, and at time t3, an active-low inverted DATA STROBE signal for giving a read timing of the signal is output. This active-low inverted DATA ST
When the ROBE 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. At time t3 when S1 is executed, the BUSY signal is set to the H level to prohibit transmission of the next data from the host computer 17. And the next S
At 2, it is determined whether or not the interrupt flag 33 is on. However , since the interrupt flag 33 is off in the first execution cycle,
The determination in S2 becomes NO, and the process proceeds to S3. In S3, the data of one character input to the input / output interface 15 is read, and the data is stored in the input buffer 31. In the next S4, the FIFO of the input buffer 31 such as the start data address, the end data address, and the data length is input. The parameters are updated. Next, at S5, to notify the host computer 17 of the confirmation of the data reception, the inverted ACK signal is set to the L level at time t4 when S5 is executed.
At time t5 when step 6 is executed, the inverted ACK signal is set to the H level. After all, negative pulse, active low inverted ACK
The signal is output to the host computer 17 via the input / output interface 15. Then, it is determined in S7 whether or not an empty area exists in the input buffer 31. Since an empty area exists in the input buffer 31 in the first execution cycle, S8 is executed.
To notify the host computer 17 of permission to receive the next data, the BUSY signal goes low via the input / output interface 15 at time t5 when S8 is executed.
Level, and the processing of this interrupt program ends. When the interrupt program ends, the CPU 1 returns to the loop of S21 and S22 of the main program of FIG. on the other hand,
The host computer 17 detects that the BUSY signal has become L level, and if there is transmission data, outputs the next 8-bit parallel DATA signal at time t6, and outputs the inverted DATA STROBE signal to the printer P at time t7. Is output to Then, the CPU 1 executes the interrupt program of FIG. 3 again by the inverted DATA STROBE signal, and the data receiving process is performed.
As described above, by repeating the processing of S1 to S8 of the interrupt program, the input buffer 31 stores all data of the file A to be printed, as shown in FIG. Next, returning to FIG. 4, if data is input to the input buffer 31 and the determination in S22 becomes YES, the process proceeds to S23.
Then, it is determined whether or not the interrupt flag 33 is off.
In the first execution cycle of S23, since the interrupt flag 33 is off, the determination in S23 is YES, and the flow shifts to S24 to read one line of data from the input buffer 31 and store it in the line buffer 32 for one line. Is formed, and a one-line printing process is performed. And the next S
The one-line print data printed in step S25 is deleted from the input buffer 31, and in step S26, the FIFO in the input buffer 31 is deleted.
The parameters are updated, and in the next S27, the interrupt switch 13
Is turned on. If the interrupt switch 13 is not turned on, the interrupt switch 13 is determined to be off and the process returns to S22, and the printing process of the next line is sequentially executed by the above-described process. As shown in FIG. 5B, the memory map of the input buffer 31 is deleted from the input buffer 31 in accordance with the progress of the printing process, and the data whose printing is completed is released to an empty area. As described above, 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 YE
In S, the interrupt indicator lamp 14 is flickered in the next S28 to indicate that the interrupt switch 13 has been received. Then, in S29, it is determined whether or not the data of the file A has been printed to the end of the page. The interrupt switch 13
The on / off state is inverted each time the operation is performed, and the on / off state is latched until the next operation. If the data of file A has not been printed to the end of the page,
Returning to S22, the above-described printing process is continued until printing is completed to the end of the page in S29, and the interrupt lamp 14 is blinking. At S29, it is determined that printing has been performed up to the end of the page.
In the next S30, it is determined whether or not the empty area of the input buffer 31 is equal to or more than a predetermined capacity enough for interrupt printing, and if not, the flow returns to S22 and the empty area of the input buffer 31 is equal to or more than the predetermined capacity. Is continued until the end of the page, and the interrupt lamp 14 is blinking. If the empty area of the input buffer 31 is equal to or larger than the predetermined capacity, the determination in S30 becomes YES, and S
Move to 31. In S31, the interrupt indicator lamp 14 is turned on. 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. 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.
(C), the empty area of the input buffer 31 is defined as a sub-buffer for inputting the data of the file B to be subjected to the interrupt printing in S34, and the head data address, end data address, etc. of the sub-buffer are defined. The sub-buffer FIFO parameters are initialized. Then, the interrupt flag 33 is set to ON in S35, and the process returns to S23. 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 data exists in the sub-buffer. However, since data does not exist in the sub-buffer in the first execution cycle, the determination in S36 is NO, the process proceeds to S37, and the interrupt switch 13 is turned off. It is determined whether or not the interrupt switch 13 is not turned off.
Returning to 1, the BUSY signal is set to L level. And
Until it is determined in S36 that data has been input to the sub-buffer, S21, S22, S23, S36, and S37 are repeatedly executed. During this time, the BUSY signal is at the L level, so that the host computer 17 can transmit data of the file B. When the data is transmitted from the host computer 17, the inverted DATA STROB is output.
The interrupt program of FIG. 3 is started in synchronization with the E signal.
In FIG. 3, the BUSY signal is set to the H level in S1,
At S2, it is determined whether or not the interrupt flag 33 is on. At this time, since the interrupt flag 33 is on, the process proceeds to S9, where the data received by the input / output interface 15 is stored in the sub-buffer. In the next S10, the FIFO parameters of the sub-buffer are updated. Then, the process proceeds to S5 and thereafter, the above-described inverted ACK signal is output, and the BUSY signal is set to the L level to receive the next data. As described above, the sub-buffer shown in FIG.
As shown in (d), the data of the file B is stored. When data is input to the sub-buffer, the determination in S36 of the main program in FIG. 4 becomes YES, and the process proceeds to S38, where 1
Line printing processing is executed. Then, in the next S39, FIG.
As shown in (e), the one line print data printed from the sub-buffer is deleted, and the
The O parameter is updated. 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. When it is determined in S41 that the sub-buffer is in the data end state, the flow shifts to S40, where it is determined whether or not the interrupt switch 13 is off. If the interrupt switch 13 is not turned off, it is further assumed that there is a file C to be subjected to interrupt printing following the file B, and as described above, S34 and S
After performing the process of S35, the process returns to S23. Thereafter, as described above, S23, S36, S37, S21, S22
Are repeated. During this time, if the data of the file C is input from the host computer 17, the data of the file C is printed in the same manner as the data of the file B described above. On the other hand, while the file B is being printed or the file C
Waiting for data reception (S23, S36, S37, S2
1, while S22 is being executed), if the interrupt switch 13 is turned off, S42 after printing is completed or S3 waiting for data reception.
7 is YES, the process proceeds to S43. In S43, the FIFO parameters of the input buffer 31 relating to the file A saved in S32 are restored. In the next S44, the file A saved in the format data memory 34 in S33 in S33.
Is restored when the stamp is interrupted. And S4
At 5, the interrupt indicator lamp 14 is turned off, the interrupt flag is turned off at S46, and the process returns to S23. At this time, the input buffer 3
The memory map of No. 1 is as shown in FIG. 5 (f), and since the interrupt flag 33 has been turned off in S46, the determination in S23 becomes YES, and the above-described S24 and subsequent steps 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 sequentially stores the data of the file A as the printing progresses as shown in FIG. 31 is deleted. If the interrupt switch 13 is turned on after the printing of the file A is resumed, another file can be interrupt-printed again. In the above embodiment, since all the data of the file A is input to the input buffer 31 at one time, the host computer 17 has already finished the printing program of the file A during the printing operation. Therefore, the interrupt switch 13
Since the print program of another file B may be executed by the host computer 17 after the operation of the operation, the on / off state of the interrupt switch 13 does not need to be notified to the host computer. 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 printing program for the file A. Therefore, the printing program of the file B can be executed, so that it is not necessary to transmit all the data of the file A to the input buffer 31 at one time. The interrupt signal generating means for setting the interrupt print mode may be constituted by means for transmitting an interrupt command from the host computer 17. In this case, the input data may be determined when one character data is input by the interrupt program of FIG. 3, and the interrupt print mode may be set when an interrupt command is received. As shown in FIG. 6, when the interrupt switch 13 is turned on to input the data to be interrupt-printed, the first file data stored in the input buffer 31 is transferred from the head address of the input buffer 31 to the first address. Rearrangement may be performed, and a sub-buffer including an empty area may be formed later. As described in detail above, in the present embodiment, when the data of the file A is not completely printed until the end of the page by using the interrupt display lamp 14, the interrupt display lamp 14 is blinked, Since the interrupt display lamp 14 is turned on together with the printing, after the interrupt switch 13 is operated,
It is possible to accurately identify whether interrupt printing has started or not,
In addition, a single interrupt indicator lamp 14 can be used at a low cost. According to the present invention, when an interrupt signal is generated during output of data, the first display means outputs the data by the output interrupt means.
Before interruption of data output, and output of data during output processing
The power is interrupted by the output interruption means, and the output interruption means
Interrupted, another data is interrupted by the interrupt data output means.
While the interrupt data is being output.
Is displayed by the display means. Therefore, when one file data is being output, not only can the output of that file data be temporarily interrupted to interrupt the output of other file data, but also the output
This has the effect that it is possible to easily confirm that it is before and that the interrupt data is being output.

【図面の簡単な説明】 【図1】本発明を具体化した印字装置の電気的構成を示
したブロックダイヤグラム図である。 【図2】プリンタへのデータの入力を示したタイミング
チャートである。 【図3】印字装置で使用されたCPUの処理手順を示し
たフローチャートである。 【図4】印字装置で使用されたCPUの処理手順を示し
たフローチャートである。 【図5】入力バッファのメモリ構成を示した説明図であ
る。 【図6】他の変形例に係る入力バッファのメモリ構成を
示した説明図である。 【符号の説明】 P プリンタ 1 CPU 3 RAM 13 割込スイッチ 14 割込表示ランプ 15、16 入出力インタフェース 17 ホストコンピュータ 31 入力バッファ 32 ラインバッファ 33 割込フラグ 34 書式データメモリ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an electrical configuration of a printing apparatus embodying the present invention. FIG. 2 is a timing chart showing data input to a printer. FIG. 3 is a flowchart illustrating a processing procedure of a CPU used in the printing apparatus. FIG. 4 is a flowchart illustrating a processing procedure of a CPU used in the printing apparatus. FIG. 5 is an explanatory diagram showing a memory configuration of an input buffer. FIG. 6 is an explanatory diagram showing a memory configuration of an input buffer according to another modification. [Description of Signs] P Printer 1 CPU 3 RAM 13 Interrupt switch 14 Interrupt indicator lamp 15, 16 I / O interface 17 Host computer 31 Input buffer 32 Line buffer 33 Interrupt flag 34 Format data memory

Claims (1)

(57)【特許請求の範囲】 1.出力処理中のデータに別のデータを割込ませて出力
させるデータ出力装置において、 割込信号を発生させる割込信号発生手段と、 その割込信号発生手段により発生された割込信号に基づ
いて、出力処理中のデータの出力を中断する出力中断手
段と、 その出力中断手段による中断後、前記別のデータを割込
ませる割込データ出力手段と、前記割込信号発生手段により割込信号が発生された後、
前記出力中断手段による出力の中断前であることを示す
第1の表示手段と、 前記 割込データ出力手段による割込データの出力中であ
ることを示す第2の表示手段とを備えたことを特徴とす
るデータ出力装置。2.前記第1の表示手段と前記第2の表示手段とを共通
の表示ランプにしたことを特徴とする請求項1に記載の
データ出力装置。 3.前記出力されるデータは印字データであって、複数
ページの印字出力中に前記割込信号発生手段により割込
信号が発生された場合、前記出力中断手段は現在印字中
のページの出力後にその出力を中断することを特徴とす
る請求項1又は2に記載のデータ出力装置。 4.前記割込信号発生手段により割込信号が発生された
後、前記出力中断手段による出力の中断前には前記表示
ランプを点滅させ、前記割込データ出力手段による割込
データの出力中には前記表示ランプを点灯させることを
特徴とする請求項2に記載のデータ出力装置。 5.さらに、通常の印字データと割込時の印字データの
いずれもが記憶される入力バッファと、 当該入力バッファの空領域の量を判断する空領域判断手
段とを備え、 前記複数ページの印字データを印字出力中に前記割込信
号発生手段により割込 信号が発生された場合に、現在印
字中のページの出力後に、当該空領域判断手段により前
記入力バッファの空領域が所定量以上か否かを判断し、 当該空領域が所定量以上のときには前記出力中断手段に
より現在印字出力中の前記複数ページの印字データの印
字を中止して割込データの印字を行い、 前記入力バッファの空値域が所定量より少ないときに
は、現在印字中の複数ページの印字データの次のページ
末までの印字を行い、再度前記空領域判断手段により前
記入力バッファの空領域が所定量以上か否かを判断する
ことを特徴とする請求項3に記載のデータ出力装置。
(57) [Claims] In a data output device for outputting another data by interrupting the data being output, an interrupt signal generating means for generating an interrupt signal, and an interrupt signal generated by the interrupt signal generating means. Output interruption means for interrupting the output of data during output processing, interrupt data output means for interrupting the another data after interruption by the output interruption means, and an interrupt signal generated by the interrupt signal generation means. After being generated,
Indicates that before the output is interrupted by the output interrupting means
A data output device comprising: a first display unit; and a second display unit that indicates that interrupt data is being output by the interrupt data output unit. 2. The first display means and the second display means are common
The display lamp according to claim 1, wherein:
Data output device. 3. The output data is print data, and
Interruption by the interrupt signal generation means during page printout
When a signal is generated, the output suspending means is currently printing.
Output is interrupted after the page is output
The data output device according to claim 1. 4. An interrupt signal is generated by the interrupt signal generating means
Later, before the output is interrupted by the output interrupting means,
The lamp blinks and the interrupt by the interrupt data output means
Turn on the indicator lamp during data output.
3. The data output device according to claim 2, wherein: 5. In addition, normal print data and print data at the time of interrupt
An input buffer in which both are stored, and a vacant area determining means for determining the amount of vacant area in the input buffer.
And the interruption signal during printout of the plurality of pages of print data.
When the interrupt signal is generated by the
After outputting the page in the character,
It is determined whether or not the empty area of the input buffer is equal to or more than a predetermined amount.
The mark of the print data of the plurality of pages currently being printed out.
Printing of interrupt data by stopping characters, and when the empty range of the input buffer is smaller than a predetermined amount.
Is the next page of the print data of multiple pages currently being printed
Print until the end, and again by the empty area judgment means
Judge whether the empty area of the input buffer is equal to or larger than a predetermined amount
4. The data output device according to claim 3, wherein:
JP8190337A 1996-07-19 1996-07-19 Data output device Expired - Fee Related JP2785813B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8190337A JP2785813B2 (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
JPH08337017A JPH08337017A (en) 1996-12-24
JP2785813B2 true JP2785813B2 (en) 1998-08-13

Family

ID=16256523

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP2785813B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7022353B2 (en) * 2019-03-19 2022-02-18 ブラザー工業株式会社 Image forming device, control method of image forming device, and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5827182A (en) * 1981-08-12 1983-02-17 松下電器産業株式会社 Language practicing apparatus
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
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
JPH08337017A (en) 1996-12-24

Similar Documents

Publication Publication Date Title
JPH07323643A (en) Error control device of printer
JPH082068A (en) Printer with facsimile
JP2551011B2 (en) Printer
JPH0911554A (en) Host base printer
JP3019306B2 (en) Printing device
JP2785813B2 (en) Data output device
JPH10138569A (en) Character information-processing apparatus
JP3179466B2 (en) Printing equipment
JPH1063518A (en) Information processor and storage medium
JP2000272203A (en) Printer apparatus
JP3114935B2 (en) Printer
JP2851973B2 (en) Output method and device
JP2009226834A (en) Printing device and printing method for printing device
JPH08337019A (en) Data outputting device
JP4591087B2 (en) Printing apparatus, printing support apparatus, printing method, and printing support method
JPH08324041A (en) Printing apparatus
JPH09319531A (en) Network print system
JPH08337018A (en) Data outputting device
JP3166156B2 (en) Printer control device
JPH0577525A (en) Printer having cancel function
EP0509650B1 (en) Printer having a data output time controller
JP2803322B2 (en) Printer control device
JP2004326544A (en) Printing system
JPH0584986A (en) Image forming device
JP2003335031A (en) Printer

Legal Events

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