JPH0713713A - Data output device - Google Patents

Data output device

Info

Publication number
JPH0713713A
JPH0713713A JP5159261A JP15926193A JPH0713713A JP H0713713 A JPH0713713 A JP H0713713A JP 5159261 A JP5159261 A JP 5159261A JP 15926193 A JP15926193 A JP 15926193A JP H0713713 A JPH0713713 A JP H0713713A
Authority
JP
Japan
Prior art keywords
code
character
data
control
transmission
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
JP5159261A
Other languages
Japanese (ja)
Inventor
Satoshi Hayashida
聡 林田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP5159261A priority Critical patent/JPH0713713A/en
Publication of JPH0713713A publication Critical patent/JPH0713713A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a data output device which outputs and displays the characters in response to each transmission code in order to easily decide the contents of data and the areas of control errors. CONSTITUTION:In a data dump mode, a printer 1 prints the character strings showing the control contents of a control code (S10) when the transmission code is a control code (S4). When the transmission code is a character code (S4), it is decided whether the character code is a KANJI (Chinese character) code or not (S11). If so, the printer 1 prints a character corresponding to the KANJI code (S12). If not, the printer 1 prints a character corresponding to an ANK code (S13) together with a character corresponding to the transmission code such as an ASCII code, etc. When the value of the parameter accompanying the control code exceeds a prescribed range (S7), a marking showing this fact is printed to the parameter character.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、情報機器相互における
データの内容をダンプするときに、アスキーコード等の
伝送コードに対応する文字をそのまま出力表示するプリ
ンタ,ディスプレイ等のデータ出力装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data output device such as a printer or a display for directly displaying characters corresponding to a transmission code such as an ASCII code when dumping the contents of data between information devices. is there.

【0002】[0002]

【従来の技術】図3はデータ出力装置であるプリンタ及
びその周辺機器の構成を示すもので、プリンタ1は、プ
リンタ1を動作させるプログラム及び印字用のフォント
を記憶したROM2と、受信したデータを一時記憶する
受信バッファ,受信したデータの文字や図形等をドット
パターンに展開して格納するビットマップ,中間処理デ
ータを一時記憶する中間バッファとして機能するRAM
3と、操作パネル4を接続する操作パネルインターフェ
ース5と、プリンタエンジン6を接続するエンジンイン
ターフェース7と、オプションのフォント等を記憶した
フォントカートリッジ8を接続するオプションインター
フェース9と、ホストコンピュータ10を接続するホスト
インターフェース11と、ROM2,RAM3,プリンタ
エンジン6,フォントカートリッジ8或いはホストコン
ピュータ10をROM2のプログラムに従って動作させる
CPU12とからなる。
2. Description of the Related Art FIG. 3 shows the configuration of a printer which is a data output device and its peripheral devices. The printer 1 stores a program for operating the printer 1 and a ROM 2 which stores fonts for printing, and received data. A RAM that functions as a receive buffer for temporary storage, a bitmap for expanding characters and figures of received data into a dot pattern for storage, and an intermediate buffer for temporarily storing intermediate processing data.
3, an operation panel interface 5 for connecting the operation panel 4, an engine interface 7 for connecting the printer engine 6, an option interface 9 for connecting a font cartridge 8 storing optional fonts, and a host computer 10. It comprises a host interface 11, a ROM 2, a RAM 3, a printer engine 6, a font cartridge 8 or a CPU 12 for operating the host computer 10 according to a program in the ROM 2.

【0003】このように構成されたプリンタ1が、操作
パネル4或いはホストコンピュータ10からデータを受信
すると、一旦RAM3のバッファメモリに蓄積した上、
データの内容が通常の印字であれば、ROM2のフォン
ト或いはフォントカートリッジ8から読み出した文字の
ドットパターンをRAM3のビットマップに展開した
上、プリンタエンジン6によって記録媒体13(図4参照)
に印字する。又、データの内容が制御コマンドであれ
ば、制御内容に応じてROM2,RAM3,プリンタエ
ンジン6,フォントカートリッジ8及びホストコンピュ
ータ10を動作させる。
When the printer 1 configured as described above receives data from the operation panel 4 or the host computer 10, the printer 1 temporarily stores the data in the buffer memory of the RAM 3 and
If the content of the data is normal printing, the font of the ROM 2 or the dot pattern of the character read from the font cartridge 8 is developed into the bitmap of the RAM 3, and then the recording medium 13 is generated by the printer engine 6 (see FIG. 4).
Print on. If the data content is a control command, the ROM 2, RAM 3, printer engine 6, font cartridge 8 and host computer 10 are operated according to the control content.

