JPH03250212A - Terminal controller - Google Patents

Terminal controller

Info

Publication number
JPH03250212A
JPH03250212A JP2045448A JP4544890A JPH03250212A JP H03250212 A JPH03250212 A JP H03250212A JP 2045448 A JP2045448 A JP 2045448A JP 4544890 A JP4544890 A JP 4544890A JP H03250212 A JPH03250212 A JP H03250212A
Authority
JP
Japan
Prior art keywords
information
printer
central processing
processing unit
computer
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.)
Pending
Application number
JP2045448A
Other languages
Japanese (ja)
Inventor
Junichi Takesue
武末 純一
Yasuo Ikegami
池上 泰生
Kenji Nagao
長尾 建司
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.)
Hitachi Ltd
Hitachi Industry and Control Solutions Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Video Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Hitachi Video Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP2045448A priority Critical patent/JPH03250212A/en
Publication of JPH03250212A publication Critical patent/JPH03250212A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To always obtain a desired result of processing by outputting the information of the second central processing unit to a terminal equipment after setting the terminal equipment in an operational state, which is stored in an operational state storing means, corresponding to the second central processing unit. CONSTITUTION:When the information to be outputted from a terminal controller 1 to a printer 9 is switched from the information of a computer 42 to the information of a computer 41, for example, a controller 2 of the terminal controller 1 outputs a control instruction through a printer interface 8 to the printer 9 so as to set the printer 9 in an operational state, which is stored in a memory 71, corresponding to the computer 41. After setting the printer 9 in the operational state corresponding to the computer 41 in such a way, the information of the computer 41 stored in a buffer 51 is outputted through the printer interface 8 to the printer 9. Thus, the desired printing result can be always obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は複数の中央処理装置で1台または複数の端末装
置を共有する端末制御装置に間し、特に端末装置がプリ
ンタの場合に好適な端末制御装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a terminal control device in which one or more terminal devices are shared by a plurality of central processing units, and is particularly suitable when the terminal device is a printer. It relates to a terminal control device.

〔従来の技術〕[Conventional technology]

パーソナルコンピュータまたはワードプロセッサ等のコ
ンピュータを中央処理装置、プリンタを端末装置として
、1台のプリンタを複数のコンピュータで共有する端末
制御装置としては、従来、特開昭63−219028号
公報に記載されているように、各々のコンピュータの印
字要求を検出し、印字要求のあったコンピュータのうち
最も優先順位の高いコンピュータとプリンタとを接続し
て、該コンピュータの情報をプリンタに出力し、該コン
ピュータからの5TROBE信号(同期信号)が所定時
閏来なくなったことを検出すると、該コンピュータの情
報出力は終了したと判断して、プリンタへ改ページ命令
を出力して改ページを行なつた後、再度各々のコンピュ
ータの印字要求を検出し、印字要求のあったコンピュー
タのうち最も優先順位の高いコンピュータとプリンタと
を接続して、該コンピュータの情報をプリンタへ出力す
ることにより、各コンピュータとプリンタとの接続を自
動的に切換えるとともに、同一ページに異なるコンピュ
ータの情報が印字されてしまうことのないようになって
いた。
A terminal control device in which a computer such as a personal computer or a word processor is used as a central processing unit and a printer is used as a terminal device, and one printer is shared by multiple computers, is conventionally described in Japanese Patent Application Laid-Open No. 63-219028. Detects the print request from each computer, connects the computer with the highest priority among the computers that have made the print request, and outputs the information of the computer to the printer. When it detects that the signal (synchronization signal) does not jump at a predetermined time, it determines that the computer has finished outputting information, outputs a page feed command to the printer, performs a page feed, and then prints each page again. The connection between each computer and the printer is established by detecting a print request from a computer, connecting the computer with the highest priority among the computers making the print request to the printer, and outputting the information of the computer to the printer. In addition to automatically switching, it also prevented information from different computers from being printed on the same page.

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

前記従来技術は端末装置の動作状態という点については
配慮されていなかった。例えばプリンタを端末装置とし
た場合、動作状態として、同一情報に対するプリンタの
印字文字の種類や改行ピッチなどの動作モードの他、プ
リンタ内のメモリに印字文字フォントを登録し、該印字
文字フォントを用いて印字する外字の設定が可能なプリ
ンタも多い、該動作状態の設定はコンピュータからプリ
ンタへ出力される情報に含まれる制御命令により行なわ
れるが、コンピュータからプリンタへ情報が出力される
ごとに、該情報の先頭において設定可能な前記動作状態
全てに対して、前記制御命令による前記動作状態の設定
が行なわれるとは限らない、このため、前記従来技術の
装置を用いた場合、あるコンピュータが設定した動作状
態のプリンタで他のコンピュータの情報を印字してしま
い、例えば外字に対する印字文字フォントが異なるなど
、所望の印字結果が得られないことがあるという問題が
あった。
The prior art does not take into consideration the operating state of the terminal device. For example, when a printer is used as a terminal device, in addition to the operation mode such as the printer's print character type and line feed pitch for the same information, the print character font is registered in the printer's internal memory, and the print character font is used as the operating state. There are many printers that allow you to set external characters to be printed.The setting of the operating state is done by control commands included in the information output from the computer to the printer, but each time information is output from the computer to the printer, the The control command does not necessarily set all the operating states that can be set at the beginning of the information. Therefore, when using the device of the prior art, the operating states that can be set at the beginning of the information are not necessarily set by a certain computer. There is a problem in that a printer in an operating state prints information from another computer and, for example, a desired print result may not be obtained because the printed character font is different for external characters.

