JP3084806B2 - Printing device - Google Patents

Printing device

Info

Publication number
JP3084806B2
JP3084806B2 JP03195747A JP19574791A JP3084806B2 JP 3084806 B2 JP3084806 B2 JP 3084806B2 JP 03195747 A JP03195747 A JP 03195747A JP 19574791 A JP19574791 A JP 19574791A JP 3084806 B2 JP3084806 B2 JP 3084806B2
Authority
JP
Japan
Prior art keywords
printing
control code
operation mode
control
detected
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.)
Expired - Fee Related
Application number
JP03195747A
Other languages
Japanese (ja)
Other versions
JPH0519990A (en
Inventor
裕一 太田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP03195747A priority Critical patent/JP3084806B2/en
Publication of JPH0519990A publication Critical patent/JPH0519990A/en
Application granted granted Critical
Publication of JP3084806B2 publication Critical patent/JP3084806B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、印字情報中の制御コー
ドと複数の印字装置の各印字動作様式に対応する制御コ
ードテーブルとを比較することにより複数の印字動作様
式から1の印字動作様式を決定する印字装置に関し、特
に、制御コードが各制御コードテーブルと合致せずにエ
ラー制御コードが生じても適正な印字動作様式を決定可
能な印字装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to one printing operation mode from a plurality of printing operation modes by comparing a control code in print information with a control code table corresponding to each printing operation mode of a plurality of printing apparatuses. In particular, the present invention relates to a printing apparatus that can determine an appropriate printing operation mode even when an error control code is generated because a control code does not match each control code table.

【0002】[0002]

【従来の技術】従来、各種の印字装置が提供されている
が、これらの装置では、入力された印字情報に従った印
字を実行する際、印字指令がなされた英数字等をその印
字情報中に含まれる倍角指定、改行、改ページ等の制御
コードに基づいて忠実に実行している。また、上記各種
の印字装置は、一層多彩な印字を可能とするため、それ
ぞれ特有の動作様式を備えている。
2. Description of the Related Art Conventionally, various printing devices have been provided. In these devices, when printing is performed in accordance with input printing information, alphanumeric characters or the like for which a printing command is issued are included in the printing information. Are faithfully executed based on control codes such as double-width designation, line feed, and page break included in. In addition, the above-described various printing apparatuses have their own operation modes in order to enable more versatile printing.

【0003】ここに、特有の動作様式とは、例えば、印
字を高速に実行する高速モード、横書き・縦書きの変更
モード、ドットスペース及びビットイメージの指定とい
ったもので、これらの動作様式も印字情報中の制御コー
ド、特に、拡張制御コード(ESCシーケンス)によっ
て指定される。
Here, the specific operation modes include, for example, a high-speed mode for executing high-speed printing, a horizontal / vertical writing change mode, and designation of a dot space and a bit image. Specified by a control code inside, in particular, an extended control code (ESC sequence).

【0004】このような事情があるため、印字情報を作
成する際には予め印字を実行させる印字装置の動作様式
を知り、この動作様式に沿ったコード化が要求されこと
となり、また、印字装置の側からすれば自己の動作様式
に則った印字情報以外では所望の印字を実行することが
できなかった。
Under such circumstances, when creating print information, it is necessary to know in advance the operation mode of the printing apparatus for executing printing, and it is required to perform coding in accordance with this operation mode. From the point of view of the above, the desired printing could not be executed except for the printing information conforming to its own operation style.

【0005】かかる不便を解消するため、印字装置に予
め複数種類の印字装置の動作様式を備えておき、使用者
が印字に際して選択する1の印字装置の動作様式に基づ
き入力される印字情報を印字する装置(以下、前者とい
う)が従来より提案されている。
In order to eliminate such inconvenience, the printing apparatus is provided with a plurality of types of operation modes of the printing apparatus in advance, and print information input based on the operation mode of one printing apparatus selected by the user at the time of printing is printed. (Hereinafter, referred to as the former) have been proposed.

【0006】また、これを一歩進めて印字装置自身が印
字情報中に含まれる特定の制御コードを解析して自動的
に印字の動作様式を設定可能な装置(以下、後者とい
う)も従来より提案されている(特開昭63−2167
56号公報)。これら前者及び後者のいずれの印字装置
も従来蓄積されている印字情報を有効に活用できるため
各方面で用いられている。
[0006] Further, by taking this step one step further, a device capable of automatically setting a printing operation mode by analyzing a specific control code included in print information by the printing device itself (hereinafter, referred to as the latter) has also been proposed. (Japanese Patent Laid-Open No. 63-2167)
No. 56). Both of the former and latter printing devices are used in various fields because the printing information stored conventionally can be effectively utilized.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、前者の
印字装置にあっては、使用者が印字をしたい印字情報毎
に何れの動作様式を予定したものであるかを判断し、印
字装置に対して動作様式を設定したり、特別の操作をす
る必要があり、従って、操作が煩雑になるとともに、操
作に時間がかかってしまう問題があった。
However, in the former printing apparatus, it is determined which operation mode is intended for each print information that the user wants to print, and the printing apparatus is required It is necessary to set an operation mode or perform a special operation, and thus there is a problem that the operation becomes complicated and the operation takes a long time.

