JPH03211069A - printer - Google Patents

printer

Info

Publication number
JPH03211069A
JPH03211069A JP2006280A JP628090A JPH03211069A JP H03211069 A JPH03211069 A JP H03211069A JP 2006280 A JP2006280 A JP 2006280A JP 628090 A JP628090 A JP 628090A JP H03211069 A JPH03211069 A JP H03211069A
Authority
JP
Japan
Prior art keywords
data
hex
printer
hex dump
dump
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
JP2006280A
Other languages
Japanese (ja)
Inventor
Hiroshi Goto
弘 後藤
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 JP2006280A priority Critical patent/JPH03211069A/en
Publication of JPH03211069A publication Critical patent/JPH03211069A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ヘキサダンプモードを備えたプリンタに関す
る。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a printer with a hex dump mode.

(従来の技術) プリンタの使用者が作成した印字及び制御コードを含ん
だプリントプログラムをプリンタに送った時、またはア
プリケーションプログラムによって印字、及び制御コー
ドを送った時などに、そのプリンタの仕様に一致しない
データの送り方をした場合に、プリンタがエラーを起こ
すことがある。
(Prior art) When a printer user sends a print program containing print and control codes created by the printer, or when print and control codes are sent by an application program, the printer's specifications are matched. If you send data in a way that does not work, the printer may cause an error.

このような場合に、そのプリントプログラムや、アプリ
ケーションプログラムの欠点を捜すために、しばしばヘ
キサダンプモードが利用される。
In such cases, the hex dump mode is often used to find faults in the print program or application program.

従来のへキサダンプは、ホストコンピュータ(ホスト)
から送られるデータを、ただ16進数のキャラクタに変
換してプリントアウトするものである。中には、印字可
能なキャラクタデータに関しては、そのキャラクタを、
ヘキサダンプリストの片隅に印字するものもある。そし
て使用者は、そのヘキサダンプリストを熟視して、その
中から誤った部分を捜し出していた。
Conventional hex dump is a host computer (host)
It simply converts the data sent from the computer into hexadecimal characters and prints them out. For printable character data, the character is
Some are printed in one corner of the hex dump list. Then, the user carefully looked at the hexadump list and searched for the incorrect part.

また、ホストから送られるデータの中から制御コードだ
けは、それを16進数で表記するのではなく、アスキー
コードで定められているコード名で表記するものがある
Furthermore, among the data sent from the host, only the control code is not expressed in hexadecimal numbers, but is sometimes expressed as a code name defined in ASCII code.

(発明が解決しようとする課題) 従来のへキサダンプには以下のような問題があった。ま
ず、ホストから送られてきたデータをただ単に16進数
のキャラクタに変換して出力するのみで、データ解析部
を通していないため、どのデータでエラーが発生したか
を示すことができなかったので、誤ったデータの送り方
をしている所を捜すのは使用者の大きな負担となってい
た。
(Problems to be Solved by the Invention) Conventional hexadumps have had the following problems. First, the data sent from the host was simply converted into hexadecimal characters and output, but not passed through the data analysis section, so it was not possible to indicate which data caused the error. It was a heavy burden on the user to search for the location where the data was being sent.

また、ホストから送られるデータが、実際の印字におい
て多数ページにわたる大量なものであった場合、ヘキサ
ダンプリストは、単なるデータの羅列であって、実際の
印字におけるページの切れ目なども大変わかりにくい。
Furthermore, if the data sent from the host is a large amount of data that spans many pages during actual printing, the hex dump list is simply a list of data, and it is very difficult to understand the page breaks during actual printing.

このような時、ヘキサダンプリストと実際の印字におけ
る印字位置の対応をとるのは、大変困難な仕事となる。
In such a case, it becomes a very difficult task to establish a correspondence between the hex dump list and the printing position in actual printing.

また、ホストから送られてくるデータに、ビツ− トマップイメージやフォントダウンロードが含まれてい
る場合、これらのデータ量は非常に多く、ヘキサダンプ
リストも多くの枚数が必要となってくる。このような時
、その中から自分の必要とするデータを捜すのが困難な
ばかりでなく、必要でないデータばかり大量に出るので
紙のムダにもなる。
Furthermore, if the data sent from the host includes bitmap images and font downloads, the amount of these data is extremely large, and a large number of hex dump lists are required. At times like this, it is not only difficult to find the data you need, but also a large amount of unnecessary data, resulting in a waste of paper.

また、予めプリンタのメモリ上にキャラクタや、制御コ
ード群をダウンロードして、そこからデータを引出し印
字する、いわゆるマクロを実行する場合、従来のへキサ
ダンプでは、ダンプすることができなかった。そのため
、そのマクロが正しく設定されているか、また正しくデ
ータが引き出されているかということを確認することが
できなかった・ 本発明の目的は、ヘキサダンプ中のエラーを起こしてい
るデータを孔易に見つけ出せるようにしたプリンタを提
供す?ことにある。
Furthermore, when executing a so-called macro that downloads characters or a group of control codes to the printer's memory in advance and extracts and prints data from there, conventional hex dumps cannot dump the data. Therefore, it was not possible to confirm whether the macro was set correctly or whether the data was extracted correctly.The purpose of the present invention is to easily find the data causing the error during hex dumping. Do you offer printers like this? There is a particular thing.