また、コンピュータからの前記情報出力が複数データか
ら成る制御命令の途中で終了してしまった場合、プリン
タは該複数データから成る制御命令のデータ人力待ち状
態になっているので、端末側W装置からプリンタへ改ペ
ージ命令を出力しても、プリンタは該改ページ命令を前
記複数データから成る制御命令の一部として判断してし
まい、プリンタにおいて改行ページが行なわれないとい
う問題もあった。
In addition, if the information output from the computer ends in the middle of a control command consisting of multiple data, the printer is in a state of waiting for human input for the control command consisting of multiple data, so the output from the W device on the terminal side Even if a page break command is output to the printer, the printer recognizes the page break command as part of the control command consisting of the plurality of data, and there is a problem in that the printer does not perform a line break.

本発明の第1の目的は、端末装置へ出力する情報を、第
1の中央処理装置の情報から第2の中央処理装置の情報
へ切換える場合、該第2の中央処理装置に対応する動作
状態に前記端末装置を設定してから、該第2の中央処理
装置の情報を前記端末装置へ出力する端末制御装置を提
供することにある。
A first object of the present invention is to change the operating state corresponding to the second central processing unit when switching the information output to the terminal device from the information of the first central processing unit to the information of the second central processing unit. An object of the present invention is to provide a terminal control device that outputs information of the second central processing unit to the terminal device after setting the terminal device.

第2の目的は、端末装置への情報出力終了時、該端末装
置が複数データから成る制御命令のデータ人力待ち状態
になっている場合、該データ入力待ち状態を解除する端
末側m装置を提供することにある。
The second object is to provide a terminal-side m-device that releases the data input wait state when the terminal device is in the data input wait state for a control command consisting of a plurality of data when the output of information to the terminal device is finished. It's about doing.