【0008】また、後者の印字装置では、自動的に印字
動作様式を判断できるものであるが、その動作様式の自
動判別に際し、判別対象となる制御コード群に誤った制
御コードが混在している場合には、該制御コードが各印
字動作様式に対応する制御コードテーブルに合致しない
エラー状態が発生し、印字動作様式が本来予定していな
い別の印字動作様式と判断されて適正な印字ができなか
ったり、また、場合によっては印字装置が作動しなくな
ったりするという問題が残存していた。
In the latter printing apparatus, the printing operation mode can be automatically determined. However, when the operation mode is automatically determined, an erroneous control code is mixed in a control code group to be determined. In this case, an error condition occurs in which the control code does not match the control code table corresponding to each printing operation mode, and the printing operation mode is determined to be another printing operation mode that is not originally planned, and proper printing can be performed. However, there still remains a problem that the printing device does not operate in some cases.

【0009】本発明は、上記従来の問題点を解消するた
めになされたものであり、印字装置が有する各種印字動
作様式を高速に判断可能であるとともに、印字動作様式
を決定する制御コードが各印字動作様式に合致しないエ
ラー状態が生じた場合でも適正に印字動作様式を選択決
定することができる印字装置を提供することを目的とす
るものである。また、この選択決定された印字動作様式
に対して合致しないと判断された制御コードの数が所定
値以下の場合に、印字処理を実行することによって、選
択決定された印字動作様式に対して合致しない制御コー
ドが発生した場合でも極めて正確に適切な印字ができる
印字装置を提供することを目的とするものである。
SUMMARY OF THE INVENTION The present invention has been made in order to solve the above-mentioned conventional problems, and it is possible to determine various printing operation modes of a printing apparatus at a high speed, and a control code for determining the printing operation mode is provided. It is an object of the present invention to provide a printing apparatus that can appropriately select and determine a printing operation mode even when an error state that does not match the printing operation mode occurs. In addition, this print operation style decided
The number of control codes determined not to match
If the value is less than or equal to the value, the
Control code that does not match the selected printing operation mode
Even if an error occurs, appropriate printing can be performed very accurately.
It is an object to provide a printing device.

【0010】[0010]

【課題を解決するための手段】この目的を達成するため
本発明に係る印字装置は、複数の印字装置の動作様式を
模擬する模擬機能を有し、予め選択される1の印字装置
の動作様式に基づき、入力される印字情報に従った印字
動作を実行する印字装置において、前記印字情報を記憶
する印字情報記憶手段と、前記印字情報記憶手段に記憶
される印字情報中から印字動作様式を決定する制御コー
ドを検出する制御コード検出手段と、前記制御コード検
出手段により検出された制御コードが前記各印字動作様
式に合致するかどうかを判断する判断手段と、前記各印
字動作様式に対応して設けられ、前記制御コードの内、
前記各印字動作様式に合致しないと判断されたコードを
エラー制御コードとしてカウントするカウンタ手段と、
前記各カウンタ手段の中からエラー制御コードの数が最
小のカウンタ手段を検出する検出手段と、前記検出手段
によって検出されたカウンタ手段のエラー制御コードの
数が所定値以下であるか否か判定する判定手段と、前記
判定手段によって前記エラー制御コードの数が所定値以
下であると判定された場合には、前記検出手段によって
検出されたカウンタ手段に対応する印字動作様式に基づ
いて印字を実行させる制御手段とを備えた構成とされ
る。
In order to achieve this object, a printing apparatus according to the present invention has a simulating function for simulating operation modes of a plurality of printing apparatuses, and an operation mode of one preselected printing apparatus. A printing device for executing a printing operation in accordance with input printing information based on the printing information, and a printing information storage means for storing the printing information; and a printing operation mode determined from the printing information stored in the printing information storage means. Control code detecting means for detecting a control code to be performed, determining means for determining whether or not the control code detected by the control code detecting means conforms to each of the printing operation modes, and corresponding to each of the printing operation modes. Provided, among the control codes,
Counter means for counting a code determined not to match each of the printing operation modes as an error control code,
The number of error control codes is
Detecting means for detecting a small counter means, and the detecting means
Of the error control code of the counter means detected by
Determining means for determining whether the number is equal to or less than a predetermined value;
The number of the error control codes is equal to or less than a predetermined value by the determination means.
When it is determined to be below, control means for executing printing based on a printing operation mode corresponding to the counter means detected by the detecting means is provided.

【0011】[0011]

【作用】本発明に係る印字装置によれば、先ず外部機器
から入力された印字情報を受信バッファに格納し、その
後制御コード検出手段により印字情報中に含まれる印字
動作様式を決定する制御コードが検出される。ここで、
制御コードの検出は、各印字装置に固有の制御コード出
現の判定、制御コードの出現の頻度、あるいは制御コー
ドの出現順序等の判定、又はこれらの組合せ的判定によ
って、各印字装置に特有の制御コード体系を判別して行
われる。
According to the printing apparatus of the present invention, first, the printing information input from the external device is stored in the receiving buffer, and thereafter, the control code for determining the printing operation mode included in the printing information by the control code detecting means is provided. Is detected. here,
The control code is detected by determining the appearance of a control code specific to each printing device, determining the frequency of occurrence of the control code, the order of appearance of the control code, or a combination of these, or performing control specific to each printing device. This is performed by determining the code system.