【0004】ところで、ホストコンピュータ10から受信
したデータの内容をプリンタ1でダンプする場合には、
通常、1バイトの受信データの上位4ビットと下位4ビ
ットとをそれぞれ16進数表示したものを1つのコードと
したアスキーコード等のような伝送コードによって、デ
ータの内容を記録媒体13に印字する。
By the way, when the printer 1 dumps the contents of data received from the host computer 10,
Usually, the content of data is printed on the recording medium 13 by a transmission code such as an ASCII code in which the upper 4 bits and the lower 4 bits of 1-byte received data are represented in hexadecimal notation as one code.

【0005】[0005]

【発明が解決しようとする課題】ところで、データの内
容は、制御コード,漢字コード,ANKコード等の複数
種の伝送コードからなる上、制御コードはプリンタの機
種によって異なるため、受信したデータの伝送コードを
図4に示すように記録媒体13に単に羅列して印字して
も、これ等の伝送コードの解析は非常に困難で、手間が
掛かるという問題があった。
By the way, the content of the data consists of a plurality of types of transmission codes such as control code, kanji code, ANK code and the like, and since the control code differs depending on the printer model, the transmission of the received data is performed. Even if the codes are simply enumerated and printed on the recording medium 13 as shown in FIG. 4, the analysis of these transmission codes is very difficult and troublesome.

【0006】本発明は、このような問題に鑑みてなされ
たもので、データの内容や、制御エラーの箇所が容易に
判別できるように、伝送コードに対応する文字を出力表
示するデータ出力装置を提供することを目的としてい
る。
The present invention has been made in view of such a problem, and provides a data output device for outputting and displaying a character corresponding to a transmission code so that the content of data and the location of a control error can be easily discriminated. It is intended to be provided.

【0007】[0007]

【課題を解決するための手段】本発明は、伝送コードが
制御コードであれば、制御コードの制御内容を表す文字
列を、伝送コードが文字コードであれば、文字コードが
漢字コードであるか否かを更に判別し、漢字コードであ
れば、漢字コードに対応する文字を、漢字コードでなけ
れば、ANKコードに対応する文字を、伝送コード対応
文字と共に出力表示するものである。
According to the present invention, if the transmission code is a control code, a character string representing the control content of the control code is used. If the transmission code is a character code, is the character code a Kanji code? Whether or not it is a Kanji code is further determined, and if it is not a Kanji code, the character corresponding to the ANK code is output and displayed together with the transmission code corresponding character.

【0008】又、制御コードに付随しているパラメータ
の値が規定の範囲を越えたときには、その旨を示すマー
キングをパラメータの文字に施すものである。
Further, when the value of the parameter associated with the control code exceeds the specified range, a marking to that effect is given to the character of the parameter.

【0009】[0009]

【作用】本発明によれば、データをダンプするときに、
アスキーコード等のような伝送コードに対応する文字と
共に、当該伝送コードが制御コードであれば、制御コー
ドの制御内容を表す文字列及び制御コードに付随したパ
ラメータの文字を、又、当該伝送コードが文字コードで
あれば、文字コードに対応する文字をプリンタ,ディス
プレイ等のデータ出力装置によって出力表示するので、
データの伝送コードの解析が非常に簡単且つ迅速にでき
る。
According to the present invention, when dumping data,
If the transmission code is a control code, along with the characters corresponding to the transmission code such as ASCII code, the character string representing the control content of the control code and the character of the parameter attached to the control code are also displayed. If it is a character code, the character corresponding to the character code is output and displayed by a data output device such as a printer or a display.
The analysis of the data transmission code can be performed very easily and quickly.

【0010】[0010]