Crj4Mを解決するための手段〕 前記第1の目的を達成するために、各中央処理装置から
端末装置へ出力される情報の解析を行なう解析手段と、
該解析手段により前記情報に含まれる前記端末装置の動
作の設定等を行なう制御命令を認識して、各中央処理装
置に対応する前記端末装置の動作状態を記憶する動作状
態記憶手段を設け、端末制御装置から前記端末装置へ出
力する情報を第1の中央処理装置の情報から第2の中央
処理装置の情報へ切換える場合、該第2の中央処理装置
の情報を前記端末装置へ出力するのに先立ち、前記動作
状態記憶手段に記憶した前記第2の中央処理装置に対応
する動作状態に前記端末装置を設定してから、該第2の
中央処理H[!lの情報を前記端末装置へ出力するよう
にしたものである。
Means for Solving Crj4M] In order to achieve the first objective, an analysis means for analyzing information output from each central processing unit to a terminal device;
Operating state storage means is provided for recognizing a control command for setting the operation of the terminal device included in the information by the analysis means and storing the operating state of the terminal device corresponding to each central processing unit, When switching the information output from the control device to the terminal device from the information of the first central processing unit to the information of the second central processing unit, the information of the second central processing unit is output to the terminal device. First, the terminal device is set to the operating state corresponding to the second central processing unit stored in the operating state storage means, and then the second central processing unit H[! 1 information is output to the terminal device.

前記第2の目的を達成するために、端末装置への情報の
出力終了時、前記解析手段が複数データから成る制御命
令のデータ入力待ち状態の場合、該解析手段の入力待ち
データ数に相当するダミーデータを前記端末装置へ出力
するようにしたものである。
In order to achieve the second objective, when the output of information to the terminal device is finished, if the analysis means is in a state of waiting for data input of a control command consisting of a plurality of data, the number of data corresponding to the number of data waiting for input of the analysis means Dummy data is output to the terminal device.

〔作用〕[Effect]

例えば第1の中央処理装置から人力した情報を端末装置
へ出力する際、端末制御装置は解析手段により、前記情
報に含まれる前記端末装置の設定を行なう制御命令を認
識して、前記第1の中央処理装置に対応する前記端末装
置の動作状態を逐次動作状態記憶手段に記憶しておく、
また、該動作状態記憶手段には前記と同様にして、第2
の中央処理装置に対応する前記端末装置の動作状態を記
憶しである。
For example, when manually outputting information from a first central processing unit to a terminal device, the terminal control device uses an analysis means to recognize a control command for configuring the terminal device included in the information, and sequentially storing the operating state of the terminal device corresponding to the central processing unit in an operating state storage means;
Further, in the same manner as described above, a second
The operating state of the terminal device corresponding to the central processing unit of is stored.

前記端末制御装置は前記端末装置へ出力する情報を前記
第1の中央処理装置の情報から前記第2の中央処理装置
の情報へ切換える場合、該第2の中央処理fiR置の情
報を前記端末装置へ出力するのに先立ち、前記動作状態
記憶手段に記憶した前記第2の中央処理装置に対口した
動作状態に前記端末装置に設定し・てから、前記第2の
中央処理装置の情報を前記端末装置へ出力する。
When switching the information to be output to the terminal device from the information of the first central processing unit to the information of the second central processing unit, the terminal control device transfers the information of the second central processing fiR location to the terminal device. Before outputting information to the terminal device, the terminal device is set to an operating state corresponding to the second central processing unit stored in the operating state storage means, and then the information of the second central processing unit is set to the operating state corresponding to the second central processing unit stored in the operating state storage means. Output to the terminal device.

それによって、前記端末装置は前記第2の中央処理装置
に対する動作状態に設定されてから、前記第2の中央処
理装置に対する処理を行なうことができるので、誤動作
することがない。
Thereby, the terminal device can perform processing for the second central processing unit after being set to the operating state for the second central processing unit, so that malfunctions will not occur.

また、中央処理装置の情報出力が複数データから成る制
御命令の途中で終了してしまった場合、端末制御装置は
端末装置への前記中央処理装置の情報の出力終了時、前
記解析手段の入力待ちデータ数に相当するダミーデータ
を前記端末装置へ出力する。
In addition, if the information output of the central processing unit ends in the middle of a control command consisting of multiple data, the terminal control device waits for the input of the analysis means when the output of the information of the central processing unit to the terminal device is finished. Dummy data corresponding to the number of data is output to the terminal device.

それによって、該端末装置における前記複数データから
成る制御命令のデータ入力待ちは解除されるので、誤動
作することがない。
As a result, the terminal device is released from waiting for data input of the control command consisting of the plurality of data, so that malfunctions will not occur.

〔実施例〕〔Example〕

以下、本発明の一実施例として、端末装置がプリンタで
、1台のプリンタを2台のコンピュータで共有する場合
を例に、図面を用いて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings, taking as an example a case where the terminal device is a printer and one printer is shared by two computers.

第1図は本発明による端末制御装置の一例を示すブロッ
ク図である。同図において、1は端末制御m置、2はC
PU、ROM、RAM等で構成されたコントローラ、3
1はコンピュータ41とのインタフェース、32はコン
ピュータ42とのインタフェース、5は各コンピュータ
からプリンタへの情報を一時記憶するバッファメモリで
、コンピュータ41の情報を一時記憶するバッファ51
と、コンピュータ42の情報を一時記憶するバッファ5
2に分割しである。6はプリンタ9へ出力する情報の解
析を行なう解析部、7はプリンタ9の動作状態を記憶す
るメモリで、コンピュータ41に対応するプリンタ9の
動作状態を記憶するメモリ71と、コンピュータ42に
対応するプリンタ9の動作状態を記憶するメモリ72に
分割しである。また、8はプリンタ9とのインタフェー
ス、10はタイマである。
FIG. 1 is a block diagram showing an example of a terminal control device according to the present invention. In the same figure, 1 is the terminal control m position, 2 is the C
Controller consisting of PU, ROM, RAM, etc., 3
1 is an interface with the computer 41; 32 is an interface with the computer 42; 5 is a buffer memory that temporarily stores information from each computer to the printer; and a buffer 51 that temporarily stores information from the computer 41.
and a buffer 5 for temporarily storing information of the computer 42.
It is divided into two parts. 6 is an analysis unit that analyzes information to be output to the printer 9; 7 is a memory that stores the operating state of the printer 9; memory 71 that stores the operating state of the printer 9 that corresponds to the computer 41; It is divided into a memory 72 that stores the operating status of the printer 9. Further, 8 is an interface with the printer 9, and 10 is a timer.

なお、説明を簡単にするため、プリンタ9の動作状態と
し・では、動作モードに間して下記2モート、外字に間
して1文字を設定可能とする。
In order to simplify the explanation, in the operating state of the printer 9, it is assumed that the following two modes can be set in the operating mode and one character can be set in between the external characters.

(1)印字文字・・・種類Aまたは種類B(2)印字速
度・・・標準または倍速 また、誤動作モートの初期設定値は、印字文字は種類A
、印字速度は標準、外字の設定なし・(つまり、外字は
スペース)とする。
(1) Printed characters: type A or type B (2) Printing speed: standard or double speed Also, the initial setting value of the malfunction mode is that the printed characters are type A.
, the printing speed is standard, and no external characters are set (in other words, external characters are spaces).

起動時、端末制御#装置1のコントローラ2はメモリ7
1およびメモリ72をプリンタ9の初期設定状態にする
。
At startup, controller 2 of terminal control #device 1 uses memory 7
1 and memory 72 to the initial setting state of the printer 9.

コンピュータ41から情報が出力されると、端末制御装
置1のコントローラ2はコンピュータインタフェース3
1を介して該情報を入力し、バッファ51に順次記憶す
るとともに、メモリ71に記憶した前記コンピュータ4
1に対応する動作状態、つまり初期設定状態にプリンタ
9を設定するため、印字文字を種類Aに設定する制御命
令、印字速度を標準に設定する制御命令、外字にスペー
スを設定する制御命令をプリンタインタフェース8を介
し・てプリンタ9へ出力する。
When information is output from the computer 41, the controller 2 of the terminal control device 1 outputs the information via the computer interface 3.
1, the computer 4 inputs the information and sequentially stores it in the buffer 51, and stores it in the memory 71.
In order to set the printer 9 to the operating state corresponding to 1, that is, the initial setting state, the printer sends a control command to set print characters to type A, a control command to set the printing speed to standard, and a control command to set spaces for external characters. The data is output to a printer 9 via an interface 8.

次いて、コントローラ2はバッファ51に記憶した前記
コンピュータ411の情報を記憶順に読出し、解析部6
において該情報の解析を行なった後、プリンタインタフ
ェース8を介し・てプリンタ9へ出力する。
Next, the controller 2 reads the information of the computer 411 stored in the buffer 51 in the order in which it is stored, and the analysis unit 6
After analyzing the information, the information is output to the printer 9 via the printer interface 8.

解析部6は前記コンピュータ41の情報に前記プリンタ
9の動作モートの設定を行なう制御命令が含まれていな
いかチエツクし、例えば、印字文字を種類Bに、外字に
0を設定する制御命令が含まれていた場合、メモリ71
に印字文字は種!ffB、外字はOを記憶する。
The analysis unit 6 checks whether the information of the computer 41 includes a control command for setting the operating mode of the printer 9, and determines whether the information contains, for example, a control command for setting the print character to type B and the external character to 0. memory 71
The characters printed on it are seeds! ffB, external character O is memorized.

以後、端末制御装置1のコントローラ2はコンピュータ
インタフェース31を介した前記コンピュータ41の情
報入力が終了し、バッファ51に記憶した該情報を全て
プリンタインタフェース8を介し・てプリンタ9へ出力
するまでくり返す。
Thereafter, the controller 2 of the terminal control device 1 repeats the process until the information input to the computer 41 via the computer interface 31 is completed and all of the information stored in the buffer 51 is output to the printer 9 via the printer interface 8. .

端末制御装置1のコントローラ2はプリンタ9への該情
報の出力終了時に解析部6をチエツクし・、複数データ
から成る制御命令のデータ人力待ちの状態の場合には、
解析部6の該データ入力待ち状態を解除するとともに、
解析部6の人力待ちのデータ数に相当するダミーデータ
をプリンタインタフェース8を介してプリンタ9へ出力
して、プリンタ9における前記複数データから成る制御
命令のデータ入力待ち状態を解除する。
The controller 2 of the terminal control device 1 checks the analysis unit 6 when the output of the information to the printer 9 is finished, and if the data of the control command consisting of a plurality of data is waiting for human input,
While canceling the data input waiting state of the analysis unit 6,
Dummy data corresponding to the number of data waiting for human input in the analysis section 6 is output to the printer 9 via the printer interface 8, and the printer 9 is released from the data input waiting state of the control command consisting of the plurality of data.

なお、端末側m装置lのコントローラ2はコンピュータ
インタフェース31を介した前記コンピュータ41の情
報人力が所定時間行なわれなかったことをタイマ10に
より検出して、コンピュータ41の情報出力が終了した
と判断する。
Note that the controller 2 of the terminal side m device l detects by the timer 10 that the information input of the computer 41 via the computer interface 31 has not been performed for a predetermined period of time, and determines that the information output of the computer 41 has ended. .

次にコンピュータ42から情報が出力されると、端末制
御装置1のコントローラ2は前記と同様にコンピュータ
インタフェース32を介して該情報を入力し、バッファ
52に順次記憶するとともに、メモリ72に記憶した前
記コンピュータ42に対応する動作状態、つまり初期設
定状態にプリンタ9を設定するため、印字文字を種類A
に設定する制御命令、印字速度を標準に設定する制御命
令、外字にスペースを設定する制御命令をプリンタイン
タフェース8を介してプリンタ9へ出力する。
Next, when information is output from the computer 42, the controller 2 of the terminal control device 1 inputs the information via the computer interface 32 in the same manner as described above, stores it sequentially in the buffer 52, and also stores the information stored in the memory 72. In order to set the printer 9 to the operating state corresponding to the computer 42, that is, the initial setting state, the printed characters are set to type A.
A control command to set the print speed to the standard, a control command to set a space for external characters, and a control command to set spaces for external characters are output to the printer 9 via the printer interface 8.

次いて、コントローラ2はバッファ52に記憶し、た前
記コンピュータ42の情報を記憶順に読出し、解析部6
において該情報の解析を行なった後、プリンタインタフ
ェース8を介してプリンタ9へ出力する。
Next, the controller 2 reads out the information stored in the buffer 52 and stored in the computer 42 in the order in which it was stored, and the analysis unit 6
After analyzing the information, the information is output to the printer 9 via the printer interface 8.

また、前記コンピュータ42の情報をプリンタ9へ出力
中にコンピュータ41から情報が出力されると、端末制
御装置1のコントローラ2は前記と同様にしてコンピュ
ータインタフェース31を介して該情報を人力し、バッ
ファ51に順次記せする。
Further, when information is output from the computer 41 while the information from the computer 42 is being output to the printer 9, the controller 2 of the terminal control device 1 manually inputs the information via the computer interface 31 in the same manner as described above, and stores the information in the buffer. 51 in sequence.

そして、前記コンピュータ42の情報出力が終了し、バ
ッファ52に記憶した前記コンピュータ42の情報を全
てプリンタインタフェース8を介してプリンタ9へ出力
し、解析部6が前記データ入力待ち状態の場合には、入
力待ちデータ数に相当するダミーデータをプリンタイン
タフェース8を介してプリンタ9へ出力した後、コント
ローラ2はメモリ71に記憶した前記コンピュータ4】
に対応し・たプリンタ9の動作状態に設定するため、前
記の例では、印字文字を種類Bに設定する制御命令、印
字速度を標準に設定する制御命令、外字にOを設定する
制御命令をプリンタインタフェース8を介してプリンタ
9へ出力する。
Then, when the information output of the computer 42 is finished and all the information of the computer 42 stored in the buffer 52 is output to the printer 9 via the printer interface 8, and the analysis section 6 is in the data input waiting state, After outputting dummy data corresponding to the number of input waiting data to the printer 9 via the printer interface 8, the controller 2 outputs the data stored in the memory 71 to the computer 4]
In order to set the operating state of the printer 9 corresponding to It is output to a printer 9 via a printer interface 8.

