JPH0752384B2 - Printer device - Google Patents

Printer device

Info

Publication number
JPH0752384B2
JPH0752384B2 JP61124028A JP12402886A JPH0752384B2 JP H0752384 B2 JPH0752384 B2 JP H0752384B2 JP 61124028 A JP61124028 A JP 61124028A JP 12402886 A JP12402886 A JP 12402886A JP H0752384 B2 JPH0752384 B2 JP H0752384B2
Authority
JP
Japan
Prior art keywords
printer
host computer
standard interface
model
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
JP61124028A
Other languages
Japanese (ja)
Other versions
JPS62279423A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61124028A priority Critical patent/JPH0752384B2/en
Publication of JPS62279423A publication Critical patent/JPS62279423A/en
Publication of JPH0752384B2 publication Critical patent/JPH0752384B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は計算機システムの周辺装置として使用される
プリンタ装置に関するものである。
The present invention relates to a printer device used as a peripheral device of a computer system.

〔従来の技術〕[Conventional technology]

第5図は従来のホスト計算機システムとプリンタ装置の
構成を示し、図において、1はCPU、2はメモリ、3は
キーボードインターフェース、4はキーボード、5はCR
Tインターフェース、6はCRT、7はディスクインターフ
ェース、8はディスク、9はプリンタインターフェー
ス、10はホスト計算機とプリンタ装置とを接続する標準
インターフェース(セントロニクス社仕様)、11はプリ
ンタ装置のCPU、12はメモリ、13はインターフェース、1
4は印字機構、15はインターフェースである。第6図は
メモリ2内の一部を、第7図はCPU1のプリンタ出力処理
の概略フローチャート、つまりCPU1が実際にプリンタ装
置にデータを出力する場合のプログラムの流れを、第8
図は標準インターフェース10の信号波形を示す。
FIG. 5 shows the configuration of a conventional host computer system and printer device. In the figure, 1 is a CPU, 2 is a memory, 3 is a keyboard interface, 4 is a keyboard, and 5 is a CR.
T interface, 6 is a CRT, 7 is a disk interface, 8 is a disk, 9 is a printer interface, 10 is a standard interface (Centronics specification) for connecting a host computer and a printer device, 11 is a CPU of the printer device, and 12 is a memory. , 13 is the interface, 1
4 is a printing mechanism, and 15 is an interface. FIG. 6 shows a part of the memory 2, and FIG. 7 shows a schematic flow chart of the printer output process of the CPU 1, that is, the flow of the program when the CPU 1 actually outputs the data to the printer device.
The figure shows the signal waveforms of the standard interface 10.

次に動作について説明する。Next, the operation will be described.

ホスト計算機CPU1はプリンタ装置に文字あるいは図形な
どを出力しようとした場合、メモリ2の内容(プリンタ
のタイプを示すデータ)を参照して(ステップS10)、
システムに接続されているプリンタの種別を検知し(ス
テップS3)、そのタイプに応じたプリンタ出力制御ルー
チンを選択して、実行する(ステープS4n)。
When the host computer CPU1 attempts to output characters or figures to the printer device, it refers to the contents of the memory 2 (data indicating the printer type) (step S10),
The type of printer connected to the system is detected (step S3), and a printer output control routine corresponding to the type is selected and executed (staple S4n).

ここで、第6図のプリンタのタイプを示すデータのエリ
アに適切な値をセットするには、計算機の使用者が上記
適切な値をキーボード4から予め入力しておく必要があ
る。
Here, in order to set an appropriate value in the area of the data indicating the printer type in FIG. 6, it is necessary for the user of the computer to input the appropriate value from the keyboard 4 in advance.

またこのようなシステムでは、ホスト計算機からプリン
タにDATA,STAROBE信号を出力すれば、プリンタからホス
ト計算機にBUSY,ACKNLG信号が戻ってくるがホストがプ
リンタに対して次のデータを出すことが可能か否かはBU
SY信号又はACKNLG信号だけによって判断される。
In such a system, if the host computer outputs DATA, STAROBE signals to the printer, the printer returns BUSY, ACKNLG signals to the host computer. Is it possible for the host to output the next data to the printer? BU is not
It is judged only by the SY signal or the ACKNLG signal.

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