【実施例】以下、図面を参照しながら、本発明の実施例
を詳細に説明する。尚、図3及び図4の参照符号と同一
符号のものは、同一部分で、同一機能を有する。
Embodiments of the present invention will now be described in detail with reference to the drawings. The same reference numerals as those in FIGS. 3 and 4 denote the same parts and have the same functions.

【0011】図1は本発明の一実施例におけるフローチ
ャートを示すもので、受信したデータがRAM3のバッ
ファメモリに蓄積されて、データのダンプが指令される
と、先ず、データの有無を判別して、データが有れば
〔ステップ1(以下「S1」の如く記載する)〕、RAM
3のバッファメモリから1バイト分のデータを取り出し
て(S2)、アスキーコード等のような2つの16進数から
なる伝送コード対応文字に変換した上、当該伝送コード
対応文字を記録媒体13に印字する〔S3(図2参照)〕。
次に、データが文字コードであるか否かを判別して、文
字コードでない、即ち制御コードである(S4)と判別す
ると、データがパラメータを伴うものか否かを判別し
て、パラメータを伴うものであれば(S5)、パラメータ
のデータを最後まで取り込んで(S6)、パラメータの範
囲をチェックする(S7)。そして、このパラメータの値
が規定の範囲を越えていれば、パラメータにエラーが有
ると判別して(S8)、エラー部分をマークした(S9)
上、伝送コード対応文字の横に、制御コードの制御内容
を表す文字列を印字すると共に、制御コードに付随した
パラメータの文字をエラー箇所が分かるように強調文字
にして印字した(S10)後、RAM3のバッファメモリか
ら次の1バイト分のデータを取り出す(S1及び2)。
FIG. 1 is a flowchart showing an embodiment of the present invention. When the received data is accumulated in the buffer memory of the RAM 3 and a data dump is instructed, the presence or absence of data is first determined. , If there is data [Step 1 (hereinafter referred to as “S1”)], RAM
Data of 1 byte is taken out from the buffer memory of 3 (S2), converted into a transmission code corresponding character composed of two hexadecimal numbers such as ASCII code, and the transmission code corresponding character is printed on the recording medium 13. [S3 (see FIG. 2)].
Next, it is determined whether or not the data is a character code, and if it is determined that it is not a character code, that is, a control code (S4), it is determined whether or not the data is accompanied by a parameter and the parameter is involved. If so (S5), the parameter data is fetched to the end (S6), and the parameter range is checked (S7). If the value of this parameter exceeds the specified range, it is determined that the parameter has an error (S8), and the error portion is marked (S9).
Above, a character string representing the control content of the control code is printed next to the character corresponding to the transmission code, and the character of the parameter associated with the control code is printed as an emphasized character so that the error location can be identified (S10). The next 1-byte data is taken out from the buffer memory of the RAM 3 (S1 and 2).

【0012】又、パラメータの範囲をチェックした(S
7)ときに、パラメータの値が規定の範囲を越えなけれ
ば、パラメータにエラーがないと判別して(S8)、伝送
コード対応文字の横に、制御コードの制御内容を表す文
字列と制御コードに付随したパラメータの文字とを印字
した〔S10(図2参照)〕後、RAM3のバッファメモリ
から次の1バイト分のデータを取り出す(S1及び2)。
Also, the range of parameters was checked (S
7) At this time, if the parameter value does not exceed the specified range, it is determined that there is no error in the parameter (S8), and the character string indicating the control content of the control code and the control code beside the character corresponding to the transmission code. After printing the character of the parameter attached to [S10 (see FIG. 2)], the next 1-byte data is taken out from the buffer memory of the RAM 3 (S1 and 2).

【0013】更に、データがパラメータを伴うものか否
かを判別したときに、パラメータを伴わないものであれ
ば(S5)、伝送コード対応文字の横に、制御コードに対
応する文字列を印字した〔S10(図2参照)〕後、RAM
3のバッファメモリから次の1バイト分のデータを取り
出す(S1及び2)。
Further, when it is determined whether or not the data has parameters, if the data does not have parameters (S5), a character string corresponding to the control code is printed next to the character corresponding to the transmission code. [S10 (see FIG. 2)] After that, RAM
The next 1-byte data is fetched from the buffer memory 3 (S1 and 2).