【0012】続いて、判断手段を介して制御コード検出
手段により検出された制御コードが各印字動作様式に合
致するかどうかが判断される。かかる判断において、検
出された制御コードが各印字動作様式に合致しないと判
断された場合、そのコードをエラー制御コードとして順
次各印字動作様式に対応するカウンタ手段によりカウン
トしていく。続いて、最終的にエラー制御コードの数が
最小であるカウンタ手段を検出手段によって検出し、こ
の検出されたカウンタ手段のエラー制御コードの数が所
定値以下であるか否か判定手段によって判定する。そし
て、かかる判定において、所定値以下であると判定され
た場合には、当該エラー制御コードの数が最小である
ウンタ手段に対応する印字動作様式に基づいて印字が実
行される。
Subsequently, it is determined whether or not the control code detected by the control code detecting means via the determining means conforms to each printing operation mode. In this determination, when it is determined that the detected control code does not match each printing operation mode, the code is sequentially counted as an error control code by the counter means corresponding to each printing operation mode. Then, finally, the number of error control codes
The minimum counter means is detected by the detection means, and
Of the error control code of the counter means
It is determined by the determination unit whether or not the value is equal to or less than the predetermined value. Soshi
Thus, in such a determination, it is determined that the
In this case, printing is executed based on the printing operation mode corresponding to the counter means having the minimum number of the error control codes .

【0013】[0013]

【実施例】以下、本発明をレーザプリンタに具体化した
一実施例に基づいて図面を参照しつつ詳細に説明する。
図1は、レーザプリンタの光学系及び駆動系を模式的に
示す図であり、半導体レーザ10から出射されたレーザ
ビームLは、コリメータレンズ12によって平行光とさ
れた後、回転多面鏡14によって反射されることにより
進行方向が周期的に変化させられ、fθレンズ16を介
して感光体ドラム18上を矢印A方向へ走査させられ
る。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a perspective view of a laser printer according to an embodiment of the present invention;
FIG. 1 is a diagram schematically showing an optical system and a driving system of a laser printer. A laser beam L emitted from a semiconductor laser 10 is collimated by a collimator lens 12 and then reflected by a rotary polygon mirror 14. As a result, the traveling direction is periodically changed, and the photosensitive drum 18 is scanned in the direction of arrow A via the fθ lens 16.

【0014】感光体ドラム18は予め設定された解像度
に応じた回転速度で上記レーザビームLの走査方向と平
行な軸まわりに回転駆動されるとともに、レーザビーム
Lの露光走査によって潜像が形成され、図示しない現像
装置、転写装置等によって印刷紙等の記録媒体に画像が
プリントされる。
The photosensitive drum 18 is driven to rotate around an axis parallel to the scanning direction of the laser beam L at a rotation speed according to a preset resolution, and a latent image is formed by the exposure scanning of the laser beam L. An image is printed on a recording medium such as printing paper by a developing device, a transfer device, or the like (not shown).

【0015】回転多面鏡14は、走査手段を構成し、多
面鏡20と、その多面鏡20を軸心まわりに回転駆動す
るスキャナモータ22と、そのスキャナモータ22を予
め定められた一定の回転速度で回転駆動させるスキャナ
モータ駆動回路24とからなる。また、回転多面鏡14
は、予め定められた解像度に対応して回転速度が異なる
複数種類、本実施例では解像度が240DPI(Dot
/Inch)、300DPI、400DPIの3種類の
ものが用意され、所望する解像度に応じて適宜交換され
るようになっている。
The rotary polygon mirror 14 constitutes a scanning means, and includes a polygon mirror 20, a scanner motor 22 for driving the polygon mirror 20 to rotate around its axis, and a predetermined rotation speed for the scanner motor 22. And a scanner motor drive circuit 24 that is driven to rotate. In addition, the rotating polygon mirror 14
Is a plurality of types having different rotation speeds corresponding to a predetermined resolution. In the present embodiment, the resolution is 240 DPI (Dot
/ Inch), 300 DPI, and 400 DPI are prepared, and are appropriately replaced according to a desired resolution.

【0016】感光体ドラム18は、メインモータ駆動回
路26を介してメインモータ28により回転駆動され
る。尚、メインモータ28は図示しない給排紙ローラ、
現像装置、定着装置等をも駆動する。また、半導体レー
ザ10は、レーザ駆動回路30によってON−OFF制
御される。上記スキャナモータ駆動回路24、メインモ
ータ駆動回路26及びレーザ駆動回路30はマイクロコ
ンピュータよりなる制御部32に接続されている。
The photosensitive drum 18 is driven to rotate by a main motor 28 via a main motor drive circuit 26. The main motor 28 includes a paper feed / discharge roller (not shown),
The developing device and the fixing device are also driven. The semiconductor laser 10 is ON / OFF controlled by the laser drive circuit 30. The scanner motor drive circuit 24, the main motor drive circuit 26, and the laser drive circuit 30 are connected to a control unit 32 composed of a microcomputer.