従来のプリンタ装置を含むシステムは以上のように構成
されているので、ホスト計算機は実際に接続されている
プリンタの種別(型式)が確認できず、オペレータが指
定した種別に応じた出力制御ルーチンを実行するだけで
ある。従って、オペレータが操作ミスを犯した場合など
は、プリンタに正しいつまりプリンタの型式に適したデ
ータ列,コマンド列が送信されず印字ミスが発生する。
又、新たにプリンタを接続し直した場合等は、使用者が
必ずそのプリンタ種別をキーボードで設定する必要があ
り、操作性が良くないという問題点があった。
Since the system including the conventional printer is configured as above, the host computer cannot confirm the type (model) of the printer actually connected, and the output control routine corresponding to the type specified by the operator is executed. Just run it. Therefore, if the operator makes a mistake in operation, a data string or command string that is correct to the printer, that is, a command string suitable for the model of the printer is not transmitted, and a printing error occurs.
In addition, when the printer is reconnected, the user must set the printer type by using the keyboard, resulting in poor operability.

この発明は上記のような問題点を解消するためになされ
たもので、国際的な標準インターフェース(セントロニ
クス社仕様)によりホスト計算機と接続することがで
き、その種別(型式)をオペレータの操作なしで計算機
に識別させることができるプリンタ装置を得ることを目
的とする。
The present invention has been made to solve the above problems, and can be connected to a host computer through an international standard interface (Centronics specifications), and its type (model) can be set without operator operation. An object is to obtain a printer device that can be identified by a computer.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るプリンタ装置は、プリンタの機種毎に対
応するタイミングパターンの信号を発生するタイミング
パターン発生器を設け、ホスト計算機からの特定のデー
タ列を受信したとき、上記標準インターフェース内の所
定の1つの信号線を、上記タイミングパターン発生器の
出力信号によりオン,オフさせて、自らのプリンタの型
式を上記標準インターフェースを介して上記ホスト計算
機へ通知するようにしたものである。
The printer device according to the present invention is provided with a timing pattern generator for generating a signal of a timing pattern corresponding to each printer model, and when a specific data string is received from the host computer, a predetermined one in the standard interface is received. One of the signal lines is turned on and off by the output signal of the timing pattern generator to notify the host computer of the model of its own printer through the standard interface.

〔作用〕[Action]

この発明においては、ホスト計算機からの特定のデータ
列を受信したとき、標準インターフェース内の所定の1
つの信号線を、タイミングパターン発生器の出力信号に
よりオン,オフさせて、自らのプリンタの型式を上記標
準インターフェースを介して上記ホスト計算機へ通知す
るようにしたから、該計算機に接続されたプリンタの型
式をオペレーターの操作なしでホスト計算機に識別させ
ることができる。
According to the present invention, when a specific data string from the host computer is received, a predetermined 1
Since one signal line is turned on and off by the output signal of the timing pattern generator to notify the host computer of the model of its own printer through the standard interface, the printer connected to the computer is The model can be identified by the host computer without operator operation.

また、プリンタ型式の通知をシリアル通信により行う構
成を標準インターフェースの仕様の範囲内で実現したの
で、異種類のプリンタをホスト計算機に接続した場合
に、標準インターフェースの取替えや仕様変更の必要が
全くなく、ホスト計算機に種々の機種のプリンタを接続
してなるシステムを非常に簡単に実現することができ
る。
In addition, since the configuration that notifies the printer type by serial communication is realized within the range of the standard interface specifications, there is no need to replace the standard interface or change the specifications when connecting different types of printers to the host computer. A system in which various types of printers are connected to the host computer can be realized very easily.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例によるプリンタ装置を含む計
算機システムの構成を示し、図において、1〜15は第5
図と同一のものであり、16はプリンタ装置に設けられて
プリンタ装置の機種(型式)に応じたタイミングパター
ンの信号を発生するタイミング発生部である。
FIG. 1 shows the configuration of a computer system including a printer device according to an embodiment of the present invention.
16 is the same as that shown in the figure, and 16 is a timing generation unit that is provided in the printer device and that generates a signal of a timing pattern according to the model (model) of the printer device.

第2図は第1図中のメモリ2の一部を示し、ここにはプ
リンタ機種毎のタイミングパターンがデータとして格納
され、またプリンタ機種毎の出力制御ルーチンも格納さ
れている。
FIG. 2 shows a part of the memory 2 in FIG. 1, in which a timing pattern for each printer model is stored as data, and an output control routine for each printer model is also stored.

