JP2738435B2 - Print data processing device - Google Patents

Print data processing device

Info

Publication number
JP2738435B2
JP2738435B2 JP63244589A JP24458988A JP2738435B2 JP 2738435 B2 JP2738435 B2 JP 2738435B2 JP 63244589 A JP63244589 A JP 63244589A JP 24458988 A JP24458988 A JP 24458988A JP 2738435 B2 JP2738435 B2 JP 2738435B2
Authority
JP
Japan
Prior art keywords
print data
memory card
printer
data
writing
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 - Lifetime
Application number
JP63244589A
Other languages
Japanese (ja)
Other versions
JPH0293820A (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.)
SHICHIZUN TOKEI KK
Original Assignee
SHICHIZUN TOKEI KK
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 SHICHIZUN TOKEI KK filed Critical SHICHIZUN TOKEI KK
Priority to JP63244589A priority Critical patent/JP2738435B2/en
Publication of JPH0293820A publication Critical patent/JPH0293820A/en
Application granted granted Critical
Publication of JP2738435B2 publication Critical patent/JP2738435B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、いわゆるICメモリカードについての新規な
利用技術に関するものであり、さらに具体的には、ICメ
モリカードを記憶媒体として用いたプリントデータ処理
装置を提供しようとするものである。
Description: BACKGROUND OF THE INVENTION The present invention relates to a novel use technology for a so-called IC memory card, and more specifically, to print data using an IC memory card as a storage medium. It is intended to provide a processing device.

〔従来の技術〕[Conventional technology]

近年においては、いわゆるパーソナル・コンピュータ
(以下パソコンと略記)やオフィス・コンピュータ、ワ
ークステーション、ワードプロセッサー等のOA機器が急
速に普及されつつあり、1つのオフィス内にこれらのOA
機器が数台乃至数十台設置されているというような状況
も一般的になりつつある。
In recent years, OA devices such as so-called personal computers (hereinafter abbreviated as personal computers), office computers, workstations, word processors, and the like have been rapidly spreading, and these OA devices have been installed in one office.
A situation where several to several tens of devices are installed is becoming common.

上記のようなOA機器には、外部出力装置としてはプリ
ンターが接続されるのが最も一般的であるが、実際のOA
機器の使用時間の中でプリンターが稼働している時間の
占める比率はかなり小さいこと、および高性能・高価格
のプリンターほどサイズが大きくて、オフィス内でも大
きなスペースを占有してしまうこと、等の理由から、各
OA機器にそれぞれ1台ずつのプリンターを設置しておく
ことは、非常に不経済である。
Most commonly, a printer is connected to the OA equipment as an external output device.
The ratio of the time that the printer is operating in the use time of the device is very small, and the high-performance and high-priced printer is large in size and occupies a large space in the office. For each reason
It is very uneconomical to install one printer for each OA device.

そこで従来においても、同一のプリンター制御コード
径を有する数台のOA機器に対して、切り換え器を介して
1台のプリンターを接続しておき、ユーザーがプリンタ
ーを使用したいときには、自分の使用しているOA機器と
プリンターとが接続された状態になるように、切り換え
器のロータリースイッチ等を調節するというような手法
も採用されている。
Therefore, in the past, one printer was connected to several OA devices having the same printer control code diameter via a switching device, and when the user wanted to use the printer, the user could use his own printer. A technique of adjusting a rotary switch or the like of a changer so that a connected OA device and a printer are connected is also employed.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかし前述のようなプリンター切り換え器を使用した
場合には、1台のプリンターを共用するOA機器は、あく
までも切り換え器を介してケーブルで相互に接続される
必要があるために、同一のプリンターを共有する複数の
OA機器は互いに近接して配置しなければならず、オフィ
ス内のスペース配置までも限定してしまうという欠点が
ある。
However, when the printer switcher described above is used, OA devices that share one printer must share the same printer because they must be connected to each other by cables through the switcher. Multiple
OA devices must be arranged close to each other, and there is a disadvantage in that the space arrangement in the office is limited.

また切り換え器を介して接続されているプリンターが
他のユーザーによって使用されている場合には、たとえ
別のプリンターが空いている場合でも、それを使用する
ためにはケーブルを外して繋ぎ換える必要があり、非常
に繁雑であること、さらには離れた場所にある空きプリ
ンターを使用したい場合には、現在使用しているOA機器
上の処理を中断して、空いているプリンターの近くのOA
機器上で処理を再開し直さなければならないこと、等の
欠点もある。
Also, if the printer connected via the switch is being used by another user, it is necessary to disconnect and reconnect the cable to use it even if another printer is available. Yes, it is very complicated, and even if you want to use a vacant printer at a remote location, interrupt the processing on the OA equipment currently in use and close the OA near the vacant printer.
There are also drawbacks, such as the need to restart processing on the device.

本発明の目的は、OA機器とプリンターとの間の結合の
オフライン化を可能にすることにより、互いに離れた位
置にある複数のOA機器が1台以上のプリンターを共用で
きるようなプリントデータ処理装置を提供することにあ
る。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a print data processing apparatus in which a plurality of OA devices located at a distance from each other can share one or more printers by enabling offline connection of the OA device and a printer. Is to provide.

〔課題を解決するための手段〕[Means for solving the problem]

上記の目的を達成するための本発明の構成を、第1図
の機能ブロック図に基づいて説明する。
The configuration of the present invention for achieving the above object will be described based on the functional block diagram of FIG.