次いて、コントローラ2はバッファ51に記憶した前記
コンピュータ41の情報を記憶順に読出し、解析部6に
おいて該情報の解析を行なった後、プリンタインタフェ
ース8を介してプリンタ9へ出力する。
Next, the controller 2 reads out the information of the computer 41 stored in the buffer 51 in the order in which it is stored, analyzes the information in the analysis section 6, and outputs the information to the printer 9 via the printer interface 8.

本実施例によれば、端末制御装置Iからプリンタ9へ出
力する情報を、例えばコンピュータ42の情報からコン
ピュータ41の情報へ切変える場合、端末側W装置1の
コントローラ2はメモリ71に記憶したコンピュータ4
1に対応するプリンタ9の動作状態に設定する制御命令
をプリンタインタフェース8を介してプリンタ9へ出力
し、プリンタ9をコンピュータ4Iに対応する動作状態
に設定してから、バッファ51に記憶した前記コンピュ
ータ41の情報をプリンタインタフェース8を介してプ
リンタ9へ出力するので、プリンタ9において、コンピ
ュータ42の設定し・た印字文字、印字速度あるいは外
字のまま、前記コンピュータ41の情報の印字を行なっ
てしまい、印字文字の種類が異なる、あるいは外字に対
する印字文字フォントが異なるなと、所望の印字結果が
得られないということがなくなり、常に所望の印字結果
が得られるという効果がある。
According to this embodiment, when switching the information output from the terminal control device I to the printer 9 from, for example, information on the computer 42 to information on the computer 41, the controller 2 of the terminal side W device 1 uses the computer stored in the memory 71. 4
A control command for setting the printer 9 to the operating state corresponding to the computer 4I is output to the printer 9 via the printer interface 8, and the printer 9 is set to the operating state corresponding to the computer 4I. Since the information of 41 is output to the printer 9 via the printer interface 8, the information of the computer 41 is printed in the printer 9 using the printing characters, printing speed, or external characters set by the computer 42. This eliminates the possibility that the desired print result cannot be obtained due to different types of print characters or different print character fonts for external characters, and the effect is that the desired print result can always be obtained.