第3図は第1図のCPU1がプリンタにデータを出力する際
のプログラムの流れを、第4図は第1図の標準インター
フェース10の信号波形の一部を示したものであり、図
中、17はホストからプリンタ機種を識別するために送ら
れたデータ列(コマンド)の最後のデータ、18はこのコ
マンドを受けた後にプリンタから出力される機種通知の
ためのタイミング波形である。
FIG. 3 shows the flow of the program when the CPU 1 of FIG. 1 outputs data to the printer, and FIG. 4 shows a part of the signal waveform of the standard interface 10 of FIG. 17 is the last data of the data string (command) sent from the host to identify the printer model, and 18 is the timing waveform for the model notification output from the printer after receiving this command.

次に第3図のフローチャートを用いて動作について説明
する。
Next, the operation will be described with reference to the flowchart of FIG.

CPU1がプリンタ装置に対してデータを出力する際はま
ず、機種識別用のデータ列(ESCシーケンスで構成さ
れ、このデータ列は当然各プリンタに対して同一のもの
である)を送信する(ステップS1)。そしてプリンタが
機種識別用のデータ列を受信すると内部のタイミング発
生部を動作させ、第4図のBUSY信号のタイミングパルス
18を出力する。このときホスト計算機はすぐさま印字し
たいデータを出力するのではなく、プリンタからのBUSY
信号をサンプリングする。すなわち一定時間内における
BUSY信号のオン,オフの時間,回数等をモニタリング
し、メモリ2内に記憶されたプリンタ機種毎のタイミン
グパターンと比較し(ステップS2)、接続されたプリン
タ種別を自動的に識別する(ステップS3)。
When the CPU 1 outputs data to the printer device, first, a model-identifying data string (which is composed of an ESC sequence and is naturally the same for each printer) is transmitted (step S1). ). When the printer receives the data string for model identification, it activates the internal timing generator, and the timing pulse of the BUSY signal in Fig. 4
Outputs 18. At this time, the host computer does not output the data to be printed immediately, but rather BUSY from the printer.
Sample the signal. That is, within a certain time
The ON / OFF time and the number of times of the BUSY signal are monitored and compared with the timing pattern for each printer model stored in the memory 2 (step S2), and the connected printer type is automatically identified (step S3 ).

その後はその機種に応じた出力制御ルーチンを実行する
(ステップS4n)ことで正確な処理を行なうことができ
る。
After that, an accurate processing can be performed by executing the output control routine according to the model (step S4n).

ここでタイミングパターン18はホストCPU1がS/W的にモ
ニタリングすることを考えているため、適切な長さのパ
ルス幅が必要とされる。このように本実施例では、プリ
ンタの機種(型式)に応じたタイミングパターンの信号
を発生するタイミング発生器を設け、ホスト計算機から
の特定のデータ列を受信したとき、上記標準インターフ
ェースのビジイ信号線を、上記タイミングパターン発生
器の出力信号によりオン,オフさせて、自らのプリンタ
の型式を上記標準インターフェースを介して上記ホスト
計算機へ通知するようにしたので、標準インターフェー
ス内の特定の信号をタイミング発生部によりオン,オフ
させて、ホスト計算機にプリンタの機種を通知でき、プ
リンタ機種設定の操作ミスを防止できる。また、上記シ
リアル通信には、標準インターフェース(セントロニク
ス社仕様)に必ず存在するビジイ信号線を用いているた
め、つまりプリンタ型式の通知をシリアル通信により行
う構成を標準インターフェースの仕様の範囲内で実現し
ているので、異機種のプリンタをホスト計算機に接続し
直した場合に標準インターフェースを取り替える必要が
なく、特別なケーブル,特別なH/Wは不要であり、この
結果機種の異なる複数のプリンタをホスト計算機に接続
してなるシステムを、インターフェースについては標準
のもの1種類のみで簡単,かつ安価に実現することがで
きる。
Here, since the timing pattern 18 is intended to be monitored by the host CPU 1 in terms of S / W, a pulse width of an appropriate length is required. As described above, in this embodiment, the timing generator for generating the signal of the timing pattern according to the model (model) of the printer is provided, and when the specific data string from the host computer is received, the busy signal line of the standard interface is provided. Is turned on and off by the output signal of the timing pattern generator to notify the host computer of the model of its own printer via the standard interface. Therefore, timing generation of a specific signal in the standard interface is performed. The printer can be turned on and off by the section to notify the host computer of the printer model, and an error in setting the printer model can be prevented. In addition, since the busy signal line that is always present in the standard interface (Centronics specifications) is used for the serial communication, that is, the configuration of performing the printer type notification by serial communication is realized within the range of the standard interface specifications. Since different models of printers are reconnected to the host computer, it is not necessary to replace the standard interface, and no special cable or special H / W is required. As a result, multiple printers of different models can be hosted. A system connected to a computer can be realized easily and inexpensively with only one standard interface.