【0017】制御部32は、エンジンコントローラ3
4、ビデオコントローラ36及びCPU38、ROM4
0、RAM42を備えており、RAM42の一時記憶機
能を利用しつつROM40に記憶されたプログラムに従
って信号処理を行うようになっている。ここに、ビデオ
コントローラ36は、外部機器としてのホストコンピュ
ータ44から送られた画像データを解像度に応じて印字
可能なドットデータに変換するものであり、また、エン
ジンコントローラ34は、そのビデオコントローラ36
から送られて来るドットデータに従ってレーザ駆動回路
30に変調信号を出力し、半導体レーザ10の出力をO
N−OFF制御する。
The control unit 32 includes the engine controller 3
4. Video controller 36 and CPU 38, ROM4
0, and a RAM 42, and performs signal processing according to a program stored in the ROM 40 while using the temporary storage function of the RAM 42. Here, the video controller 36 converts the image data sent from the host computer 44 as an external device into dot data that can be printed in accordance with the resolution.
A modulation signal is output to the laser drive circuit 30 in accordance with the dot data sent from the
N-OFF control is performed.

【0018】更に、エンジンコントローラ34は、メイ
ンモータ駆動回路26及びスキャナモータ駆動回路24
にそれぞれ駆動信号を出力し、メインモータ28の回転
速度を解像度に応じて制御するとともに、スキャナモー
タ24の回転開始及び停止を制御する。
Further, the engine controller 34 includes a main motor driving circuit 26 and a scanner motor driving circuit 24.
, Respectively, to control the rotation speed of the main motor 28 according to the resolution, and to control the start and stop of the rotation of the scanner motor 24.

【0019】また、ROM40には、図3に示すように
複数の印字装置の各々に対応する印字動作様式に応じ
て、2個のキャラクタコードの組合せからなり印字動作
様式を決定する制御コードをテーブル化した制御コード
テーブル41、その他制御コードの検出制御、印字制御
等に必要な各種のプログラムが記憶されている。
As shown in FIG. 3, the ROM 40 stores, in a table, control codes composed of a combination of two character codes for determining the printing operation mode according to the printing operation mode corresponding to each of the plurality of printing devices. The stored control code table 41 and other various programs necessary for control code detection control, print control, and the like are stored.

【0020】また、RAM42は、ビデオコントローラ
36から送られた制御コードを含む印字情報を一時的に
記憶する印字情報バッファ43、後述するように全ての
制御コードをカウントする制御コードカウンタ52、3
つの印字動作様式のそれぞれに対応して設けられた3つ
のエラー制御コードカウンタ54、その他制御コードを
比較する為のレジスタ等を備えている。
The RAM 42 includes a print information buffer 43 for temporarily storing print information including a control code sent from the video controller 36, and control code counters 52, 3 for counting all control codes as described later.
It is provided with three error control code counters 54 provided corresponding to each of the three printing operation modes, a register for comparing control codes, and the like.

【0021】上記構成を有する本実施例に係るレーザプ
リンタでは、外部機器としてのホストコンピュータ44
から送られた画像データをビデオコントローラ36で変
換して得られるドットデータ中から、複数の印字装置の
動作様式から1の動作様式を決定するための制御コード
を検出するとともに、その検出された制御コードとRO
M40の制御コードテーブルとを比較することにより、
印字の動作様式を決定し、その動作様式に従ってスキャ
ナモータ駆動回路24、メインモータ駆動回路26、レ
ーザ駆動回路30を駆動制御して印字を行うものであ
る。
In the laser printer according to this embodiment having the above configuration, the host computer 44 as an external device is used.
A control code for determining one operation mode from the operation modes of a plurality of printing devices is detected from the dot data obtained by converting the image data sent from the video controller 36 by the video controller 36, and the detected control is performed. Code and RO
By comparing with the control code table of M40,
A printing operation mode is determined, and the scanner motor drive circuit 24, the main motor drive circuit 26, and the laser drive circuit 30 are driven and controlled in accordance with the operation mode to perform printing.

【0022】次に、上記のように外部機器としてのホス
トコンピュータ44からの画像情報を解読して印字制御
を実行する以前に、本実施例の印字装置において実行さ
れる特有の初期処理について説明する。図2は、制御部
32のROM42に格納された初期処理プログラムのフ
ローチャートである。
Next, a description will be given of a specific initial process executed in the printing apparatus of the present embodiment before the image information from the host computer 44 as an external device is decoded and printing control is executed as described above. . FIG. 2 is a flowchart of the initial processing program stored in the ROM 42 of the control unit 32.

【0023】本プログラムの処理は印字装置の電源が投
入される立ち上げ時にCPU38によって開始され、ま
ず装置の初期化のために、SELF−TEST、RAM
42の初期設定、及び自己の有する3種の動作モード
(0、1、2)の中から動作モード0を仮に選択する初
期化処理(S1)を行う。次に、S2にて、全ての制御
コードをカウントするための制御コードカウンタ52、
及び、各印字動作様式に対応して設けられたエラー制御
コードカウンタ0、1、2(54)をリセットする。
The processing of this program is started by the CPU 38 at the time of startup when the power of the printing apparatus is turned on. First, in order to initialize the apparatus, SELF-TEST, RAM
42, and initialization processing (S1) for temporarily selecting the operation mode 0 from among three types of operation modes (0, 1, 2) of the self. Next, in S2, a control code counter 52 for counting all control codes,
Then, the error control code counters 0, 1, 2 (54) provided corresponding to each printing operation mode are reset.