【0014】更に、データが文字コードであるか否かを
判別したときに、文字コードであれば(S4)、その文字
コードが漢字コードであるか否かを更に判別し、漢字コ
ードであれば(S11)、次の1バイト分のデータを取り出
した上、伝送コード対応文字の横に、文字コードに対応
する漢字を印字した〔S12(図2参照)〕後、RAM3の
バッファメモリから更に次の1バイト分のデータを取り
出す(S1及び2)。
Further, when it is determined whether the data is a character code, if it is a character code (S4), it is further determined whether the character code is a kanji code, and if it is a kanji code. (S11) Then, after extracting the next 1-byte data and printing the Chinese character corresponding to the character code next to the character corresponding to the transmission code [S12 (see FIG. 2)], the data is further read from the buffer memory of RAM3. 1 byte of data is extracted (S1 and 2).

【0015】更に、文字コードが漢字コードであるか否
かを判別したときに、文字コードが漢字コードでなけれ
ば(S11)、伝送コード対応文字の横に、文字コードに対
応するANK文字を印字した〔S13(図2参照)〕後、R
AM3のバッファメモリから次の1バイト分のデータを
取り出す(S1及び2)。
Further, when it is determined whether or not the character code is the kanji code, if the character code is not the kanji code (S11), the ANK character corresponding to the character code is printed next to the character corresponding to the transmission code. After [S13 (see FIG. 2)], R
The next 1-byte data is fetched from the buffer memory of AM3 (S1 and 2).

【0016】これ以降、このような動作を繰り返して、
RAM3のバッファメモリから次の1バイト分のデータ
が取り出せなくなる(S1)と、データのダンプを終了す
る。
After that, by repeating such an operation,
When the next 1-byte data cannot be taken out from the buffer memory of the RAM 3 (S1), the data dump is terminated.

【0017】尚、本実施例では、データをダンプすると
きに、アスキーコード等のような伝送コードに対応する
文字と共に、当該伝送コードが制御コードであれば、制
御コードの制御内容を表す文字列及び制御コードに付随
したパラメータの文字を、当該伝送コードが文字コード
であれば、文字コードに対応する文字をプリンタによっ
て出力表示する例で説明したが、これ等の文字をディス
プレイ等のデータ出力装置に出力表示するようにしても
よい。
In this embodiment, when dumping data, a character string representing a control content of the control code is provided along with a character corresponding to a transmission code such as an ASCII code, if the transmission code is a control code. Also, the character of the parameter associated with the control code has been described as an example in which the character corresponding to the character code is output and displayed by the printer if the transmission code is the character code. However, these characters are displayed on a data output device such as a display. The output may be displayed.

【0018】又、データは、データ出力装置に予め設定
したデータ処理単位に区切って出力表示すれば、伝送コ
ードの内容がより分かり易くなる。
If the data is output and displayed by dividing it into data processing units preset in the data output device, the contents of the transmission code can be more easily understood.

【0019】[0019]

【発明の効果】以上説明したように、本発明によれば、
データをダンプするときに、アスキーコード等のような
伝送コードに対応する文字と共に、当該伝送コードが制
御コードであれば、制御コードの制御内容を表す文字列
及び制御コードに付随したパラメータの文字を、又、当
該伝送コードが文字コードであれば、文字コードに対応
する文字をプリンタ,ディスプレイ等のデータ出力装置
によって出力表示するので、データの伝送コードの解析
が非常に簡単且つ迅速にできるという効果を奏する。
As described above, according to the present invention,
When dumping the data, along with the characters corresponding to the transmission code such as ASCII code, if the transmission code is a control code, the character string representing the control content of the control code and the character of the parameter attached to the control code are displayed. Also, if the transmission code is a character code, the character corresponding to the character code is output and displayed by a data output device such as a printer or a display, so that the analysis of the data transmission code can be performed very easily and quickly. Play.

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

【図1】本発明の一実施例におけるフローチャートであ
る。
FIG. 1 is a flowchart in an embodiment of the present invention.

【図2】本発明の一実施例によるダンプ印字例である。FIG. 2 is an example of dump printing according to an embodiment of the present invention.

【図3】データ出力装置であるプリンタ及びその周辺機
器の構成図である。
FIG. 3 is a configuration diagram of a printer that is a data output device and its peripheral devices.