本発明によるプリントデータ処理装置は、パーソナル
コンピュータ等のホスト機器とプリンターとの間を接続
するため使用されるプリンター用インターフェース手段
1と、ICメモリカード2にアクセスするためのメモリカ
ード用インターフェース手段3と、プリントデータ書き
込み機能と読み出し機能のいずれか一方の機能を選択す
るための機能切り換え手段4と、書き込み制御手段5
と、読み出し制御手段6とを有している。なお前記ICメ
モリカード2は、記憶素子として電気的に書き変え可能
なSRAMまたはEEP−ROMを用いたもので、かつメモリカー
ド用インターフェース手段3を介して、プリントデータ
処理装置自体に対して着脱可能である。
The print data processing apparatus according to the present invention includes a printer interface unit 1 used to connect a host device such as a personal computer and a printer, a memory card interface unit 3 for accessing an IC memory card 2, Function switching means 4 for selecting one of the print data writing function and the reading function, and writing control means 5
And read control means 6. The IC memory card 2 uses an electrically rewritable SRAM or EEP-ROM as a storage element, and is detachable from the print data processing device itself via the memory card interface unit 3. It is.

書き込み制御手段5は、機能切り換え手段4によって
前記書き込み機能が選択されているときに外部機器(こ
の場合にはパソコン等のOA機器本体が該当)7からプリ
ンター用インターフェース手段1を介して送られてくる
プリントアウト・データおよびプリンター制御用データ
を、メモリカード用インターフェース手段3を介してIC
メモリカード2に記憶書き込みするためのものである。
The writing control means 5 is sent from the external device 7 (in this case, an OA device main body such as a personal computer) through the printer interface means 1 when the writing function is selected by the function switching means 4. Coming out printout data and printer control data through the memory card interface means 3 through the IC
This is for storing and writing in the memory card 2.

読み出し制御手段6は、機能切り換え手段4によって
前記読み出し機能が選択されているときに、メモリカー
ド用インターフェース3を介してICメモリカード2内の
プリントアウト・データおよびプリンター制御用データ
を読み出し、さらに該読み出したデータを、プリンター
用インターフェース手段1を介して外部機器(この場合
にはプリンターが該当)7に送信するためのものであ
る。
When the read function is selected by the function switching means 4, the read control means 6 reads the printout data and the printer control data in the IC memory card 2 via the memory card interface 3, and further reads out the data. This is for transmitting the read data to an external device (in this case, a printer) 7 via the printer interface unit 1.

なお第2図(a)、(b)は、本発明によるプリント
データ処理装置の使用方法を示すための概念図である。
FIGS. 2A and 2B are conceptual diagrams showing how to use the print data processing apparatus according to the present invention.

本発明によるプリントデータ処理装置10は、プリンタ
ー用インターフェース手段の一部として、いわゆるセン
トロニクス規格に準拠したパラレル・インターフェース
用コネクタ11を有している。
The print data processing device 10 according to the present invention has a parallel interface connector 11 conforming to the so-called Centronics standard as a part of the printer interface means.

ICメモリカード2へのデータ書き込みを行う場合に
は、前述の機能切り換え手段によって書き込み機能を選
択している状態に制御するとともに、前記コネクタ11を
介して、パソコン等のOA機器本体7aを接続する。
When writing data to the IC memory card 2, control is performed so that the writing function is selected by the above-described function switching means, and an OA device main body 7a such as a personal computer is connected via the connector 11. .

この場合、OA機器本体7aにプリントアウト命令を下す
と、OA機器本体7aからはプリントアウト・データ(実際
にプリンターによってプリントされるべきデータ)とプ
リンター制御用データ(印字実行命令や行替え命令等、
プリンターの動作や状態自体に関する命令コード・デー
タ)とが出力されるが、プリントデータ処理装置は、プ
リントアウト・データとプリンター制御用データの両デ
ータ(以下、この両データをプリントデータと総称す
る)を受け取ると、そのままの順序でICメモリカード2
に記憶書き込みする。
In this case, when a printout command is issued to the OA device body 7a, the printout data (data to be actually printed by the printer) and printer control data (print execution command, line change command, etc.) are output from the OA device body 7a. ,
The print data processing device outputs both printout data and printer control data (hereinafter, these data are collectively referred to as print data). Received, the IC memory card 2 in the same order
Write to the memory.

なお上記のプリントデータは、ICメモリカード2のプ
リントデータ記憶エリアに記憶書き込みされるが、プリ
ントデータ制御装置10は、ICメモリカード2のメモリ領
域上において、前記プリントデータ記憶エリア以外に、
認識コードエリアとデータエンド・アドレスエリアを確
保するように構成されており、前記認識コードエリアに
対しては所定の認識コードの書き込みを実行し、また前
記データエンド・アドレスエリアに対しては、前記プリ
ントデータの記憶書き込みが終了したときに、そのエン
ドアドレスの書き込みを実行する。
The print data described above is stored and written in the print data storage area of the IC memory card 2.
It is configured to secure a recognition code area and a data end address area, execute writing of a predetermined recognition code in the recognition code area, and execute the writing in the data end address area. When the storage and writing of the print data is completed, the writing of the end address is executed.

一方、ICメモリカード2からのデータの読み出しを行
う場合には、前述の機能切り換え手段によって読み出し
機能を選択している状態に制御するとともに、前記コネ
クタ11を介して、プリントデータ処理装置10をプリンタ
ー7bと接続する。
On the other hand, when reading data from the IC memory card 2, control is performed so that the read function is selected by the above-described function switching means, and the print data processing apparatus 10 is connected to the printer via the connector 11. Connect with 7b.

この場合には、プリントデータ処理装置10はICメモリ
カード2内の認識コードエリアに記憶されているデータ
が所定の認識コードであるかどうかの判定を行い、その
結果、適切であると判定されたときのみ、プリントデー
タ記憶エリアに記憶されているプリントデータを順次読
み出すとともに、読み出したプリントデータを、前記コ
ネクター11を介してプリンター7bに送信する。
In this case, the print data processing device 10 determines whether the data stored in the recognition code area in the IC memory card 2 is a predetermined recognition code, and as a result, is determined to be appropriate. Only at this time, the print data stored in the print data storage area is sequentially read, and the read print data is transmitted to the printer 7b via the connector 11.

