JPS61208149A - Printer - Google Patents

Printer

Info

Publication number
JPS61208149A
JPS61208149A JP60048013A JP4801385A JPS61208149A JP S61208149 A JPS61208149 A JP S61208149A JP 60048013 A JP60048013 A JP 60048013A JP 4801385 A JP4801385 A JP 4801385A JP S61208149 A JPS61208149 A JP S61208149A
Authority
JP
Japan
Prior art keywords
command
data
printing
output data
buffer
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
JP60048013A
Other languages
Japanese (ja)
Inventor
Kunio Nishimoto
邦夫 西本
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP60048013A priority Critical patent/JPS61208149A/en
Publication of JPS61208149A publication Critical patent/JPS61208149A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To eliminate the need to generate a memory dumping program and to perform efficient printing operation by providing a printer with a function which converts binary codes into hexadecimal codes in response to a command and prints them. CONSTITUTION:The printer 20 stores a command register 30 with the data conversion command received from a host device 10 through an interface 100, and binary codes sent to an output buffer 231 from the host device 10 through the interface 100 as well are code-converted into hexadecimal and character data by a conversion part 22 according to the decoding result of the command by a decoder 31; and the hexadecimal and character data are stored in a line buffer 23 and then printed out on a printing part 24 when stored by one line. When a normal data output command arrives, data are printed out as they are without code conversion.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は情報処理システムに使用される印字装置に関し
、特に印字装置のデータ出力省力化方式(従来の技術) 従来、計算機システムに障害が発生した場合には、障害
解析のために計算機システムに含まれている記憶装置の
内容を出力するという、いわゆるメモリダンプが重要で
ある。しかし、出力を得るための編集機能を出力プログ
ラムによシ提供するためにはプログラムの開発工数が必
要であり、そのうえ、いったん開発した出力プログラム
も異なる種類のプログラムや計算機では使用できないこ
とが多かった。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to a printing device used in an information processing system, and particularly to a data output labor-saving method for a printing device (prior art). In such cases, it is important to output the contents of the storage device included in the computer system for fault analysis, a so-called memory dump. However, providing the output program with editing functions to obtain output requires a lot of man-hours to develop the program, and in addition, once developed, the output program often cannot be used with different types of programs or computers. .

(発明が解決しようとする問題点) したがって、他のプログラムで同様な機能を実現する場
合や、別の計算機システムで同様な機能を実現する場合
には新たに編集ルーチンを開発しなければならないとい
う欠点があった。
(Problem to be solved by the invention) Therefore, if a similar function is to be realized in another program or in another computer system, a new editing routine must be developed. There were drawbacks.

本発明の目的は、印字手段に加えて2進コードを変換し
て、例えば16進数やキャラクタに変換して出力する手
段を設けることKよって上記欠点を除去し、効率的な印
字を可能にした印字装置を提供することにある。
An object of the present invention is to provide, in addition to a printing means, a means for converting a binary code into, for example, a hexadecimal number or a character and outputting it, thereby eliminating the above-mentioned drawbacks and making efficient printing possible. The purpose is to provide a printing device.

(問題点を解決するための手段) 本発明による印字装置はコマンドレジスタと、出力デー
タバッファと、デコーダと、変換部と、ラインバッファ
と、印字部とから構成したものである。
(Means for Solving the Problems) A printing device according to the present invention is composed of a command register, an output data buffer, a decoder, a converting section, a line buffer, and a printing section.

コマンドレジスタは上位装置に接続され、上位装置から
の少なくとも出力データ変換コマンドを受信して格納す
るだめのものである。
The command register is connected to the host device and is used to receive and store at least an output data conversion command from the host device.

出力データバッファは出力データ変換コマンドに対応し
て、上位装置からの2進データを格納するだめのもので
ある。
The output data buffer is for storing binary data from the host device in response to an output data conversion command.

デコーダは、コマンドレジスタに格納されたコマンドを
解析するためのものである。
The decoder is for analyzing commands stored in the command register.

変換部は、デコーダにより出力データ変換コマンドを検
出した際に出力データバッファの2進データを指定され
たコードに変換するためのものである。
The conversion unit is for converting binary data in the output data buffer into a designated code when the decoder detects an output data conversion command.

ラインバッファは、変換部の出力を格納するためのもの
である。
The line buffer is for storing the output of the converter.