また、例えばコンピュータ41の情報出力が複数データ
から成る制御命令の途中で終了してしまった場合、端末
制御装置1のコントローラ2が該情報のプリンタ9への
出力終了時、解析部6をチエツクすることにより、プリ
ンタ9が前記複数データから成る制御命令のデータ入力
待ち状態になっていることを検出し、入力待ちのデータ
数に相当するダミーデータをプリンタインタフェース8
を介してプリンタ9へ出力するので、プリンタ9の前記
データ入力待ち状態を解除することができ、この後、プ
リンタインタフェース8を介してプリンタ9へ出力した
例えばコンピュータ42に対応する動作状態に設定する
制御命令に対して、プリンタ9が誤動作することがない
という効果もある。
Further, for example, if the output of information from the computer 41 ends in the middle of a control command consisting of a plurality of data, the controller 2 of the terminal control device 1 checks the analysis unit 6 when the output of the information to the printer 9 is finished. As a result, the printer 9 detects that it is in a state of waiting for data input of a control command consisting of the plurality of data, and sends dummy data corresponding to the number of data waiting for input to the printer interface 8.
Since the data is output to the printer 9 via the printer interface 8, it is possible to release the printer 9 from the data input waiting state, and then set the operating state corresponding to, for example, the computer 42 output to the printer 9 via the printer interface 8. Another advantage is that the printer 9 does not malfunction in response to control commands.

ざらに、前記各コンピュータに対応したプリンタ9の動
作状態の記せと、前記プリンタ9の動作状態の設定に間
する処理は、端末制御装置1のコントローラ2が全て自
動的に行なうので、各コンピュータの使用者は前記プリ
ンタ9の動作状態を!識する必要がなくなり、操作性が
向上するという効果もある。
Roughly speaking, since the controller 2 of the terminal control device 1 automatically performs all the processes of recording the operating state of the printer 9 corresponding to each computer and setting the operating state of the printer 9, The user can check the operating status of the printer 9! This also has the effect of improving operability as there is no need to know the details.

また、本実施例では、端末側is装置Iからプリンタ9
へ出力する情報を、例えばコンピュータ41の情報から
コンピュータ42の情報へ切変える場合、端末制御装置
1のコントローラ2はメモリ72に記憶したコンピュー
タ42に対応する動作状態にプリンタ9を設定するため
に、全動作状態、つまり印字文字、印字速度、外字に対
して行なうようにしたが、コンピュータ41に対応する
動作状態と異なるコンピュータ42に対応する動作状態
に対してのみ、前記例では、印字文字、外字に対しての
み行なうようにしてもかまわない。また、コンピュータ
42に対応する外字は設定されていないということから
、コンピュータ42は外字を使用しないと判断して、外
字に対する設定を行なわないようにしてもかまわない。
In addition, in this embodiment, from the terminal side is device I to the printer 9
For example, when changing the information output to the computer 41 from the computer 42 information, the controller 2 of the terminal control device 1 sets the printer 9 to an operating state corresponding to the computer 42 stored in the memory 72. Although the process is performed for all operating states, that is, printed characters, printing speed, and external characters, in the above example, only for the operating state corresponding to the computer 42, which is different from the operating state corresponding to the computer 41, the printed characters, external characters You can also do it only for. Furthermore, since no external characters have been set for the computer 42, it may be determined that the computer 42 does not use external characters, and no settings for external characters may be made.