【0024】続いて、ホストコンピュータ44から出力
される印字情報を受信し、RAM42の所定アドレスに
割り当てられた印字情報バッファ43に格納する(S
3)。そして、この格納した印字情報の中から制御コー
ドのみを検出し制御コードが検出されたとき(S5:Y
ES)に限り以下の判断処理(S7〜S19)に移行
し、それ以外であれば(S5:NO)再度S3へ戻って
印字情報の記憶を行う。尚、検出された全ての制御コー
ドは制御コードカウンタ52によりカウントされる。判
断処理へ入ると、図3に概念的に示すように、まず検出
した制御コードが動作モード0の制御コードであるか否
かの判断を行うルーチンを実行する(S7)。
Subsequently, the print information output from the host computer 44 is received and stored in the print information buffer 43 assigned to a predetermined address in the RAM 42 (S
3). Then, when only the control code is detected from the stored print information and the control code is detected (S5: Y
Only in the case of (ES), the processing shifts to the following judgment processing (S7 to S19), otherwise (S5: NO), the processing returns to S3 again to store the print information. All the detected control codes are counted by the control code counter 52. When entering the determination process, as shown conceptually in FIG. 3, first, a routine for determining whether the detected control code is a control code of the operation mode 0 is executed (S7).

【0025】図3は該ルーチンの動作の概念図である。
このルーチンでは、ROM40に格納されている制御コ
ードテーブル41(2個のキャラクタコードの組合せよ
りなる)と検出した制御コードの内容の比較を行う。
FIG. 3 is a conceptual diagram of the operation of the routine.
In this routine, the control code table 41 (composed of a combination of two character codes) stored in the ROM 40 is compared with the content of the detected control code.

【0026】ここに、制御コードの比較は次のように行
われる。まず、S5で検出された制御コードを構成する
複数のキャラクタコードのうち、ESCコードに続く2
個のキャラクタコードに限定してRAM42のレジスタ
Aに転送しておく。一方、ROM40の制御コードテー
ブル41のうち、動作モード0に対応する制御コードテ
ーブル46からRAM42のレジスタBに制御コードを
順次転送する。そして、CPU38が、両レジスタA、
Bを比較して検出された制御コードが動作モード0に対
応するかどうか順次判断する。
Here, the comparison of the control codes is performed as follows. First, of a plurality of character codes constituting the control code detected in S5, two characters following the ESC code are used.
Only the character codes are transferred to the register A of the RAM 42. On the other hand, of the control code table 41 of the ROM 40, the control code is sequentially transferred from the control code table 46 corresponding to the operation mode 0 to the register B of the RAM 42. Then, the CPU 38 determines that both registers A,
By comparing B, it is sequentially determined whether the detected control code corresponds to the operation mode 0.

【0027】図3に示す例では、印字情報バッファ43
に記憶された制御コードのうち、最初の制御コード中E
SCコードに続く2つのキャラクタコードは、X、Yで
あり、一方制御コードテーブル46中にX、Yのキャラ
クタコードの組合せが存在するので、最初の制御コード
は動作モード0の制御コード体系に合致していることが
分かる。また、2番目の制御コード中ESCコードに続
く2つのキャラクタコードは、A、Bであり、一方制御
コードテーブル46中にA、Bのキャラクタコードの組
合せが存在するので、かかる制御コードも動作モード0
の制御コード体系に合致していることが分かる。
In the example shown in FIG.
Of the first control code among the control codes stored in
The two character codes following the SC code are X and Y. On the other hand, since the combination of the X and Y character codes exists in the control code table 46, the first control code matches the control code system of the operation mode 0. You can see that we are doing it. The two character codes following the ESC code in the second control code are A and B. On the other hand, since the combination of the A and B character codes exists in the control code table 46, the control code is also in the operation mode. 0
It can be understood that the control code system of FIG.

【0028】このように、本実施例では、制御コードを
構成する複数のキャラクタコードのうち、2個のキャラ
クタコードに限定して動作モードを判断するようにして
いるので、検出された制御コードと制御コードテーブル
41との比較を高速に行い得、且つ、制御コードテーブ
ル41の記憶容量も1つの制御コードにつき2個のキャ
ラクタコードしか必要としないため、小さく抑えること
が出来る。尚、このルーチンにおける判断のアルゴリズ
ムは、動作モードが1かどうかを判断するS11及び動
作モードが2かどうかを判断するS15で共通である。
As described above, in the present embodiment, the operation mode is determined only for two character codes among the plurality of character codes constituting the control code. The comparison with the control code table 41 can be performed at high speed, and the storage capacity of the control code table 41 can be kept small because only two character codes are required for one control code. The algorithm of the determination in this routine is common to S11 for determining whether the operation mode is 1 and S15 for determining whether the operation mode is 2.

【0029】続いて、S5で検出した制御コードが動作
モード0に存在しないものであると判断した場合(S
7:NO)、エラー制御コードカウンタ0を1増やして
(S9)、次の処理(S11)に移行する。S11で
は、更に検出した制御コードが動作モード1に存在する
か否かの判断ルーチンを実行し、存在しない場合(S1
1:NO)にはエラー制御コードカウンタ1を1増やす
(S13)。
Subsequently, when it is determined that the control code detected in S5 does not exist in the operation mode 0 (S5).
7: NO), increments the error control code counter 0 by 1 (S9), and proceeds to the next process (S11). In S11, a determination routine for determining whether or not the detected control code exists in the operation mode 1 is executed.
1: NO), the error control code counter 1 is incremented by 1 (S13).