印字部は、ラインバッファのデータを印字するためのも
のである。
The printing section is for printing data in the line buffer.

(実施例) 次に、本発明について図面を参照して詳細に説明する。(Example) Next, the present invention will be explained in detail with reference to the drawings.

本発明の一実施例を示す第1図において、印字装置20
は印字装置20にコマンドとデータとを送出する上位装
置10に対してインターフェース信号線100によって
接続したものである。第1図において、印字装置20は
インターフェース信号線100を介して送出される上位
装置10からノコマンドラ保持するためのコマンドレジ
スタsOと、上位装置10からの出力データを保持する
ための出力データバッファ21と、コマンドレジスタ3
0に格納されたコマンドを解釈し、出力データ変換コマ
ンドであればデコーダ出力信号線200上の状態を低レ
ベル(オン)にして変換部22に通知するためのデコー
ダ31と、デコーダ出力信号線200の状態が低レベル
(オン)のときに出力データバッファ21からの2進出
力データを出力データ信号線101を介して入力し、1
6進データとEBCDICコードとに変換するための変
換部22と、キャラクタを1行ずつ印字するための印字
部24と、変換部22に対してラインバッファ入力デー
タ信号線102によって接続されると共に、印字部24
に対して印字部入力データ信号線103によって接続さ
れ、印字部24での1行分の出力データを保持するため
のラインバッファ26とによって構成される。
In FIG. 1 showing an embodiment of the present invention, a printing device 20
is connected by an interface signal line 100 to a host device 10 that sends commands and data to the printing device 20. In FIG. 1, the printing device 20 includes a command register sO for holding commands sent from the host device 10 via an interface signal line 100, and an output data buffer 21 for holding output data from the host device 10. , command register 3
0, and if it is an output data conversion command, the decoder 31 changes the state on the decoder output signal line 200 to a low level (on) and notifies the converter 22, and the decoder output signal line 200 When the state of is low level (on), binary output data from the output data buffer 21 is input via the output data signal line 101,
A conversion section 22 for converting hexadecimal data and an EBCDIC code, a printing section 24 for printing characters line by line, and a line buffer input data signal line 102 connected to the conversion section 22. Printing section 24
A line buffer 26 is connected to the print section input data signal line 103 to hold one line of output data from the print section 24.

第2図において、(a)は出力データバッファ21の内
容例を示す説明図であり、(b)はラインバッファ23
の内容例を示す説明図である。
In FIG. 2, (a) is an explanatory diagram showing an example of the contents of the output data buffer 21, and (b) is an explanatory diagram showing an example of the contents of the output data buffer 21.
It is an explanatory view showing an example of the contents.

以下に、第1図を参照して本実施例の動作の詳細を説明
する。
The details of the operation of this embodiment will be explained below with reference to FIG.

まず、通常の印字モードの動作について第1図を参照し
て説明する。このモードの動作は、従来技術による印字
動作と同様のものである。
First, the operation in the normal printing mode will be explained with reference to FIG. The operation in this mode is similar to the printing operation according to the prior art.

第1図において、上位装置10には印字装置20に対し
てコマンドを送出して印字を行わせるプログラムが存在
し、このプログラムによ多出力データを印字する通常の
出力データ印字コマンド、ならびにそのまま印字できる
コード、例えばEBCDICから成る出力データがイン
ターフェース信号m1aaを介して印字装置20へ送出
される。
In FIG. 1, there is a program in the host device 10 that sends commands to the printing device 20 to perform printing, and this program provides normal output data printing commands for printing multiple output data, as well as printing as is. Output data consisting of a possible code, for example EBCDIC, is sent to the printing device 20 via the interface signal m1aa.