逆に、例えばコンピュータ41の情報出力が終了し・、
再度コンピュータ41の情報出力があった場合、端末制
御装置1からプリンタ9へ出力する情報に対するコンピ
ュータが切換ってはいないが、メモリ71に記憶したコ
ンピュータ1に対応する動作状態に設定するため、全動
作状態に対する制御命令をプリンタインタフェース8を
介してプリンタ9へ出力するようにしてもかまわない。
Conversely, for example, when the computer 41 finishes outputting information,
When information is output from the computer 41 again, the computer for the information output from the terminal control device 1 to the printer 9 has not been switched, but all the information is set to the operating state corresponding to the computer 1 stored in the memory 71. Control commands regarding the operating state may be output to the printer 9 via the printer interface 8.

なお、このようにすることにより、端末制御装置1が前
記コンピュータ41の情報出力の後、再度コンピュータ
41の情報を出力するまでの間に、プリンタ9の操作等
によりプリンタ9の動作状態が変化してしまった場合で
も、所望の印字結果を得ることができるという効果があ
る。
By doing so, the operating state of the printer 9 does not change due to the operation of the printer 9, etc., after the terminal control device 1 outputs the information from the computer 41 and before it outputs the information from the computer 41 again. This has the effect that even if the print result is incorrect, the desired printing result can be obtained.

また、端末制御装置1において解析部6はコントローラ
2と異なるブロックとして示したが解析部6をコントロ
ーラ2に搭載したCPUのプログラムの一部に絹込んで
もちろんかまわない。
Furthermore, although the analysis section 6 is shown as a different block from the controller 2 in the terminal control device 1, it is of course possible to incorporate the analysis section 6 into a part of the program of the CPU installed in the controller 2.

し・かじ、以上の実施例では、端末制御装置1の解析部
6における情報解析処理は端末制御II装置lに接続さ
れるプリンタ9の情報解析処理に対応していなければな
らない。従ってプリンタ9を変えると、前記解析部6の
情報解析処理も変更する必要が生しる場合もある。
However, in the above embodiment, the information analysis process in the analysis section 6 of the terminal control device 1 must correspond to the information analysis process in the printer 9 connected to the terminal control II device 1. Therefore, if the printer 9 is changed, the information analysis processing of the analysis section 6 may also need to be changed.

そこで、前記解析部6の情報解析処理をROMあるいは
ICカード等の交換により変更できるようにしておくこ
ともてきる。
Therefore, it may be possible to change the information analysis processing of the analysis section 6 by replacing the ROM or IC card.

このようにしておくことにより、端末制御装置1に接続
するプリンタ9を、既製品のプリンタはもちろん、新製
品のプリンタに変更する場合でも、前記解析部6の情報
解析処理を容易に変更できるという効果がある。
By doing so, even when changing the printer 9 connected to the terminal control device 1 to a new printer as well as an off-the-shelf printer, the information analysis process of the analysis section 6 can be easily changed. effective.

なお、以上の実施例において、コンピュータ41と端末
制御装置l、コンピュータ42と端末制鍵装置1、プリ
ンタ9と端末制御装置lとの間のインタフェースはそれ
ぞれセントロニクス仕様等のパラレルインタフェース、
R5−232C仕様等のシリアルインタフェースのいず
れでもかまわないことはもちろんである。
In the above embodiments, the interfaces between the computer 41 and the terminal control device 1, the computer 42 and the terminal key control device 1, and the printer 9 and the terminal control device 1 are parallel interfaces such as Centronics specifications, respectively.
Of course, any serial interface such as the R5-232C specification may be used.

また、端末側W装置1はプリンタ9から独立した装置と
して示したが、第2図のようにプリンタ9に朝込んでも
もちろんかまわない。
Further, although the terminal side W device 1 is shown as a device independent from the printer 9, it is of course possible to connect the printer 9 in the morning as shown in FIG.

なお、このようにすることにより、プリンタ9における
前記情報解析処理と端末側#装置1における前記情報解
析処理とを同一処理で行なえるように構成することもで
きる。
In addition, by doing so, it is also possible to configure such that the information analysis process in the printer 9 and the information analysis process in the terminal side #device 1 can be performed in the same process.

あるいは、第3図のように端末制御装置1をコンピュー
タ4】から情報の入力を行なう情報入力装置11と、コ
ンピュータ42から情報の入力を行なう情報入力装置1
2と、情報入力装置11または情報入力装置12から前
記情報を人力して、該情報をプリンタ9へ出力する情報
出力装置13とて構成してもよい。
Alternatively, as shown in FIG. 3, the terminal control device 1 may be an information input device 11 that inputs information from a computer 4 and an information input device 1 that inputs information from a computer 42.
2, and an information output device 13 that manually inputs the information from the information input device 11 or 12 and outputs the information to the printer 9.

第4図に情報人力装置11の一具体例のブロック図を示
す、同図において、vI1図と同様のプロ・ツクは同一
記号にて示しである。なお、111は情報出力@@13
とのインタフェースである。
FIG. 4 shows a block diagram of a specific example of the information manpower device 11. In the same figure, the same programs as in FIG. vI1 are indicated by the same symbols. In addition, 111 is information output @@13
It is an interface with.