【0030】ここで、S11における判断は、S7と同
様に、受信バッファからレジスタAに転送された制御コ
ードを構成するキャラクタコードのうちの2個のキャラ
クタコードと動作モード1に対応する制御コードテーブ
ル48からレジスタBに転送された2個のキャラクタコ
ードとを順次比較し、検出された制御コードが動作モー
ド1の制御コード体系に合致するかどうかの判断が行わ
れる。
Here, the determination in S11 is made in the same manner as in S7 by determining two character codes of the character codes constituting the control codes transferred from the reception buffer to the register A and the control code table corresponding to the operation mode 1. The two character codes transferred from 48 to the register B are sequentially compared to determine whether the detected control code matches the control code system of the operation mode 1.

【0031】次のS15でもS7、S11と同様に、検
出した制御コードが動作モード2における制御コード体
系に存在するか否かの判断がなされ、存在しない制御コ
ードの場合(S15:NO)に限りエラー制御コードカ
ウンタ2を1増やす(S17)。ここでは、レジスタA
の2個のキャラクタコードと制御コードテーブル50か
らレジスタBに転送された2個のキャラクタコードとを
比較することにより、検出された制御コードが動作モー
ド2の制御コード体系に合致するかどうかが判断され
る。
In the next S15, similarly to S7 and S11, it is determined whether or not the detected control code exists in the control code system in the operation mode 2, and only when the detected control code does not exist (S15: NO). The error control code counter 2 is incremented by 1 (S17). Here, register A
Is compared with the two character codes transferred from the control code table 50 to the register B to determine whether the detected control code matches the control code system of the operation mode 2. Is done.

【0032】S17を終わると、S19で制御コードカ
ウンタ52を1増やした後、再度上記の印字情報からの
制御コード検出、動作モードの絞り込み処理を繰り返し
実行するためS3の処理へと戻る。
When S17 ends, the control code counter 52 is incremented by 1 in S19, and the process returns to S3 in order to repeatedly execute the control code detection from the print information and the operation mode narrowing process.

【0033】以上の初期処理が繰り返し実行され続ける
印字装置立ち上げの期間にあって、CPU38は内部の
計時カウンタを監視することで時間経過を知り、4SE
Cの時間経過後には図4に示す4SEC割り込みルーチ
ンの処理を開始する。この処理に入ると上記初期処理プ
ログラムの実行の終了を行い(S30)、次にその初期
処理プログラムの実行によって得られたエラー制御コー
ドカウンタ0、1、2にてそれぞれカウントされたエラ
ー制御コードの数の比較を行いエラー制御コードの数が
最小のカウンタを検出する(S32)。
During the start-up period of the printing apparatus in which the above-mentioned initial processing is repeatedly executed, the CPU 38 monitors the internal time counter to know the lapse of time and to determine the time lapse.
After the elapse of the time C, the processing of the 4SEC interrupt routine shown in FIG. 4 is started. In this process, the execution of the initial processing program is terminated (S30), and the error control code counters 0, 1, and 2 obtained by the execution of the initial processing program are executed. The number is compared and a counter with the minimum number of error control codes is detected (S32).

【0034】この検出により得られたエラー制御コード
の数が最小であるエラー制御コードカウンタが、初期処
理プログラムで検知され制御コードカウンタにカウント
されている制御コードの数の内、5%を超すかどうかを
判断し(S34)、5%を超すと判断された場合(3
4:NO)には、コマンドエラーを表示する(S3
5)。S34における判断が5%を超さないと判断され
た場合(S34:YES)、S36が実行される。
The error control code counter having the minimum number of error control codes obtained by this detection exceeds 5% of the number of control codes detected by the initial processing program and counted in the control code counter. It is determined whether or not it exceeds 5% (S34).
4: NO), a command error is displayed (S3).
5). When it is determined that the determination in S34 does not exceed 5% (S34: YES), S36 is executed.

【0035】S36において、最小のエラー制御コード
カウンタが1つだけならば(S36:YES)、設定さ
れた動作モードの制御コード体系に基づいて前記RAM
42に格納されている印字情報がビデオコントローラ3
6にてドットデータに変換され、そのドットデータの印
字動作が開始され(S38)、以下通常の印字制御が行
われる。一方、最小のエラー制御コードカウンタが2つ
以上の時(S36:NO)、S38の処理により選択さ
れて絞り込まれた範囲内で任意に決定される1つの動作
モードに基づいた制御コード体系を利用して印字が実行
される(S40)。
In S36, if there is only one minimum error control code counter (S36: YES), the RAM is controlled based on the set operation mode control code system.
The printing information stored in the video controller 3
The data is converted into dot data in 6, and the printing operation of the dot data is started (S38), and the normal printing control is performed thereafter. On the other hand, when the minimum error control code counter is two or more (S36: NO), the control code system based on one operation mode arbitrarily determined within the narrowed range selected by the process of S38 is used. Then, printing is executed (S40).