この結果、プリンター7bは、データ書き込み時にOA機
器本体から出力されたプリントデータに従ったプリント
動作を実行することになる。またプリントデータ処理装
置10は、プリントデータの読み出し対象のアドレスがデ
ータエンド・アドレスエリアに記憶されているエンドア
ドレスまで到達したら、そこでプリントデータの読み出
しを終了する。
As a result, the printer 7b executes a printing operation according to the print data output from the OA device body at the time of data writing. When the print data reading target address reaches the end address stored in the data end address area, the print data processing device 10 ends the print data reading.

以上のような構成によれば、OA機器本体とプリンター
との間がケーブルで接続されていない、いわゆるオフラ
イン構成とすることが可能となり、たとえば使用中のOA
機器とは全く別の場所にあるプリンターを利用するとい
うようなことも可能となる。
According to the above configuration, a so-called off-line configuration in which the OA device body and the printer are not connected by a cable can be used.
It is also possible to use a printer located in a completely different place from the device.

なおICメモリカードへのプリントデータの書き込み機
能だけを有するプリントデータ処理装置と、プリントデ
ータの読み出し機能だけを有するプリントデータ処理装
置とを別個に設け、前者をOA機器本体に、また後者をプ
リンターに、それぞれ専属して接続するように構成して
もよいことは明らかであり、さらにはプリントデータの
読み出し機能を有するプリントデータ処理装置について
は、プリンター自体の一部に内蔵することも可能であ
る。
A print data processing device that only has a function of writing print data to an IC memory card and a print data processing device that has only a function of reading print data are separately provided, and the former is used for the OA equipment itself, and the latter is used for the printer. It is obvious that the printers may be configured so as to be exclusively connected to each other. Further, a print data processing device having a print data reading function may be built in a part of the printer itself.

〔実施例〕〔Example〕

以下、本発明の実施例を図に従って説明する。なお以
下の説明においては、単にHあるいはLと記載されてい
る場合には、それぞれ論理的なHレベルあるいはLレベ
ルを示すものとする。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, when simply described as H or L, it indicates a logical H level or L level, respectively.

第3図は、本発明の1実施例によるプリントデータ処
理装置の構成を示すブロック線図である。
FIG. 3 is a block diagram showing the configuration of a print data processing apparatus according to one embodiment of the present invention.

本実施例のプリントデータ処理装置は、CPU21、プロ
グラムを記憶しているROM22、処理データ等を記憶して
おくためのRAM23、入力ポート24、出力ポート25、入出
力ポート26、メモリカード用インターフェース手段とし
て設けられたメモリカード・コネクタ27、およびこれら
の各要素間を結んでいるデータバス28、アドレスバス2
9、コントロールバス30等を有するマイクロコンピュー
タ・システムによって構成されている。
The print data processing apparatus of the present embodiment includes a CPU 21, a ROM 22 for storing a program, a RAM 23 for storing processing data and the like, an input port 24, an output port 25, an input / output port 26, and an interface means for a memory card. Memory card connector 27, and data bus 28 and address bus 2 connecting these elements
9. A microcomputer system having a control bus 30 and the like.

入力ポート24には、書き込み機能と読み出し機能を選
択的に切り換えるための機能切り換えスイッチS1の他
に、スタートスイッチS2、ストップスイッチS3およびカ
ード挿入検出信号線CDが接続されており、出力ポート25
にはREADY状態表示用LED31、処理実行中表示用LED32、
およびエラー表示用LED33が接続されている。入力ラッ
チ回路付きの入出力ポート26には、いわゆるセントロニ
クス規格に準拠したパラレル・インターフェース用コネ
クタ11が接続されており、本実施例では該コネクタ11と
入出力ポート26とでプリンター用インターフェース手段
を構成している。従って該コネクタ11には、データ書き
込みのときにはパソコン等のOA機器本体が、またデータ
読み出しのときにはプリンターが、それぞれ外部機器と
して接続される。
A start switch S 2 , a stop switch S 3 and a card insertion detection signal line CD are connected to the input port 24 in addition to a function switch S 1 for selectively switching between a write function and a read function. Port 25
Indicates the READY status display LED 31, the process execution display LED 32,
And an error display LED 33 are connected. A parallel interface connector 11 conforming to the so-called Centronics standard is connected to the input / output port 26 with an input latch circuit, and in this embodiment, the connector 11 and the input / output port 26 constitute a printer interface means. doing. Therefore, to the connector 11, an OA device body such as a personal computer is connected as an external device when writing data, and a printer is connected as an external device when reading data.

第4図は、周知のセントロニクス規格に準拠したパラ
レル・インターフェースを介して、OA機器本体とプリン
ターとの間でやりとりされる信号を説明するためのタイ
ムチャート図である。
FIG. 4 is a time chart for explaining signals exchanged between the OA device main body and the printer via a parallel interface conforming to the well-known Centronics standard.

OA機器本体からは、DATA線よりプリントデータが、ま
た/STB線よりLアクティブのストローブ信号が、それぞ
れプリンターに対して出力されるように構成されてい
る。一方、プリンターからはハンドシェイク用信号とし
て、BSY線よりHアクティブのビジー信号が、また/ACK
線よりLアクティブのアクノリッジ信号が、OA機器本体
に対して出力されるように構成されている。
The OA device is configured to output print data from the DATA line and an L-active strobe signal from the / STB line to the printer. On the other hand, the printer outputs a H-active busy signal from the BSY line as a handshake signal,
An L-active acknowledge signal is output from the line to the OA equipment main body.

すなわち、まず最初にOA機器本体側は、BSY線がLレ
ベルになっていることを確認してからプリンターデータ
およびストロープ信号を出力する。この結果、プリンタ
ー側はストローブ信号に応答してビジー信号を出力する
が、このHレベルのビジー信号の出力中には、OA機器本
体側は次のプリンターデータおよびストローブ信号を出
力してはいけない。
That is, first, the OA device main body outputs printer data and a strobe signal after confirming that the BSY line is at the L level. As a result, the printer outputs a busy signal in response to the strobe signal, but the OA device body must not output the next printer data and strobe signal while the H-level busy signal is being output.

