JPH0224184A - Printer - Google Patents

Printer

Info

Publication number
JPH0224184A
JPH0224184A JP63174726A JP17472688A JPH0224184A JP H0224184 A JPH0224184 A JP H0224184A JP 63174726 A JP63174726 A JP 63174726A JP 17472688 A JP17472688 A JP 17472688A JP H0224184 A JPH0224184 A JP H0224184A
Authority
JP
Japan
Prior art keywords
data
code
control
content
printed
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
JP63174726A
Other languages
Japanese (ja)
Inventor
Takaaki Yokoi
孝明 横井
Sadashi Ishikura
石倉 禎志
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 JP63174726A priority Critical patent/JPH0224184A/en
Publication of JPH0224184A publication Critical patent/JPH0224184A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable a printing operation mode to be selected by a method wherein when a control code data received from an exterior device is a proper data by referring to a conversion table, the control code data is printed by a mnemonic code and when a violation data, that the control code data is the violation data is indicated. CONSTITUTION:When a data which a reception part 1 receives from an exterior connected device is a final byte of a control code composed of a plurality of bytes, after inputting to a conversion buffer 4, whether its content is an abnormal data or not is judged with a conversion table 5. When abnormal, a corresponding error message is stored in a receiving buffer inside a control part 2, and a content of a conversion buffer 4 is converted to a corresponding character code is as a sexadecimal digit in an order of higher rank 4 bits and lower rank 4 bits for each one byte. Thereafter, it is stored in a receiving buffer. When not abnormal, after converting a mnemonic code corresponding to the content to a corresponding character code as the sexadecimal digit by a conversion table 5, the converted character code is stored in a receiving buffer inside the control part 2, and said content in the control part 2 is printed with a printing part 3.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理システムで出力装置として使用され
るプリンタ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer device used as an output device in an information processing system.

〔従来の技術〕[Conventional technology]

従来からプリンタ装置は、コンピュータの中で処理結果
を紙面に出力するために使用される出力装置であり、プ
リント出力する機能は、今後ともかわらない。しかしな
がら、コンピュータシステムで処理するデータが文字、
イメージ、グラフ等、種々のメディアに拡大するに従い
、プリンタ装置で出力するデータも多彩になり、プリン
タ装置を制御するデータも複雑になっている。
A printer device has traditionally been an output device used in a computer to output processing results on paper, and its printing function will remain unchanged in the future. However, the data processed by computer systems are characters,
As printing expands to include various media such as images and graphs, the data output by printers also becomes more diverse, and the data used to control printers also become more complex.

このように、複雑なシステムにおいて複雑な制御を必要
とするプリンタ装置を使用する場合、システム内の機器
、通信網、あるいは利用ソフトウェア等で問題が発生す
る確率も高くなっている。
As described above, when a printer device that requires complicated control is used in a complicated system, there is a high probability that a problem will occur in the equipment in the system, the communication network, or the software used.

ところが従来のプリンタ装置は通常の動作モードで受信
データに従って印字を行うかもしくは、検査用の動作モ
ードに変換しても受信データを16進数で印字出力する
だけであった。
However, conventional printer devices either print according to the received data in the normal operation mode, or only print out the received data in hexadecimal numbers even after converting to the inspection operation mode.

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

上述した従来のプリンタ装置の16進数印字機能では、
単に受信データを16進数に変換して印字出力するだけ
であるなめ、イメージのデータ部分や外字データ部分の
データ量が多い場合は、16進数で印字された結果だけ
では、上位(ホストコンピュータ等)から、どのような
、コマンドが送出されたのかを判断するために多大な時
間が必要である。従って、このようにプリンタ装置が印
字結果として期待値と異なる印字をした場合においても
、受信データが誤っているのか、受信データは正しいが
プリンタの故障のために不正印字となったかを区別する
ことが困難であるという欠点があった。
In the hexadecimal printing function of the conventional printer device mentioned above,
Since the received data is simply converted into hexadecimal and printed out, if there is a large amount of data in the image data part or external character data part, the result printed in hexadecimal cannot be used by the host computer (host computer, etc.) It takes a lot of time to determine what kind of command was sent. Therefore, even if the printer device prints something different from the expected value, it is necessary to distinguish between whether the received data is incorrect, or whether the received data is correct but incorrect printing occurred due to a malfunction of the printer. The disadvantage was that it was difficult.

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

本発明のプリンタ装置は、外部装置から受信した制御符
号データを変換用テーブルを参照することにより正当デ
ータか違反データであるかを判別し、正当データであれ
ば前記制御符号データを二一モニックコードにより印字
し、違反データであれば違反データであることを示す表
示を挿入して前記制御符号データを印字する動作モード
を選択可能なことを特徴とすることを含んで構成される
The printer device of the present invention determines whether control code data received from an external device is legal data or illegal data by referring to a conversion table, and if the control code data is legal data, converts the control code data into a 2-monomonic code. If the data is a violation, an indication indicating that the data is a violation is inserted, and an operation mode in which the control code data is printed is selectable.

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

第1図および第2図はそれぞれ本発明の一実施例の主要
構成を示すブロック図および動作概要を示すフロチャー
トである。
FIG. 1 and FIG. 2 are a block diagram showing the main configuration of an embodiment of the present invention and a flowchart showing an outline of the operation, respectively.