情報人力装置11は第1図の端末制御装置1において、
コンピュータ1台、プリンタ1台を接続した場合と同様
の動作を行なう。
The information human-powered device 11 is the terminal control device 1 shown in FIG.
The same operation is performed as when one computer and one printer are connected.

なお、情報入力装置12も情報入力装置1i111と同
様である。
Note that the information input device 12 is also similar to the information input device 1i111.

第5図に情報出力装置13の一翼体例のプロ・ツク図を
示す、同図において、第1図と同様のプロ・ツクは同一
記号にて示しである。なお、131は情報入力装置11
とのインタフェース、132は情報出力装置工2とのイ
ンタフェースである。
FIG. 5 shows a program diagram of an example of a single wing body of the information output device 13. In this figure, components similar to those in FIG. 1 are indicated by the same symbols. Note that 131 is the information input device 11
132 is an interface with the information output device 2.

情報出力装置13は情報入力装置11、情報入力装置1
2のどちらか一方に対し、情報の出力を許可し、該情報
をプリンタ9に出力する。
The information output device 13 is the information input device 11 and the information input device 1
2 is permitted to output information, and the information is output to the printer 9.

このように、端末側m装置1を情報入力装置11、情報
入力装置12、情報出力装置13という独立した装置で
構成することもてきる。
In this way, the terminal-side m-device 1 can be configured with independent devices such as the information input device 11, the information input device 12, and the information output device 13.

最後に、以上の実施例はいずれも説明を簡単にするため
、1台のプリンタを2台のコンピュータで共有する場合
についてのみ説明したが、複数のプリンタを複数のコン
ピュータで共有する場合にも容易に拡張できることは明
らかである。
Finally, in order to simplify the explanation, the above embodiments have only been described for the case where one printer is shared by two computers, but it is also easy to share multiple printers among multiple computers. It is clear that it can be extended to

〔発明の効果〕〔Effect of the invention〕

本発明によれば、端末側1all装置から端末装置へ出
力する情報を第1の中央処理装置の情報から第2の中央
処理装置の情報へ切変える場合、動作状態記憶手段に記
憶した前記第2の中央処理装置に対応する動作状態に前
記端末装置を設定してから、前記第2の中央処理装置の
情報を該端末装置へ出力するので、該端末装置において
、前記第1の中央処理装置が設定した動作状態で前記第
2の中央処理装置の処理を行なうことがなくなり、常に
所望の処理結果を得ることができるという効果がある。
According to the present invention, when switching the information output from the terminal side 1all device to the terminal device from the information of the first central processing unit to the information of the second central processing unit, the second Since the terminal device is set to an operating state corresponding to the central processing unit of the second central processing unit, information of the second central processing unit is output to the terminal device. This eliminates the need for the second central processing unit to perform processing in the set operating state, and has the advantage that desired processing results can always be obtained.

また、各中央処理装置に対応する前記端末装置の動作状
態の前記動作状態記憶手段への記憶と、前記端末装置の
誤動作状態記憶手段に記憶した動作状態への設定は、端
末制御装置が自動的に行なうので各中央処理装置の使用
者は前記端末装置の動作状態を意識する必要がなくなり
、操作性が向上するという効果もある。
Further, the terminal control device automatically stores the operating state of the terminal device corresponding to each central processing unit in the operating state storage means and sets the operating state stored in the malfunction state storage means of the terminal device. Since the operation is carried out separately, the user of each central processing unit does not need to be aware of the operating state of the terminal device, which has the effect of improving operability.

また、端末制御装置から端末装置への情報出力終了時、
前記端末装置が複数データから成る制御命令のデータ人
力待ち状態になっている場合、前記端末制御装置は前記
解析手段により前記端末装置のデータ入力待ち状態を検
出し、入力待ちのデータ数に相当するダミーデータを該
端末装置へ出力するので、該端末装置のデータ入力待ち
状態を解除することができ、この後、例えば第2の中央
処理装置に対応する動作状態に設定する制御命令を前に
端末制御装置から該端末装置へ出力した時に該端末装置
が誤動作することがないという効果がある。
Also, when information output from the terminal control device to the terminal device ends,
When the terminal device is in a data input waiting state for a control command consisting of a plurality of data, the terminal control device detects the data input waiting state of the terminal device by the analysis means, and detects the data input waiting state of the terminal device, and detects the data input waiting state corresponding to the number of data waiting for input. Since dummy data is output to the terminal device, it is possible to release the terminal device from the data input waiting state, and after that, for example, the terminal device is given a control command to set the operating state corresponding to the second central processing unit. There is an effect that the terminal device does not malfunction when output is output from the control device to the terminal device.

さらに、端末制御装置の解析手段で認識する制御命令を
ROMまたはICカード等を交換することにより変更で
きるので、前記制御命令の異なる端末装置にも容易に対
応でき、既製の端末装置はもちろん、新製品の端末装置
にも容易に対応できるという効果もある。
Furthermore, since the control commands recognized by the analysis means of the terminal control device can be changed by replacing the ROM or IC card, it can be easily applied to terminal devices with different control commands, and can be applied not only to off-the-shelf terminal devices but also to new ones. Another advantage is that it can be easily applied to product terminal devices.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図の実施例の変形を示す構成図、第3図は本発明の他の
実施例の構成図、114図は第3図の情報入力装置11
の一具体例のブロック図、第5図は第3図の情報出力装
!13の一具体例のブロック図である。 1・・・端末制御装置、2・・・コントローラ、31お
よび32・・・コンピュータインタフェース、51およ
び52・・・バッファ、6・・・解析部、71および7
2・・・メモリ、8・・・プリンタインタフェース。 第 図
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
114 is a block diagram showing a modification of the embodiment shown in FIG. 3; FIG. 3 is a block diagram of another embodiment of the present invention; and FIG.
Figure 5 is a block diagram of a specific example of the information output device shown in Figure 3! 13 is a block diagram of a specific example of FIG. DESCRIPTION OF SYMBOLS 1... Terminal control device, 2... Controller, 31 and 32... Computer interface, 51 and 52... Buffer, 6... Analysis unit, 71 and 7
2...Memory, 8...Printer interface. Diagram