ここでプリンター側は、プリントデータのバッファメ
モリへの取り込みを終了すると、アクノリッジ信号を出
力するとともに、BSY線をLレベルに復帰させる。従っ
てOA機器本体側は、BSY線がLレベルになったこと、あ
るいはアクノリッジ信号が出力されたことを検出した
ら、次のプリンターデータおよびストローブ信号を出力
する。
Here, when the printer has finished taking the print data into the buffer memory, it outputs an acknowledge signal and returns the BSY line to the L level. Therefore, upon detecting that the BSY line has gone low or that the acknowledge signal has been output, the OA device main body outputs the next printer data and strobe signal.

第3図の本発明の実施例におけるプリントデータ処理
装置も、入出力ポート26およびパラレルインターフェー
ス用コネクタ11を介して、上記の第4図に示されるのと
同じハンドシェイクを行うように構成されているが、本
発明のプリントデータ処理装置は、データ書き込み時に
はOA機器本体と接続されるとともに、プリンターと同様
な信号を前記コネクタ11を介してOA機器本体側に与える
ために、入出力ポートのうち、DATA線および/STB線との
接続ポートは入力モードに、またBSY線および/ACK線と
の接続ポートは出力モードに、それぞれ制御される。
The print data processing apparatus in the embodiment of the present invention shown in FIG. 3 is also configured to perform the same handshake as shown in FIG. 4 above via the input / output port 26 and the parallel interface connector 11. However, the print data processing apparatus of the present invention is connected to the main body of the OA device at the time of writing data, and provides the same signal as that of the printer to the main body of the OA device through the connector 11, so that the , DATA line and / STB line are controlled in input mode, and connection ports with BSY line and / ACK line are controlled in output mode.

逆にデータ読み出し時には、プリンターと接続される
とともに、OA機器と同様な信号をプリンター側に与える
ために、入出力ポートのうち、DATA線および/STB線との
接続ポートは出力モードに、またBSY線および/ACK線と
の接ポートは入力モードに、それぞれ制御されることに
なる。
Conversely, at the time of data reading, in order to be connected to the printer and give the same signal as the OA equipment to the printer side, of the input / output ports, the connection ports to the DATA line and / STB line are set to the output mode, and the BSY The line and the port connected to the / ACK line are controlled in the input mode, respectively.

第5図は、本実施例におけるSRAM内蔵ICメモリカード
2のメモリマップを示す図であり、SRAMのメモリ領域
は、数バイト程度の大きさの認識コードエリア41と、2
バイトのデータエンド・アドレス・エリア42と、その他
の全ての領域から成るプリントデータ記憶エリア43とか
ら構成される。このうち認識コードエリア41は、このカ
ードにプリントデータが記憶書き込みされているという
ことを示すための特別な識別コードを書き込んでおくた
めの領域であり、データエンド・アドレス・エリア42
は、プリントデータ記憶エリア43内のどのアドレスまで
実際に有効なプリントデータが記憶されているかを記録
しておくためのものである。
FIG. 5 is a diagram showing a memory map of the IC memory card 2 with a built-in SRAM in the present embodiment. The memory area of the SRAM has a recognition code area 41 having a size of about several bytes,
It comprises a byte data end address area 42 and a print data storage area 43 comprising all other areas. The recognition code area 41 is an area for writing a special identification code for indicating that print data is stored and written in the card, and is a data end address area 42.
Is for recording up to which address in the print data storage area 43 the effective print data is actually stored.

次に第6図および第7図は、ROM22内に書き込まれて
いる本プリントデータ処理装置の処理プログラムの概略
を示すフローチャート図であり、以下、このフローチャ
ートに従って、本実施例のプリントデータ処理装置の動
作を説明する。
Next, FIGS. 6 and 7 are flowcharts showing the outline of the processing program of the print data processing apparatus written in the ROM 22. Hereinafter, the print data processing apparatus of the present embodiment will be described in accordance with this flowchart. The operation will be described.

プリントデータ処理装置が適当な外部機器に接続さ
れ、かつ電源が投入されて動作がスタートすると、まず
ステップM1にて、入力ポート24のカード挿入検出信号線
CDを介して、ICメモリカード2がメモリカード・コネク
タ27に挿入されているかどうかをチェックする。ここで
ICメモリカード2が挿入されている場合には、ステップ
M2でREADY状態表示用LED31を点灯して処理の準備ができ
たことを表示し、さらにステップM3、M4で入力ポート24
より機能切り換えスイッチS1の状態を読み出し、該切り
換えスイッチS1がプリンターデータの読み出し機能の選
択状態に設定されているか、書き込み機能の選択状態に
設定されているかをチェックする。
When the print data processing apparatus is connected to an appropriate external device, is powered on, and starts operation, first, in step M1, a card insertion detection signal line of the input port 24 is input.
It is checked whether the IC memory card 2 is inserted into the memory card connector 27 via the CD. here
If IC memory card 2 is inserted, step
At M2, the READY status display LED 31 is lit to indicate that processing is ready, and at steps M3 and M4, the input port 24
Read more state of the function switching switch S 1, it is checked whether the changeover switch S 1 is or are set to the selection state of the read function of the printer data are set to the selected state of the writer.

ここで書き込み機能が選択されている場合には、ステ
ップW1にて入出力ポート26の/STB線、/RST線およびDATA
線を入力モードに、また/ACK線およびBSY線を出力モー
ドに制御し、さらにメモリカード用アドレスポインター
として割り当てられたCPU21内の所定のレジスタ(以
下、単にメモリカード用アドレスポインターと称する)
の内容を、ステップW2にてプリントデータ記憶エリア43
の先頭アドレスの値にイニシャルセットする。
If the write function is selected here, the / STB line, / RST line, and DATA
A predetermined register in the CPU 21 (hereinafter, simply referred to as a memory card address pointer) assigned to control the line to the input mode, the / ACK line and the BSY line to the output mode, and assigned as a memory card address pointer.
Is stored in the print data storage area 43 in step W2.
Initially set to the value of the start address of