(課題を解決するi、めの手段) 上記の目的を達成4“るために、本発明の第1の手段は
、ホストコンピュータから送られるデータを16進数の
キャラクタに変換して出力するヘキサダンプモードを備
えたプリンタにおいて、ヘキサダンプ実行時に、ホスト
コンピュータから送られる印字及び制御コードに対して
通常印字の時と同じデータ処理を実行し、このデータ処
理時にエラーを発生したデータを検知し、さらにエラー
を発生しなかったデータと、エラーを発生させたデータ
とでは異なるフォントでヘキサダンプリストを作成させ
る手段を設けたことを特徴とし、第2の手段は、ホスト
コンピュータから送られるデータを16進数のキャラク
タに変換して出力するヘキサダンプモードを備えたプリ
ンタにおいて、ヘキサダンプ実行時に、通常の印字時に
おける改ページの部分でヘキサダンプリストの改ページ
を行わせ、かつ改ページを行った後のページの先頭に通
常の印字時におけるページ数を記し、さらにエラーを発
生させたデータの用紙内の印字位置を記すことができる
手段を設けたことを特徴し、第3の手段は、ホストコン
ピュータから送られるデータを16進数のキャラクタに
変換して出力するヘキサダンプモードを備えたプリンタ
において、ビットマツプイメージあるいはフォントダウ
ンロードのデータ部分を除き、他のデータ部分に対して
ヘキサダンプを実行する部分ダンプモードを備え、この
部分ダンプモードと全データ部分に対してヘキサダンプ
を実行する全体ダンプモードとを切り替えるスイッチを
設けたことを特徴し、第4の手段は、ホストコンピュー
タから送られるデータを16進数のキャラクタに変換し
て出力するヘキサダンプモードを備えたプリンタにおい
て、プリンタが有するメモリにセーブされた印字及び制
御コード群からデータを得る場合もヘキサダンプを実行
させる手段を設けたことを特徴とする。
(Means for Solving the Problems) In order to achieve the above object, the first means of the present invention is to convert data sent from a host computer into hexadecimal characters and output them. When executing a hex dump, a printer equipped with a hex dump mode performs the same data processing as for normal printing on the printing and control codes sent from the host computer, detects data that has generated an error during this data processing, and further detects the error. The second means is to create a hex dump list in different fonts for data that did not cause an error and for data that caused an error. In a printer equipped with a hex dump mode that converts to characters and outputs them, when executing a hex dump, a page break is performed in the hex dump list at the page break part during normal printing, and the page after the page break is The paper is characterized by having a means for recording the number of pages during normal printing at the beginning and further recording the printing position within the paper of the data that caused the error. A printer equipped with a hex dump mode that converts data into hexadecimal characters and outputs the data, and a partial dump mode that executes a hex dump mode on other data parts, excluding the bitmap image or font download data part, The fourth means is characterized in that a switch is provided to switch between this partial dump mode and a whole dump mode in which hex dump is executed for the entire data portion, and the fourth means converts the data sent from the host computer into hexadecimal characters. The present invention is characterized in that the printer is equipped with a hex dump mode for outputting data by means of a means for executing hex dump even when data is obtained from a print and control code group saved in a memory of the printer.

(作 用) 本発明の第1の手段によれば、ダンプモードにおいて、
プリンタにエラーを発生するデータが送られると、その
エラーを起こしたデータの所だけをボールドフォントな
ど、他のデータと異なるフォントを用いて印字し、エラ
ーの原因となったデ7 −タを使用者が一目でわかるようにすることができる。
(Function) According to the first means of the present invention, in the dump mode,
When data that causes an error is sent to the printer, only the data that caused the error is printed using a font that is different from other data, such as bold font, and the data that caused the error is used. This allows people to understand at a glance.

また第2の手段によれば、実際の印字において複数ペー
ジに及ぶ印字データのへキサダンプを行う時、実際の印
字における改ページによってヘキサダンプリストの方も
改ページを行い、またそのヘキサダンプリストのページ
の先頭に、実際の印字におけるページ数を記すことによ
って、ヘキサダンプリスト内の任意のデータと実際の印
字における位置の対応がわかり易くなる。また、送られ
たデータの中にエラーを発生するものが含まれていた場
合、そのエラーを起こすデータの実際の印字における用
紙の中での位置を記すことによって、そのエラーを起こ
したデータの、実際の印字における位置がさらにわかり
易くなる。
According to the second means, when performing a hex dump of print data spanning multiple pages during actual printing, a page break is also performed in the hex dump list due to the page break in the actual printing, and the hex dump list is By writing the page number in actual printing at the top of the page, it becomes easy to understand the correspondence between arbitrary data in the hex dump list and the position in actual printing. In addition, if the sent data contains data that causes an error, the position of the data that caused the error on the paper during actual printing can be recorded. The position in actual printing becomes easier to understand.

また第3の手段によれば、ビットマツプイメージや、フ
ォントダウンロードの含まれたページに対するヘキサダ
ンプにおいて、その量が膨大で、かつ必要とされないこ
との多いイメージデータ部についてはへキサダンプを行
わず、その他のデー8− タに関してのみ実行することによりヘキサダンプリスト
を見易くでき、かつ用紙の節約になる。
According to the third method, when hex dumping a page containing a bitmap image or a font download, the image data part, which is huge and is often not needed, is not hex dumped, and other parts are not hex dumped. By executing only on the data 8, the hex dump list can be easily viewed and paper can be saved.