【図4】従来のダンプ印字例である。FIG. 4 is an example of conventional dump printing.

【符号の説明】[Explanation of symbols]

1…プリンタ、 6…プリンタエンジン、 10…ホスト
コンピュータ。
1 ... Printer, 6 ... Printer engine, 10 ... Host computer.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 情報機器相互で伝送したデータの内容を
ダンプするときに、前記データの伝送コードに対応する
文字をそのまま出力表示するデータ出力装置において、 前記伝送コードが制御コードであれば、該制御コードの
制御内容を表す文字列を、前記伝送コード対応文字と共
に出力表示することを特徴とするデータ出力装置。
1. A data output device for outputting and displaying a character corresponding to a transmission code of the data as it is when dumping the contents of data transmitted between information devices, wherein if the transmission code is a control code, A data output device, wherein a character string representing the control content of a control code is output and displayed together with the character corresponding to the transmission code.
【請求項2】 前記制御コードに付随しているパラメー
タの値が規定の範囲を越えたときには、その旨を示すマ
ーキングを前記パラメータの文字に施すことを特徴とす
る請求項1記載のデータ出力装置。
2. The data output device according to claim 1, wherein when the value of the parameter associated with the control code exceeds a specified range, a marking indicating that fact is applied to the character of the parameter. .
【請求項3】 情報機器相互で伝送したデータの内容を
ダンプするときに、前記データの伝送コードに対応する
文字をそのまま出力表示するデータ出力装置において、 前記伝送コードが文字コードであれば、該文字コードが
漢字コードであるか否かを更に判別し、前記漢字コード
であれば、前記漢字コードに対応する文字を、前記漢字
コードでなければ、ANKコードに対応する文字を、前
記伝送コード対応文字と共に出力表示することを特徴と
するデータ出力装置。
3. A data output device which, when dumping the contents of data transmitted between information devices, outputs and displays the characters corresponding to the transmission code of the data as it is, if the transmission code is a character code, It is further determined whether or not the character code is a Kanji code. If the Kanji code is the Kanji code, the character corresponding to the Kanji code is determined. If the Kanji code is not the Kanji code, the character corresponding to the ANK code is determined to correspond to the transmission code. A data output device characterized by outputting and displaying together with characters.
【請求項4】 前記データは、所定のデータ処理単位に
区切って印字することを特徴とする請求項1或いは2記
載のデータ出力装置。
4. The data output device according to claim 1, wherein the data is divided into predetermined data processing units and printed.
JP5159261A 1993-06-29 1993-06-29 Data output device Pending JPH0713713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5159261A JPH0713713A (en) 1993-06-29 1993-06-29 Data output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5159261A JPH0713713A (en) 1993-06-29 1993-06-29 Data output device

Publications (1)

Publication Number Publication Date
JPH0713713A true JPH0713713A (en) 1995-01-17

Family

ID=15689903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5159261A Pending JPH0713713A (en) 1993-06-29 1993-06-29 Data output device

Country Status (1)

Country Link
JP (1) JPH0713713A (en)

Similar Documents

Publication Publication Date Title
JPH0640257B2 (en) Information output device
JPH0210459B2 (en)
JPH0713713A (en) Data output device
JP3464056B2 (en) Document information editing device
JPS5814241A (en) Japanese language input device having function of extended character output
JP3692885B2 (en) Message display device
JPH0216068A (en) Image forming device
JP2966847B2 (en) Character processor
JPS60109888A (en) Character processor
JP2612402B2 (en) Display control method
JPH0548476B2 (en)
JPS61249133A (en) Printing controller
JPH0615317Y2 (en) Document processor
JPS605470B2 (en) typesetting system
JPH02159669A (en) Document preparing device
JP3320566B2 (en) Character symbol conversion device and printer
JP2983385B2 (en) Document processing device with frame editing function
JPS63272144A (en) Dump output device
JPS61286177A (en) Document-forming device
JP2001202261A (en) Image forming device
JPS63242561A (en) Font reducing system
JPH06320801A (en) Printer
JPH0462084A (en) Printer
JPH10232861A (en) Document output device
JPH06274150A (en) Document display method