次にスタートスイッチS2の入力を待つステップW3へと
進み、スタートスイッチS2の入力を検出すると、ステッ
プW4で実行中表示用LED32を点灯させて、プリントデー
タの書き込みが始まった状態となったことを表示する。
なお、このときには出力モードにある/ACK線より1個の
アクノリッジ信号が出力されるとともに、BSY線はLレ
ベルに保持されている。
The flow advances to step W3 waiting for input of the start switch S 2, when detecting the input of the start switch S 2, by turning the running display LED32 in step W4, a condition that has write began print data Show that.
In this case, one acknowledge signal is output from the / ACK line in the output mode, and the BSY line is held at the L level.

ここでステップW5で、OA機器本体よりプリントデータ
が出力されるのに伴ってLアクティブのストローブ信号
が出力されるのを待つ状態となるが、該ストローブ信号
が出力されると、該ストローブ信号の立ち上がりに応答
して、入出力ポート26の入力ラッチ回路にDATA線上のプ
リントデータがラッチされるとともに、ストローブ信号
自体もラッチされ、その結果、ステップW6にて直ちに入
出力ポート26のBSY線からHレベルのビジー信号が出力
される。
Here, in step W5, a state in which the strobe signal of the L active is output as the print data is output from the OA device main body is set. When the strobe signal is output, the strobe signal is output. In response to the rise, the print data on the DATA line is latched by the input latch circuit of the input / output port 26, and the strobe signal itself is also latched. As a result, the BSY line of the input / output port 26 A busy signal of a level is output.

一方、入出力ポート26の入力ラッチ回路内にラッチさ
れたプリントデータを、ステップW7にてCPU21内に取り
込み、さらに該取り込んだデータを、ステップW8にてメ
モリカード・コネクタ27を介してICメモリカード2に記
憶書き込みすると、メモリカード用アドレスポインタの
内容をステップW9にてインクリメントする。次にステッ
プW10にてアクノリッジ信号を1個出力するとともに、B
SY線をLレベルに戻した後、再びOA機器本体よりプリン
トデータが出力されるのに伴ってLアクティブのストロ
ーブ信号が出力されるのを待つステップW5へと戻る。
On the other hand, the print data latched in the input latch circuit of the input / output port 26 is captured in the CPU 21 in step W7, and the captured data is further transferred to the IC memory card via the memory card connector 27 in step W8. After writing to memory 2, the contents of the memory card address pointer are incremented in step W9. Next, in step W10, one acknowledge signal is output, and B
After returning the SY line to the L level, the process returns to step W5 to wait for the output of the L-active strobe signal as the print data is output again from the OA device body.

一方、該ステップW5でストローブ信号の入力を待つの
と並行して、同時にステップW11ではストップスイッチS
3からの入力の有無をチェックするように構成されてい
るが、ここでもしストップスイッチS3からの入力が検出
された場合には、プリントデータの書き込みは終了した
ものと判断される。その結果、ステップW12にてデータ
エンド・アドレス・エリア42に、実際にプリントデータ
が記憶書き込みされているエリアのエンドアドレス(す
なわちメモリカード用アドレスポインターの値)を記憶
書き込みし、ステップW13にて認識コード・エリア41に
所定のIDコードの記憶書き込みを行なう。
On the other hand, in parallel with waiting for the input of the strobe signal in step W5, simultaneously with the stop switch S in step W11.
It is configured so as to check the presence or absence of an input from the 3, if the if the input from the stop switch S 3 is detected here, the print data writing is determined to have ended. As a result, the end address of the area where the print data is actually stored and written (that is, the value of the memory card address pointer) is stored and written in the data end address area 42 in step W12, and the recognition is performed in step W13. A predetermined ID code is stored and written in the code area 41.

さらにステップW14にて実行中表示用LED32を消灯し
て、書き込みが終わったことを示すと、プリントデータ
の書き込み処理は全て終了となる。
Further, when the execution-indicating LED 32 is turned off in step W14 to indicate that the writing has been completed, all the print data writing processes are completed.

次に、機能切り換えスイッチS1によってデータの読み
出し機能が選択されている状態で、本プリントデータ処
理装置の動作がスタートされた場合について説明する。
Then, with the reading function of the data by the function switching switch S 1 is selected, it will be described the operation of the print data processing apparatus is started.

まずステップR1にて認識コードエリア41の内容を読み
出し、ステップR2にて該読み出したデータが所定の認識
コードと一致しているかどうかをチェックする。ここで
該読み出した認識コードが適切でない場合には、このカ
ードにはプリントデータが書き込まれていないものと判
断されて、ステップR17にてエラー表示用LED33が点灯す
るのみで、読み出し処理は全く行なわれない。
First, in step R1, the content of the recognition code area 41 is read, and in step R2, it is checked whether the read data matches a predetermined recognition code. Here, if the read recognition code is not appropriate, it is determined that print data has not been written to this card, and only the error display LED 33 is turned on in step R17, and the reading process is not performed at all. Not.

一方、認識コードが適切な場合には、ステップR3にて
入出力ポート26の/STB線、/RST線およびDATA線を出力モ
ードに、また/ACK線およびBSY線を入力モードに制御
し、さらにステップR4にてメモリカード用アドレスポイ
ンター内容を、プリントデータ記憶エリア43の先頭アド
レスの値にイニシャルセットする。
On the other hand, if the recognition code is appropriate, control the / STB line, / RST line and DATA line of the input / output port 26 in the output mode, and control the / ACK line and the BSY line in the input mode in step R3. In step R4, the contents of the memory card address pointer are initially set to the value of the start address of the print data storage area 43.