また第4の手段によれば、マクロからのデータに関して
もヘキサダンプを実行することによって、マクロが自分
の思った通り設定されているか否か、正しくデータが読
み出されているか否かを確認でき、また、その中にエラ
ーを起こすデータが含まれていた場合、それを第1の手
段と同様に容易に捜すことができる。
According to the fourth means, by executing a hex dump on data from the macro, it is possible to check whether the macro is set as expected and whether the data is being read correctly. Furthermore, if data that causes an error is included, it can be easily searched for as in the first method.

(実施例) 以下、本発明の実施例を図面に基づいて説明する。(Example) Embodiments of the present invention will be described below based on the drawings.

第1図は本発明の一実施例に係るレーザプリンタのブロ
ック図であり、1はプリンタ本体、2はホストコンピュ
ータ(ホスト)、3はプリンタのコントローラ部、4は
プリンタを駆動するプリンタエンジン部、5はプリンタ
コントローラ部2の中央演算ユニット(CP U)、6
は複数のページバッファが格納されているRAM、7は
エンジンインターフェース、8はビデオバッファ、9は
プログラムROM、10はホストインターフェース、1
1はフォントROM、12は補助のRAM、13はパス
バッファ、14は上記各素子を接続するバス、15.1
6はメモリカートリッジ、17はコントロールパネルイ
ンターフェース、18はへキサダンプ切換用のへキサダ
ンプスイッチ19が設けられたコントロールパネルであ
る。
FIG. 1 is a block diagram of a laser printer according to an embodiment of the present invention, in which 1 is the main body of the printer, 2 is a host computer (host), 3 is a controller section of the printer, 4 is a printer engine section that drives the printer, 5 is a central processing unit (CPU) of the printer controller section 2;
1 is a RAM in which multiple page buffers are stored, 7 is an engine interface, 8 is a video buffer, 9 is a program ROM, 10 is a host interface, 1
1 is a font ROM, 12 is an auxiliary RAM, 13 is a pass buffer, 14 is a bus connecting each of the above elements, 15.1
6 is a memory cartridge, 17 is a control panel interface, and 18 is a control panel provided with a hex dump switch 19 for switching the hex dump.

第2図、第3図は本発明の第1の手段の一実施例を説明
するためのフローチャートである。
FIGS. 2 and 3 are flowcharts for explaining an embodiment of the first means of the present invention.