なお、上記実施例ではプリンタ内にタイミング発生部と
いう固有のH/Wを設けたものを示したが、これはCPU11が
メモリ12内に記憶されたデータを使用して、S/W的にイ
ンターフェース15を介して標準インターフェース10に出
力するようにしてもよい。
In the above embodiment, the printer provided with a unique H / W called a timing generator is shown, but this uses the data stored in the memory 12 by the CPU 11 to interface with the S / W. It is also possible to output to the standard interface 10 via 15.

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

以上のようにこの発明に係るプリンタ装置によれば、ホ
スト計算機からの特定のデータ列を受信したとき、標準
インターフェース内の所定の1つの信号線を、上記タイ
ミングパターン発生器の出力信号によりオン,オフさせ
て、自らのプリンタの型式を上記標準インターフェース
を介して上記ホスト計算機へ通知するようにしたので、
計算機に接続されたプリンタの型式をオペレーターの操
作なしでホスト計算機に識別させることができる効果が
ある。
As described above, according to the printer device of the present invention, when a specific data string is received from the host computer, one predetermined signal line in the standard interface is turned on by the output signal of the timing pattern generator, Since it is turned off and the model of its own printer is notified to the host computer via the standard interface,
This has the effect of allowing the host computer to identify the type of printer connected to the computer without any operator operation.

また、上記プリンタ型式の通知をシリアル通信により行
う構成を標準インターフェースの仕様の範囲内で実現し
ているので、異種類のプリンタをホスト計算機に接続し
た場合に、標準インターフェースの取替えや仕様変更の
必要が全くなく、ホスト計算機に種々の機種のプリンタ
を接続してなるシステムを非常に簡単に実現することが
できる効果がある。
In addition, since the configuration of performing the above printer type notification by serial communication is realized within the range of the standard interface specifications, it is necessary to replace the standard interface or change the specifications when a different type of printer is connected to the host computer. There is no such problem, and it is very easy to realize a system in which various types of printers are connected to the host computer.

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