次にスタートスイッチS2の入力を待つステップR5へと
進み、スタートスイッチS2の入力を検出すると、ステッ
プR6では外部機器として接続されているプリンターをイ
ニシャルリセットするために、/RST線より所定幅のLレ
ベル信号を出力する。さらにステップR7でICメモリカー
ド2のデータ・エンド・アドレス・エリアよりエンドア
ドレスを読み出して、RAM23内に保持しておき、ステッ
プR8では実行中表示用LED32を点灯させて、プリントデ
ータの読み出しが始まったことを表示する。
The flow advances to step R5 to wait for input of start switch S 2, when detecting the input of the start switch S 2, a printer connected as an external device in step R6 to initially reset, a predetermined width from / RST line Is output. Further, in step R7, the end address is read from the data end address area of the IC memory card 2 and stored in the RAM 23, and in step R8, the execution display LED 32 is turned on to start reading the print data. Display that

次にBSY線入力がLレベルとなるのを待つステップR9
へと進み、Lレベルとなった場合にはステップR10に
て、メモリカード・コネクタ27を介して、ICメモリカー
ド2に記憶書き込みされているプリントデータを読み出
し、さらにステップR11で、該プリントデータを入出力
ポート26のDATA線より出力するとともに、/STB線よりL
アクティブのストローブ信号を所定幅だけ出力する。
Next, step R9 for waiting for the BSY line input to go low.
If the level goes to L level, the print data stored in and written to the IC memory card 2 is read out via the memory card connector 27 at step R10, and the print data is further written at step R11. Output from the DATA line of I / O port 26 and L from / STB line
An active strobe signal is output for a predetermined width.

しかる後、ステップR12ではメモリカード用アドレス
ポインターの内容をインクリメントし、ステップR13で
該アドレスポインターの内容が前述のエンドアドレスと
等しいかどうかをチェックする。ここで等しくない場合
には、ステップR15でストップスイッチS3からの入力が
あったかどうかをチェックし、該入力がなかった場合に
は、再びBSY線入力がLレベルとなるのを待つステップR
9へと進み、プリントデータの読み出し処理を繰り返
す。またステップR15でストップスイッチS3からの入力
があった場合には、そこでプリントデータの読み出し処
理を一旦中断して、ステップR16でスタートスイッチS2
の入力を待つ状態となり、ここでスタートスイッチS2
らの入力があった場合には、再びBSY線入力がLレベル
となるのを待つステップR9へと進むことになる。
Thereafter, in step R12, the content of the memory card address pointer is incremented, and in step R13, it is checked whether or not the content of the address pointer is equal to the aforementioned end address. If not equal, where checks whether there is an input from the stop switch S 3 at step R15, if no input, the step R waiting again for BSY line input becomes L level
Proceeding to step 9, the print data reading process is repeated. Further, when there is an input from the stop switch S 3 in step R15, the where the process of reading the print data temporarily interrupted, start switch S 2 in step R16
A state of waiting for the input, wherein when there is an input from the start switch S 2 will proceed to step R9 to wait again the BSY line input becomes L level.

一方、ステップR13でアドレスポインターの内容が前
述のエンドアドレスと等しいばあいには、ICメモリカー
ド2内に記憶されている全てのプリントデータの読み出
しが終わったものと判断されて、ステップR14では実行
中表示用LED32が消灯され、プリントデータの読み出し
処理自体が終了される。
On the other hand, if the content of the address pointer is equal to the end address in step R13, it is determined that all the print data stored in the IC memory card 2 has been read, and in step R14, The middle display LED 32 is turned off, and the print data reading process itself is terminated.

なおフローチャーにおける図示は省略したが、本実施
例ではプリントデータの書き込み、および読み出し処理
のいずれにおいても、処理の途中でカードが抜き取られ
たことが検出されたら、エラー表示用LED33が直ちに点
灯されて処理は中止される。またプリントデータの書き
込み処理中に、書き込みバイト数がICメモリカードのメ
モリ容量を越えた場合にも、エラー表示用LED33が直ち
に点灯されて処理は中止される。
Although illustration of the flow chart is omitted, in this embodiment, the error display LED 33 is immediately turned on when it is detected that the card is removed in the middle of the process in both the writing and reading of the print data. The processing is stopped. Also, if the number of bytes to be written exceeds the memory capacity of the IC memory card during the print data writing process, the error display LED 33 is immediately turned on and the process is stopped.

なお本実施例のプリントデータ処理装置は、マイクロ
コンピュータ・システムとして構成されているが、いわ
ゆるランダムロジック回路によって構成することも可能
である。またICメモリカードとしては、有接点型のメモ
リカードの他に、電磁誘導結合を介してアクセスするこ
とのできる無接点型メモリカードも利用することが可能
である。
Although the print data processing apparatus of the present embodiment is configured as a microcomputer system, it can be configured with a so-called random logic circuit. As an IC memory card, besides a contact type memory card, a non-contact type memory card which can be accessed via electromagnetic induction coupling can be used.

〔発明の効果〕〔The invention's effect〕