【0036】以上詳細に説明した通り、本実施例係る印
字装置によれば、各印字動作モードに対応してエラー制
御コードカウンタ54を設け、これらエラー制御コード
カウンタ54のうち、カウントされたエラー制御コード
の数が最小のカウンタを検出するとともに、そのエラー
制御コードの数が最小のカウンタに基づいて印字動作モ
ードを決定するようにしているので、制御コードに対応
する適正な印字動作モードで印字することができる。
As described in detail above, according to the printing apparatus of the present embodiment, the error control code counter 54 is provided corresponding to each printing operation mode. Since the counter with the smallest number of codes is detected and the printing operation mode is determined based on the counter with the smallest number of error control codes, printing is performed in the appropriate printing operation mode corresponding to the control code. be able to.

【0037】特に、上記のように検出した最小のエラー
制御コードカウンタにおけるエラー制御コードの数と、
検出された全ての制御コードの数との比較を行い、エラ
ー制御コードの数が全制御コードの数に対して5%以下
であるかどうかを基準として印字動作モードを決定する
ようにしているので、エラー制御コードが発生した場合
でも極めて正確に印字動作モードを選択決定し印字する
ことができる。
In particular, the number of error control codes in the minimum error control code counter detected as described above,
The number of detected control codes is compared with the number of all detected control codes, and the printing operation mode is determined based on whether or not the number of error control codes is 5% or less of the total number of control codes. Even when an error control code is generated, the printing operation mode can be selected and determined very accurately and printing can be performed.

【0038】また、本実施例に係る印字装置では、印字
動作モードを決定するに際し、制御コードを構成する複
数のキャラクタコードのうち、ESCコードに続く最初
の2個のキャラクタコードと、同様に2個のキャラクタ
コードをテーブル化してなる制御コードテーブルとを比
較して印字動作モードを決定するようにしているので、
極めて高速で印字動作モードを決定することができる。
Further, in the printing apparatus according to the present embodiment, when determining the printing operation mode, of the plurality of character codes constituting the control code, the first two character codes following the ESC code are also used. Since the print operation mode is determined by comparing with a control code table which is a table of character codes,
The printing operation mode can be determined at a very high speed.

【0039】尚、本実施例では、印字動作モードを決定
するについて、エラー制御コードの数と全制御コードの
数との比率が5%であるかどうかを基準として印字動作
モードを決定するようにしたが、本発明はこれに限定さ
れるものではなく印字動作モードの決定に支障のない範
囲内でこの比率を増減できることは勿論である。
In this embodiment, the printing operation mode is determined based on whether or not the ratio of the number of error control codes to the number of all control codes is 5%. However, the present invention is not limited to this, and it goes without saying that this ratio can be increased or decreased within a range that does not hinder the determination of the printing operation mode.

【0040】[0040]

【発明の効果】以上説明した通り、本発明は、印字装置
が有する各種印字動作様式を高速に判断可能であるとと
もに、印字動作様式を決定する制御コードが各印字動作
様式に合致しないエラー状態が生じた場合でも適正に印
字動作様式を選択決定することができる印字装置を提供
することができる。また、この選択決定された印字動作
様式に対して合致しないと判断された制御コードの数が
所定値以下の場合に、印字処理を実行することによっ
て、選択決定された印字動作様式に対して合致しない制
御コードが発生した場合でも極めて正確に適切な印字が
できる印字装置を提供することができ、その産業上奏す
る効果は大である。
As described above, according to the present invention, various printing operation modes of a printing apparatus can be determined at high speed, and an error state in which a control code for determining a printing operation mode does not match each printing operation mode can be obtained. providing a printing apparatus the resulting proper printing operation manner even if it is possible to select determined Ru can. In addition, this selected printing operation
If the number of control codes determined to be
By executing print processing when the value is less than the predetermined value,
Does not match the selected printing operation mode.
Even if a code is generated, extremely accurate and appropriate printing
It is possible to provide a printing device capable of producing such a printing device, and the effect obtained in the industry is great.

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

【図1】レーザプリンタの光学系及び駆動系を模式的に
示す説明図である。
FIG. 1 is an explanatory diagram schematically showing an optical system and a driving system of a laser printer.

【図2】初期処理プログラムのフローチャートである。FIG. 2 is a flowchart of an initial processing program.

【図3】制御コードと制御コードテーブルとの比較動作
を概念的に示す説明図である。
FIG. 3 is an explanatory diagram conceptually showing a comparison operation between a control code and a control code table.

【図4】4SEC割り込みルーチンを示すフローチャー
トである。
FIG. 4 is a flowchart showing a 4SEC interrupt routine.

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