図示しない外部接続装置から受信部1が受信したデータ
が複数バイトから構成される制御符号の最終バイトであ
るがどうかを判断する。最終バイトでない場合、制御部
2は変換用バッファ4に受信データを入れる。最終バイ
トの場合は、受信データを変換用バッファ4に入れた後
、変換用バッファ4の内容を変換用テーブル5により、
変換用バッファ4の内容が、本発明のプリンタ装置に対
して異常なデータかどうかを判断する。
It is determined whether the data received by the receiving unit 1 from an external connection device (not shown) is the last byte of a control code composed of a plurality of bytes. If it is not the final byte, the control unit 2 puts the received data into the conversion buffer 4. In the case of the last byte, after putting the received data into the conversion buffer 4, the contents of the conversion buffer 4 are converted using the conversion table 5.
It is determined whether the contents of the conversion buffer 4 are abnormal data for the printer device of the present invention.

変換用バッファ4の内容が異常であれば、該当するエラ
ーメツセージを、制御部2内の図示しない、受信バッフ
ァに格納し、変換用バッファ4の内容を1バイト毎に、
上位4ビツト、下位4ビツトの順に16進数として対応
する文字コードに変換後、制御部2内の図示しない受信
バッファに格納する。異常でなければ、変換用テーブル
5により変換用バッファ4に内容を該当する二−モニッ
クコードを16進数として対応する文字コードに変換後
、制御部2内の図示しない受信バッファ格納する。この
後、制御部2内の図示しない受信バッファの内容を印字
部3が印字する。
If the contents of the conversion buffer 4 are abnormal, the corresponding error message is stored in a reception buffer (not shown) in the control unit 2, and the contents of the conversion buffer 4 are read byte by byte.
After converting the upper 4 bits and the lower 4 bits into a corresponding character code as a hexadecimal number, the data is stored in a receiving buffer (not shown) in the control unit 2. If there is no abnormality, the content is converted into a corresponding character code as a hexadecimal number in the conversion buffer 4 using the conversion table 5, and then stored in a reception buffer (not shown) in the control unit 2. Thereafter, the printing section 3 prints the contents of a reception buffer (not shown) in the control section 2.

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

以上説明したように本発明は、動作モードの選択により
、データに従い印字を行い、必要に応じて動作モードを
変換することにより受信データをエラーメツセージ付で
プリンタニーモニツクコードに変換した印字結果を提供
することが出来る。
As explained above, the present invention performs printing according to the data by selecting an operation mode, and converts the operation mode as necessary to provide a print result in which the received data is converted into a printer mnemonic code with an error message. You can.

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

第1図および第2図はそれぞれ本発明の一実例例を示す
ブロック図およびフローチャートである。 1・・・・・・受信部、2・・・・・・制御部、3・・
・・・・印字部、4・・・・・・変換用バッファ、5・
・・・・・変換用テーブル。
1 and 2 are a block diagram and a flowchart, respectively, illustrating an illustrative example of the present invention. 1... Receiving section, 2... Control section, 3...
...Printing section, 4...Conversion buffer, 5.
...Conversion table.

Claims (1)

【特許請求の範囲】[Claims] 外部装置から受信した制御符号データを変換用テーブル
を参照することにより正当データか違反データであるか
を判別し、正当データであれば前記制御符号データをニ
ーモニックコードにより印字し、違反データであれば違
反データであることを示す表示を挿入して前記制御符号
データを印字する動作モードを選択可能なことを特徴と
するプリンタ装置。
Control code data received from an external device is determined whether it is legal data or illegal data by referring to a conversion table. If the data is legal, the control code data is printed using a mnemonic code, and if it is illegal data, it is printed. A printer device characterized in that it is possible to select an operation mode in which the control code data is printed by inserting a display indicating that the data is a violation.
JP63174726A 1988-07-12 1988-07-12 Printer Pending JPH0224184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63174726A JPH0224184A (en) 1988-07-12 1988-07-12 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63174726A JPH0224184A (en) 1988-07-12 1988-07-12 Printer

Publications (1)

Publication Number Publication Date
JPH0224184A true JPH0224184A (en) 1990-01-26

Family

ID=15983583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63174726A Pending JPH0224184A (en) 1988-07-12 1988-07-12 Printer

Country Status (1)

Country Link
JP (1) JPH0224184A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03263080A (en) * 1990-03-13 1991-11-22 Nec Corp Printer
US5753409A (en) * 1995-10-16 1998-05-19 Konica Corporation Silver halide photographic light sensitive material

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03263080A (en) * 1990-03-13 1991-11-22 Nec Corp Printer
US5753409A (en) * 1995-10-16 1998-05-19 Konica Corporation Silver halide photographic light sensitive material

Similar Documents

Publication Publication Date Title
JP3325907B2 (en) Command language determination method and system
US6693722B1 (en) Printer configuration update system and method
JPH0152948B2 (en)
US4761761A (en) Multitype characters processing method and terminal device with multiple display buffers
US4566039A (en) Facsimile system
KR980003992A (en) How to process print data
JPS6240522A (en) Printer
JPH0224184A (en) Printer
US4095277A (en) Method for communicating text commands and instructions using conventional coded text characters and a structure for decoding and presenting command and instruction signals
JP3040414B2 (en) Color image processing equipment
JP2839247B2 (en) Output control device
EP0075423B1 (en) Belt synchronous check system for a line printer
JPH0557788B2 (en)
JPS62180419A (en) Printer device
JPS63272145A (en) Dump output device
JPS63200671A (en) Output interface device
JP2607502B2 (en) Facsimile interface device
JPH07117289A (en) Printing equipment
JPS63109060A (en) Multicolor printer
JPH03142271A (en) Printer
JPH0336619A (en) Printer device
JPH01171960A (en) Printer apparatus
JPS5936314B2 (en) Display device control method
JPS62247394A (en) Character pattern checking system
JPH11227303A (en) Printing apparatus