Claims (1)

【特許請求の範囲】 1、複数の中央処理装置からひとつの中央処理装置を選
択して、該中央処理装置の情報を端末装置へ出力する端
末制御装置において、前記情報の解析手段と、前記各中
央処理装置に対応する前記端末装置の動作状態を記憶す
る動作状態記憶手段を設け、前記情報を前記端末装置へ
出力する際、前記解析手段により該情報の解析を行ない
、該情報に含まれる前記端末装置の動作状態の設定等を
行なう制御命令を認識して、前記動作状態記憶手段に記
憶した該中央処理装置に対応する前記端末装置の動作状
態を該制御命令に従い変更するようにして、前記端末装
置へ出力する情報を、ある中央処理装置(以下、第1の
中央処理装置という)の情報から他の中央処理装置(以
下、第2の中央処理装置という)の情報へ切換える場合
、該第2の中央処理装置の情報を前記端末装置へ出力す
るのに先立ち、前記動作状態記憶手段に記憶された前記
第2の中央処理装置に対応する動作状態に前記端末装置
を設定してから、前記第2の中央処理装置の情報を前記
端末装置へ出力するようにしたことを特徴とする端末制
御装置。 2、特許請求の範囲第1項に記載の装置において、前記
端末装置への前記情報の出力終了時、前記解析手段が複
数データ(以下、データとは1転送処理で転送される情
報をいう)から成る制御命令のデータ入力待ち状態の場
合、該解析手段の入力待ちデータ数に相当するダミーデ
ータを前記端末装置へ出力するようにしたことを特徴と
する端末制御装置。 3、特許請求の範囲第1項に記載の装置において、前記
解析手段で認識する前記制御命令をROMまたはICカ
ード等を交換することにより変更できるようにしたこと
を特徴とする端末制御装置。
[Scope of Claims] 1. A terminal control device that selects one central processing unit from a plurality of central processing units and outputs information of the central processing unit to a terminal device, comprising means for analyzing said information, and each of said central processing units. Operating state storage means is provided for storing the operating state of the terminal device corresponding to the central processing unit, and when the information is output to the terminal device, the analysis means analyzes the information, and the information contained in the information is analyzed by the analysis means. Recognizing a control command for setting an operating state of a terminal device, etc., and changing the operating state of the terminal device corresponding to the central processing unit stored in the operating state storage means in accordance with the control command, When switching the information to be output to a terminal device from the information of a certain central processing unit (hereinafter referred to as the first central processing unit) to the information of another central processing unit (hereinafter referred to as the second central processing unit), the Prior to outputting the information of the second central processing unit to the terminal device, the terminal device is set to an operating state corresponding to the second central processing unit stored in the operating state storage means, and then A terminal control device characterized in that information from a second central processing unit is output to the terminal device. 2. In the device according to claim 1, when the output of the information to the terminal device is finished, the analysis means collects a plurality of data (hereinafter, data refers to information transferred in one transfer process). 2. A terminal control device according to claim 1, wherein when a control command is in a data input waiting state, dummy data corresponding to the number of input data of the analysis means is output to the terminal device. 3. A terminal control device according to claim 1, wherein the control command recognized by the analysis means can be changed by replacing a ROM, an IC card, or the like.
JP2045448A 1990-02-28 1990-02-28 Terminal controller Pending JPH03250212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2045448A JPH03250212A (en) 1990-02-28 1990-02-28 Terminal controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2045448A JPH03250212A (en) 1990-02-28 1990-02-28 Terminal controller

Publications (1)

Publication Number Publication Date
JPH03250212A true JPH03250212A (en) 1991-11-08

Family

ID=12719624

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2045448A Pending JPH03250212A (en) 1990-02-28 1990-02-28 Terminal controller

Country Status (1)

Country Link
JP (1) JPH03250212A (en)

Similar Documents

Publication Publication Date Title
JP2615137B2 (en) Printing device
CN101751237B (en) Information processing apparatus and information processing method
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JPS58114289A (en) Printer controller
JPS642180Y2 (en)
JPH0531167B2 (en)
JPH05324224A (en) Printer device
JPS61209187A (en) recording device
JPH02220861A (en) Page printer
JPS63193226A (en) Printing device with manual operation printing function
JPS63264365A (en) Computer
JPH03188558A (en) Document processing device with equal allocation function
JPH0361562A (en) Printer
JPH0639181B2 (en) Bar code printing controller
JPS6237165A (en) Inkjet recording device
JPS63214825A (en) printer
JPH01308658A (en) Printer
JPH0576651B2 (en)
JPH034316A (en) Page printer
JPH1153129A (en) Printer device
JPH05265666A (en) Printer system
JPH02196322A (en) Print processing system
JPH07256950A (en) Image processing device
JPH0336623A (en) Printer
JPH0495122A (en) Terminal controller