32 制御部 34 エンジンコントローラ 36 ビデオコントローラ 38 CPU 40 ROM 42 RAM 44 ホストコンピュータ 46、48、50 制御コードテーブル 52 制御コードカウンタ 54 エラー制御コードカウン
タ S7、S11、S15 制御コードと制御コード
テーブルとを比較する判断処理手順 S34 最小のカウンタのエラー
制御コード数と全制御コード数との比率を判断する処理
手順
32 Control unit 34 Engine controller 36 Video controller 38 CPU 40 ROM 42 RAM 44 Host computer 46, 48, 50 Control code table 52 Control code counter 54 Error control code counter S7, S11, S15 Compare control code with control code table Judgment processing procedure S34 Processing procedure for judging the ratio between the number of error control codes of the smallest counter and the total number of control codes

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の印字装置の動作様式を模擬す
る模擬機能を有し、予め選択される1の印字装置の動作
様式に基づき、入力される印字情報に従った印字動作を
実行する印字装置において、 前記印字情報を記憶する印字情報記憶手段と、 前記印字情報記憶手段に記憶される印字情報中から印字
動作様式を決定する制御コードを検出する制御コード検
出手段と、 前記制御コード検出手段により検出された制御コードが
前記各印字動作様式に合致するかどうかを判断する判断
手段と、 前記各印字動作様式に対応して設けられ、前記制御コー
ドの内、前記各印字動作様式に合致しないと判断された
コードをエラー制御コードとしてカウントするカウンタ
手段と、前記各カウンタ手段の中からエラー制御コードの数が最
小のカウンタ手段を検出する検出手段と、 前記検出手段によって検出されたカウンタ手段のエラー
制御コードの数が所定値以下であるか否か判定する判定
手段と、 前記判定手段によって前記エラー制御コードの数が所定
値以下であると判定された場合には、前記検出手段によ
って 検出されたカウンタ手段に対応する印字動作様式に
基づいて印字を実行させる制御手段とを備えたことを特
徴とする印字装置。
A printing apparatus having a simulation function for simulating the operation mode of a plurality of printing apparatuses, and executing a printing operation in accordance with input printing information based on an operation mode of one printing apparatus selected in advance. A print information storage unit that stores the print information; a control code detection unit that detects a control code that determines a printing operation mode from print information stored in the print information storage unit; and the control code detection unit. Determining means for determining whether or not the detected control code matches each of the printing operation modes; provided in correspondence with each of the printing operation modes, and if the control code does not match each of the printing operation modes, Counter means for counting the determined code as an error control code; and
Detecting means for detecting a small counter means, and an error of the counter means detected by the detecting means
Determine whether the number of control codes is less than or equal to a predetermined value
Means and the number of the error control codes are determined by the determination means.
If it is determined that the value is equal to or less than the value,
Printing apparatus characterized by comprising a control means for executing a printing based on the printing mode of operation corresponding to the detected counter means I.
JP03195747A 1991-07-10 1991-07-10 Printing device Expired - Fee Related JP3084806B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03195747A JP3084806B2 (en) 1991-07-10 1991-07-10 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03195747A JP3084806B2 (en) 1991-07-10 1991-07-10 Printing device

Publications (2)

Publication Number Publication Date
JPH0519990A JPH0519990A (en) 1993-01-29
JP3084806B2 true JP3084806B2 (en) 2000-09-04

Family

ID=16346298

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03195747A Expired - Fee Related JP3084806B2 (en) 1991-07-10 1991-07-10 Printing device

Country Status (1)

Country Link
JP (1) JP3084806B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6292243B1 (en) 1996-09-02 2001-09-18 Seiko Epson Corporation Two-layer liquid crystal panel having a polymer liquid crystal layer and equipment using the same
WO1999012073A1 (en) 1997-09-01 1999-03-11 Citizen Watch Co., Ltd. Electronic device with display section
JP2005101384A (en) 2003-09-26 2005-04-14 Sanyo Electric Co Ltd Photovoltaic device and its manufacturing method

Also Published As

Publication number Publication date
JPH0519990A (en) 1993-01-29

Similar Documents

Publication Publication Date Title
JP3084807B2 (en) Printing device
US4860119A (en) Image forming system with memory duplex printing
US5051925A (en) Printer for converting character codes into bit images
CA1051349A (en) Intermixed pitches in a buffered printer
US5467432A (en) Printer controller capable of operating with different operation modes based on mode-determinative codes stored in point-table memory
US5136688A (en) Print data processing apparatus for an image forming apparatus
US5220431A (en) Image-forming apparatus having a landscape mode and a portrail mode
US5887991A (en) Printer buffer unit detecting phase of transition signal to initiate job offset command
JP3033628B2 (en) Printer control device
JP2615137B2 (en) Printing device
JP3084806B2 (en) Printing device
US5297876A (en) Page printer with internal and external memories
JP3021453B2 (en) Printing device
JP2595855B2 (en) Printer control device
EP0545648B1 (en) Automatic language determination control for printer
US4996649A (en) Image processor capable of storing character images and graphic images in a memory and including a timer for ensuring image processing operations are carried out in a predetermined time period
KR0155082B1 (en) Data conversion method of printer driver
JPH0390371A (en) Recording device
JP3195097B2 (en) Output control method and device
JP2000015899A (en) Printer, printing system and environment setting method
US6295135B1 (en) Release of busy signal when free capacity of a reception buffer exceeds a predetermined amount
JP3167062B2 (en) Image recording device
JP2713261B2 (en) Printing device
US20010012125A1 (en) Data read apparatus, method, and printing apparatus
JPH08317230A (en) Color printer controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080707

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090707

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100707

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110707

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees