JPS6049974A - Printer-controlling system - Google Patents

Printer-controlling system

Info

Publication number
JPS6049974A
JPS6049974A JP58158063A JP15806383A JPS6049974A JP S6049974 A JPS6049974 A JP S6049974A JP 58158063 A JP58158063 A JP 58158063A JP 15806383 A JP15806383 A JP 15806383A JP S6049974 A JPS6049974 A JP S6049974A
Authority
JP
Japan
Prior art keywords
data
buffer
printer
information
code
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.)
Granted
Application number
JP58158063A
Other languages
Japanese (ja)
Other versions
JPH0463782B2 (en
Inventor
Hitoshi Minami
南 仁司
Hideo Kadoi
英夫 門井
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.)
Pentel Co Ltd
Original Assignee
Pentel 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 Pentel Co Ltd filed Critical Pentel Co Ltd
Priority to JP58158063A priority Critical patent/JPS6049974A/en
Publication of JPS6049974A publication Critical patent/JPS6049974A/en
Publication of JPH0463782B2 publication Critical patent/JPH0463782B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Ink Jet (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Color, Gradation (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

PURPOSE:To enable to perform various operation controls for a printer by only monitoring and executing a controlling code stored in a special purpose buffer, by a method wherein discrimination information for discriminating whether recording information is stored in line buffers is added to a controlling code. CONSTITUTION:When a graphic mode signal is received, a data-receiving part 10 resets a character generator, controls a data-selecting part 11 to store Y, M, C and B codes into Y, M, C and B receiving buffers 12-15, and when a carriage return code is fed in, the part 10 stores the controlling code (i) into a controlling code buffer 28. When a line feed code is fed in, it is set into the buffer 28. When the controlling code (i) is set, the data stored in the buffers 12-15 are stored into Y, M, C and B line buffers 16-19 by clocks 35, 36, and are printed through Y, M, C and B drivers 20-23 and Y, M, C and B heads 24-27. Accordingly, various operation controls for the printer can be entirely performed by only monitoring and executing the controlling code (i) stored in the exclusive use buffer.

Description

【発明の詳細な説明】 [技術分野] 本発明はプリンタ9制御方式に関するものであり、更に
詳細に言えば複数の印字ヘッドを有するプリンタにおい
て、送信されてくる各色データ及び、制御コードを容易
かつ効率良く処理できるプリンタ制御方式に関するもの
である。
Detailed Description of the Invention [Technical Field] The present invention relates to a printer 9 control method, and more specifically, in a printer having a plurality of print heads, it is possible to easily and easily control transmitted color data and control codes. The present invention relates to a printer control method that enables efficient processing.

[従来技術] 従来の印字ヘッド数が1個のプリンタでは、送信されて
くる文字コード、ドツトパターン、印字制御コードを順
次ラインバッファに格納していき、印字を行う際は格納
した順にデータを取り出し、そのデータを印字ヘッドに
出力したり、又用紙送り、キャリッジリターン等を実施
すればよかった。
[Prior art] In conventional printers with one print head, the transmitted character codes, dot patterns, and print control codes are sequentially stored in a line buffer, and when printing, the data is retrieved in the order in which they are stored. , it would be sufficient to output the data to the print head, or perform paper feed, carriage return, etc.

即ち、第1図に示す如く、ホストコンピュータ等より送
られてくるデータを逐次受信バッファに格納していき、
印字命令(CR又はLFコード等)を受信した時点で、
受信バッファの内容を印字するよう制御し、印字が終了
するとCR又はLF(印字命令)を実行すればよい。印
字動作中に受信された情報は逐次受信バッファにストア
され、受信バッファがフルになるまで受信可能である。
That is, as shown in FIG. 1, data sent from a host computer etc. is sequentially stored in a reception buffer,
Upon receiving a print command (CR or LF code, etc.),
The contents of the reception buffer may be controlled to be printed, and when printing is completed, a CR or LF (print command) may be executed. Information received during the printing operation is sequentially stored in the reception buffer and can be received until the reception buffer becomes full.

この場合の動作フローチャートを第2図に示す。An operational flowchart in this case is shown in FIG.

しかし、複数の印字ヘッドと、この印字ヘッドに対応し
た複数のラインバッファを有するカラープリンタ等にお
いては、送信されてくる文字コードやパターン情報と制
御コードを同じラインバッファにセットすると、複数ヘ
ッドが一体的に移動して印字を行う際には不具合が生じ
る。
However, in color printers that have multiple print heads and multiple line buffers corresponding to the print heads, if the transmitted character code or pattern information and control code are set in the same line buffer, the multiple heads can be integrated. Problems occur when printing is performed while moving the printer.

例えば受信データが [黄色データ(Y)]→[マゼンクデータ(M)]→[
シアンデータ(C)コ−”CR” −”LF”の順で送
られてきた場合には、第3図に示す如く各ラインバッフ
ァに格納され1ことになる。図示の如く黄色データが他
のデータより多い場合に従来と同様の制御を行うと、シ
アンバッファにセットされたCRコードを読み出した時
点てキャリッジリターン動作が実行され、そのLFコー
ドにより改行動作が実行されてしまい、黄色データの斜
線で示す部分が次行に印字されるという不具合が生じて
しまう。
For example, the received data is [Yellow data (Y)] → [Mazenk data (M)] → [
When cyan data (C) is sent in the order of "CR" and "LF", it is stored in each line buffer as 1 as shown in FIG. If the same control as the conventional one is performed when there is more yellow data than other data as shown in the figure, a carriage return operation is executed when the CR code set in the cyan buffer is read, and a new line operation is executed using the LF code. This causes a problem in that the shaded portion of the yellow data is printed on the next line.

これを避けるためには制御コードに対するプリンタ動作
を実行する時に、他の文字バッファに印字データがある
か否かをたえず調べなければならず、非常に効率も悪く
制御も複雑になっていた。
In order to avoid this, when executing a printer operation for a control code, it is necessary to constantly check whether there is print data in other character buffers, which is extremely inefficient and complicates control.

[発明の目的] 本発明は上述の欠点に鑑みなされたもので、記録情報は
各印字ヘッドに対応した各ラインバッファに格納し、制
御コードは他の専用バッファに格納し、該制御コードに
上記各ラインバッファ内に記録情報が有るか否かの識別
情報を附加することにより、プリンタの各種の動作制御
をこの専用バッファ内の制御コードの監視、及び実行の
みで行えるプリンタ制御方式を提供することを目的とす
る。
[Object of the Invention] The present invention has been made in view of the above-mentioned drawbacks, and the recording information is stored in each line buffer corresponding to each print head, the control code is stored in another dedicated buffer, and the above-mentioned information is stored in the control code. To provide a printer control method in which various operations of a printer can be controlled only by monitoring and executing control codes in this dedicated buffer by adding identification information indicating whether recording information exists in each line buffer. With the goal.

[実施例] 以下図面を参照して本発明の一実施例について詳細に説
明する。
[Example] An example of the present invention will be described in detail below with reference to the drawings.

第4図は本発明の一実施例に係るカラープリンタ装置の
ブロック構成図である。
FIG. 4 is a block diagram of a color printer device according to an embodiment of the present invention.

図において、lOはホストコンピュータ等より記録情報
を受け取るデータ受信部、11はデータ受信部lOより
の記録情報を各印字ヘッドに対応した受信バッファに振
り分けるデータセレクタ部、12〜15はデータセレク
タ部よりの色別に振り分けられたデータを一時記憶する
受信バッファ、16〜19は印字ヘッドにより記録され
る記録データを格納し、順次記録していくためのライン
バッファ、20〜23は各印字ヘッド用ドライ7<、2
4〜27は各色カラー印字する印字ヘッド、28はデー
タ受信部10での受信データ中の制御情報及び後述の識
別フラグを格納する制御コードバッファ、29は各種制
御を行うプリンタ制御部、30はキャリッジ駆動用モー
タ、31はフィード用モータである。
In the figure, 10 is a data receiving section that receives recorded information from a host computer, etc., 11 is a data selector section that distributes the recorded information from the data receiving section 10 to a receiving buffer corresponding to each print head, and 12 to 15 are data selector sections. 16 to 19 are line buffers for storing and sequentially recording data recorded by the print heads; 20 to 23 are dryers 7 for each print head; <, 2
4 to 27 are print heads that print in each color; 28 is a control code buffer that stores control information in the data received by the data receiving unit 10 and identification flags to be described later; 29 is a printer control unit that performs various controls; and 30 is a carriage. The drive motor 31 is a feed motor.

以上の構成より成るカラープリンタの動作を第5図の制
御フローチャートを参照して以下に説明する。
The operation of the color printer having the above configuration will be explained below with reference to the control flowchart shown in FIG.

第5図(A)はデータ受信部lOの動作を示すフローチ
ャート、第5図(B)はプリンタ似御部29の動作を示
すフローチャートである。
FIG. 5(A) is a flowchart showing the operation of the data receiving section 1O, and FIG. 5(B) is a flowchart showing the operation of the printer control section 29.

まずデータ受信部10の動作について説明する。First, the operation of the data receiving section 10 will be explained.

ステップ71でホストコンピュータ等よりの記録情報が
送られてきたか否か監視し、データが送られてくるとス
テップ72に進み、受信データか制御データか否か調べ
る。制御コードでない場合にはステップ73でモードキ
ャラクタかを調べ、モードキャラクタの場合にはステッ
プ74に進み、キャラクタモードか否かを調べる。キャ
ラクタモードの場合にはステップ75に進み、以後の受
信データは不図示のキャラクタジェネレータを介してド
ツトパターンに変換される様制御する。
In step 71, it is monitored whether recording information has been sent from a host computer or the like, and when data is sent, the process proceeds to step 72 to check whether it is received data or control data. If it is not a control code, it is checked in step 73 if it is a mode character, and if it is a mode character, the process advances to step 74 to check if it is a character mode. In the case of the character mode, the process proceeds to step 75, and the subsequent received data is controlled to be converted into a dot pattern via a character generator (not shown).

そしてステップ71に戻る。Then, the process returns to step 71.

ステップ74でキャラクタモードでない場合にはグラフ
ィックモードであり、データはドツトパターンで送られ
てくるのでステップ76でキャラクタジェネレータをリ
セットして直接八ツファへ格納するモードとする。
If it is not the character mode at step 74, it is the graphic mode and the data is sent in a dot pattern, so at step 76 the character generator is reset to a mode in which it is directly stored in the eight buffer.

ステップ73でモードコードでない場合にはステップ7
7に進み色コードか否か調べる。色コードの場合には以
後の受信データが色コードで指定された受信バッファへ
格納される様にデータセレクタ部11を制御する。
If it is not the mode code in step 73, step 7
Proceed to step 7 and check whether it is a color code. In the case of a color code, the data selector unit 11 is controlled so that subsequent received data is stored in the reception buffer specified by the color code.

ステップ77で色コードでない場合には受信データはプ
リントデータであるのでステップ79でデータフラグを
セット−し、ステップ80で受信データを色コードで指
定された受信バッファヘセットしてステップ71に進み
、次のデータの受信に備える。ステップ72で受信デー
タが制御コードであった場合にはステップ82に進み、
データフラグがセットされているか否かを調べる。デー
タフラグがセットされている場合には制御コード受信前
に印字すべき記録データが送られてきたことを意味する
ため、ステップ83で識別フラグをセットし、続いてス
テップ84でデータフラグをリセットし、ステップ85
に進む。ステップ82でデータフラグがセットされてい
ない場合にはそのままステップ85に進む。ステップ8
5では受信した制御コードを制御コードバッファにセラ
(・する。この時に識別フラグを共にセットし、ステッ
プ71に戻る。
If it is not a color code in step 77, the received data is print data, so a data flag is set in step 79, the received data is set in the reception buffer specified by the color code in step 80, and the process proceeds to step 71. Prepare to receive the next data. If the received data is a control code in step 72, the process advances to step 82;
Check whether the data flag is set. If the data flag is set, it means that recording data to be printed was sent before receiving the control code, so the identification flag is set in step 83, and the data flag is then reset in step 84. , step 85
Proceed to. If the data flag is not set in step 82, the process directly advances to step 85. Step 8
In step 5, the received control code is stored in the control code buffer. At this time, the identification flag is also set, and the process returns to step 71.

例えば、第6図に示すデータが送られてきた場合を説明
すると、まず最初にグラフィックモード(GM)’51
aが受信され、ステップ76でキャラクタジエネレータ
をリセットル、直接受信データを有効とする。次に色コ
ードとしてイエロー(Y)コード52aが送られてくる
と、ステップ77よりステップ78に進み、以後の受信
データをイエロー用の受信バッファ12に格納する採に
データセレクク部11を制御する。続いて記録情11i
 54 aが送られてくると、ステップ79よりステッ
プ80に進み、データフラグをセットし、その後順次受
信八ツファ12へ格納される。
For example, to explain the case where the data shown in Figure 6 is sent, first, the graphic mode (GM) '51
a is received, and in step 76 the character generator is reset and the directly received data is made valid. Next, when the yellow (Y) code 52a is sent as a color code, the process advances from step 77 to step 78, and the data select unit 11 is controlled to store the subsequent received data in the yellow reception buffer 12. . Next, record information 11i
54a is sent, the process advances from step 79 to step 80, where a data flag is set, and then stored in the receiving eight buffer 12 in sequence.

イエロー用の記録情報54aが全て送られてくると・続
いて又グラフィックモード(GM) 5 l bが送ら
れてくる。そして前記同様ステップ76を実行する。次
に色コードとしてシアン(C)コーi:’ 52 bが
送られてくるためステップ77よりステップ78に進み
、以後の受信データはシアン用受信バッファ14に格納
する様データセレクタ部11を制御する。モして続I/
1て送られてくる言己録情報54bに対してステップ7
9とステップ80で前記同様の処理を行17%1llQ
次シアン用受(言/\ツファ14に格納する。
When all the recording information 54a for yellow is sent, the graphic mode (GM) 5lb is sent again. Then, step 76 is executed as described above. Next, since cyan (C) code i:' 52 b is sent as a color code, the process advances from step 77 to step 78, and the data selector unit 11 is controlled so that the subsequent received data is stored in the cyan reception buffer 14. . Mo and continuation I/
Step 7 for the personal statement information 54b sent
9 and step 80, perform the same process as above for line 17%1llQ
The next cyan receiver (word/\store in the buffer 14).

そして続いてキャリッジリターン(CR)コード55が
送られてくるとステップ72よりステップ82に進む。
Then, when a carriage return (CR) code 55 is sent, the process advances from step 72 to step 82.

ステップ82で4−1データフラグif:。In step 82, 4-1 data flag if:.

セットされているためステップ83よりステップ。Since it is set, the steps start from step 83.

84に進み第7図に示す識別フラグ′60をセットし、
データフラグをリセットする。そしてステップ85て制
御コードを制御コード゛/ヘツファ28jこ識別フラグ
セット状態で格納する。
Proceed to step 84 and set the identification flag '60 shown in FIG.
Reset data flags. Then, in step 85, the control code is stored with the control code/header 28j identification flag set.

この制御コード/くツファ28にfl’jl 1↓リコ
ード゛カミセツトされると、プリンタ市j(卸音329
 t±1多述の第5図(B)(7)ニア0一チヤートに
従ってプIノンタ市1 iiJ動作を開始する。
When fl'jl 1↓recode is set in this control code/futher 28, printer city j (wholesound 329
Start the operation according to the chart in Figure 5 (B) (7) near t±1.

キャリッジリターン(CR)コードに続いて改行(LF
)コードが受信されると、ステップ82でデータフラグ
はセットされていないため1、ステップ82よりステッ
プ85に進み、識別フラグ60をセットせずに改行コー
ドを制御コードバッファ28にセットする。この時の制
御コードバッファの状態を第7図に示す。ここで60は
識別フラグ、61は制御コード格納領域である。
Carriage return (CR) code followed by line feed (LF)
) When the code is received, the data flag is not set in step 82, so the process proceeds from step 82 to step 85, and the line feed code is set in the control code buffer 28 without setting the identification flag 60. The state of the control code buffer at this time is shown in FIG. Here, 60 is an identification flag, and 61 is a control code storage area.

次に第5図(B)のフローチャートを参照してブリンク
制御部29の動作について説明する。
Next, the operation of the blink control section 29 will be explained with reference to the flowchart in FIG. 5(B).

プリンタ制御部29ではステップ?Oにおいてたえず制
御コードバッファ28に制御コードがセットされている
かを監視し、制御コードがセットされると動作を開始す
る。
The step in the printer control unit 29? At step O, it is constantly monitored whether a control code is set in the control code buffer 28, and when the control code is set, the operation is started.

制御フードバッファ28に制御コードがセットされると
ステップ90よりステップ91に進み、まず識別フラグ
(第7図60)かセットされてし)るか否か調べ、セッ
トされている場合には受信/久ツファ12〜15に制御
コードセット以前にプリンタでの記録情報がセットされ
ているためステップ92に進み、受信バッファ読み出し
クロック35及びライン/ヘツファ書き込み/読み出し
クロック36により、受信バッファ12〜15のデータ
をラインバッファ16〜19に格納する。ここで受信バ
ッファ内にデータのない場合にはスペースデータがライ
ンバッファに格納される。続いてステップ93で制御コ
ードにセットされている識別フラグをリセットし、ステ
ップ94とステップ95によりラインバッファ16〜1
9のデータを順次クロック36を用いて読み出しなから
、ドライバ20〜23を介してヘッド24〜27で対応
するラインバッファのデータをプリントする。この時ヘ
ッドはキャリッジモーフ3oによす移動されながらプリ
ントを行う。
When the control code is set in the control food buffer 28, the process proceeds from step 90 to step 91, where it is first checked whether the identification flag (60 in FIG. 7) is set, and if it is set, the reception/reception flag is checked. Since the printer recording information has been set in the buffers 12 to 15 before the control code is set, the process advances to step 92, and the data in the receive buffers 12 to 15 is read by the receive buffer read clock 35 and the line/head buffer write/read clock 36. are stored in line buffers 16-19. Here, if there is no data in the reception buffer, space data is stored in the line buffer. Next, in step 93, the identification flag set in the control code is reset, and in steps 94 and 95, the line buffers 16 to 1
9 data is sequentially read out using the clock 36, and then the data in the corresponding line buffer is printed by the heads 24-27 via the drivers 20-23. At this time, the head prints while being moved by the carriage morph 3o.

ラインバッファのデータを全てプリントし終るとステッ
プ90に戻る。そして再び制御コードバッファ28の監
視を行う。
When all the data in the line buffer has been printed, the process returns to step 90. Then, the control code buffer 28 is monitored again.

ステップ91で識別フラグがセットされていない場合に
はステップ100に進み、制御コードバッファ28より
制御コードを読み出し、ステップ101で制御コードに
対応する処理を実行する。
If the identification flag is not set in step 91, the process proceeds to step 100, where the control code is read from the control code buffer 28, and in step 101, the process corresponding to the control code is executed.

以上説明した如く複数の受信バッファを有するプリンタ
においてもプリンタ制御部29は制御コードバッファ2
8のみを見ていればよく、又データ受信部10は時系列
で受信データを処理でき、印字中のデータ受信動作も容
易に行え、プリンタの高速駆動が可能になるJ このプリンタがビジィになる条件は受信バッファとライ
ンバッファがともにフルになるか、制御D−トパツファ
28にセットされる制御コードの数がある一定以上にな
るかのいずれかで設定できる。制御コードパンツ728
にセットされる制御コードの数はプリンタの使われ方や
、プリンタの使用により任意に設定できる。
As explained above, even in a printer having a plurality of reception buffers, the printer control unit 29 uses the control code buffer 2
In addition, the data receiving section 10 can process the received data in chronological order, making it easy to receive data during printing, and enabling the printer to operate at high speed.J This printer becomes busy. The conditions can be set such that both the receive buffer and the line buffer become full, or the number of control codes set in the control D-topper 28 exceeds a certain level. control cord pants 728
The number of control codes set can be set arbitrarily depending on how the printer is used and how the printer is used.

本実施例では色データコードとしてイエロー(Y)、マ
ゼンタ(M)、シアン(C)、ブラック(黒)(色デー
タコードがない場合)の4色の指定コードの場合につい
て説明してきたが、光の3原色レッド(R)、グリーン
(G)、ブルーCB)の場合においてもデータ形式が第
6図図示のものであれば同様に処理できる。
In this embodiment, we have explained the case of four color specification codes: yellow (Y), magenta (M), cyan (C), and black (in the case where there is no color data code) as color data codes. In the case of the three primary colors (red (R), green (G), blue CB), the same processing can be performed if the data format is as shown in FIG.

今、1ラインの画像信号がR,、G 、 Bの順に送ら
れてくるとすると、まずRデータはYバッファ、Mバッ
ファ、黒バッファにセットされる。
Now, assuming that one line of image signals is sent in the order of R, G, B, R data is first set in the Y buffer, M buffer, and black buffer.

次にGデータが送られてくると、Yバッファには前のR
データと論理和をとった形で順次データがセットされる
。又Cバッファには送られてきたGデータがそのままセ
ットされる。黒バッファには前のRデータとの論理積を
とったデータがセットされていく。
When the next G data is sent, the previous R data is stored in the Y buffer.
Data is set sequentially in the form of a logical OR with the data. Also, the sent G data is set as is in the C buffer. Data obtained by performing a logical product with the previous R data is set in the black buffer.

最後にBデータが送られてくるとCバッファとMバッフ
ァには、以前にセットされているデータと論理和をとっ
たデータがセットされる。
Finally, when the B data is sent, the C buffer and the M buffer are set with data that is logically ORed with the previously set data.

又黒バッファには、以前にセットされているデータとの
論理積をとったデータがセットされる。このあとY、M
、Cの各バッファの内容は黒バッファデータの反転デー
タと各々論理積がとられ、1行分のデータとして確定す
る。
Further, data obtained by performing a logical product with previously set data is set in the black buffer. After this Y, M
, C is logically ANDed with the inverted data of the black buffer data, and determined as data for one row.

通常“Rデータ″、“°Gデータ′°、“Bデータパ、
゛制御コード″の順でデータが送られてくるが、R、G
 ’+ Bのいずれかのデータか存在せずに“制御コー
ド゛°が送られてくると黒バッファの内容は” o ”
クリアされY、M、Cバッファの内容はそのまま印字バ
ッファに譲られる。
Usually “R data”, “°G data′°, “B data data”,
Data is sent in the order of "control code", but R, G
If any of the data '+B' does not exist and the control code ゛° is sent, the contents of the black buffer will be ``o''.
The contents of the Y, M, and C buffers are cleared and transferred to the print buffer as they are.

以上のように受信バッファにデータをセットする方法を
変えることにより、RGB信号に対しても、MMC黒信
号と同様に処理が可能となる。
By changing the method of setting data in the reception buffer as described above, it becomes possible to process RGB signals in the same way as MMC black signals.

RGB信号に対応した場合、黒バッファに蓄えられてい
るデータは画面上で白色表示されている部分である。従
ってこの部分を白色印字(印字しない)するか黒色で印
字するか、スイッチ等で選択できるようにすることも可
能である。この色合成部はデータ受信部10に内蔵され
ていても、又、データセレクク部11に内蔵されていて
もよい。
When supporting RGB signals, the data stored in the black buffer is the portion displayed in white on the screen. Therefore, it is also possible to select whether to print this part in white (not printed) or in black using a switch or the like. This color combining section may be built into the data receiving section 10 or may be built into the data selecting section 11.

又、制御ニードバッファ28に格納する制御コードの数
に制限をつけることにより容易にプリンタの制御方式が
変えられる。即ち第6図の様なフォーマットでデータが
送られてくる場合、制御コードバッファ28に格納する
データの数を2個以下と定めると、プリンタはCR、L
Fコードを受信すると制御コードバッファ28に2個の
データが格納された状態となり、データ受信部10にビ
ジィを出力し、以後データを受信しなくなる。
Furthermore, by limiting the number of control codes stored in the control need buffer 28, the printer control method can be easily changed. That is, when data is sent in the format shown in FIG. 6, if the number of data to be stored in the control code buffer 28 is set to 2 or less, the printer will
When the F code is received, two pieces of data are stored in the control code buffer 28, a busy signal is output to the data receiving unit 10, and data will no longer be received.

このビジィが解除されるのは印字動作終了後、CR動作
を実行して制御コードバッファ28にLFコードのみが
残っている状態になった時である。即ちプリンタは印字
を終了した後火のデータを受信することになる。
This busy state is released when only the LF code remains in the control code buffer 28 by executing the CR operation after the printing operation is completed. In other words, the printer receives the data after completing printing.

格納するデータの数を3個以下に定めるとプリンタはC
R,LFコードを受信後もビジィとならないので引き続
きデータを受信し受信バッファにデータを蓄え続ける。
If the number of data to be stored is set to 3 or less, the printer will
Since it does not become busy even after receiving the R and LF codes, it continues to receive data and store data in the reception buffer.

即ちプリンタは印字中もデータ受信で行うことになる。In other words, the printer receives data even while printing.

プリンタがビジィになるときは印字中のデータ受信後火
の制御コードを受信したときである。このように制御コ
ードバッファ28の制御を行うだけでプリンタの動作も
変えられかつ複数の受信バッファやラインバッファの制
御が容易に行える。
The printer becomes busy when it receives a control code after receiving the data being printed. In this manner, the operation of the printer can be changed simply by controlling the control code buffer 28, and a plurality of receiving buffers and line buffers can be easily controlled.

[効果] 以上説明した様に本発明によれば、各色での印刷データ
が複数のバッファに格納される様な、場合にもプリンタ
の動作を制御する制御コードのみを専用バッファに格納
し、印刷データが有るか否かの識別情報を附加するのみ
で、この専用バッファ内の制御コードの監視及び実行を
行うのみで各種プリンタの動作制御が完全に行えるプリ
ンタ制御方式を提供できる。
[Effects] As explained above, according to the present invention, even in cases where print data for each color is stored in multiple buffers, only the control code that controls printer operation is stored in a dedicated buffer, and printing is performed. It is possible to provide a printer control method that can completely control the operations of various printers by simply adding identification information indicating whether data exists or not, and by simply monitoring and executing the control code in this dedicated buffer.

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

第1図は従来のプリントデータフォーマットを示す図、 第2図は従来のプリント動作を示すフローチャート図、 第3図は従来のカラープリンタにおけるプリントデータ
のバッファへの格納フォーマットを示す図、 第4図は本発明の一実施例プリンタ装置のブロック図、 第5図(A)は本実施例装置のデータ受信部の動作フロ
ーチャート図、 第5図CB)は本実施例装置のプリンタ制御部の動作フ
ローチャート図、 第6図は本実施例のプリントデータフォーマットを示す
図、 第7図は本実施例装置の制御コードバッファの状態を示
す図である。 図中、10・・・データ受信部、11・・・データセレ
クタ部、12〜15・・・受信バッファ、16〜19・
・・ラインバッファ、20〜23・・・ドライバ、24
〜27・・・印字ヘッド、28・・・制御コードバッフ
ァ、29・・・プリンタ制御部、30.31・・・モー
タである。 第5図 (3) 第6図 箒7図 プ B
Fig. 1 is a diagram showing a conventional print data format, Fig. 2 is a flowchart diagram showing a conventional print operation, Fig. 3 is a diagram showing a storage format of print data in a buffer in a conventional color printer, and Fig. 4 is a block diagram of a printer device according to an embodiment of the present invention, FIG. 6 is a diagram showing the print data format of this embodiment, and FIG. 7 is a diagram showing the state of the control code buffer of the apparatus of this embodiment. In the figure, 10... data receiving section, 11... data selector section, 12-15... receiving buffer, 16-19...
・・Line buffer, 20 to 23 ・・Driver, 24
~27...Print head, 28...Control code buffer, 29...Printer control unit, 30.31...Motor. Figure 5 (3) Figure 6 Broom Figure 7 B

Claims (5)

【特許請求の範囲】[Claims] (1)少なくとも2つの印字ヘッドを駆動して情報を記
録するプリンタにおいて、前記印字ヘッドのそれぞれに
対応して記録情報を記憶する第1の記憶手段と、プリン
タの動作を制御する制御情報を記憶する第2の記憶手段
と、前記第1の記憶手段に記録情報が格納されていると
きに前記第2の記憶手段の制御情報に識別情報を附加す
る識別情報附加手段とを備え、前記制御情報の実行は前
記識別情報のない場合に行うよう制御することを特徴と
するプリンタ制御方式。
(1) In a printer that records information by driving at least two print heads, a first storage means stores recording information corresponding to each of the print heads, and stores control information for controlling the operation of the printer. and identification information adding means that adds identification information to the control information in the second storage means when record information is stored in the first storage means, A printer control method characterized in that execution of is performed when the identification information is not present.
(2)制御情報はキャリッジリターン情報及び改行情報
であることを特徴とする特許請求の範囲第1項記載のプ
リンタ制御方式。
(2) The printer control method according to claim 1, wherein the control information is carriage return information and line feed information.
(3)第1の記憶手段への記録情報のプリンタでの印刷
は制御情報の入力により開始することを特徴とする特許
請求の範囲第1項又は第2項記載のプリンク制御方式。
(3) The plink control system according to claim 1 or 2, wherein printing of the recorded information in the first storage means by the printer is started by inputting control information.
(4)識別情報附加手段は第1の記憶手段の記録情報の
空を検知すると第2の記憶手段中の最先の記憶制御情報
の識別情報をリセットすることを特徴とする特許請求の
範囲第1項より第3項記載のプリンタ制御方式。
(4) The identification information adding means resets the identification information of the earliest storage control information in the second storage means when the first storage means detects that the recorded information is empty. The printer control method described in Items 1 to 3.
(5)第2の記憶手段の識別情報かりセットされている
時に第1の記憶手段への記録情報格納可とすることを特
徴とする特許請求の範囲第1項より第4項記載のプリン
タ制御方式。
(5) Printer control according to claims 1 to 4, characterized in that when the identification information of the second storage means is set, the recorded information can be stored in the first storage means. method.
JP58158063A 1983-08-31 1983-08-31 Printer-controlling system Granted JPS6049974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58158063A JPS6049974A (en) 1983-08-31 1983-08-31 Printer-controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58158063A JPS6049974A (en) 1983-08-31 1983-08-31 Printer-controlling system

Publications (2)

Publication Number Publication Date
JPS6049974A true JPS6049974A (en) 1985-03-19
JPH0463782B2 JPH0463782B2 (en) 1992-10-12

Family

ID=15663484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58158063A Granted JPS6049974A (en) 1983-08-31 1983-08-31 Printer-controlling system

Country Status (1)

Country Link
JP (1) JPS6049974A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62104756A (en) * 1985-10-31 1987-05-15 Tokyo Juki Ind Co Ltd Multi-color printer
JPH04126272A (en) * 1990-06-15 1992-04-27 Hitachi Ltd Printer controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62104756A (en) * 1985-10-31 1987-05-15 Tokyo Juki Ind Co Ltd Multi-color printer
JPH0428231B2 (en) * 1985-10-31 1992-05-13 Juki Kk
JPH04126272A (en) * 1990-06-15 1992-04-27 Hitachi Ltd Printer controller

Also Published As

Publication number Publication date
JPH0463782B2 (en) 1992-10-12

Similar Documents

Publication Publication Date Title
KR100550714B1 (en) Apparatus and method for two-color printing based on single color data
JPS61254983A (en) Display character attribute control system
JPS6049974A (en) Printer-controlling system
JPH05177885A (en) Controller for printer
JP3275992B2 (en) Color printer and color print system
JPH08202510A (en) Method for transmitting recording data to recorder
JP2716087B2 (en) Output device
JPS59119440A (en) Print control system
JP2003266804A (en) Printer, printer controlling method, apparatus and method for setting coloring information, program for executing these methods by computer and recording medium with the program recorded
JPH06344603A (en) Printer
JPH09186886A (en) Color printer
JPH0361547A (en) Dividing printing control system in serial dot impact printer
JP3010218B2 (en) Color printer control device and color printer
JPH0744644B2 (en) Color image processor
JPH0275015A (en) Printer
JPH10315512A (en) Color image recorder and recording method
JP3083406B2 (en) Printing method and apparatus
US5862306A (en) Printing apparatus having a video data processor and printing method for use with the same
JPH0197661A (en) Control circuit for multi-head dot matrix printer
JPH0318835B2 (en)
JPS63188052A (en) Recorder
JPH09169131A (en) Transfer controlling method for multi-line thermal printer
JPH0983816A (en) Color image processor
JP2002137460A (en) Print system and storage control method
JPH10313413A (en) Image processor and image processing method