第2図において、ステップ201〜210までが実際に
ヘキサダンプリストを作成する部分であるので、ホスト
2から送られるデータの1つずつに対し必ず実行される
ようなプログラム構成しなければならない。そこでホス
ト2がらデータを受は取る従来のルーチンにステップ2
01〜210を加えて次のデータを受は取る直前に必ず
行われるような構造にしである。動作はまずコントロー
ルパネル18上に設けであるヘキサダンプスイッチI9
を押すことによってRAMe上に設けであるヘキサダン
プフラグをONする(ステップzog。その後、最初の
デ−タを受は取る前はステップ202でYESとなって
、ヘキサダンプリストに書き込む部分をスキップする。
In FIG. 2, steps 201 to 210 are the parts that actually create a hex dump list, so the program must be configured so that it is executed for each piece of data sent from the host 2. Therefore, Step 2 is changed to the conventional routine for receiving and receiving data from the host 2.
The structure is such that adding 01 to 210 and receiving the next data is always performed immediately before receiving. The operation begins with the hex dump switch I9 provided on the control panel 18.
By pressing , the hex dump flag provided on RAMe is turned on (step zog. After that, before receiving the first data, it becomes YES in step 202, and the part where it is written to the hex dump list is skipped. .

そしてホスト2からデータを1バイト受は取って(ステ
ップ211)、ステップ212の印字処理に入る。この
部分が第3図にあたる。
Then, 1 byte of data is received from the host 2 (step 211), and printing processing begins in step 212. This part corresponds to Figure 3.

第3図ではへキサダンプフラグがONであると(ステッ
プ301)、まず今受取ったデータをRAM6に一時的
にセーブして(ステップ302)、通常の印字処理が実
行される(ステップ303)。そして次にプログラムR
OM9に従ってこのデータの処理が行われ、その結果が
RAM5上のページバッファ(1)に書き込まれる(ス
テップ307)。ここでエラーと判断されると(ステッ
プ304)、通常印字においては、ステップ308のデ
イスプレィ表示されるが、ヘキサダンプ実行時にはステ
ップ305でYESと判断されてステップ306でRA
M6に設けたエラーフラグをONとする。次に、このデ
ータによってページバッファ(1)が1ペ一ジ分完成し
てプリントアウトを実行するか否かをステップ309で
判断する。ここでNoの時は、すぐ次に進み。YESと
判断された時は、通常印字の時には、これをイメージデ
ータに変換してエンジンインターフェイス7を通じてプ
リンタエンジン4に出方するが(ステップ311)、ヘ
キサダンプ時は、ステップ310でYESと判断されて
、この時はページバッファ(1)は必要ないので消去す
る(ステップ312)。また、フオームフィードコード
を受は取った時や、コントロールパネルエ8からスイッ
チによってフオームフィードがされた時にも同じ処理を
行う。これで印字処理の部分は終了して、前記ステップ
201に戻る。
In FIG. 3, when the hex dump flag is ON (step 301), the data just received is first temporarily saved in the RAM 6 (step 302), and normal printing processing is executed (step 303). And then program R
This data is processed according to OM9, and the result is written to page buffer (1) on RAM5 (step 307). If an error is determined here (step 304), the display will be displayed in step 308 during normal printing, but when executing a hex dump, it will be determined YES in step 305 and the RA will be displayed in step 306.
Turn on the error flag provided in M6. Next, in step 309, it is determined whether the page buffer (1) is completed for one page based on this data and printout is to be executed. If the answer is No here, proceed to the next step immediately. When it is determined YES, during normal printing, this is converted into image data and sent to the printer engine 4 through the engine interface 7 (step 311), but during hex dumping, it is determined YES at step 310. , since the page buffer (1) is not needed at this time, it is erased (step 312). Further, the same processing is performed when a form feed code is received or when form feed is performed by a switch from the control panel 8. This completes the printing process and returns to step 201.

そして最初のデータを受は取った後は、ステップ202
でNOと判断され、ヘキサダンプリストを書くルーチン
にはいる。まずステップ203で、前記ステップ302
でRAM6に一時的にセーブしたコードを16進数で表
すキャラクタコードに変換する。
After receiving the first data, step 202
If the answer is NO, a routine for writing a hex dump list is entered. First, in step 203, the step 302
Convert the code temporarily saved in RAM6 into a character code expressed in hexadecimal.

例えば、セーブされたコードが、it A I+である
とすると、これは16進数で41であるためn 4 n
に対応するコード34hと、sr 1 y+に対応する
コード31、hに変換する。これでヘキサダンプリスト
には 11 − 1141 ppと印字される。次にステップ204でそ
のデータによってエラーが起こったが否かをエラーフラ
グを基に判断する(ステップ2o4)。ここでエラーで
なかった場合には、ステップ205でノーマルなフォン
トで先に変換したキャラクタをRAMB上に設けたペー
ジバッファ(2)に送る(ステップ208)。一方、エ
ラーが起こっていた場合には(ステップ204)、ボー
ルドフォントで同様に送り(ステップ207)、エラー
フラグを。FFに戻す(ステップ206) 、、次にス
テップ209では、この書き込みによって、ページバッ
ファ(2)が、1ペ一ジ分完成したか否かを判断する。
For example, if the saved code is it A I+, this is 41 in hexadecimal, so n 4 n
is converted into a code 34h corresponding to sr 1 y+ and a code 31,h corresponding to sr 1 y+. Now 11 - 1141 pp will be printed in the hex dump list. Next, in step 204, it is determined based on the error flag whether or not an error has occurred due to the data (step 2o4). If there is no error here, the character previously converted in the normal font in step 205 is sent to the page buffer (2) provided on the RAMB (step 208). On the other hand, if an error has occurred (step 204), the same message is sent in bold font (step 207) and an error flag is sent. Return to FF (step 206).Next, in step 209, it is determined whether or not the page buffer (2) has been completed for one page by this writing.

ここで完成していない時には、そのまま次に進み、一方
、完成した場合はページバッファ(2)をイメージデー
タに変換して、エンジンインターフェイス7を通じてプ
リンタエンジン4へ出方する(ステップ21o)。
If it is not completed, the process proceeds to the next step, but if it is completed, the page buffer (2) is converted into image data and sent to the printer engine 4 via the engine interface 7 (step 21o).

以上で1つのデータを受は取って、その処理を実行する
と共にヘキサダンプリストへ書き込j7まで プロセス
は終了する。これを各データ毎にくり返し実行すること
によってプリンタエラーの起12 こったデータだけがボールドフォントで印字されたヘキ
サダンプリストを得ることができる。尚ことではボール
ドフォントを用でぃてるが、例えばイタリックフォント
など、−目で、71つかるフォントなら何でもがまねな
いし、またはアンダーラインや網かけなどの字飾を施し
てもかまわない。
With the above, one piece of data is received, the process is executed, and the process is ended until j7 is written to the hex dump list. By repeating this process for each piece of data, it is possible to obtain a hex dump list in which only the data that caused the printer error is printed in bold font. In this case, a bold font is used, but any type of font that can be used with a - font, such as an italic font, can be imitated, or decorations such as underlining or shading may be applied.

第7図は、従来のへキサダンプの印字例を示しており、
同図のように、制御コードの部分はボールド印字されて
いるが、その数はけっして少なくないし、エラーが起こ
るのは、制御コードに限ったわけではない。この例で、
矢印で示したコードでエラーが起こっても、それはボー
ルド印字されていない。一方、第8図は本実施例による
ヘキサダンプの印字例であるが、こちらは制御コードも
通常印字して、エラーの起こった矢印で示したコードだ
けがボールド印字されて、−見でエラーコードがわかる
Figure 7 shows an example of printing on a conventional hexadump.
As shown in the figure, the control code portion is printed in bold, but the number of such codes is by no means small, and errors are not limited to control codes. In this example,
Even if an error occurs in the code indicated by the arrow, it is not printed in bold. On the other hand, Fig. 8 shows an example of printing on a hex dump according to this embodiment. In this case, the control code is also printed normally, and only the code indicated by the arrow where the error occurred is printed in bold. Recognize.

次に本発明の第2の手段の一実施例を説明する。Next, an embodiment of the second means of the present invention will be described.

この実施例の主な動作の流れは第2図、第3図のフロー
チャートに沿っているが、新たにページヵウンタをRA
M6の上に設け、これを立ち上げ時に1にセットしてお
く。そして第2図のステップ208と209の間に第4
図の処理を追加してやり、ステップ201と202の間
に、第5図の処理を加えてやることによって実現する。
The main operation flow of this embodiment is in accordance with the flowcharts in Figures 2 and 3, but a new page counter is added to the RA.
Provided above M6 and set to 1 at startup. Then, between steps 208 and 209 in FIG.
This is achieved by adding the process shown in the figure and adding the process shown in FIG. 5 between steps 201 and 202.

まず第4図に基づいて説明すると、まずステップ401
では、ステップ208でページバッファ(2)に送った
データによって、実際の印字においてフオームフィード
がされたかどうかを判断する。その判断は、それに先駆
けて行われているステップ309での判断結果による。
First, to explain based on FIG. 4, step 401
Then, based on the data sent to the page buffer (2) in step 208, it is determined whether form feed was performed during actual printing. This determination is based on the result of the determination in step 309, which has been made prior to that.

ここでNOであったら第4図を終えて、第2図に戻る。If the answer is NO here, finish Figure 4 and return to Figure 2.

YESと判断された時はページバッファ(2)をイメー
ジデータに変換してプリンタエンジン4に送り、その時
に作成中だったヘキサダンプリストのページを出力する
(ステップ402)。そしてページカウンタを1だけ加
算する(ステップ403)。次に第5図に基づいて説明
する。まずステップ501で、ヘキサダンプのページの
先頭であるか否かを判断をする。通常はNOとなり第2
図に戻るが、立ち上げ時や、実際の印字でフオームフィ
ードし、第4=15− 図の処理によってページバッファ(2)がプリンタエン
ジン4に送られた直後はYESと判断される。
If the determination is YES, the page buffer (2) is converted into image data and sent to the printer engine 4, and the page of the hex dump list being created at that time is output (step 402). Then, the page counter is incremented by 1 (step 403). Next, a description will be given based on FIG. 5. First, in step 501, it is determined whether or not it is the beginning of a hex dump page. Normally it will be NO and the second
Returning to the figure, YES is determined at the time of start-up or immediately after form feeding during actual printing and the page buffer (2) is sent to the printer engine 4 through the process shown in FIG.

ここでYESと判断された時は、まず予めプログラムR
OM9に登録しである文字列、例えば“Page”をペ
ージバッファ(2)に送り(ステップ502)、続けて
ページカウンタの示す値を、そのキャラクタコードに変
換したものを送る(ステップ503)。例えば、その時
のページカウンタが5であったとすると、そのコード3
5hを送る。これによってページの先頭に“Page 
5”と印字される。
If the answer is YES here, first program R in advance.
A character string registered in the OM9, for example "Page", is sent to the page buffer (2) (step 502), followed by sending the value indicated by the page counter converted into its character code (step 503). For example, if the page counter at that time was 5, the code 3
Send 5h. This will cause “Page” to appear at the top of the page.
5” is printed.

第9図から第11図は、印字状態を比較するための説明
図である。まず第9図は実際の印字例である。第10図
は、この印字例のデータを従来のへキサダンプを行った
時のへキサダンプリストであり、第11図は、第2の手
段におけるヘキサダンプを行った時のへキサダンプリス
トの例である。
FIG. 9 to FIG. 11 are explanatory diagrams for comparing printing states. First, FIG. 9 shows an example of actual printing. Figure 10 is a hexedump list obtained by performing conventional hexedumping on the data of this printing example, and Fig. 11 is an example of a hexedump list obtained by performing hexedumping using the second method. be.

次にエラーが起こった時の用紙の中での位置の印字であ
るが、従来からプリンタでは、データの解析処理を行っ
ている部分で、用紙の左上を共に○として水平方向と垂
直方向にそれぞれドツト数6 で表す変数を持っており、現在処理を行っている位置を
この変数で管理している。そこでステップ304でエラ
ーが発生したことがわかりステップ306でエラーフラ
グをONにした後、その時の水平位置と垂直位置を示す
変数をひとまずRAM6にセーブする。それを印字する
位置は多数考えられるが、例えば実際の印字におけるペ
ージの最後にあたる部分に印字する場合は、第4図のス
テップ401と402の間で、これらのセーブしである
値を基にエラーのあった位置を印字すればよい。またこ
れらの変数の値はドツト数で表されているが、例えばこ
れらの値を1インチ当りのドツト数で割ってやることに
よって位置をインチで表記できるし、また水平方向のプ
リントキャラクタ間のドツト数、及び垂直方向の行間隔
のドツト数で割ってやることによってキャラクタ位置で
表記することもできる。また、起こったエラーの種類を
予め定めであるエラ一番号やエラー名で記すことによっ
て、後のエラー解析に役立つ。第12図はキャラクタ位
置で表した印字例である。
The next step is to print the position on the paper when an error occurs. Conventionally, in printers, the upper left corner of the paper is marked with a circle, and both horizontal and vertical directions are printed. It has a variable that represents the number of dots (6), and uses this variable to manage the position where processing is currently being performed. Then, in step 304, it is found that an error has occurred, and after turning on the error flag in step 306, variables indicating the horizontal position and vertical position at that time are temporarily saved in the RAM 6. There are many possible positions to print it, but for example, if you want to print it at the end of the page in actual printing, an error will be detected between steps 401 and 402 in Figure 4 based on these saved values. Just print the position where it was. Also, although the values of these variables are expressed in dots, the position can be expressed in inches by dividing these values by the number of dots per inch, and the dots between horizontally printed characters can also be expressed in inches. It can also be expressed in character positions by dividing the number by the number and the number of dots in the vertical line spacing. Also, by recording the type of error that has occurred using a predetermined error number or error name, it is useful for later error analysis. FIG. 12 is an example of printing expressed in character positions.

次に本発明の第3の手段の一実施例を説明する。Next, an embodiment of the third means of the present invention will be described.

この実施例では、不要なイメージデータ部をスキップし
て、その他の部分についてのみへキサダンプリントを作
成するヘキサダンプモードを設け、後述するスイッチに
よって通常へキサダンプモードと切り替えて使えるよう
にしである。
In this embodiment, a hex dump mode is provided in which unnecessary image data portions are skipped and hex dump prints are created only for other portions, and the mode can be switched to normal hex dump mode using a switch described later. .

スイッチは、コントロールパネル18に設けられたヘキ
サダンプスイッチ19を一度押すことによって、RAM
e上のへキサダンプフラグが1になり、もう−度押すこ
とによってヘキサダンプフラグが2になる。またこのモ
ードでもヘキサダンプ時において通常の印字処理を行っ
ている。通常の印字処理においてビットマツプイメージ
や、フォントダウンロードに関しては、送られるイメー
ジデータの数は、データに先駆けて必ず送られてくるた
め、まずそれによって与えられた数をRAM6上に設け
たスキップカウンタに最初のイメージデータを受は取っ
た時に代入する。
The switch is activated by pressing the hex dump switch 19 provided on the control panel 18 once.
The hex dump flag on e becomes 1, and pressing it again sets the hex dump flag to 2. Also in this mode, normal printing processing is performed during hex dumping. Regarding bitmap images and font downloads in normal printing processing, the number of image data to be sent is always sent before the data, so first, the number given by that is stored in the skip counter provided on RAM 6. Assign the first image data when it is received.

主な動作の流れは、第6図と第3図のフローチャートに
沿ってなされ、第6図において、ステップロ04は実際
にヘキサダンプリストにデータを書き込む所で、第2図
のステップ203から208までに相当しており、ステ
ップ606は第3図に相当している。まず、ヘキサダン
プモードでない場合(ステップ601)には、そのまま
ホスト2からデータを受は取り(ステップ605)、印
字がなされる(ステップ606)。そして、ヘキサダン
プモードに入るため、ヘキサダンプスイッチを2度押す
と、ヘキサダンプフラグが2になり、従ってステップ6
02でYESと判断されてステップ603へ行く。ここ
で今のデータがイメージデータでないときは、スキップ
カウンタが0になっているため、ここでYESと判断さ
れ、通常のへキサダンプと同様にヘキサダンプリストへ
書き込まれる(ステップ604)。逆にイメージデータ
であった時は、スキップカウンタがOでないためNoは
判断されて、スキップカウンタをデクリメントする(ス
テップ607)だけでヘキサダンプリストに書き込む部
分はスキップする。これによりイメージデータを受は取
っている間はデータに書き込みを行わず、イメージデー
タが終了する9− とスキップカウンタが0になって書き込みを再び開始す
るようになる。これに加えて、ヘキサダンプリストのス
キップした場所に*や#などの記号を印字しておくこと
によってスキップした場所も一目でわかるようになる。
The main flow of operations is performed according to the flowcharts in FIGS. 6 and 3. In FIG. 6, step 04 is where data is actually written to the hex dump list, and steps 203 to 208 in FIG. Step 606 corresponds to that shown in FIG. First, if it is not the hex dump mode (step 601), data is directly received from the host 2 (step 605), and printing is performed (step 606). Then, to enter the hex dump mode, press the hex dump switch twice, the hex dump flag will become 2, and therefore step 6
If the result is YES in step 02, the process goes to step 603. If the current data is not image data, the skip counter is 0, so YES is determined here, and the data is written to the hex dump list in the same way as a normal hex dump (step 604). Conversely, if it is image data, the skip counter is not O, so the answer is No, and the portion to be written to the hex dump list is skipped by simply decrementing the skip counter (step 607). As a result, data is not written while the image data is being received, and when the image data ends (9-), the skip counter becomes 0 and writing starts again. In addition, by printing symbols such as * or # at the skipped locations in the hex dump list, you can also see the skipped locations at a glance.

第13図から第15図は印字状態を比較するための説明
図である。第13図はビットマツプイメージを含んだ実
際の印字例である。第14図は、従来のへキサダンプに
よるヘキサダンプリストの印字例であり、イメージデー
タ(I D)も全てダンプ(二点鎖線の範囲)するため
、大変な枚数を必要としている。第15図は、本発明の
第3の手段によるヘキサダンプリストの印字例であり、
イメージデータが*′″で省略されているため、大変簡
潔で見易く、枚数も少なくなっている。
FIGS. 13 to 15 are explanatory diagrams for comparing printing states. FIG. 13 is an example of actual printing including a bitmap image. FIG. 14 shows an example of printing a hex dump list using a conventional hex dump. Since all image data (ID) is also dumped (in the range indicated by the two-dot chain line), a large number of sheets are required. FIG. 15 is an example of printing a hex dump list according to the third means of the present invention,
Since the image data is omitted with *''', it is very concise and easy to read, and the number of images is small.

次に本発明の第4の手段の一実施例を説明する。Next, an embodiment of the fourth means of the present invention will be described.

従来のへキサダンプでは、マクロを実行するコマンドが
ホスト2から送られて来ても、実際の印字処理を行わな
かったので、それは単なるひとつのコードとしてしか扱
わず、すぐにホスト2の方20− から次のデータを取りに行っていたため、マクロのデー
タはダンプできなかった。しかし本発明の第4の手段に
おけるヘキサダンプでは、実際に印字処理を実行してい
るため、マクロの実行コマンドを受は取るとその処理に
よってデータを受は取る先を、ホスト2から指定したマ
クロの存在するRAM12上のアドレスに切り替わり、
そちらからデータを受は取るようになる。つまり第2図
のステップ211の“ホストからデータを受は取る”と
いう所を“RAMの指定したアドレスからデータを受は
取る”と変えるだけで、マクロからのデータにもそのま
ま対応することが可能となる。
In conventional hex dumps, even if a command to execute a macro is sent from the host 2, the actual printing process is not performed, so it is treated as just one code, and the host 2 immediately sends the command to the host 2. The macro data could not be dumped because the next data was being retrieved. However, in the hex dump according to the fourth means of the present invention, since the printing process is actually executed, when the macro execution command is received, the destination of the data is determined by the macro specified by the host 2. Switch to the existing address on RAM12,
You will start receiving data from there. In other words, by simply changing ``receive data from the host'' in step 211 of Figure 2 to ``receive data from the specified address in RAM,'' it is possible to directly handle data from macros. becomes.

(発明の効果) 本発明の第1の手段によれば、エラーを発生したデータ
とエラーを発生しないデータとでは異なるフォントで印
字されるため、ヘキサダンプリストからエラーを発生さ
せたデータの捜し出しが容易になり、本発明の第2の手
段によれば、多数ページにわたる印字のへキサダンプを
実行し、ヘキサダンプリスト内における任意のデータと
実際の印字における位置との対応がわからなくなるとい
ったことがなく、すぐに実際に印字におけるページや位
置が簡単にわかるようになり、本発明の第3の手段によ
れば、イメージデータを含んだ印字データに対するヘキ
サダンプを行わないため、その分、エラ一部分の捜し出
し作業が容易になり、本発明の第4の手段によれば、マ
クロのデータもヘキサダンプを実行することにより、マ
クロの中のデータによってエラーを起こす場合も、その
原因となるデータを容易に捜し出すことができる。
(Effects of the Invention) According to the first means of the present invention, data in which an error has occurred and data in which no error has occurred are printed in different fonts, making it easy to search for data in which an error has occurred from the hex dump list. According to the second means of the present invention, it is possible to perform a hex dump of printing over a large number of pages without losing knowledge of the correspondence between arbitrary data in the hex dump list and the position in the actual printing. According to the third means of the present invention, since a hex dump is not performed on the print data including image data, it becomes easier to find the error part. According to the fourth means of the present invention, even if data in the macro causes an error, the data causing the error can be easily found by executing a hex dump of macro data. I can do it.

従って、ヘキサダンプリスト中のエラーを起こしている
各種データを容易に見つけ出せるプリンタを提供できる
Therefore, it is possible to provide a printer that can easily find various data causing errors in the hex dump list.

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

第1図は本発明のプリンタの一実施例の構成を示すブロ
ック図、第2図、第3図、第4図、第5図、第6図は本
発明の一実施例の動作を説明するためのフローチャート
、第7図、第8図、第9図。 第10図、第11図、第12図、第13図、第14図、
第15図は印字状態を比較するための説明図である。 1 ・・プリンタ本体、 2・・・ホストコンピュータ
、 3 ・・・プリンタコントローラ部、 4 ・・・
プリンタエンジン、 5 ・・・CPU、 6 ・・・
RAM、 7 ・・・エンジンインターフェース、 8
 ・・・ ビデオバッファ、 9 ・・・プログラムR
OM、10・・・ホストインターフェース、11・・・
フォントROM、 12・・・補助のRAM、13・・
・パスバッファ、14・・・バス、15.16・・・メ
モリカートリッジ、17・・・コントロールパネルイン
ターフェース、18・・・コントロールパネル、19・
・・ヘキサダンプスイッチ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the printer of the present invention, and FIGS. 2, 3, 4, 5, and 6 explain the operation of an embodiment of the printer of the present invention. Flowcharts for FIGS. 7, 8, and 9. Figure 10, Figure 11, Figure 12, Figure 13, Figure 14,
FIG. 15 is an explanatory diagram for comparing printing conditions. 1...Printer main body, 2...Host computer, 3...Printer controller section, 4...
Printer engine, 5...CPU, 6...
RAM, 7...Engine interface, 8
... Video buffer, 9 ... Program R
OM, 10... host interface, 11...
Font ROM, 12... Auxiliary RAM, 13...
・Path buffer, 14... Bus, 15. 16... Memory cartridge, 17... Control panel interface, 18... Control panel, 19.
...Hex dump switch.

Claims (4)

【特許請求の範囲】[Claims] (1)ホストコンピュータから送られるデータを16進
数のキャラクタに変換して出力するヘキサダンプモード
を備えたプリンタにおいて、ヘキサダンプ実行時に、ホ
ストコンピュータから送られる印字及び制御コードに対
して通常印字の時と同じデータ処理を実行し、このデー
タ処理時にエラーを発生したデータを検知し、さらにエ
ラーを発生しなかったデータと、エラーを発生させたデ
ータとでは異なるフォントでヘキサダンプリストを作成
させる手段を設けたことを特徴とするプリンタ。
(1) In a printer equipped with a hex dump mode that converts data sent from a host computer into hexadecimal characters and outputs them, when executing a hex dump, the printing and control codes sent from the host computer are compared with normal printing. A method is provided to execute the same data processing, detect the data that caused an error during this data processing, and create a hex dump list in different fonts for the data that did not cause an error and the data that caused the error. A printer characterized by:
(2)ホストコンピュータから送られるデータを16進
数のキャラクタに変換して出力するヘキサダンプモード
を備えたプリンタにおいて、ヘキサダンプ実行時に、通
常の印字時における改ページの部分でヘキサダンプリス
トの改ページを行わせ、かつ改ページを行った後のペー
ジの先頭に通常の印字時におけるページ数を記し、さら
にエラーを発生させたデータの用紙内の印字位置を記す
ことができる手段を設けたことを特徴とするプリンタ。
(2) In a printer equipped with a hex dump mode that converts data sent from a host computer into hexadecimal characters and outputs them, when executing a hex dump, a page break in the hex dump list is performed at the page break portion during normal printing. The present invention is characterized by the provision of a means for recording the page number during normal printing at the top of the page after a page break and further recording the printing position on the paper of the data that caused the error. printer.
(3)ホストコンピュータから送られるデータを16進
数のキャラクタに変換して出力するヘキサダンプモード
を備えたプリンタにおいて、ビットマップイメージある
いはフォントダウンロードのデータ部分を除き、他のデ
ータ部分に対してヘキサダンプを実行する部分ダンプモ
ードを備え、この部分ダンプモードと全データ部分に対
してヘキサダンプを実行する全体ダンプモードとを切り
替えるスイッチを設けたことを特徴とするプリンタ。
(3) For printers equipped with a hex dump mode that converts data sent from a host computer into hexadecimal characters and outputs the data, except for bitmap image or font download data parts, other data parts cannot be hex dumped. A printer comprising a partial dump mode to be executed, and a switch for switching between the partial dump mode and a whole dump mode in which a hex dump is executed for all data portions.
(4)ホストコンピュータから送られるデータを16進
数のキャラクタに変換して出力するヘキサダンプモード
を備えたプリンタにおいて、プリンタが有するメモリに
セーブされた印字及び制御コード群からデータを得る場
合もヘキサダンプを実行させる手段を設けたことを特徴
とするプリンタ。
(4) For printers equipped with a hex dump mode that converts data sent from a host computer into hexadecimal characters and outputs them, hex dump is also used to obtain data from print and control code groups saved in the printer's memory. A printer characterized in that it is provided with a means for executing the operation.
JP2006280A 1990-01-17 1990-01-17 printer Pending JPH03211069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006280A JPH03211069A (en) 1990-01-17 1990-01-17 printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006280A JPH03211069A (en) 1990-01-17 1990-01-17 printer

Publications (1)

Publication Number Publication Date
JPH03211069A true JPH03211069A (en) 1991-09-13

Family

ID=11633987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006280A Pending JPH03211069A (en) 1990-01-17 1990-01-17 printer

Country Status (1)

Country Link
JP (1) JPH03211069A (en)

Similar Documents

Publication Publication Date Title
US5878198A (en) Information processing apparatus and method and memory medium storing information processing program
US4623978A (en) Print control apparatus having line buffer
JPH0441548B2 (en)
JPH06278328A (en) Printer
KR100217995B1 (en) Format printing device and printing method
JPH03211069A (en) printer
US7320552B2 (en) Image forming apparatus
JPH0713790B2 (en) Character output method
JP2846806B2 (en) Printer controller
JP3118826B2 (en) Printing control device
JPH0628130A (en) Printing controller
JPS59148933A (en) List printing system
JPH04111116A (en) character processing device
JPH0592649A (en) Label printer
JPH08132684A (en) Braille plate output system and Braille plate output method
JP2682984B2 (en) Output device
JPS63242561A (en) Font reducing system
JPH0732697A (en) Printer
JPH05309883A (en) Printing device
JPS63314635A (en) Printing device with address book printing function
JPH04144763A (en) Printer
JPH0725106A (en) Printer device
JPH0412868A (en) Printing method for subscript of superscript in printer
JPH0259065B2 (en)
JPS62248651A (en) Printing method