以上に述べたように本発明によれば、OA機器本体とプ
リンターとが、ONライン状態で互いに接続されていなく
ても、ICメモリカードとプリントデータ処理装置を介し
て、複数のOA機器間で1台以上のプリンターを共有して
使える状態を作ることができる。この結果、実際上の不
便さや繁雑さを呼び起こすことなく、プリンターの台数
を抑制することが可能となり、さらにはオフィス内にお
けるOA機器の配置にも自由度を増すことができる。また
本発明においては、認識コードエリア内の記憶データの
内容に基づいて、ICメモリカードのプリントデータ記憶
エリア内にプリントデータが書き込まれているかどうか
の判定が行われ、その判定結果に従ってプリントデータ
の読み出しを開始するかどうかの判断ができるように構
成されているために、プリントデータ以外のデータを保
持するICメモリカードからのデータ読み出しによって、
プリンターが誤動作したり暴走するような事故は防止さ
れる。さらに本発明では、プリントデータの読み出し
は、データエンド・アドレスエリアに記載されているプ
リントデータのエンド・アドレスで終了するように構成
されているために、プリントデータの書き込み終了時
に、プリントデータのエンドアドレス以降のメモリ領域
の記憶内容をヌル・コードに書き換えたり、あるいはプ
リントデータの読み出し時に、プリントデータのエンド
アドレス以降のメモリ領域からヌル・コードの読み出し
を実行したりするような無駄は不要となり、データの書
き込みや読み出しの処理時間も、それだけ短縮されるこ
とになる。
As described above, according to the present invention, even if the OA device main body and the printer are not connected to each other in the ON-line state, the plurality of OA devices can be connected via the IC memory card and the print data processing device. One or more printers can be shared and used. As a result, the number of printers can be reduced without causing practical inconvenience or complication, and the degree of freedom in arranging OA equipment in the office can be increased. Further, in the present invention, it is determined whether or not print data has been written in the print data storage area of the IC memory card based on the content of the storage data in the recognition code area, and the print data is stored in accordance with the determination result. Since it is configured to be able to determine whether or not to start reading, by reading data from an IC memory card that holds data other than print data,
Accidents such as malfunction or runaway of the printer are prevented. Further, in the present invention, the reading of the print data is configured to end at the end address of the print data described in the data end address area. There is no need to rewrite the storage content of the memory area after the address to a null code, or to read the null code from the memory area after the end address of the print data when reading the print data. The processing time for writing and reading data is also reduced accordingly.

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

第1図〜第7図は、本発明の1実施例によるプリントデ
ータ処理装置を示すもので、第1図は基本構成を示す機
能ブロック図、第2図(a)および(b)は使用方法を
示す概念図、第3図は回路構成を示すブロック線図、第
4図はタイムチャート図、第5図はICメモリカードのメ
モリマップ図、第6図および第7図はフローチャート
図。 1……プリンター用インターフェー手段、2……ICメモ
リカード、3……メモリカード用インターフェース手
段、4……機能切り換え手段、5……書き込み制御手
段、6……読み出し制御手段、7……外部機器、7a……
OA機器本体、7b……プリンター、10プリントデータ処理
装置、11……パラレルインターフェース用コネクタ、27
……メモリカード・コネクタ。
1 to 7 show a print data processing apparatus according to an embodiment of the present invention. FIG. 1 is a functional block diagram showing a basic configuration, and FIGS. 2 (a) and 2 (b) show usage methods. FIG. 3 is a block diagram showing a circuit configuration, FIG. 4 is a time chart, FIG. 5 is a memory map of an IC memory card, and FIGS. 6 and 7 are flowcharts. DESCRIPTION OF SYMBOLS 1 ... Interface means for printers, 2 ... IC memory card, 3 ... Interface means for memory cards, 4 ... Function switching means, 5 ... Write control means, 6 ... Read control means, 7 ... External equipment , 7a ……
OA equipment, 7b …… Printer, 10 print data processor, 11 …… Parallel interface connector, 27
…… Memory card connector.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】パーソナルコンピュータ等のホスト機器と
プリンターとの間を接続するためのプリンター用インタ
ーフェース手段と、着脱可能なICメモリカードにアクセ
スするためのメモリカード用インターフェース手段と、
プリントアウト・データおよびプリンター制御用データ
より成るプリントデータの書き込み機能と読み出し機能
のいずれか一方の機能を選択するための機能切り換え手
段と、該機能切り換え手段によって前記書き込み機能が
選択されているときに、外部から前記プリンター用イン
ターフェース手段を介して送られてくるプリントデータ
を、前記メモリカード用インターフェース手段を介して
前記ICメモリカードのプリントデータ記憶エリアに記憶
書き込みするための書き込み制御手段と、前記機能切り
換え手段によって前記読み出し機能が選択されていると
きに、前記メモリカード用インターフェース手段を介し
て前記プリントデータ記憶エリアから読み出される前記
プリントデータを、前記プリンター用インターフェース
手段を介して外部に送信するための読み出し制御手段と
を備え、前記書き込み制御手段は、前記ICメモリカード
の認識コードエリアに対して所定の認識コードを記憶書
き込みする認識コード書き込み手段と、前記ICメモリカ
ードのデータエンド・アドレスエリアに対して前記プリ
ントデータ記憶エリア内の前記プリントデータのエンド
アドレスを記憶書き込みするデータエンド・アドレス書
き込み手段とを含み、前記読み出し制御手段は、前記認
識コードエリア内の記憶データが所定の認識コードであ
るかを判定する認識コード判定手段と、該判定手段の判
定結果に従って前記プリントデータ記憶エリアからの前
記プリントデータの読み出しを開始し、前記データエン
ド・アドレス内に記憶されたエンドアドレスで読み出し
を終了するプリントデータ読み出し実行手段を含んでい
ることを特徴とするプリントデータ処理装置。
A printer interface for connecting a host device such as a personal computer to a printer; a memory card interface for accessing a detachable IC memory card;
Function switching means for selecting one of a write function and a read function of print data composed of printout data and printer control data, and a function switching means for selecting the write function by the function switching means. Write control means for storing and writing print data sent from outside via the printer interface means to the print data storage area of the IC memory card via the memory card interface means; and When the reading function is selected by the switching means, the print data read from the print data storage area via the memory card interface means is externally transmitted via the printer interface means. Read control means for transmitting, the write control means comprising: a recognition code writing means for storing and writing a predetermined recognition code in a recognition code area of the IC memory card; Data end address writing means for storing and writing the end address of the print data in the print data storage area to the address area, wherein the read control means determines that the storage data in the recognition code area has a predetermined recognition Recognition code determining means for determining whether the print data is a code, and reading of the print data from the print data storage area is started in accordance with a result of the determination by the determining means, and reading is performed at an end address stored in the data end address. Print data reading Print data processing apparatus characterized by including means.
【請求項2】パーソナルコンピュータ等のホスト機器と
プリンターとの間を接続するためのプリンター用インタ
ーフェース手段と、着脱可能なICメモリカードにアクセ
スするためのメモリカード用インターフェース手段と、
前記プリンター用インターフェース手段を介して外部か
ら送られてくるプリントアウト・データおよびプリンタ
ー制御用データより成るプリントデータを、前記メモリ
カード用インターフェース手段を介して前記ICメモリカ
ードのプリントデータ記憶エリアに記憶書き込みするた
めの書き込み制御手段とを備え、該書き込み制御手段
は、前記ICメモリカードの認識コードエリアに対して所
定の認識コードを記憶書き込みする認識コード書き込み
手段と、前記ICメモリカードのデータエンド・アドレス
エリアに対して前記プリントデータ記憶エリア内の前記
プリントデータのエンドアドレスを記憶書き込みするデ
ータエンド・アドレス書き込み手段とを含んでいること
を特徴とするプリントデータ処理装置。
2. An interface means for a printer for connecting a host device such as a personal computer to a printer, an interface means for a memory card for accessing a removable IC memory card,
The print data composed of printout data and printer control data sent from outside via the printer interface means is stored and written in the print data storage area of the IC memory card via the memory card interface means. Writing control means for writing and storing a predetermined recognition code in a recognition code area of the IC memory card; and a data end address of the IC memory card. A data end address writing unit for storing and writing an end address of the print data in the print data storage area in an area.
【請求項3】パーソナルコンピュータ等のホスト機器と
プリンターとの間を接続するためのプリンター用インタ
ーフェース手段と、着脱可能なICメモリカードにアクセ
スするためのメモリカード用インターフェース手段と、
該メモリカード用インターフェース手段を介して前記IC
メモリカードのプリントデータ記憶エリアから読み出さ
れるプリントアウト・データおよびプリンター制御用デ
ータより成るプリントデータを、前記プリンター用イン
ターフェース手段を介して外部に送信するための読み出
し制御手段とを備え、該読み出し制御手段は、前記ICメ
モリカードの認識コードエリア内の記憶データが所定の
認識コードであるかを判定する認識コード判定手段と、
該判定手段の判定結果に従って前記プリントデータ記憶
エリアからの前記プリントデータの読み出しを開始し、
前記ICメモリカードのデータエンド・アドレス内に記憶
されたエンドアドレスで読み出しを終了するプリントデ
ータ読み出し実行手段を含んでいることを特徴とするプ
リントデータ処理装置。
3. An interface means for a printer for connecting a host device such as a personal computer to a printer, an interface means for a memory card for accessing a removable IC memory card,
The IC through the memory card interface means
Read control means for transmitting print data consisting of printout data and printer control data read from the print data storage area of the memory card to the outside via the printer interface means; Is a recognition code determining means for determining whether the storage data in the recognition code area of the IC memory card is a predetermined recognition code,
Starting reading the print data from the print data storage area according to the result of the determination by the determination means;
A print data processing apparatus, comprising: a print data read execution unit that ends reading at an end address stored in a data end address of the IC memory card.
JP63244589A 1988-09-30 1988-09-30 Print data processing device Expired - Lifetime JP2738435B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63244589A JP2738435B2 (en) 1988-09-30 1988-09-30 Print data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63244589A JP2738435B2 (en) 1988-09-30 1988-09-30 Print data processing device

Publications (2)

Publication Number Publication Date
JPH0293820A JPH0293820A (en) 1990-04-04
JP2738435B2 true JP2738435B2 (en) 1998-04-08

Family

ID=17120971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63244589A Expired - Lifetime JP2738435B2 (en) 1988-09-30 1988-09-30 Print data processing device

Country Status (1)

Country Link
JP (1) JP2738435B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100357966C (en) 2001-11-16 2007-12-26 夏普株式会社 Recording medium, content recording/reproducing system, content reproducing apparatus, content recording apparatus, and content recoding apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0238076A (en) * 1988-07-28 1990-02-07 Oki Electric Ind Co Ltd Printer device

Also Published As

Publication number Publication date
JPH0293820A (en) 1990-04-04

Similar Documents

Publication Publication Date Title
US6088755A (en) External storage apparatus which can be connected to a plurality of electronic devices having different types of built-in interface without using a conversion adapter
CA2082118C (en) Computer, and apparatus and method for system reconfiguration thereof
US20050211788A1 (en) Method of communication between a smart card and a host station
JPH1153485A (en) Computer system, storage device, conversion system and storage medium
US7797398B2 (en) Communication system, and peripheral device having trigger generating device and computer program product that monitors whether a trigger has been generated
JP2003178269A (en) Passive flash media adapter system
US6907480B2 (en) Data processing apparatus and data input/output apparatus and data input/output method
JPH11282976A (en) Card reader-writer
KR20040011103A (en) Apparatus and method for establishing data transfer mode by card insertion identification
JPWO2003009222A1 (en) Electronic device, information processing device, adapter device, and information exchange system
JPS5941033A (en) Electronic computer system
JP2738435B2 (en) Print data processing device
US20020083221A1 (en) Universal disk array controller
JPH0567028A (en) Information processor
US7287098B2 (en) Control method and electronic device enabling recognition of functions installed in the electronic device
JP3537838B2 (en) Memory card control method and system
US6813671B1 (en) Controller for hot swapping of extended I/O device to computer body
JPH02268318A (en) Print data processor
JP4485113B2 (en) PC adapter for small cards
JP2002120431A (en) Printer
JPH1021019A (en) Printer device
JPS59205641A (en) Processor of character information
JPH01140276A (en) Portable recording medium processor
JPS6357267A (en) Printer
EP1081584B1 (en) Information processing apparatus and storage medium control method