出力データ印字コマンドと出力データとは印字装置20
のコマンドレジスタ30と出カフ”−p /(ッファ2
1とにそれぞれ格納され、コマンドレジスタ30に格納
されたコマンドがデコーダ51によって解釈される。入
力されたコマンドが通常の出力データ印字コマンドであ
るため、変換部22の制御信号となるデコーダ出力信号
[200上の状態が高レベル(オフ)状態となって変換
部22を機能させない。したがって、出力データバッフ
ァ21の内容が出力データ信号線101とラインバッフ
ァ入力データ信号線102とを介してラインバッファ2
3に転送され、さらに印字部24の入力データ信号線1
03を介して印字部24に送出され、ここで印字される
What is the output data print command and output data? Printing device 20
command register 30 and output cuff"-p/(offer 2
1 and 1, respectively, and the command stored in the command register 30 is interpreted by the decoder 51. Since the input command is a normal output data print command, the state of the decoder output signal [200, which serves as a control signal for the converter 22, becomes a high level (off) state, and the converter 22 does not function. Therefore, the contents of the output data buffer 21 are transferred to the line buffer 2 via the output data signal line 101 and the line buffer input data signal line 102.
3, and is further transferred to the input data signal line 1 of the printing section 24.
03 to the printing unit 24, where it is printed.

次に、本発明の主要な技術である出力データ変換コマン
ドが上位装置10から印字装置20に対して送出された
場合の印字動作について説明する。
Next, a printing operation when an output data conversion command, which is the main technique of the present invention, is sent from the host device 10 to the printing device 20 will be described.

第2図において、出力データ変換コマンドは2進データ
を印字出力するために上位装置10でEBCDICコー
ドなどに編集しておく必要はなく、2進データのままで
印字装置20に送出し、印字装置20で16進コードや
EBCDICコードに変換するためのコマンドである。
In FIG. 2, the output data conversion command does not need to be edited into an EBCDIC code or the like in the host device 10 in order to print out binary data, and is sent to the printing device 20 as binary data. This is a command to convert 20 to hexadecimal code or EBCDIC code.

いま、上位装置10からインターフェース信号線100
を介して送出された出力データ変換コマンドはコマンド
レジスタ50に格納され、デーーダ31によってデコー
ダ31の出力信号線200が低レベル(オン)になった
時に、変換部22の機能が有効化される。
Now, the interface signal line 100 is connected from the host device 10.
The output data conversion command sent through is stored in the command register 50, and when the output signal line 200 of the decoder 31 becomes low level (on) by the datar 31, the function of the conversion unit 22 is enabled.

すなわち、上位装置10からインターフェース信号線1
00を介して送出された2進データは出力データバッフ
ァ21に格納され、さらに出力データバッファ21から
出力データ信号線101を介して変換部22に入力され
る。このとき、デコーダ31の出力信号線200の状態
が低レベル(オン)であるために出力データバッファの
内容が変換部22によって16進データとEBCDIC
コードとに変換され、ラインバッファ2Sの入力データ
信号線10′2を介してラインバッファ25に印字デー
タとして格納される。
That is, from the host device 10 to the interface signal line 1
The binary data sent out via 00 is stored in the output data buffer 21, and is further input from the output data buffer 21 to the conversion unit 22 via the output data signal line 101. At this time, since the state of the output signal line 200 of the decoder 31 is at a low level (on), the contents of the output data buffer are converted into hexadecimal data and EBCDIC by the converter 22.
The data is converted into a code and stored as print data in the line buffer 25 via the input data signal line 10'2 of the line buffer 2S.

次に、出力データバッファ21の内容とライ/バッファ
25の内容との関係を第2図を参照して説明する。第2
図において、2進表示アドレス部501と2進表示デー
タ部502とから成る出力データバッファ21の内容5
0Gは指定されたコードに変換され、ラインバッファ2
3の内容600の16進表示アドレス部601と16進
表示データ部602として格納される。また、2進表示
データ部502のデータを8ビツト1単位としてEBC
DICコードに変換し、ラインバッファの内容600f
7)EBCDIC表示部605として格納される。ライ
ンバッファ2ぷに格納された印字データは、印字部24
の入力データ信号線103を介して印字データを印字部
24に送出することによって印字部24で印字される。
Next, the relationship between the contents of the output data buffer 21 and the contents of the lie/buffer 25 will be explained with reference to FIG. Second
In the figure, the contents 5 of the output data buffer 21 are composed of a binary display address field 501 and a binary display data field 502.
0G is converted to the specified code and line buffer 2
3 is stored as a hexadecimal display address field 601 and a hexadecimal display data field 602 of the contents 600. In addition, the data in the binary display data section 502 is converted into EBC by 8 bits per unit.
Convert to DIC code, line buffer contents 600f
7) Stored as the EBCDIC display section 605. The print data stored in the line buffer 2 is stored in the print section 24.
By sending print data to the printing section 24 via the input data signal line 103 of the printer, the printing section 24 prints the data.

(発明の効果) 本発明には以上説明したように、印字装置に送出された
2進数の出力データを16進数データとキャラクタとに
変換する手段を印字手段に加えて設けることにより、効
゛果的、且つ経済的な印字ができるという効果がある。
(Effects of the Invention) As explained above, the present invention has advantages by providing, in addition to the printing means, means for converting binary output data sent to the printing device into hexadecimal data and characters. This has the effect of enabling accurate and economical printing.

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

第1図は、本発明による印字装置の一実施例を示すブロ
ック図である。 第2図は、第1図に示した出力データバッファとライン
バッファとのデータの内容を示した説明図である。 10・・・上位装置 20・・・印字装置 21−・・出力データバッファ 22・・・変換部 2311・・ラインバッファ 24・φ・印字部 30・・・コマンドレジスタ 31・・・デコーダ 100〜103,200・・・信号線 600〜502,600〜603 ・ ・ ・ ・ ・
 ・・・・データ内容
FIG. 1 is a block diagram showing an embodiment of a printing device according to the present invention. FIG. 2 is an explanatory diagram showing the contents of data in the output data buffer and line buffer shown in FIG. 1. 10... Host device 20... Printing device 21... Output data buffer 22... Conversion section 2311... Line buffer 24, φ, Printing section 30... Command register 31... Decoders 100 to 103 , 200... Signal line 600-502, 600-603 ・ ・ ・ ・ ・
...Data content

Claims (1)

【特許請求の範囲】[Claims] 上位装置に接続されていて、前記上位装置からの少なく
とも出力データ変換コマンドを受信して格納するための
コマンドレジスタと、前記出力データ変換コマンドに対
応して前記上位装置からの2進データを格納するための
出力データバッファと、前記コマンドレジスタに格納さ
れたコマンドを解析するためのデコーダと、前記デコー
ダにより前記出力データ変換コマンドを検出した際に前
記出力データバッファの2進データを指定されたコード
に変換するための変換部と、前記変換部の出力を格納す
るためのラインバッファと、前記ラインバッファのデー
タを印字するための印字部とを具備して構成したことを
特徴とする印字装置。
a command register connected to a host device, for receiving and storing at least an output data conversion command from the host device, and storing binary data from the host device in response to the output data conversion command; an output data buffer for analyzing the command stored in the command register, a decoder for analyzing the command stored in the command register, and converting the binary data of the output data buffer into a specified code when the decoder detects the output data conversion command. 1. A printing device comprising: a conversion section for conversion; a line buffer for storing the output of the conversion section; and a printing section for printing data in the line buffer.
JP60048013A 1985-03-11 1985-03-11 Printer Pending JPS61208149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60048013A JPS61208149A (en) 1985-03-11 1985-03-11 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60048013A JPS61208149A (en) 1985-03-11 1985-03-11 Printer

Publications (1)

Publication Number Publication Date
JPS61208149A true JPS61208149A (en) 1986-09-16

Family

ID=12791419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60048013A Pending JPS61208149A (en) 1985-03-11 1985-03-11 Printer

Country Status (1)

Country Link
JP (1) JPS61208149A (en)

Similar Documents

Publication Publication Date Title
JPH06214697A (en) Method for input of data of bar-code symbol and computer system
JPH04235069A (en) Printing apparatus
JPS61208149A (en) Printer
JP3156379B2 (en) How to compress print data
JP2839247B2 (en) Output control device
JPH0542749A (en) Printing suspension processing device
JPH07168682A (en) Electronic computer with printer driver setting function and printer with printer driver setting function
US6577313B1 (en) Image data control apparatus
JP2580877B2 (en) Light module for data flow calculator
JPH01171960A (en) Printer apparatus
JPH11249861A (en) Printing device
JPH02243366A (en) Radical-classified management apparatus of bit map character data
JPH05173536A (en) External character processor
JPS615334A (en) Data damping system
JPH03225448A (en) Converting, outputting, and updating method for information in file
JPH02136917A (en) Recorder
JPH0224184A (en) Printer
JPH01229666A (en) Printer
JPH03237526A (en) Printing device
JPH1191174A (en) Printer device, font download method, and recording medium with font download program recorded thereon
JPH0516452A (en) Printer
JPH09277617A (en) Data processing method of printer and device thereof
JPS61173351A (en) Printing device
JPH04135876A (en) Printer
JPS63250735A (en) Image output device