第1図はこの発明の一実施例によるプリンタを含む計算
機システムの構成図、第2図は計算機のメモリの一部を
示す図、第3図はプリンタ出力のフローチャート図、第
4図はタイミングチャート図、第5図は従来のプリンタ
を含む計算機システムの構成図、第6図は該計算機シス
テムのメモリの一部を示す図、第7図はプリンタ出力の
フローチャート図、第8図は従来のシステムの信号のタ
イミングチャート図である。 図において、1はCPU、2はメモリ、3はキーボードイ
ンターフェース、4はキーボード、5はCRTインターフ
ェース、6はCRT、7はディスクインターフェース、8
はディスク、9はプリンタインターフェース、10は標準
インターフェース(セントロニクス社仕様)、11はプリ
ンタ装置のCPU、12はメモリ、13はインターフェース、1
4は印字機種、15はインターフェース、16はタイミング
発生部、17はホストからプリンタに出力されたデータの
信号波形、18はタイミング波形である。 なお図中同一符号は同一又は相当部分を示す。
FIG. 1 is a configuration diagram of a computer system including a printer according to an embodiment of the present invention, FIG. 2 is a diagram showing a part of the memory of the computer, FIG. 3 is a flowchart of printer output, and FIG. 4 is a timing chart. 5 and 5 are block diagrams of a computer system including a conventional printer, FIG. 6 is a diagram showing a part of the memory of the computer system, FIG. 7 is a flowchart of printer output, and FIG. 8 is a conventional system. 6 is a timing chart of the signal of FIG. In the figure, 1 is a CPU, 2 is a memory, 3 is a keyboard interface, 4 is a keyboard, 5 is a CRT interface, 6 is a CRT, 7 is a disk interface, and 8
Is a disk, 9 is a printer interface, 10 is a standard interface (Centronics specifications), 11 is a printer CPU, 12 is memory, 13 is an interface, 1
Reference numeral 4 is a printing model, 15 is an interface, 16 is a timing generator, 17 is a signal waveform of data output from the host to the printer, and 18 is a timing waveform. The same reference numerals in the drawings indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ホスト計算機と、標準インターフェースに
より該計算機と接続される異種類のプリンタ装置とから
なるシステムにおけるプリンタ装置において、 自らのプリンタ型式に応じたタイミングパターンの信号
を発生するタイミングパターン発生手段と、 上記ホスト計算機からの特定のデータ列を受信したと
き、上記標準インターフェース内の所定の1つの信号線
を、上記タイミングパターン発生手段の出力信号により
オン,オフさせて、自らのプリンタの型式を上記標準イ
ンターフェースを介して上記ホスト計算機へ通知する通
知手段とを備えたことを特徴とするプリンタ装置。
1. In a printer device in a system comprising a host computer and different types of printer devices connected to the computer by a standard interface, a timing pattern generating means for generating a signal of a timing pattern according to its own printer type. When a specific data string is received from the host computer, a predetermined one signal line in the standard interface is turned on / off by the output signal of the timing pattern generating means, and the model of its own printer is set. A printer device, comprising: notifying means for notifying the host computer via the standard interface.
JP61124028A 1986-05-28 1986-05-28 Printer device Expired - Fee Related JPH0752384B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61124028A JPH0752384B2 (en) 1986-05-28 1986-05-28 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61124028A JPH0752384B2 (en) 1986-05-28 1986-05-28 Printer device

Publications (2)

Publication Number Publication Date
JPS62279423A JPS62279423A (en) 1987-12-04
JPH0752384B2 true JPH0752384B2 (en) 1995-06-05

Family

ID=14875244

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61124028A Expired - Fee Related JPH0752384B2 (en) 1986-05-28 1986-05-28 Printer device

Country Status (1)

Country Link
JP (1) JPH0752384B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01177154A (en) * 1988-01-07 1989-07-13 Brother Ind Ltd Information transmission system
JPH0295879A (en) * 1988-09-30 1990-04-06 Nec Corp Terminal printer device discrimination control system
JPH05122522A (en) * 1991-10-29 1993-05-18 Fuji Photo Film Co Ltd Image output device
JPH0632029A (en) * 1992-07-14 1994-02-08 Nec Ic Microcomput Syst Ltd Printer

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6027566A (en) * 1983-07-27 1985-02-12 Toshiba Corp Discrimination system of connected printer
JPH0736145B2 (en) * 1985-08-16 1995-04-19 インタ−ナシヨナル・ビジネス・マシ−ンズ・コ−ポレ−シヨン Printer

Also Published As

Publication number Publication date
JPS62279423A (en) 1987-12-04

Similar Documents

Publication Publication Date Title
JPH0752384B2 (en) Printer device
JPH0546435A (en) Method and device for automatic test
JP2716087B2 (en) Output device
US4017838A (en) Data entry and recording system having field correct capability
JPH0542749A (en) Printing suspension processing device
JP2716168B2 (en) Compatible printer system
JPH05282244A (en) Information processor
JPH0275015A (en) Printer
JPH0577092B2 (en)
JPS59205642A (en) Information output device
JPH0820936B2 (en) Print control device
JPS5913784B2 (en) Abnormality detection method for multiprocessor systems
JPH0546935Y2 (en)
JPH0615884A (en) Printer
KR100193804B1 (en) How to Support Printer Emulation Using Computer
JPS6332647A (en) Centronics type interface
JPH05224845A (en) Printer sharing system
JPH05224836A (en) Printer and data communication method
JPH0225204B2 (en)
JPH0746335B2 (en) Command data processing method
JPH06110628A (en) Printer
JPH0267168A (en) Printer
JPS63220345A (en) Input/output device
JPS60254268A (en) Selection system of microprogram data
JPH0471881A (en) Recording apparatus

Legal Events

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